]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/c.at (AC_PROG_CPP without warnings): Require that
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Mar 2006 19:21:26 +0000 (19:21 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Mar 2006 19:21:26 +0000 (19:21 +0000)
/lib/cpp include stdio.h correctly.  Solaris 10's doesn't.

ChangeLog
tests/c.at

index 5b4c6d7b77389b5ad492bd618d8bf9aa2a5e9efe..91c0bd8eb0b8cb6d8cde35bb58550e8a49ba0dd5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * tests/c.at (AC_PROG_CPP without warnings): Require that
+       /lib/cpp include stdio.h correctly.  Solaris 10's doesn't.
+       Problem reported by D'Arcy A MacIsaac and diagnosed by
+       Ralf Wildenhues.
+
 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
index c963884cf2c00212d429f1bb99ffcef10144bf85..cfdc3ad64cf541d1067b4789b2109c130ad3c6fa 100644 (file)
@@ -2,7 +2,7 @@
 
 AT_BANNER([C low level compiling/preprocessing macros.])
 
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
 # Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -141,7 +141,8 @@ AT_CLEANUP
 AT_SETUP([AC_PROG_CPP without warnings])
 
 # Ignore if /lib/cpp doesn't work
-AT_CHECK([/lib/cpp </dev/null || exit 77], [], [ignore], [ignore])
+AT_CHECK([echo '#include <stdio.h>' | /lib/cpp </dev/null || exit 77],
+  [], [ignore], [ignore])
 
 # A cpp which exit status is meaningless.
 AT_DATA([mycpp],
@@ -178,7 +179,8 @@ AT_CLEANUP
 AT_SETUP([AC_PROG_CPP via CC])
 
 # Ignore if /lib/cpp doesn't work
-AT_CHECK([/lib/cpp </dev/null || exit 77], [], [ignore], [ignore])
+AT_CHECK([echo '#include <stdio.h>' | /lib/cpp </dev/null || exit 77],
+  [], [ignore], [ignore])
 
 AT_DATA([mycc],
 [[#! /bin/sh