2003-04-19 13:47:57 +00:00
|
|
|
## Process this file with autoconf to create configure. -*- autoconf -*-
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2003-04-19 13:47:57 +00:00
|
|
|
## FIXME: Is this really new enough? ##
|
|
|
|
AC_PREREQ(2.50)
|
|
|
|
|
|
|
|
|
|
|
|
## ------------------------ ##
|
|
|
|
## Autoconf initialisation. ##
|
|
|
|
## ------------------------ ##
|
2003-01-15 19:39:45 +00:00
|
|
|
dnl Please do not use '-' in the version number, 'make rpm' will fail
|
2003-05-03 11:21:54 +00:00
|
|
|
AC_INIT([hamlib], [1.1.5cvs], [hamlib-developer@lists.sourceforge.net])
|
2001-09-19 21:30:08 +00:00
|
|
|
AC_CONFIG_SRCDIR([include/hamlib/rig.h])
|
2003-04-19 13:47:57 +00:00
|
|
|
|
|
|
|
## ------------------------ ##
|
|
|
|
## Automake Initialisation. ##
|
|
|
|
## ------------------------ ##
|
|
|
|
AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION, -)
|
|
|
|
AM_CONFIG_HEADER([include/config.h])
|
2001-12-19 03:24:20 +00:00
|
|
|
AM_MAINTAINER_MODE
|
2001-09-19 21:30:08 +00:00
|
|
|
|
2003-04-19 13:47:57 +00:00
|
|
|
## ------------------------------- ##
|
|
|
|
## Hamlib specific configuration. ##
|
|
|
|
## ------------------------------- ##
|
2003-04-16 22:30:43 +00:00
|
|
|
ABI_VERSION=1
|
|
|
|
|
2002-10-07 21:40:34 +00:00
|
|
|
dnl Pick up the Hamlib macros.
|
|
|
|
AM_ACLOCAL_INCLUDE(macros)
|
|
|
|
|
2003-04-16 22:30:43 +00:00
|
|
|
AC_DEFINE_UNQUOTED(ABI_VERSION, $ABI_VERSION, [Frontend ABI version])
|
|
|
|
AC_SUBST(ABI_VERSION)
|
|
|
|
|
2001-07-21 12:52:52 +00:00
|
|
|
dnl directory for docs (html)
|
|
|
|
hamlibdocdir=$datadir/doc/hamlib
|
|
|
|
AC_SUBST(hamlibdocdir)
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
2003-04-19 13:47:57 +00:00
|
|
|
AC_PROG_CC
|
2001-09-19 21:30:08 +00:00
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
2003-01-12 17:02:07 +00:00
|
|
|
AC_CHECK_PROGS(RPMBUILD, rpmbuild, rpm)
|
2001-09-19 21:30:08 +00:00
|
|
|
|
2001-07-21 12:52:52 +00:00
|
|
|
AC_AIX
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_MINIX
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
2003-04-19 13:47:57 +00:00
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2001-09-19 21:30:08 +00:00
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS([alloca.h argz.h malloc.h memory.h string.h strings.h])
|
2002-12-16 22:07:02 +00:00
|
|
|
AC_CHECK_HEADERS([stdlib.h values.h rpc/rpc.h rpc/rpcent.h net/errno.h])
|
2002-09-01 22:21:47 +00:00
|
|
|
AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/time.h sys/param.h unistd.h getopt.h errno.h])
|
2003-06-22 19:57:10 +00:00
|
|
|
AC_CHECK_HEADERS([sys/ioccom.h linux/ppdev.h linux/parport.h sgtty.h term.h termio.h termios.h])
|
2001-09-19 21:30:08 +00:00
|
|
|
AC_CHECK_HEADERS([windows.h winioctl.h winbase.h])
|
|
|
|
|
|
|
|
AM_SYS_POSIX_TERMIOS
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2001-11-12 21:57:41 +00:00
|
|
|
INCLUDES="${INCLUDES} -I\$(top_srcdir)/include -I\$(top_srcdir)/src -I\$(top_srcdir)/lib"
|
2002-10-07 21:40:34 +00:00
|
|
|
#CPPFLAGS="${CPPFLAGS} -D_ISOC99_SOURCE"
|
2001-07-21 12:52:52 +00:00
|
|
|
if test "${ac_cv_c_compiler_gnu}" = "yes"; then
|
|
|
|
CFLAGS="${CFLAGS} -Wall"
|
|
|
|
fi
|
|
|
|
if test "${ac_cv_cxx_compiler_gnu}" = "yes"; then
|
|
|
|
CXXFLAGS="${CXXFLAGS} -Wall"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
2001-08-22 21:10:17 +00:00
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_CHECK_TYPES([siginfo_t],[],[],[#include <signal.h>])
|
2001-07-21 12:52:52 +00:00
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
# The following comes from SC_TCL_LINK_LIBS
|
|
|
|
# we redefine them here because we want a separate NET_LIBS var
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# On a few very rare systems, all of the libm.a stuff is
|
|
|
|
# already in libc.a. Set compiler flags accordingly.
|
|
|
|
#--------------------------------------------------------------------
|
2002-01-29 21:53:50 +00:00
|
|
|
AC_CHECK_FUNC(sin, [MATH_LIBS=""], [MATH_LIBS="-lm"])
|
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Interactive UNIX requires -linet instead of -lsocket, plus it
|
|
|
|
# needs net/errno.h to define the socket-related error codes.
|
|
|
|
#--------------------------------------------------------------------
|
2002-01-29 21:53:50 +00:00
|
|
|
AC_CHECK_LIB(inet, main, [LIBS="$LIBS -linet"], [], [])
|
2002-01-27 23:43:36 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check for the existence of the -lsocket and -lnsl libraries.
|
|
|
|
# The order here is important, so that they end up in the right
|
|
|
|
# order in the command line generated by make. Here are some
|
|
|
|
# special considerations:
|
|
|
|
# 1. Use "connect" and "accept" to check for -lsocket, and
|
|
|
|
# "gethostbyname" to check for -lnsl.
|
|
|
|
# 2. Use each function name only once: can't redo a check because
|
|
|
|
# autoconf caches the results of the last check and won't redo it.
|
|
|
|
# 3. Use -lnsl and -lsocket only if they supply procedures that
|
|
|
|
# aren't already present in the normal libraries. This is because
|
|
|
|
# IRIX 5.2 has libraries, but they aren't needed and they're
|
|
|
|
# bogus: they goof up name resolution if used.
|
|
|
|
# 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
|
|
|
|
# To get around this problem, check for both libraries together
|
|
|
|
# if -lsocket doesn't work by itself.
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
hl_checkBoth=0
|
|
|
|
hl_oldLibs=$LIBS
|
|
|
|
AC_CHECK_FUNC(connect, hl_checkSocket=0, hl_checkSocket=1)
|
|
|
|
if test "$hl_checkSocket" = 1; then
|
2002-01-29 21:53:50 +00:00
|
|
|
AC_CHECK_LIB(socket, main, [NET_LIBS="$NET_LIBS -lsocket"], [hl_checkBoth=1], [])
|
2002-01-27 23:43:36 +00:00
|
|
|
fi
|
|
|
|
if test "$hl_checkBoth" = 1; then
|
|
|
|
hl2_oldLibs=$LIBS
|
|
|
|
LIBS="$LIBS -lsocket -lnsl"
|
|
|
|
AC_CHECK_FUNC(accept, hl_checkNsl=0, [LIBS=$hl2_oldLibs])
|
|
|
|
fi
|
|
|
|
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main,
|
2002-01-29 21:53:50 +00:00
|
|
|
[NET_LIBS="$NET_LIBS -lnsl"], [], []))
|
2002-01-27 23:43:36 +00:00
|
|
|
LIBS=$hl_oldLibs
|
|
|
|
AC_SUBST(NET_LIBS)
|
|
|
|
AC_SUBST(MATH_LIBS)
|
|
|
|
|
|
|
|
|
2001-07-21 12:52:52 +00:00
|
|
|
AC_CHECK_LIB(syslog,syslog) # OS/2 needs this
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
2001-09-19 21:30:08 +00:00
|
|
|
AC_CHECK_FUNCS([atexit snprintf select gettimeofday memmove memset])
|
|
|
|
AC_CHECK_FUNCS([strcasecmp strchr strdup strerror strrchr strstr strtol])
|
2003-05-03 11:21:54 +00:00
|
|
|
AC_CHECK_FUNCS([cfmakeraw setitimer])
|
2002-01-29 21:53:50 +00:00
|
|
|
AC_REPLACE_FUNCS([getopt_long usleep])
|
2001-08-22 21:10:17 +00:00
|
|
|
AC_FUNC_ALLOCA
|
2002-10-31 00:26:13 +00:00
|
|
|
#AC_FUNC_MALLOC
|
2001-08-22 21:10:17 +00:00
|
|
|
AC_FUNC_VPRINTF
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2003-04-19 13:47:57 +00:00
|
|
|
## ------------------------ ##
|
|
|
|
## libtool Initialisation. ##
|
|
|
|
## ------------------------ ##
|
2001-07-21 12:52:52 +00:00
|
|
|
dnl Enable building of the convenience library
|
|
|
|
dnl and set LIBLTDL accordingly
|
|
|
|
AC_LIBLTDL_CONVENIENCE
|
|
|
|
dnl Substitute INCLTDL and LIBLTDL in the Makefiles
|
2003-04-19 13:47:57 +00:00
|
|
|
AC_SUBST([INCLTDL])
|
|
|
|
AC_SUBST([LIBLTDL])
|
|
|
|
|
2001-07-21 12:52:52 +00:00
|
|
|
dnl Check for dlopen support
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
AC_LIBTOOL_DLOPEN
|
|
|
|
dnl Configure libtool
|
2002-07-06 09:31:47 +00:00
|
|
|
AC_PROG_LIBTOOL
|
2003-04-19 13:47:57 +00:00
|
|
|
AC_SUBST([LIBTOOL_DEPS])
|
|
|
|
AC_LIB_LTDL
|
2001-07-21 12:52:52 +00:00
|
|
|
dnl Configure libltdl
|
|
|
|
AC_CONFIG_SUBDIRS(libltdl)
|
|
|
|
|
2002-10-31 00:26:13 +00:00
|
|
|
case "$host_os" in
|
|
|
|
darwin* | rhapsody*)
|
|
|
|
# Trick from http://fink.sourceforge.net/doc/porting/
|
|
|
|
# TODO: check the compiler actually does support these options
|
|
|
|
CFLAGS="${CFLAGS} -no-cpp-precomp"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -no-cpp-precomp"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-09-11 21:33:52 +00:00
|
|
|
dnl Check if C99 struct initializers are supported
|
2002-11-04 22:14:36 +00:00
|
|
|
AC_MSG_CHECKING(whether C99 struct/array initializers are supported)
|
|
|
|
AC_TRY_COMPILE(,[struct{char a;int b;}s[8]={[3]={.b=5}};], [AC_MSG_RESULT(yes)],
|
2002-09-11 21:33:52 +00:00
|
|
|
[AC_MSG_ERROR( ""
|
2002-11-04 22:14:36 +00:00
|
|
|
"You need a C99 compliant C compiler that supports struct/array intializers."
|
2002-09-11 21:33:52 +00:00
|
|
|
"Have you considered GCC lately?.")]);
|
|
|
|
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
dnl Check if libgd-dev is installed, so we can enable rigmatrix
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
AC_ARG_WITH(rigmatrix,
|
|
|
|
[ --with-rigmatrix Generate rigmatrix tool (requires libgd)],
|
|
|
|
[AC_CHECK_HEADERS([gd.h],
|
|
|
|
[AC_CHECK_LIB([gd],[gdImageCreate], [enable_rigmatrix=yes],
|
|
|
|
[enable_rigmatrix=no],[-lz])
|
|
|
|
])
|
|
|
|
],
|
|
|
|
[enable_rigmatrix=no])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to build rigmatrix)
|
|
|
|
AC_MSG_RESULT($enable_rigmatrix)
|
2001-10-16 19:25:03 +00:00
|
|
|
if test "${enable_rigmatrix}" = "no"; then
|
2001-07-21 12:52:52 +00:00
|
|
|
RIGMATRIX=
|
|
|
|
else
|
2002-01-27 23:43:36 +00:00
|
|
|
RIGMATRIX="rigmatrix"
|
2001-07-21 12:52:52 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(RIGMATRIX)
|
|
|
|
|
|
|
|
|
2003-06-22 19:57:10 +00:00
|
|
|
BACKEND_LIST="icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc drake lowe"
|
|
|
|
ROT_BACKEND_LIST="dummy easycomm rotorez sartek"
|
2003-04-23 22:15:25 +00:00
|
|
|
BINDINGS=""
|
2002-01-27 23:43:36 +00:00
|
|
|
BINDING_LIST=""
|
|
|
|
|
|
|
|
dnl Check if cxx-binding not wanted, default is to build it
|
|
|
|
|
|
|
|
if test x"${CXX}" = x; then
|
|
|
|
cf_with_cxx=no
|
2001-07-21 12:52:52 +00:00
|
|
|
else
|
2002-01-27 23:43:36 +00:00
|
|
|
cf_with_cxx=yes
|
2001-07-21 12:52:52 +00:00
|
|
|
fi
|
2002-01-27 23:43:36 +00:00
|
|
|
AC_MSG_CHECKING(whether to build C++ binding and demo)
|
|
|
|
AC_ARG_WITH(cxx-binding,
|
|
|
|
[ --without-cxx-binding do not build C++ binding and demo],
|
|
|
|
[cf_with_cxx_binding=$withval],
|
|
|
|
[cf_with_cxx_binding=$cf_with_cxx])
|
|
|
|
AC_MSG_RESULT($cf_with_cxx_binding)
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
if test "${cf_with_cxx_binding}" = "yes" ; then
|
2003-04-23 22:15:25 +00:00
|
|
|
BINDINGS="${BINDINGS} c++"
|
2002-01-27 23:43:36 +00:00
|
|
|
fi
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2002-02-09 21:55:45 +00:00
|
|
|
dnl Check if perl-binding not wanted, default is to not build it
|
|
|
|
|
2002-10-07 21:40:34 +00:00
|
|
|
SC_PATH_PERLINC
|
|
|
|
if test x"${no_perl}" = x; then
|
|
|
|
cf_with_perl=yes
|
|
|
|
else
|
|
|
|
cf_with_perl=no
|
|
|
|
fi
|
|
|
|
|
2002-02-09 21:55:45 +00:00
|
|
|
AC_MSG_CHECKING(whether to build perl binding and demo)
|
|
|
|
AC_ARG_WITH(perl-binding,
|
|
|
|
[ --with-perl-binding build perl binding and demo],
|
|
|
|
[cf_with_perl_binding=$withval],
|
2002-10-07 21:40:34 +00:00
|
|
|
[cf_with_perl_binding=$cf_with_perl])
|
2002-02-09 21:55:45 +00:00
|
|
|
AC_MSG_RESULT($cf_with_perl_binding)
|
|
|
|
|
|
|
|
if test "${cf_with_perl_binding}" = "yes" ; then
|
2002-09-08 22:33:44 +00:00
|
|
|
BINDING_LIST="${BINDING_LIST} perl"
|
2002-02-09 21:55:45 +00:00
|
|
|
fi
|
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
dnl Check if kylix-binding wanted, REM: nothing to build yet
|
|
|
|
|
|
|
|
cf_with_kylix=no
|
|
|
|
AC_MSG_CHECKING(whether to build Kylix binding and demo)
|
|
|
|
AC_ARG_WITH(kylix-binding,
|
|
|
|
[ --with-kylix-binding build Kylix binding and demo],
|
|
|
|
[cf_with_kylix_binding=$withval],
|
|
|
|
[cf_with_kylix_binding=$cf_with_kylix])
|
|
|
|
AC_MSG_RESULT($cf_with_kylix_binding)
|
|
|
|
|
|
|
|
if test "${cf_with_kylix_binding}" = "yes" ; then
|
2003-04-23 22:15:25 +00:00
|
|
|
BINDINGS="${BINDINGS} kylix"
|
2002-01-27 23:43:36 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Check for tcl-dev availability, so we can enable HamlibTCL
|
|
|
|
|
|
|
|
SC_PATH_TCLCONFIG
|
2002-01-29 21:53:50 +00:00
|
|
|
if test x"${no_tcl}" = x; then
|
|
|
|
SC_LOAD_TCLCONFIG
|
2002-01-27 23:43:36 +00:00
|
|
|
cf_with_tcl=yes
|
2002-01-29 21:53:50 +00:00
|
|
|
else
|
|
|
|
cf_with_tcl=no
|
2002-01-27 23:43:36 +00:00
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING(whether to build tcl binding and demo)
|
|
|
|
AC_ARG_WITH(tcl-binding,
|
|
|
|
[ --with-tcl-binding build tcl binding and demo],
|
|
|
|
[cf_with_tcl_binding=$withval],
|
|
|
|
[cf_with_tcl_binding=$cf_with_tcl])
|
|
|
|
AC_MSG_RESULT($cf_with_tcl_binding)
|
|
|
|
|
|
|
|
if test "${cf_with_tcl_binding}" = "yes" ; then
|
2002-09-08 22:33:44 +00:00
|
|
|
BINDING_LIST="${BINDING_LIST} tcl"
|
2002-01-27 23:43:36 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(TCL_LIB_SPEC)
|
2003-04-23 22:15:25 +00:00
|
|
|
AC_SUBST(TCL_INCLUDE_SPEC)
|
|
|
|
AC_SUBST(TCL_SHLIB_SUFFIX)
|
2001-07-21 12:52:52 +00:00
|
|
|
|
2002-11-12 00:11:16 +00:00
|
|
|
# TODO: require "${ac_cv_header_sys_socket_h}" = "no"
|
2001-07-21 12:52:52 +00:00
|
|
|
|
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
dnl Backend list
|
2001-12-26 23:30:21 +00:00
|
|
|
|
2001-10-16 19:25:03 +00:00
|
|
|
case "$host_os" in
|
|
|
|
linux-gnu*)
|
|
|
|
# Winradio only under Linux (until someone port it on other os)
|
2001-12-26 23:30:21 +00:00
|
|
|
BACKEND_LIST="$BACKEND_LIST winradio"
|
2002-11-28 22:24:10 +00:00
|
|
|
# TODO: support parallel port interface on other systems too
|
2003-02-23 18:43:04 +00:00
|
|
|
if test "${ac_cv_header_linux_ppdev_h}" = "yes"; then
|
|
|
|
ROT_BACKEND_LIST="$ROT_BACKEND_LIST fodtrack"
|
2003-06-22 20:43:20 +00:00
|
|
|
BACKEND_LIST="$BACKEND_LIST flexradio"
|
2003-02-23 18:43:04 +00:00
|
|
|
fi
|
2001-10-16 19:25:03 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
esac
|
|
|
|
|
2003-01-29 23:02:57 +00:00
|
|
|
# FIXME: check for presence of libgnuradio, libfftw
|
2002-07-06 09:31:47 +00:00
|
|
|
if test "${cf_with_cxx}" = "yes" ; then
|
|
|
|
AC_MSG_CHECKING(whether to build gnuradio backend)
|
|
|
|
AC_ARG_WITH(gnuradio,
|
|
|
|
[ --with-gnuradio build gnuradio backend],
|
|
|
|
[cf_with_gnuradio=$withval],
|
|
|
|
[cf_with_gnuradio="no"])
|
|
|
|
AC_MSG_RESULT($cf_with_gnuradio)
|
|
|
|
|
|
|
|
if test "${cf_with_gnuradio}" = "yes" ; then
|
2003-02-23 18:43:04 +00:00
|
|
|
PKG_CHECK_MODULES(GNURADIO, gnuradio >= 0.7)
|
2002-07-06 09:31:47 +00:00
|
|
|
BACKEND_LIST="$BACKEND_LIST gnuradio"
|
|
|
|
fi
|
2003-01-29 23:02:57 +00:00
|
|
|
|
|
|
|
# So far, microtune has only support on Linux x86.
|
|
|
|
# BTW, any platform with a parallel support may support it in the future
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to build microtune backend)
|
|
|
|
AC_ARG_WITH(microtune,
|
|
|
|
[ --with-microtune build microtune backend],
|
|
|
|
[cf_with_microtune=$withval],
|
|
|
|
[cf_with_microtune="no"])
|
|
|
|
AC_MSG_RESULT($cf_with_microtune)
|
|
|
|
|
|
|
|
if test "${cf_with_microtune}" = "yes" ; then
|
|
|
|
BACKEND_LIST="$BACKEND_LIST microtune"
|
|
|
|
fi
|
2002-07-06 09:31:47 +00:00
|
|
|
fi
|
2002-10-07 21:40:34 +00:00
|
|
|
|
|
|
|
AC_SUBST(GNURADIO_CFLAGS)
|
2002-07-06 09:31:47 +00:00
|
|
|
AC_SUBST(GNURADIO_LIBS)
|
|
|
|
|
|
|
|
|
2002-10-31 00:26:13 +00:00
|
|
|
AC_CHECK_PROG(cf_with_rpcgen, rpcgen, [yes], [no])
|
|
|
|
AC_MSG_CHECKING(whether to build rpc backends)
|
2002-07-06 09:31:47 +00:00
|
|
|
# RPCRig must be the last one added to BACKEND_LIST
|
|
|
|
# because it links against other backends (build order)
|
2002-10-31 00:26:13 +00:00
|
|
|
if test "${ac_cv_header_rpc_rpc_h}" = "yes" -a "${cf_with_rpcgen}" = "yes"; then
|
2003-01-29 23:02:57 +00:00
|
|
|
cf_with_rpc=yes
|
|
|
|
else
|
|
|
|
cf_with_rpc=no
|
|
|
|
fi
|
|
|
|
AC_ARG_WITH(rpc-backends,
|
|
|
|
[ --without-rpc-backends do not build rpcrig and rpcrot backends],
|
|
|
|
[cf_with_rpc_backends=$withval],
|
|
|
|
[cf_with_rpc_backends=$cf_with_rpc])
|
|
|
|
AC_MSG_RESULT($cf_with_rpc_backends)
|
|
|
|
if test "${cf_with_rpc_backends}" = "yes"; then
|
2002-01-16 19:17:10 +00:00
|
|
|
BACKEND_LIST="$BACKEND_LIST rpcrig"
|
|
|
|
ROT_BACKEND_LIST="$ROT_BACKEND_LIST rpcrot"
|
2001-10-18 20:39:10 +00:00
|
|
|
fi
|
|
|
|
|
2001-12-27 21:42:55 +00:00
|
|
|
# dlopen force or preopen self for static version ?
|
|
|
|
BACKENDLNK="-dlopen force"
|
2001-10-16 19:25:03 +00:00
|
|
|
for be in ${BACKEND_LIST} ; do
|
2003-05-03 11:21:54 +00:00
|
|
|
BACKENDLNK="${BACKENDLNK} -dlopen \$(top_builddir)/${be}/hamlib-${be}.la"
|
|
|
|
BACKENDEPS="${BACKENDEPS} \$(top_builddir)/${be}/hamlib-${be}.la"
|
2001-10-16 19:25:03 +00:00
|
|
|
done
|
|
|
|
AC_SUBST(BACKEND_LIST)
|
|
|
|
AC_SUBST(BACKENDLNK)
|
|
|
|
AC_SUBST(BACKENDEPS)
|
|
|
|
|
2002-01-16 19:17:10 +00:00
|
|
|
# dlopen force or preopen self for static version ?
|
|
|
|
ROT_BACKENDLNK="-dlopen force"
|
|
|
|
for be in ${ROT_BACKEND_LIST} ; do
|
2003-05-03 11:21:54 +00:00
|
|
|
ROT_BACKENDLNK="${ROT_BACKENDLNK} -dlopen \$(top_builddir)/${be}/hamlib-${be}.la"
|
|
|
|
ROT_BACKENDEPS="${ROT_BACKENDEPS} \$(top_builddir)/${be}/hamlib-${be}.la"
|
2002-01-16 19:17:10 +00:00
|
|
|
done
|
|
|
|
AC_SUBST(ROT_BACKEND_LIST)
|
|
|
|
AC_SUBST(ROT_BACKENDLNK)
|
|
|
|
AC_SUBST(ROT_BACKENDEPS)
|
|
|
|
|
2002-11-04 22:14:36 +00:00
|
|
|
AC_CHECK_PROG(cf_with_bindings, [swig], [yes], [no], [$PATH])
|
2003-04-23 22:15:25 +00:00
|
|
|
if test "${cf_with_bindings}" = "yes" -a "${cf_with_tcl_binding}" = "yes" \
|
|
|
|
-a "${cf_with_perl_binding}" = "yes"; then
|
2002-11-04 22:14:36 +00:00
|
|
|
AC_MSG_CHECKING(for swig >= 1.3.14)
|
|
|
|
cf_with_bindings=no
|
|
|
|
case `swig -version 2>&1| grep 'SWIG Version'` in
|
|
|
|
*1.3.1[[4-9]]*)
|
|
|
|
cf_with_bindings=yes
|
2003-04-23 22:15:25 +00:00
|
|
|
BINDINGS="${BINDINGS} bindings"
|
2002-11-04 22:14:36 +00:00
|
|
|
;;
|
|
|
|
*2.*.*)
|
|
|
|
cf_with_bindings=yes
|
2003-04-23 22:15:25 +00:00
|
|
|
BINDINGS="${BINDINGS} bindings"
|
2002-11-04 22:14:36 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT($cf_with_bindings)
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING(whether to build bindings)
|
|
|
|
AC_MSG_RESULT($cf_with_bindings)
|
2002-09-11 21:33:52 +00:00
|
|
|
AC_SUBST(BINDINGS)
|
2002-01-27 23:43:36 +00:00
|
|
|
AC_SUBST(BINDING_LIST)
|
|
|
|
|
2003-04-23 22:15:25 +00:00
|
|
|
|
2002-01-27 23:43:36 +00:00
|
|
|
AC_SUBST(INCLUDES)
|
|
|
|
|
2001-07-21 12:52:52 +00:00
|
|
|
AC_CONFIG_FILES([Makefile
|
2002-10-07 21:40:34 +00:00
|
|
|
macros/Makefile
|
2001-07-21 12:52:52 +00:00
|
|
|
include/Makefile
|
|
|
|
lib/Makefile
|
|
|
|
dummy/Makefile
|
|
|
|
yaesu/Makefile
|
|
|
|
icom/Makefile
|
|
|
|
aor/Makefile
|
|
|
|
kenwood/Makefile
|
|
|
|
winradio/Makefile
|
|
|
|
pcr/Makefile
|
|
|
|
alinco/Makefile
|
|
|
|
uniden/Makefile
|
|
|
|
tentec/Makefile
|
2001-08-12 23:00:43 +00:00
|
|
|
kachina/Makefile
|
2001-12-17 22:41:23 +00:00
|
|
|
jrc/Makefile
|
2002-07-08 22:14:23 +00:00
|
|
|
drake/Makefile
|
2003-06-22 19:57:10 +00:00
|
|
|
lowe/Makefile
|
2002-07-06 09:31:47 +00:00
|
|
|
gnuradio/Makefile
|
2002-01-16 17:12:45 +00:00
|
|
|
easycomm/Makefile
|
2002-11-28 22:24:10 +00:00
|
|
|
fodtrack/Makefile
|
2003-06-22 19:57:10 +00:00
|
|
|
sartek/Makefile
|
2001-10-16 21:15:14 +00:00
|
|
|
rpcrig/Makefile
|
2002-01-16 17:12:45 +00:00
|
|
|
rpcrot/Makefile
|
2001-07-21 12:52:52 +00:00
|
|
|
src/Makefile
|
|
|
|
c++/Makefile
|
2002-01-16 23:11:34 +00:00
|
|
|
kylix/Makefile
|
2002-09-08 22:33:44 +00:00
|
|
|
bindings/Makefile
|
2001-07-21 12:52:52 +00:00
|
|
|
tests/Makefile
|
|
|
|
doc/Makefile
|
2003-01-11 00:48:43 +00:00
|
|
|
rotorez/Makefile
|
2003-01-29 23:02:57 +00:00
|
|
|
microtune/Makefile
|
2003-06-22 19:57:10 +00:00
|
|
|
flexradio/Makefile
|
2002-10-07 21:40:34 +00:00
|
|
|
hamlib.pc
|
|
|
|
hamlib.spec]
|
2002-09-08 22:33:44 +00:00
|
|
|
)
|
2001-07-21 12:52:52 +00:00
|
|
|
AC_OUTPUT
|
|
|
|
|