AC_PROG_GCC_TRADITIONAL
AC_PROG_CC_SUNPRO
-AC_PROG_RANLIB
dnl Compile in large (2G+) file support.
AC_SYS_LARGEFILE
fi
AC_SUBST(LTDL_SUBDIRS)
+
+AC_CONFIG_MACRO_DIR([libltdl/m4])
+dnl Stupid autoconf doesn't set ac_aux_dir WTF?
+AC_CONFIG_AUX_DIR([.])
+
dnl use system-wide libtool, if it exists
AC_ARG_WITH(system-libtool,
[ --with-system-libtool try to use libtool installed in your system [default=use our own]],
LIBTOOL="`pwd`/libtool"
AC_SUBST(LIBTOOL)
dnl ensure that we're looking for dlopen
+ LT_CONFIG_LTDL_DIR([libltdl])
+ LT_INIT
+ LTDL_INIT
+ AC_CONFIG_AUX_DIR([libltdl/config])
AC_LIBTOOL_DLOPEN
dnl Figure out how to build shared libraries
developer="yes"
fi
+if test "x$developer" != "xno" -a -d $srcdir/.git; then
+ dnl turn on the developer flag when taken from a git checkout (not a release)
+ developer="yes"
+fi
+
dnl extra argument: --with-experimental-modules
EXPERIMENTAL=
AC_ARG_WITH(experimental-modules,
OPENSSL_LIBS=
if test "x$WITH_OPENSSL" = xyes; then
old_LIBS=$LIBS
+ old_LDFLAGS="$LDFLAGS"
if test "x$OPENSSL_LIB_DIR" != "x"; then
- LIBS="-L$OPENSSL_LIB_DIR $LIBS"
+ LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
fi
AC_CHECK_LIB(crypto, DH_new,
[
], [])
], [])
LIBS=$old_LIBS
+ LDFLAGS="$old_LDFLAGS"
fi
AC_CHECK_LIB(ws2_32, htonl)
],
[ AC_MSG_WARN([pcap library not found, silently disabling the RADIUS sniffer.]) ])
+AC_LIB_READLINE
+
dnl #############################################################
dnl #
dnl # 3. Checks for header files
fcntl.h \
sys/fcntl.h \
sys/prctl.h \
+ sys/un.h \
glob.h \
prot.h \
pwd.h \
getnameinfo \
closefrom \
gettimeofday \
+ getpeereid \
+ setuid \
+ setresuid \
+ getresuid \
strlcat \
strlcpy
)
AC_MSG_RESULT(no.)
fi
+FR_TLS
+
dnl #############################################################
dnl #
dnl # 7. Checks for library functions