summaryrefslogtreecommitdiffstats
path: root/libdecnumber/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libdecnumber/configure')
-rwxr-xr-xlibdecnumber/configure8
1 files changed, 6 insertions, 2 deletions
diff --git a/libdecnumber/configure b/libdecnumber/configure
index 134c2574563..f94f6808190 100755
--- a/libdecnumber/configure
+++ b/libdecnumber/configure
@@ -4594,7 +4594,7 @@ $as_echo_n "checking for decimal floating point... " >&6; }
if test "${enable_decimal_float+set}" = set; then :
enableval=$enable_decimal_float;
case $enable_decimal_float in
- yes | no | bid | dpd) ;;
+ yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
*) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
esac
@@ -4626,17 +4626,21 @@ case x$enable_decimal_float in
enable_decimal_float=dpd
;;
esac
+ default_decimal_float=$enable_decimal_float
;;
xno)
# ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
# dependency on libdecnumber.
- enable_decimal_float=dpd
+ default_decimal_float=dpd
;;
esac
+# Use default_decimal_float for dependency.
+enable_decimal_float=$default_decimal_float
+
# If BID is being used, additional objects should be linked in.
if test x$enable_decimal_float = xbid; then
ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
OpenPOWER on IntegriCloud