]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_PROG_CPP): Use assert.h (comes with gcc), not
authorDavid MacKenzie <djm@djmnet.org>
Mon, 17 Oct 1994 22:27:03 +0000 (22:27 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Mon, 17 Oct 1994 22:27:03 +0000 (22:27 +0000)
stdio.h (loses for new cross-compilers).  From Roland McGrath.

acspecific.m4
lib/autoconf/specific.m4

index d08d049e5c347899d4a16d245784d15690c9e900..a61678ce83a1eadeb6ca26ac5b5baa664a473572 100644 (file)
@@ -244,10 +244,12 @@ AC_CACHE_VAL(ac_cv_prog_CPP,
   CPP="${CC-cc} -E"
   # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.
-  AC_TRY_CPP([#include <stdio.h>
+dnl Use a header file that comes with gcc, so configuring glibc
+dnl with a fresh cross-compiler works.
+  AC_TRY_CPP([#include <assert.h>
 Syntax Error], ,
   CPP="${CC-cc} -E -traditional-cpp"
-  AC_TRY_CPP([#include <stdio.h>
+  AC_TRY_CPP([#include <assert.h>
 Syntax Error], , CPP=/lib/cpp))
   ac_cv_prog_CPP="$CPP"])dnl
 fi
index d08d049e5c347899d4a16d245784d15690c9e900..a61678ce83a1eadeb6ca26ac5b5baa664a473572 100644 (file)
@@ -244,10 +244,12 @@ AC_CACHE_VAL(ac_cv_prog_CPP,
   CPP="${CC-cc} -E"
   # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.
-  AC_TRY_CPP([#include <stdio.h>
+dnl Use a header file that comes with gcc, so configuring glibc
+dnl with a fresh cross-compiler works.
+  AC_TRY_CPP([#include <assert.h>
 Syntax Error], ,
   CPP="${CC-cc} -E -traditional-cpp"
-  AC_TRY_CPP([#include <stdio.h>
+  AC_TRY_CPP([#include <assert.h>
 Syntax Error], , CPP=/lib/cpp))
   ac_cv_prog_CPP="$CPP"])dnl
 fi