summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorLaurent Léonard <laurent@open-minds.org>2010-04-13 02:17:59 +0200
committerLaurent Léonard <laurent@open-minds.org>2010-04-13 02:17:59 +0200
commit01e95348403c03d119888a76c9d51d70399a3d99 (patch)
tree0227f42fea4bbeb3ada469a3962504afb2324080 /m4
parentf944460b569c4499da0e0090b9130356d7517d88 (diff)
Imported Upstream version 0.8.0
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler-flags.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/compiler-flags.m4 b/m4/compiler-flags.m4
index 72f9fe1a7..628bd1f0e 100644
--- a/m4/compiler-flags.m4
+++ b/m4/compiler-flags.m4
@@ -1,6 +1,7 @@
-# serial 3
+# serial 4
# Find valid warning flags for the C Compiler. -*-Autoconf-*-
#
+# Copyright (C) 2010 Red Hat, Inc.
# Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
@@ -37,7 +38,7 @@ AC_DEFUN([gl_COMPILER_FLAGS],
echo 'int x;' >conftest.c
$CC $CFLAGS -c conftest.c 2>conftest.err
ret=$?
- if test $ret != 0 -o -s conftest.err -o $has_option = "no"; then
+ if test $ret != 0 || test -s conftest.err || test $has_option = "no"; then
AC_MSG_RESULT(no)
else
AC_MSG_RESULT(yes)