check for rpcgen, add -no-cpp-precomp on Mac OS X, cleanup

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1230 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.4
Stéphane Fillod, F8CFE 2002-10-31 00:26:13 +00:00
rodzic 2cbac50168
commit 5e375016b5
1 zmienionych plików z 16 dodań i 4 usunięć

Wyświetl plik

@ -121,7 +121,7 @@ AC_CHECK_FUNCS([strcasecmp strchr strdup strerror strrchr strstr strtol])
AC_CHECK_FUNCS([cfmakeraw])
AC_REPLACE_FUNCS([getopt_long usleep])
AC_FUNC_ALLOCA
AC_FUNC_MALLOC
#AC_FUNC_MALLOC
AC_FUNC_VPRINTF
dnl initialize libtool
@ -139,6 +139,15 @@ AC_PROG_LIBTOOL
dnl Configure libltdl
AC_CONFIG_SUBDIRS(libltdl)
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
dnl Check if C99 struct initializers are supported
AC_MSG_CHECKING(whether C99 struct initializers are supported)
AC_TRY_COMPILE(,struct{char a;int b;}s={.b=5};, [AC_MSG_RESULT(yes)],
@ -199,8 +208,6 @@ else
cf_with_perl=no
fi
#AC_CHECK_PROG(cf_with_perl, h2xs, [yes], [no])
AC_MSG_CHECKING(whether to build perl binding and demo)
AC_ARG_WITH(perl-binding,
[ --with-perl-binding build perl binding and demo],
@ -288,11 +295,16 @@ AC_SUBST(GNURADIO_CFLAGS)
AC_SUBST(GNURADIO_LIBS)
AC_CHECK_PROG(cf_with_rpcgen, rpcgen, [yes], [no])
AC_MSG_CHECKING(whether to build rpc backends)
# RPCRig must be the last one added to BACKEND_LIST
# because it links against other backends (build order)
if test "${ac_cv_header_rpc_rpc_h}" = "yes" ; then
if test "${ac_cv_header_rpc_rpc_h}" = "yes" -a "${cf_with_rpcgen}" = "yes"; then
BACKEND_LIST="$BACKEND_LIST rpcrig"
ROT_BACKEND_LIST="$ROT_BACKEND_LIST rpcrot"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi