From: Ralf Wildenhues Date: Tue, 13 Oct 2009 03:32:18 +0000 (+0000) Subject: Fix toplevel 'config.status --recheck' for --enable-lto. X-Git-Tag: sid-snapshot-20091101~241 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6811fb560a24f73e45cd6312e092ac1b63914f69;p=external%2Fbinutils.git Fix toplevel 'config.status --recheck' for --enable-lto. /: * configure.ac: Add 'lto' to enable_languages, not new_enable_languages, and only if not already present. * configure: Regenerate. --- diff --git a/ChangeLog b/ChangeLog index 86c4533..a6bfb7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-13 Ralf Wildenhues + + * configure.ac: Add 'lto' to enable_languages, not + new_enable_languages, and only if not already present. + * configure: Regenerate. + 2009-10-06 Ian Lance Taylor * Makefile.def: check-gold depends upon all-gas. diff --git a/configure b/configure index 76084ed..1ece75c 100755 --- a/configure +++ b/configure @@ -6593,7 +6593,10 @@ if test -d ${srcdir}/gcc; then # If LTO is enabled, add the LTO front end. extra_host_libiberty_configure_flags= if test "$enable_lto" = "yes" ; then - new_enable_languages="${new_enable_languages}lto," + case ,${enable_languages}, in + *,lto,*) ;; + *) enable_languages="${enable_languages},lto" ;; + esac if test "${ENABLE_GOLD}" = "yes" ; then configdirs="$configdirs lto-plugin" extra_host_libiberty_configure_flags=--enable-shared diff --git a/configure.ac b/configure.ac index c961fe8..407ab59 100644 --- a/configure.ac +++ b/configure.ac @@ -1811,7 +1811,10 @@ if test -d ${srcdir}/gcc; then # If LTO is enabled, add the LTO front end. extra_host_libiberty_configure_flags= if test "$enable_lto" = "yes" ; then - new_enable_languages="${new_enable_languages}lto," + case ,${enable_languages}, in + *,lto,*) ;; + *) enable_languages="${enable_languages},lto" ;; + esac if test "${ENABLE_GOLD}" = "yes" ; then configdirs="$configdirs lto-plugin" extra_host_libiberty_configure_flags=--enable-shared