chiark / gitweb /
changelog: start 0.6.8
[secnet.git] / configure
index b9cf39a164d763ab5e2586c02033738abf647a88..635c49af10942f10a048e21607dd7fba560d730b 100755 (executable)
--- a/configure
+++ b/configure
@@ -3,7 +3,7 @@
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.69 for secnet 0.1.18+.
 #
-# Report bugs to <secnet@chiark.greenend.org.uk>.
+# Report bugs to <secnet-discuss@chiark.greenend.org.uk>.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -267,8 +267,8 @@ fi
     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
   else
     $as_echo "$0: Please tell bug-autoconf@gnu.org and
-$0: secnet@chiark.greenend.org.uk about your system,
-$0: including any error possibly output before this
+$0: secnet-discuss@chiark.greenend.org.uk about your
+$0: system, including any error possibly output before this
 $0: message. Then install a modern shell, or manually run
 $0: the script under such a shell if you do have one."
   fi
@@ -582,7 +582,7 @@ PACKAGE_NAME='secnet'
 PACKAGE_TARNAME='secnet'
 PACKAGE_VERSION='0.1.18+'
 PACKAGE_STRING='secnet 0.1.18+'
-PACKAGE_BUGREPORT='secnet@chiark.greenend.org.uk'
+PACKAGE_BUGREPORT='secnet-discuss@chiark.greenend.org.uk'
 PACKAGE_URL=''
 
 ac_unique_file="secnet.c"
@@ -1291,7 +1291,7 @@ Some influential environment variables:
 Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.
 
-Report bugs to <secnet@chiark.greenend.org.uk>.
+Report bugs to <secnet-discuss@chiark.greenend.org.uk>.
 _ACEOF
 ac_status=$?
 fi
@@ -1513,9 +1513,9 @@ $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
-( $as_echo "## -------------------------------------------- ##
-## Report this to secnet@chiark.greenend.org.uk ##
-## -------------------------------------------- ##"
+( $as_echo "## ---------------------------------------------------- ##
+## Report this to secnet-discuss@chiark.greenend.org.uk ##
+## ---------------------------------------------------- ##"
      ) | sed "s/^/$as_me: WARNING:     /" >&2
     ;;
 esac
@@ -4119,6 +4119,67 @@ fi
 
 
 
+for ac_func in fmemopen funopen
+do :
+  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking required gcc -std flag" >&5
+$as_echo_n "checking required gcc -std flag... " >&6; }
+if ${secnet_cv_gcc_std_flag+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+
+    secnet_cv_gcc_std_flag=""
+    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+void x(void) { for (int i=0; i<1; i++) { } }
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+
+        old_cflags="$CFLAGS"
+       CFLAGS="$CFLAGS -std=gnu11"
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+void x(void) { for (int i=0; i<1; i++) { } }
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+           secnet_cv_gcc_std_flag=" -std=gnu11"
+
+else
+
+           { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure!" >&5
+$as_echo "failure!" >&6; }
+           as_fn_error 1 "cannot get test program to compile" "$LINENO" 5
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       CFLAGS="$old_cflags"
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $secnet_cv_gcc_std_flag" >&5
+$as_echo "$secnet_cv_gcc_std_flag" >&6; }
+CFLAGS="$CFLAGS$secnet_cv_gcc_std_flag"
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking requirements for IPv6 support..." >&5
 $as_echo "$as_me: Checking requirements for IPv6 support..." >&6;}
 enable_ipv6=true
@@ -4158,6 +4219,41 @@ else
 $as_echo "$as_me: WARNING: Disabling IPv6 support" >&2;}
 fi
 
+ac_fn_c_check_decl "$LINENO" "adns_if_monotonic" "ac_cv_have_decl_adns_if_monotonic" "
+          # include <sys/types.h>
+          # include <sys/stat.h>
+          # include <stdlib.h>
+          # include <stddef.h>
+          # include <string.h>
+          # include <inttypes.h>
+          # include <stdint.h>
+          # include <unistd.h>
+
+          # include <sys/types.h>
+          # include <sys/stat.h>
+          # include <stdlib.h>
+          # include <stddef.h>
+          # include <string.h>
+          # include <inttypes.h>
+          # include <stdint.h>
+          # include <unistd.h>
+
+
+#include <adns.h>
+
+"
+if test "x$ac_cv_have_decl_adns_if_monotonic" = xyes; then :
+
+
+$as_echo "#define USE_MONOTONIC 1" >>confdefs.h
+
+
+else
+
+:
+fi
+
+
 
 
   _SUBDIRMK_MAKEFILES="$_SUBDIRMK_MAKEFILES common.make"
@@ -4734,7 +4830,7 @@ $config_headers
 Configuration commands:
 $config_commands
 
-Report bugs to <secnet@chiark.greenend.org.uk>."
+Report bugs to <secnet-discuss@chiark.greenend.org.uk>."
 
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1