OSDN Git Service

Fix toplevel 'config.status --recheck' for --enable-lto.
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Oct 2009 03:31:50 +0000 (03:31 +0000)
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Oct 2009 03:31:50 +0000 (03:31 +0000)
/:
* configure.ac: Add 'lto' to enable_languages, not
new_enable_languages, and only if not already present.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152697 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure
configure.ac

index 853bf1b..552f045 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * configure.ac: Add 'lto' to enable_languages, not
+       new_enable_languages, and only if not already present.
+       * configure: Regenerate.
+
 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * README: Refer to the various COPYING* files instead of just
index 76084ed..1ece75c 100755 (executable)
--- 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
index c961fe8..407ab59 100644 (file)
@@ -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