Mercurial > hg > CbC > CbC_gcc
comparison libdecnumber/configure.ac @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
73 AC_CANONICAL_TARGET | 73 AC_CANONICAL_TARGET |
74 | 74 |
75 # Default decimal format | 75 # Default decimal format |
76 # If you change the defaults here, be sure to change them in the GCC directory also | 76 # If you change the defaults here, be sure to change them in the GCC directory also |
77 AC_MSG_CHECKING([for decimal floating point]) | 77 AC_MSG_CHECKING([for decimal floating point]) |
78 AC_ARG_ENABLE(decimal-float, | |
79 [ --enable-decimal-float={no,yes,bid,dpd} | |
80 enable decimal float extension to C. Selecting 'bid' | |
81 or 'dpd' choses which decimal floating point format | |
82 to use], | |
83 [ | |
84 case $enable_decimal_float in | |
85 yes | no | bid | dpd) ;; | |
86 *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float. | |
87 Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;; | |
88 esac | |
89 ], | |
90 [ | |
91 case $target in | |
92 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*) | |
93 enable_decimal_float=yes | |
94 ;; | |
95 *) | |
96 enable_decimal_float=no | |
97 ;; | |
98 esac | |
99 ]) | |
100 | 78 |
101 # x86's use BID format instead of DPD | 79 GCC_AC_ENABLE_DECIMAL_FLOAT([$target]) |
102 # In theory --enable-decimal-float=no should not compile anything | 80 |
103 # For the sake of simplicity, just use the default format in this directory | 81 # Use default_decimal_float for dependency. |
104 if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then | 82 enable_decimal_float=$default_decimal_float |
105 case $target in | |
106 i?86*-*-linux* | x86_64*-*-linux*) | |
107 enable_decimal_float=bid | |
108 ;; | |
109 *) | |
110 enable_decimal_float=dpd | |
111 ;; | |
112 esac | |
113 fi | |
114 | 83 |
115 # If BID is being used, additional objects should be linked in. | 84 # If BID is being used, additional objects should be linked in. |
116 if test x$enable_decimal_float = xbid; then | 85 if test x$enable_decimal_float = xbid; then |
117 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)" | 86 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)" |
118 else | 87 else |