aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2006-07-03 07:58:12 +0000
committerPaolo Bonzini <bonzini@gnu.org>2006-07-03 07:58:12 +0000
commit64ce424cecd7d56e9a579147e6ac552266f32e47 (patch)
tree1079921c1d8be7e8b4ad30ad8c229eba10d0a493 /configure.in
parent32096242153a9e7f308b6ca357a17e680467e7f5 (diff)
downloadgdb-64ce424cecd7d56e9a579147e6ac552266f32e47.zip
gdb-64ce424cecd7d56e9a579147e6ac552266f32e47.tar.gz
gdb-64ce424cecd7d56e9a579147e6ac552266f32e47.tar.bz2
2006-07-03 Paolo Bonzini <bonzini@gnu.org>
Sync from gcc: 2007-07-03 Paolo Bonzini <bonzini@gnu.org> PR other/27063 * configure.in: Test subdir_requires and give an appropriate error message. * configure: Regenerate. 2006-06-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> PR target/27540 * configure.in: Only enable libgomp on IRIX 6. * configure: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 9749d9f..b472484 100644
--- a/configure.in
+++ b/configure.in
@@ -353,7 +353,7 @@ if test x$enable_libgomp = x ; then
;;
*-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
;;
- *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux11*)
+ *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
;;
*-*-darwin* | *-*-aix*)
;;
@@ -1219,6 +1219,7 @@ if test -d ${srcdir}/gcc; then
language=
target_libs=
lang_dirs=
+ subdir_requires=
boot_language=
build_by_default=
need_gmp=
@@ -1252,6 +1253,21 @@ if test -d ${srcdir}/gcc; then
;;
esac
+ # Disable languages that need other directories if these aren't available.
+ for i in $subdir_requires .; do
+ test -d gcc/$i && continue
+ case ,${enable_languages}, in
+ *,${language},*)
+ # Specifically requested language; tell them.
+ AC_MSG_ERROR([The gcc/$i directory contains parts of $language but is missing])
+ ;;
+ *)
+ # Silently disable.
+ add_this_lang=no
+ ;;
+ esac
+ done
+
# Disable languages that need GMP if it isn't available.
case ,${enable_languages},:${have_gmp}:${need_gmp} in
*,${language},*:no:yes)