--- gvpe/configure.ac 2003/10/15 00:34:18 1.13 +++ gvpe/configure.ac 2003/10/17 01:39:12 1.20 @@ -67,12 +67,18 @@ [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ Use kernel/net device interface TYPE/SUBTYPE. Working combinations are: - "native/linux" "tincd/linux" "tincd/freebsd"; + "native/linux" + "tincd/linux" + "tincd/freebsd" + "tincd/openbsd" + "tincd/darwin" + "native/cygwin"; Untested combinations are: - "tincd/netbsd" "tincd/darwin" "tincd/solaris" - "tincd/openbsd" "tincd/cygwin"; + "tincd/netbsd" + "tincd/solaris" + "tincd/mingw"; Broken combinations are: - "native/cygwin"; + "tincd/cygwin"; The default is to autodetect. ])], [ @@ -117,7 +123,7 @@ AC_DEFINE(HAVE_NETBSD, 1, [NetBSD]) ;; *cygwin*) - IFTYPE=tincd + IFTYPE=native IFSUBTYPE=cygwin AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin]) ;; @@ -129,6 +135,8 @@ AC_MSG_RESULT($IFTYPE/$IFSUBTYPE) AC_SUBST(IFTYPE,$IFTYPE) AC_SUBST(IFSUBTYPE,$IFSUBTYPE) +AC_DEFINE_UNQUOTED(IFTYPE,"$IFTYPE",[kernel interface type]) +AC_DEFINE_UNQUOTED(IFSUBTYPE,"$IFSUBTYPE",[kernel interface subtype]) AC_CACHE_SAVE @@ -139,7 +147,7 @@ dnl Checks for header files. AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ - sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h cygwin.h arpa/inet.h \ + sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ sys/poll.h sys/mman.h netinet/in.h]) AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], [ @@ -219,8 +227,11 @@ dnl These are defined in files in m4/ tinc_TUNTAP + tinc_OPENSSL -CXXFLAGS="$CXXFLAGS -I$openssl_include" +if test "x$openssl_include" != x; then + CXXFLAGS="$CXXFLAGS -I$openssl_include" +fi dnl tinc_ZLIB AC_ARG_ENABLE(rohc, @@ -258,7 +269,7 @@ AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) ) -HMAC=12 dnl see also the AC_HELP_STRING +HMAC=8 dnl see also the AC_HELP_STRING AC_ARG_ENABLE(hmac-length, [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], HMAC=$enableval @@ -320,13 +331,13 @@ CXXFLAGS="$CXXFLAGS -fno-exceptions" fi -if $CXX -v --help 2>&1 | grep -q ffunction-sections; then - CXXFLAGS="$CXXFLAGS -ffunction-sections" -fi - -if $LD -v --help 2>&1 | grep -q gc-sections; then - LDFLAGS="$LDFLAGS -Wl,--gc-sections" -fi +dnl if $CXX -v --help 2>&1 | grep -q ffunction-sections; then +dnl CXXFLAGS="$CXXFLAGS -ffunction-sections" +dnl fi +dnl +dnl if $LD -v --help 2>&1 | grep -q gc-sections; then +dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections" +dnl fi AC_CONFIG_COMMANDS_POST([