[semi-related patch] Re: issues with configuring the trunk to build Fortran

Phil Edwards phil@codesourcery.com
Fri Aug 27 00:01:00 GMT 2004


On Thu, Aug 26, 2004 at 03:21:21PM -0700, Joe Buck wrote:
> The way gcc has always worked, in the absence of an --enable-languages
> flag, all languages that can be built are built, and the others (e.g.
> Java and Ada) are not complained about.

We're not doing the users any favors there, but I guess I'll maintain
tradition.

How does this look, then?  It skips f95 if GMP isn't present, but if fo5
has been requested by the user, it complains instead.


Index: configure.in
===================================================================
RCS file: /home/pme/Repositories/GCC/gcc/configure.in,v
retrieving revision 1.310
diff -u -r1.310 configure.in
--- configure.in	17 Aug 2004 22:06:44 -0000	1.310
+++ configure.in	26 Aug 2004 22:58:53 -0000
@@ -1206,10 +1208,17 @@
             ;;
         esac
 
-	# Disable language that need GMP if it isn't available.
-	if test  x"$need_gmp" = xyes && test x"$have_gmp" = xno; then
-	  add_this_lang=no
-	fi
+	# Disable languages that need GMP if it isn't available.
+        case ,${enable_languages},:${have_gmp}:${need_gmp} in
+          *,${language},*:no:yes)
+            # Specifically requested language; tell them.
+            AC_MSG_ERROR([GMP with MPFR support is required to build $language])
+            ;;
+          *:no:yes)
+            # Silently disable.
+            add_this_lang=no
+            ;;
+        esac
         
 	case $add_this_lang in
 	  no)



More information about the Gcc-patches mailing list