summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-04 18:49:41 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-04 18:49:41 +0000
commita2ecd49cb267c411a4501a493249b4236218e1a7 (patch)
tree79bf226ee6d3c8e12e8919be347260dc233d36e2 /configure.ac
parentb3c9def6350231a8e1c80616c2430e6b71037d63 (diff)
downloadgcc-a2ecd49cb267c411a4501a493249b4236218e1a7.tar.gz
* configure.ac: Fix --enable-languages=all.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 02174b387bc..9bee624ec1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1758,6 +1758,7 @@ if test -d ${srcdir}/gcc; then
boot_language=yes
fi
+ add_this_lang=no
case ,${enable_languages}, in
*,${language},*)
# Language was explicitly selected; include it
@@ -1768,10 +1769,9 @@ if test -d ${srcdir}/gcc; then
;;
*,all,*)
# 'all' was selected, select it if it is a default language
- add_this_lang=${build_by_default}
- ;;
- *)
- add_this_lang=no
+ if test "$language" != "c"; then
+ add_this_lang=${build_by_default}
+ fi
;;
esac