This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make Configure abort if both -Duselongdouble and -Dusequadmath are requested
authorTony Cook <tony@develop-help.com>
Mon, 11 Apr 2016 03:55:45 +0000 (13:55 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 11 Jul 2016 04:22:02 +0000 (14:22 +1000)
See [perl #126203]

Configure

index a6fd51f..d634cdb 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -5241,6 +5241,20 @@ case "$usequadmath" in
 *)                    usequadmath="$undef"  ;;
 esac
 
+: Fail if both uselongdouble and usequadmath are requested
+case "$usequadmath:$uselongdouble" in
+define:define)
+       $cat <<EOM >&4
+
+*** You requested the use of the quadmath library and use
+*** of long doubles.
+***
+*** Please select one or the other.
+EOM
+       exit 1
+        ;;
+esac
+
 : Looking for optional libraries
 echo " "
 echo "Checking for optional libraries..." >&4