Re: FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC

2012-10-24 Thread Paul Eggert
On 10/24/2012 01:07 PM, Adrian Bunk wrote: > You also have to exclude AC_PROG_CC_C89 and AC_PROG_CC_C99 (similar > to AC_PROG_CC_STDC) in au_exclude_list in tests/mktests.sh to fix the > "make check" errors this causes. Thanks, I just now pushed

Re: FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC

2012-10-24 Thread Adrian Bunk
o this is an Autoconf bug. I installed this into Autoconf: >... You also have to exclude AC_PROG_CC_C89 and AC_PROG_CC_C99 (similar to AC_PROG_CC_STDC) in au_exclude_list in tests/mktests.sh to fix the "make check" errors this causes. cu Adrian -- "Is there not promise o

Re: FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC

2012-10-24 Thread Paul Eggert
17 00:00:00 2001 From: Paul Eggert Date: Wed, 24 Oct 2012 12:25:34 -0700 Subject: [PATCH] AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC: Use AU_DEFUN This fixes a bug introduced by the most recent change to c.m4. Problem reported by Jim Meyering in <http://lists.gnu.org/archive/html/autocon

FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC

2012-10-24 Thread Jim Meyering
When attempting to bootstrap grep.git using autoconf.git (v2.69-37-gb9dc6b6), I see this failure: autoreconf: running: aclocal -I m4 -I m4 configure.ac:81: error: AC_PROG_CC cannot be called after AM_PROG_CC_C_O ../../lib/autoconf/c.m4:1459: AC_PROG_CC_STDC is expanded from... m4

Re: AC_PROG_CC_STDC

2002-03-28 Thread Albert Chin
On Wed, Mar 27, 2002 at 09:00:10PM -0500, Peter Eisentraut wrote: > # AIX -qlanglvl=ansi > # Ultrix and OSF/1 -std1 > # HP-UX 10.20 and later -Ae > # HP-UX older versions -Aa -D_HPUX_SOURCE > # SVR4 -Xc -D__EXTENSIONS__ > > where -qlanglvl=ansi and -std1 s

Re: AC_PROG_CC_STDC

2002-03-27 Thread Paul Eggert
> From: Peter Eisentraut <[EMAIL PROTECTED]> > Date: Wed, 27 Mar 2002 21:00:10 -0500 (EST) > Code that tries to be portable to K&R uses some restricted subset of C > that is portable both ways, so it wouldn't break if we ran it through an > ANSI C compiler. That's how things used to be, but thes

Re: AC_PROG_CC_STDC

2002-03-27 Thread Peter Eisentraut
Paul Eggert writes: > > I've been thinking lately about the issues surrounding this macro (see > > archives and TODO list). Is there any reason why AC_PROG_CC_STDC could > > not simply be folded into AC_PROG_CC? Is there any software that must > > avoid an ANSI

Re: AC_PROG_CC_STDC

2002-03-27 Thread Paul Eggert
> From: Peter Eisentraut <[EMAIL PROTECTED]> > Date: Wed, 27 Mar 2002 16:59:10 -0500 (EST) > > I've been thinking lately about the issues surrounding this macro (see > archives and TODO list). Is there any reason why AC_PROG_CC_STDC could > not simply be folded i

AC_PROG_CC_STDC

2002-03-27 Thread Peter Eisentraut
I've been thinking lately about the issues surrounding this macro (see archives and TODO list). Is there any reason why AC_PROG_CC_STDC could not simply be folded into AC_PROG_CC? Is there any software that must avoid an ANSI C compiler at all cost? That kind of software would hard

AC_C_STRINGIZE versus AC_PROG_CC_STDC

2001-04-29 Thread Kevin Ryde
I noticed AC_C_STRINGIZE doesn't force itself to be after AC_PROG_CC_STDC, and I think this can lead to wrong results when "cc -E" is used for preprocessing and AC_PROG_CC_STDC mungs $CC into ansi mode, if something like the following is accidentally written.

AC_PROG_CPP,AC_PROG_CC_STDC vs AC_PROG_CC

2000-08-06 Thread Assar Westerlund
It seems like it would be logical to have AC_PROG_CC always run before AC_PROG_CPP (since this turns out to be `$CC -E' in lots of cases). In aclang.m4, there is: dnl FIXME: can't do this because then AC_AIX won't work due to a dnl circular dependency. dnl AC_BEFORE([$0], [AC_PROG_CPP]) Why is

About AC_PROG_CC_STDC

2000-05-26 Thread Peter Eisentraut
n some systems `cc' is a K&R compiler and the ANSI compiler is `c89'. In that case the configure script AC_PROG_CC AC_PROG_CC_STDC would first decide on `cc' as the compiler and then fail to switch it to ANSI mode, never considering `c89'. (The obvious solution would be

Re: AC_PROG_CC_STDC patch

2000-04-21 Thread Peter Eisentraut
Johan Danielsson writes: > This of course depends on what the CC_STDC macro means, It effectively tries to give a couple of flags to the compiler to make it a little more modern. That means accepting prototypes and perhaps const, etc. > but if it tests for a `ANSI C' compiler, -std is not enoug

Re: AC_PROG_CC_STDC patch

2000-04-20 Thread T.E.Dickey
> > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > > I've written about it before, here's the patch. It changes > > AC_PROG_CC_STDC to try the `-std' flag rather than `-std1' (for OSF > > or Ultrix) because the latter is kind of like &#

Re: AC_PROG_CC_STDC patch

2000-04-20 Thread Johan Danielsson
Peter Eisentraut <[EMAIL PROTECTED]> writes: > I've written about it before, here's the patch. It changes > AC_PROG_CC_STDC to try the `-std' flag rather than `-std1' (for OSF > or Ultrix) because the latter is kind of like 'gcc -ansi' (i.e., > ter

Re: AC_PROG_CC_STDC patch

2000-04-19 Thread Alexandre Oliva
On Apr 19, 2000, Peter Eisentraut <[EMAIL PROTECTED]> wrote: > I've written about it before, here's the patch. It changes AC_PROG_CC_STDC > to try the `-std' flag rather than `-std1' (for OSF or Ultrix) because the > latter is kind of like 'gcc -ansi'

Re: AC_PROG_CC_STDC patch

2000-04-19 Thread T.E.Dickey
> > Peter Eisentraut writes: > > I've written about it before, here's the patch. It changes AC_PROG_CC_STDC > > to try the `-std' flag rather than `-std1' (for OSF or Ultrix) because the > > latter is kind of like 'gcc -ansi' (i.e., termi

Re: AC_PROG_CC_STDC patch

2000-04-19 Thread Lars Hecking
Peter Eisentraut writes: > I've written about it before, here's the patch. It changes AC_PROG_CC_STDC > to try the `-std' flag rather than `-std1' (for OSF or Ultrix) because the > latter is kind of like 'gcc -ansi' (i.e., terminally strict). I've

AC_PROG_CC_STDC patch

2000-04-19 Thread Peter Eisentraut
I've written about it before, here's the patch. It changes AC_PROG_CC_STDC to try the `-std' flag rather than `-std1' (for OSF or Ultrix) because the latter is kind of like 'gcc -ansi' (i.e., terminally strict). Treat with caution, I don't actually have one of