diff options
| author | Alexander Barton <alex@barton.de> | 2003-04-23 01:07:59 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2003-04-23 01:07:59 +0000 |
| commit | bbf978dbcffd068dac593c41ca791cfca0764aec (patch) | |
| tree | fa2f6740655195811163a39d170c33a8de1edf81 /configure.in | |
| parent | 090756523e38936e767d19747cb2e5e447c9d6e1 (diff) | |
| download | ngircd-bbf978dbcffd068dac593c41ca791cfca0764aec.tar.gz ngircd-bbf978dbcffd068dac593c41ca791cfca0764aec.zip | |
Detecting broken gcc used by Mac OS X and disabling "-pedantic" in this case.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.in b/configure.in index a52f5f92..d76aa74c 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ # (at your option) any later version. # Please read the file COPYING, README and AUTHORS for more information. # -# $Id: configure.in,v 1.90 2003/04/22 18:44:03 alex Exp $ +# $Id: configure.in,v 1.91 2003/04/23 01:07:59 alex Exp $ # # -- Initialisierung -- @@ -266,7 +266,15 @@ AC_DEFINE_UNQUOTED(TARGET_OS, "$target_os" ) if test "$GCC" = "yes"; then the_CFLAGS="-Wmissing-declarations -Wpointer-arith -Wstrict-prototypes" - add_CFLAGS="-Wall -W -ansi -pedantic $CFLAGS $CFLAGS_ADD" + $CC --version | grep 20020420 > /dev/null 2>&1 + if test $? -eq 0; then + # Mac OS X (and Darwin?) ship with a slightly broken + # prerelease of GCC 3.1 which don't like -pedantic: + AC_MSG_RESULT([detected broken GNU C compiler, disabling "-pedantic"]) + add_CFLAGS="-Wall -W -ansi $CFLAGS $CFLAGS_ADD" + else + add_CFLAGS="-Wall -W -ansi -pedantic $CFLAGS $CFLAGS_ADD" + fi else the_CFLAGS="$CFLAGS" add_CFLAGS="$CFLAGS_ADD" |