[Dovecot] test61 ./configure fails on OpenBSD 3.6
Test version 61 ./configure is failing on my OpenBSD 3.6-stable system. The following corrects the problem. Would it be possible to test for gnu99 option before using it in subsequent tests? --- configure.in.orig Fri Jan 14 14:04:10 2005 +++ configure.in Fri Jan 14 16:44:22 2005 @@ -236,7 +236,7 @@ # say specifically that we want C99 features. # we can make use of GNU features as well, so don't use -std=c99. - CFLAGS="$CFLAGS -std=gnu99" + CFLAGS="$CFLAGS -std=gnu9x" fi dnl **
Hi Timo, Small nit with the latest test62. I think you forgot to remove the old CFLAGS. Thanks for the fix though. --- ../dovecot-1.0-test62/configure.in Mon Jan 31 10:36:16 2005 +++ ./configure.in Mon Jan 31 20:09:22 2005 @@ -244,9 +244,6 @@ CFLAGS="$old_cflags" ]) - # say specifically that we want C99 features. - # we can make use of GNU features as well, so don't use -std=c99. - CFLAGS="$CFLAGS -std=gnu99" fi dnl **
Jamie Herre wrote:
Hi Timo,
Small nit with the latest test62. I think you forgot to remove the old CFLAGS. Thanks for the fix though.
[cut]
CFLAGS="$CFLAGS -std=gnu99"
GCC 2.95 (atleast mine) does not know of the gnu99 standard, but it knows about the gnu9x standard. If possible, it would be smart to check if gnu99 is available, and fall back to gnu9x if not.
The GCC manual at gnu.org says this about the subject:
gnu99 gnu9x ISO C99 plus GNU extensions. When ISO C99 is fully implemented in GCC, this will become the default. The name gnu9x is deprecated.
See http://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html
-- Øyvind
participants (2)
-
Jamie Herre
-
Øyvind Hallsteinsen