Top-level configure has two quadmath-related options: --disable-libquadmath and 
--disable-libquadmath-support . The first disables the building of libquadmath 
itself, the second disables quadmath support in the Fortran front-end. They are 
currently independent, but it would make a lot of sense for 
--disable-libquadmath to imply --disable-libquadmath-support, unless 
—enable-libquadmath-support is explicitly stated: Fortran front-end support 
without libquadmath will be truly useless, and the current situation is 
confusing to users (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55601).

However, my build/configure-foo is lacking, so I don’t know to achieve this. 
I’ve tried the code below… is it how this is supposed to work?
Thanks in advance to any build/configure maintainer who can give me a hand with 
this!



Index: configure.ac
===================================================================
--- configure.ac        (revision 211315)
+++ configure.ac        (working copy)
@@ -411,7 +411,9 @@ AS_HELP_STRING([--disable-libquadmath-su
 ENABLE_LIBQUADMATH_SUPPORT=$enableval,
 ENABLE_LIBQUADMATH_SUPPORT=yes)
 enable_libquadmath_support=
-if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
+if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" || 
+   ( test "${ENABLE_LIBQUADMATH_SUPPORT}" = "" &&
+     test "${ENABLE_LIBQUADMATH}" = "no" ) ; then
   enable_libquadmath_support=no
 fi
 

Reply via email to