X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/blobdiff_plain/60c74d0fdd694249d2007b1a9c41117dd20fa18f..b1eac25ac75949707e082afcb8e0d702e536cef1:/configure.in diff --git a/configure.in b/configure.in index c994869..5827443 100644 --- a/configure.in +++ b/configure.in @@ -20,6 +20,14 @@ AC_CHECK_LIB(faim, aim_sessioninit) dnl Replace `main' with a function in -lpcap: dnl AC_CHECK_LIB(pcap, main) +LIBTOOL="$LIBTOOL --silent" + +AC_ARG_ENABLE(debug, [ --disable-debug compile without debugging options],enable_debug=no,enable_debug=yes) + +if test "$enable_debug" = yes ; then + CFLAGS="$CFLAGS -Wall -g" +fi + dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT @@ -40,6 +48,14 @@ AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_CHECK_FUNCS(gethostname gettimeofday select socket strdup strstr strtol uname) +AC_CHECK_LIB(readline, rl_callback_handler_install, + READLINELIB="-lreadline", + AC_MSG_ERROR(unable to find GNU readline); +) + +AC_SUBST(CFLAGS) +AC_SUBST(READLINELIB) + AC_OUTPUT([ Makefile include/Makefile