summaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-21 00:43:21 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-21 00:43:21 +0000
commite38498a20ed7b679f33c943387620e7d7b57bbc4 (patch)
tree3b2a27c987431a6e8487205fbf8b950929bf9b32 /gcc/configure.ac
parentf3e673aa4589a03084a7fc73e8fb978281d1ec16 (diff)
downloadgcc-e38498a20ed7b679f33c943387620e7d7b57bbc4.tar.gz
* configure.ac: Enable C extension for decimal float if invoked
with --enable-decimal-float. * doc/install.texi (Configuration): Document it. * configure, config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108887 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac32
1 files changed, 32 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 6fd438e4860..876b1deac51 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -639,6 +639,38 @@ AC_ARG_ENABLE(__cxa_atexit,
[ --enable-__cxa_atexit enable __cxa_atexit for C++],
[], [])
+# Enable C extension for decimal float if target supports it.
+AC_ARG_ENABLE(decimal-float,
+[ --enable-decimal-float enable decimal float extension to C],
+[
+ if test x$enablevar = xyes ; then
+ case $target in
+ powerpc*-*-linux* | i?86*-*-linux*)
+ ;;
+ *)
+ AC_MSG_WARN(decimal float is not supported for this target, ignored)
+ enable_decimal_float=no
+ ;;
+ esac
+ fi
+],
+[
+ case $target in
+ powerpc*-*-linux*)
+ enable_decimal_float=yes
+ ;;
+ *)
+ enable_decimal_float=no
+ ;;
+ esac
+])
+
+AC_SUBST(enable_decimal_float)
+
+dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
+AC_DEFINE_UNQUOTED(ENABLE_DECIMAL_FLOAT, $dfp,
+[Define to 1 to enable decimal float extension to C.])
+
# Enable threads
# Pass with no value to take the default
# Pass with a value to specify a thread package