mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 06:38:44 -05:00
- This should fix missing -lrt for those systems that need it
- I've cleaned up the configure a bit more as well git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@256 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
928f3a586b
commit
d1c8ce7315
@ -1,6 +1,7 @@
|
|||||||
CC ?= @CC@
|
CC ?= @CC@
|
||||||
FFLAGS = @FFLAGS@
|
FFLAGS = @FFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBS = @LIBS@
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
# WSJT specific C flags
|
# WSJT specific C flags
|
||||||
@ -28,7 +29,6 @@ FC=@FC@
|
|||||||
COMPILER += @FC_LIB_PATH@
|
COMPILER += @FC_LIB_PATH@
|
||||||
|
|
||||||
LDFLAGS += -L${COMPILER}
|
LDFLAGS += -L${COMPILER}
|
||||||
LDFLAGS += -lg2c
|
|
||||||
|
|
||||||
PYTHON ?= @PYTHON@
|
PYTHON ?= @PYTHON@
|
||||||
RM ?= @RM@
|
RM ?= @RM@
|
||||||
@ -112,7 +112,7 @@ wsjt6: @NEEDPORTAUDIO@ Audio.so #wsjt.spec
|
|||||||
Audio.so: $(OBJS2C) $(OBJS3C) $(OBJS2F77) $(SRCS2F90) $(AUDIOSRCS)
|
Audio.so: $(OBJS2C) $(OBJS3C) $(OBJS2F77) $(SRCS2F90) $(AUDIOSRCS)
|
||||||
${F2PY} -c --quiet --opt="-O ${CFLAGS} \
|
${F2PY} -c --quiet --opt="-O ${CFLAGS} \
|
||||||
-fno-second-underscore" $(OBJS2C) $(OBJS2F77) -m Audio \
|
-fno-second-underscore" $(OBJS2C) $(OBJS2F77) -m Audio \
|
||||||
--f77exec=${FC} --f90exec=${FC} ${CPPFLAGS} ${LDFLAGS} \
|
--f77exec=${FC} --f90exec=${FC} ${CPPFLAGS} ${LDFLAGS} ${LIBS} \
|
||||||
only: $(F2PYONLY) \
|
only: $(F2PYONLY) \
|
||||||
: $(SRCS2F90) \
|
: $(SRCS2F90) \
|
||||||
${SRCS3C} ${AUDIOSRCS}
|
${SRCS3C} ${AUDIOSRCS}
|
||||||
|
84
configure
vendored
84
configure
vendored
@ -2,7 +2,7 @@
|
|||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.59 for wsjt 5.9.2.
|
# Generated by GNU Autoconf 2.59 for wsjt 5.9.2.
|
||||||
#
|
#
|
||||||
# $Id: configure.ac 239 2006-08-05 16:53:41Z va3db $
|
# $Id: configure.ac 246 2006-08-09 19:51:29Z va3db $
|
||||||
#
|
#
|
||||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||||
# This configure script is free software; the Free Software Foundation
|
# This configure script is free software; the Free Software Foundation
|
||||||
@ -976,7 +976,7 @@ Copyright (C) 2003 Free Software Foundation, Inc.
|
|||||||
This configure script is free software; the Free Software Foundation
|
This configure script is free software; the Free Software Foundation
|
||||||
gives unlimited permission to copy, distribute and modify it.
|
gives unlimited permission to copy, distribute and modify it.
|
||||||
|
|
||||||
$Id: configure.ac 239 2006-08-05 16:53:41Z va3db $
|
$Id: configure.ac 246 2006-08-09 19:51:29Z va3db $
|
||||||
_ACEOF
|
_ACEOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -2501,7 +2501,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
CFLAGS="$OLD_CFLAGS"
|
CFLAGS="$OLD_CFLAGS"
|
||||||
|
|
||||||
CPPFLAGS="-Iportaudio-v19/include -I/usr/local/include -I/usr/include/alsa ${CPPFLAGS}"
|
CPPFLAGS="-Iportaudio-v19/include -I/usr/local/include -I/usr/include/alsa ${CPPFLAGS}"
|
||||||
LDFLAGS="-L/usr/local/lib -lpthread ${LDFLAGS}"
|
LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
|
||||||
|
LIBS=" -lpthread ${LIBS}"
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5
|
echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5
|
||||||
echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6
|
echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6
|
||||||
@ -4819,6 +4820,77 @@ _ACEOF
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
|
||||||
|
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
|
||||||
|
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
|
LIBS="-lrt $LIBS"
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
/* We use char because int might match the return type of a gcc2
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
char clock_gettime ();
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
clock_gettime ();
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
|
(eval $ac_link) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
|| test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest$ac_exeext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
ac_cv_lib_rt_clock_gettime=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
ac_cv_lib_rt_clock_gettime=no
|
||||||
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
|
||||||
|
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
|
||||||
|
if test $ac_cv_lib_rt_clock_gettime = yes; then
|
||||||
|
RTLIBS=""
|
||||||
|
else
|
||||||
|
RTLIBS="-lrt"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking for int64_t" >&5
|
echo "$as_me:$LINENO: checking for int64_t" >&5
|
||||||
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
|
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
|
||||||
if test "${ac_cv_type_int64_t+set}" = set; then
|
if test "${ac_cv_type_int64_t+set}" = set; then
|
||||||
@ -6718,7 +6790,7 @@ _ACEOF
|
|||||||
|
|
||||||
AUDIO="start_alsa.c"
|
AUDIO="start_alsa.c"
|
||||||
|
|
||||||
LDFLAGS="${LDFLAGS} -lasound"
|
LIBS="${LIBS} -lasound"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$oss" = yes; then
|
if test "$oss" = yes; then
|
||||||
@ -6741,7 +6813,7 @@ _ACEOF
|
|||||||
|
|
||||||
NEEDPORTAUDIO="portaudio-v19/lib/.libs/libportaudio.a"
|
NEEDPORTAUDIO="portaudio-v19/lib/.libs/libportaudio.a"
|
||||||
|
|
||||||
LDFLAGS="portaudio-v19/lib/.libs/libportaudio.a ${LDFLAGS} -lsamplerate"
|
LIBS="${LIBS} -lsamplerate ${RTLIBS} -lsamplerate ./portaudio-v19/lib/.libs/libportaudio.a"
|
||||||
else
|
else
|
||||||
NEEDPORTAUDIO=""
|
NEEDPORTAUDIO=""
|
||||||
|
|
||||||
@ -6823,6 +6895,8 @@ CPPFLAGS="${CPPFLAGS}"
|
|||||||
|
|
||||||
LDFLAGS="${LDFLAGS}"
|
LDFLAGS="${LDFLAGS}"
|
||||||
|
|
||||||
|
LIBS="${LIBS}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
|
10
configure.ac
10
configure.ac
@ -21,7 +21,8 @@ CFLAGS="$OLD_CFLAGS"
|
|||||||
|
|
||||||
dnl Lets guess at some likely places for extra libs/includes XXX -db
|
dnl Lets guess at some likely places for extra libs/includes XXX -db
|
||||||
CPPFLAGS="-Iportaudio-v19/include -I/usr/local/include -I/usr/include/alsa ${CPPFLAGS}"
|
CPPFLAGS="-Iportaudio-v19/include -I/usr/local/include -I/usr/include/alsa ${CPPFLAGS}"
|
||||||
LDFLAGS="-L/usr/local/lib -lpthread ${LDFLAGS}"
|
LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
|
||||||
|
LIBS=" -lpthread ${LIBS}"
|
||||||
|
|
||||||
AC_MSG_CHECKING([uname -s for Cygwin, Solaris or HPUX])
|
AC_MSG_CHECKING([uname -s for Cygwin, Solaris or HPUX])
|
||||||
case `uname -s` in
|
case `uname -s` in
|
||||||
@ -134,6 +135,8 @@ if test "$gcc_cv_header_string" = "yes"; then
|
|||||||
AC_DEFINE(STRING_WITH_STRINGS, 1, [Define to 1 if string.h may be included along with strings.h])
|
AC_DEFINE(STRING_WITH_STRINGS, 1, [Define to 1 if string.h may be included along with strings.h])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_LIB(rt, clock_gettime, [RTLIBS=""], [RTLIBS="-lrt"])
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(int64_t)
|
AC_CHECK_SIZEOF(int64_t)
|
||||||
AC_CHECK_SIZEOF(long long)
|
AC_CHECK_SIZEOF(long long)
|
||||||
|
|
||||||
@ -295,7 +298,7 @@ fi
|
|||||||
if test "$alsa" = yes; then
|
if test "$alsa" = yes; then
|
||||||
AC_DEFINE(USE_ALSA, 1, [Define if you want ALSA used.])
|
AC_DEFINE(USE_ALSA, 1, [Define if you want ALSA used.])
|
||||||
AC_SUBST(AUDIO, "start_alsa.c")
|
AC_SUBST(AUDIO, "start_alsa.c")
|
||||||
LDFLAGS="${LDFLAGS} -lasound"
|
LIBS="${LIBS} -lasound"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$oss" = yes; then
|
if test "$oss" = yes; then
|
||||||
@ -307,7 +310,7 @@ if test "$portaudio" = yes; then
|
|||||||
AC_DEFINE(USE_PORTAUDIO, 1, [Define if you want PORTAUDIO used.])
|
AC_DEFINE(USE_PORTAUDIO, 1, [Define if you want PORTAUDIO used.])
|
||||||
AC_SUBST(AUDIO, "a2d.f90 jtaudio.c resample.c start_portaudio.c")
|
AC_SUBST(AUDIO, "a2d.f90 jtaudio.c resample.c start_portaudio.c")
|
||||||
AC_SUBST(NEEDPORTAUDIO, "portaudio-v19/lib/.libs/libportaudio.a")
|
AC_SUBST(NEEDPORTAUDIO, "portaudio-v19/lib/.libs/libportaudio.a")
|
||||||
LDFLAGS="portaudio-v19/lib/.libs/libportaudio.a ${LDFLAGS} -lsamplerate"
|
LIBS="${LIBS} -lsamplerate ${RTLIBS} -lsamplerate ./portaudio-v19/lib/.libs/libportaudio.a"
|
||||||
else
|
else
|
||||||
AC_SUBST(NEEDPORTAUDIO, "")
|
AC_SUBST(NEEDPORTAUDIO, "")
|
||||||
fi
|
fi
|
||||||
@ -366,6 +369,7 @@ fi
|
|||||||
dnl
|
dnl
|
||||||
AC_SUBST(CPPFLAGS, "${CPPFLAGS}")
|
AC_SUBST(CPPFLAGS, "${CPPFLAGS}")
|
||||||
AC_SUBST(LDFLAGS, "${LDFLAGS}")
|
AC_SUBST(LDFLAGS, "${LDFLAGS}")
|
||||||
|
AC_SUBST(LIBS, "${LIBS}")
|
||||||
AC_SUBST(CFLAGS)
|
AC_SUBST(CFLAGS)
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user