X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/388e0319a0faf48193658c82228133bd1ea24eb6..2171b19e5662e40fcbfef34da561e70265974e79:/configure.ac diff --git a/configure.ac b/configure.ac index 5b5eaa2c..54caf9d1 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,7 @@ AC_INIT([tripe], AUTO_VERSION, [mdw@distorted.org.uk]) AC_CONFIG_SRCDIR([server/tripe.h]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([foreign]) +mdw_SILENT_RULES AC_PROG_CC AM_PROG_CC_C_O @@ -57,11 +58,10 @@ case "$host_os" in ;; esac -PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4]) +PKG_CHECK_MODULES([mLib], [mLib >= 2.1.0]) PKG_CHECK_MODULES([catacomb], [catacomb >= 2.1.1]) CFLAGS="$CFLAGS $mLib_CFLAGS $catacomb_CFLAGS" -LIBS="$LIBS $mLib_LIBS" dnl-------------------------------------------------------------------------- dnl Directories to install things into. @@ -90,8 +90,9 @@ TRIPE_DEFINE_PATH( [pidfile], [FILE], [process-id [[./tripectl.pid]]], [tripectl.pid]) TRIPE_DEFINE_PATH( - [initconfig], [FILE], [configuration for init script [[/etc/tripe.conf]]], - [/etc/tripe.conf]) + [initconfig], [FILE], + [configuration for init script [[SYSCONFDIR/tripe.conf]]], + ['${sysconfdir}/tripe.conf']) TRIPE_DEFINE_PATH( [logfile], [FILE], [logging output [[./tripe.log]]], [tripe.log]) @@ -117,6 +118,19 @@ AC_ARG_WITH([tracing], [:]) dnl-------------------------------------------------------------------------- +dnl Path MTU discovery. + +case $host_os in + linux*) + pmtu=yes + ;; + *) + pmtu=no + ;; +esac +AM_CONDITIONAL([PATHMTU], [test $pmtu = yes]) + +dnl-------------------------------------------------------------------------- dnl Tunnel devices. dnl Provide the user with a choice. @@ -236,7 +250,7 @@ esac dnl If we're still interested, find Glib. case "$haveshark" in - yes) AM_PATH_GLIB([1.2.0], [], haveshark=false, [gmodule]) ;; + yes) AM_PATH_GLIB_2_0([2.4.0], [], [haveshark=false], [gmodule]) ;; esac dnl Find the include directory. This would be much easier if they just @@ -300,6 +314,7 @@ AC_CONFIG_FILES( [Makefile] [common/Makefile] [uslip/Makefile] + [pathmtu/Makefile] [client/Makefile] [priv/Makefile] [server/Makefile] @@ -307,7 +322,10 @@ AC_CONFIG_FILES( [pkstream/Makefile] [wireshark/Makefile] [init/Makefile] + [py/Makefile] + [peerdb/Makefile] [keys/Makefile] + [svc/Makefile] [mon/Makefile] [t/Makefile t/atlocal]) AC_OUTPUT