From: David MacKenzie Date: Wed, 15 Dec 1993 20:40:01 +0000 (+0000) Subject: Formerly acspecific.m4.~189~ X-Git-Tag: fsf-origin~815 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f67e8dedd1db98e5c49fb558024ac4b4e582015;p=thirdparty%2Fautoconf.git Formerly acspecific.m4.~189~ --- diff --git a/acspecific.m4 b/acspecific.m4 index 34e0feca6..4f5410b20 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -186,6 +186,7 @@ if test "z${INSTALL}" = "z" ; then fi if test -z "$INSTALL"; then if test -f ${srcdir}/install.sh; then + # As a last resort, use the slow shell script. # We want the top-level source directory, not the subdir's srcdir, # so expand srcdir now rather than in the Makefile. INSTALL="${srcdir}/install.sh -c" @@ -250,7 +251,9 @@ AC_TEST_PROGRAM([#include int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } -],AC_DEFINE(STDC_HEADERS)))]) +], +[# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +AC_HEADER_EGREP(free, stdlib.h, AC_DEFINE(STDC_HEADERS))]))]) ])dnl dnl define(AC_UNISTD_H, [AC_OBSOLETE([$0], [; instead use AC_HAVE_HEADERS(unistd.h)])AC_HEADER_CHECK(unistd.h, diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 34e0feca6..4f5410b20 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -186,6 +186,7 @@ if test "z${INSTALL}" = "z" ; then fi if test -z "$INSTALL"; then if test -f ${srcdir}/install.sh; then + # As a last resort, use the slow shell script. # We want the top-level source directory, not the subdir's srcdir, # so expand srcdir now rather than in the Makefile. INSTALL="${srcdir}/install.sh -c" @@ -250,7 +251,9 @@ AC_TEST_PROGRAM([#include int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } -],AC_DEFINE(STDC_HEADERS)))]) +], +[# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +AC_HEADER_EGREP(free, stdlib.h, AC_DEFINE(STDC_HEADERS))]))]) ])dnl dnl define(AC_UNISTD_H, [AC_OBSOLETE([$0], [; instead use AC_HAVE_HEADERS(unistd.h)])AC_HEADER_CHECK(unistd.h,