Hello,
On Thu, May 19, 2005 at 09:42:44AM -0700, Paul Eggert wrote:
> Stepan Kasal <[EMAIL PROTECTED]> writes:
> > +echo " " >confdefs.h
...
> echo "/* Configuration-time definitions. */" >confdefs.h.
good idea.
Actually, none of us read the lines which follow this echo. ;-)
This allows a more radical aproach; see the attached patch.
I commited, this thread is getting too long.
Stepan
2005-05-20 Stepan Kasal <[EMAIL PROTECTED]>
* ./lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
of confdefs.h .
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.856
diff -u -r1.856 general.m4
--- lib/autoconf/general.m4 17 May 2005 09:29:05 -0000 1.856
+++ lib/autoconf/general.m4 20 May 2005 07:52:18 -0000
@@ -1288,10 +1288,9 @@
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
-# NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
-ac_space=' '
-echo
"$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space"
>confdefs.h
+dnl AIX cpp loses on an empty file, NextStep 3.3 (patch 3) loses on a file
+dnl containing less than 14 bytes (including the newline).
+dnl But the defines below solve this problem.
# Predefined preprocessor variables.
AC_DEFINE_UNQUOTED([PACKAGE_NAME], ["$PACKAGE_NAME"],