summaryrefslogtreecommitdiff
path: root/gold/configure
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-04-07 21:08:01 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-04-07 21:08:01 +0000
commitefc8d4f25fb033b23e14adabd74f312ef73824a9 (patch)
tree535ad4036a6ac6094c45e1179025f77ec8e7815f /gold/configure
parent1570b33e44a894b781674d0906a733584ad780e0 (diff)
Use Automake option no-dist in gold.
gold/: * configure.ac (AM_INIT_AUTOMAKE): Add option no-dist. * configure: Regenerate. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/configure')
-rwxr-xr-xgold/configure16
1 files changed, 14 insertions, 2 deletions
diff --git a/gold/configure b/gold/configure
index 9fd198f275..20df0dfa59 100755
--- a/gold/configure
+++ b/gold/configure
@@ -6305,7 +6305,19 @@ fi
-GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+__GNUC__
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "^[0-3]$" >/dev/null 2>&1; then :
+
+else
+ GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
+fi
+rm -f conftest*
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
@@ -6317,7 +6329,7 @@ if test "${enable_werror+set}" = set; then :
fi
-# Enable -Wno-format by default when using gcc on mingw
+# Disable -Wformat by default when using gcc on mingw
case "${host}" in
*-*-mingw32*)
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then