diff options
author | Jason Molenda <crash@cygnus> | 1995-11-05 08:28:20 +0000 |
---|---|---|
committer | Jason Molenda <crash@cygnus> | 1995-11-05 08:28:20 +0000 |
commit | 68bfaddafefa783fe22ed3acab88133daaf6ca18 (patch) | |
tree | 374e63adf7a56fbb992a61ce8ba21125aaf5a078 /mmalloc | |
parent | 89097c5bc502d2dcdc9eec606f54600ee0abca93 (diff) | |
download | gdb-68bfaddafefa783fe22ed3acab88133daaf6ca18.zip gdb-68bfaddafefa783fe22ed3acab88133daaf6ca18.tar.gz gdb-68bfaddafefa783fe22ed3acab88133daaf6ca18.tar.bz2 |
* configure.in: AC_CHECK_HEADERS, not AC_CHECK_HEADER.
Sigh. It's one of those days.
Diffstat (limited to 'mmalloc')
-rw-r--r-- | mmalloc/ChangeLog | 4 | ||||
-rwxr-xr-x | mmalloc/configure | 17 | ||||
-rw-r--r-- | mmalloc/configure.in | 2 |
3 files changed, 17 insertions, 6 deletions
diff --git a/mmalloc/ChangeLog b/mmalloc/ChangeLog index e1f0c20..ad45851 100644 --- a/mmalloc/ChangeLog +++ b/mmalloc/ChangeLog @@ -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 diff --git a/mmalloc/configure b/mmalloc/configure index bca7aed..7590f5e 100755 --- a/mmalloc/configure +++ b/mmalloc/configure @@ -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 diff --git a/mmalloc/configure.in b/mmalloc/configure.in index 0c07e67..10b8652 100644 --- a/mmalloc/configure.in +++ b/mmalloc/configure.in @@ -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) |