]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* configure.in: AC_CHECK_HEADERS, not AC_CHECK_HEADER.
authorJason Molenda <crash@cygnus>
Sun, 5 Nov 1995 08:28:20 +0000 (08:28 +0000)
committerJason Molenda <crash@cygnus>
Sun, 5 Nov 1995 08:28:20 +0000 (08:28 +0000)
Sigh.  It's one of those days.

mmalloc/ChangeLog
mmalloc/configure
mmalloc/configure.in

index e1f0c20198493aaa5cbd0127ba5f59f92773f429..ad4585108ab14bea33bedbff11684072c8dc624b 100644 (file)
@@ -1,3 +1,7 @@
+Sun Nov  5 00:27:36 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
+
+       * configure.in: AC_CHECK_HEADERS, not AC_CHECK_HEADER.
+
 Sun Nov  5 00:14:13 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
 
        * configure.in: add check for stddef.h
index bca7aedc56f2f19be2e4481039396f9c7a8eee33..7590f5ee122dda9de886cf3f5601856939e612c4 100755 (executable)
@@ -847,15 +847,17 @@ EOF
 
 fi
 
-ac_safe=`echo "stddef.h" | tr './\055' '___'`
-echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
+for ac_hdr in stddef.h
+do
+ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 857 "configure"
+#line 859 "configure"
 #include "confdefs.h"
-#include <stddef.h>
+#include <$ac_hdr>
 EOF
 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 ac_err=`grep -v '^ *+' conftest.out`
@@ -871,10 +873,15 @@ rm -f conftest*
 fi
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  :
+    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
+  cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
+EOF
 else
   echo "$ac_t""no" 1>&6
 fi
+done
 
 
 trap '' 1 2 15
index 0c07e6783d6293b97a5d784ada3251f1f9dfcd74..10b8652d8044f6893319207688dd80f92c88e14a 100644 (file)
@@ -9,6 +9,6 @@ AC_PROG_RANLIB
 
 AC_FUNC_MMAP
 AC_HEADER_STDC
-AC_CHECK_HEADER(stddef.h)
+AC_CHECK_HEADERS(stddef.h)
 
 AC_OUTPUT(Makefile)