1
0
forked from bip/bip
bip/configure.in

37 lines
957 B
Plaintext
Raw Normal View History

2005-04-28 10:26:44 +02:00
AC_INIT(src/bip.c)
AM_CONFIG_HEADER(src/config.h)
AM_INIT_AUTOMAKE(bip,0.0)
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_YACC
AM_PROG_LEX
2005-08-01 17:13:35 +02:00
CFLAGS="-O2 -g -W -Wall"
2005-08-01 13:41:14 +02:00
debug=false
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging],
[debug=true && CFLAGS="-O0 -g -W -Wall"])
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
2005-05-12 10:29:27 +02:00
oidentd=false
AC_ARG_ENABLE(oidentd,
[ --enable-oidentd Enable oidentd support (bip overwrites ~/.oidentd.conf with this on!)],
AC_DEFINE([HAVE_OIDENTD], [], [Enable oidentd.conf management support])
)
#[oidentd=true]
AM_CONDITIONAL(OIDENTD, test x$debug = xtrue)
2005-04-28 10:26:44 +02:00
requires_libssl=yes
AC_ARG_ENABLE(ssl,
[ --disable-ssl Drop OpenSSL support],
[requires_libssl=no])
if test "x$requires_libssl" = "xyes" ; then
AC_CHECK_LIB(ssl, SSL_read, [], [
echo "Error! You need to have libssl around."
exit -1
])
fi
AC_OUTPUT(Makefile src/Makefile samples/Makefile)