]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
update
authorwessels <>
Sat, 30 May 1998 03:34:32 +0000 (03:34 +0000)
committerwessels <>
Sat, 30 May 1998 03:34:32 +0000 (03:34 +0000)
configure

index 51241e22d4fcfb2ab55c306702db866f5bc4a2d9..76e664b5afdae6545a0867d2479a532621334595 100755 (executable)
--- a/configure
+++ b/configure
@@ -566,7 +566,7 @@ fi
 
 
 
-# From configure.in Revision: 1.128 
+# From configure.in Revision: 1.130 
 ac_aux_dir=
 for ac_dir in cfgaux $srcdir/cfgaux; do
   if test -f $ac_dir/install-sh; then
@@ -4127,20 +4127,56 @@ cat >> confdefs.h <<EOF
 EOF
 
 
+if test "$ac_cv_func_snprintf" = "yes" ; then
+  echo $ac_n "checking what snprintf() returns when truncating""... $ac_c" 1>&6
+echo "configure:4133: checking what snprintf() returns when truncating" >&5
+  if test "$cross_compiling" = yes; then
+  SNPRINTF_TRUNC_RET=-1
+else
+  cat > conftest.$ac_ext <<EOF
+#line 4138 "configure"
+#include "confdefs.h"
+
+  #include <stdio.h>
+  main ()
+  {
+        char buf[10];
+       int x;
+        x = snprintf(buf, 10, "ABCDEFGHIJKLM");
+        fprintf (fopen("conftestval", "w"), "%d\n", x);
+       exit(0);
+  }
+  
+EOF
+if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+then
+  SNPRINTF_TRUNC_RET=`cat conftestval`
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  rm -fr conftest*
+  SNPRINTF_TRUNC_RET=-1
+fi
+rm -fr conftest*
+fi
+
+  echo "$ac_t""$SNPRINTF_TRUNC_RET" 1>&6
+fi
+
 echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
-echo "configure:4132: checking if sys_errlist is already defined" >&5
+echo "configure:4168: checking if sys_errlist is already defined" >&5
 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4137 "configure"
+#line 4173 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 int main() {
 char *s = sys_errlist0;
 ; return 0; }
 EOF
-if { (eval echo configure:4144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_needs_sys_errlist="no"
 else
@@ -4162,16 +4198,16 @@ EOF
 fi
 
 echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
-echo "configure:4166: checking for libresolv _dns_ttl_ hack" >&5
+echo "configure:4202: checking for libresolv _dns_ttl_ hack" >&5
 cat > conftest.$ac_ext <<EOF
-#line 4168 "configure"
+#line 4204 "configure"
 #include "confdefs.h"
 extern int _dns_ttl_;
 int main() {
 return _dns_ttl_;
 ; return 0; }
 EOF
-if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   echo "$ac_t""yes" 1>&6
 cat >> confdefs.h <<\EOF