comparison configure.in @ 3065:2280158c4449

[project @ 1997-06-27 03:19:27 by jwe]
author jwe
date Fri, 27 Jun 1997 03:20:27 +0000
parents 9c6cd52f3f5a
children db6d57d718f7
comparison
equal deleted inserted replaced
3064:4e6581fd8060 3065:2280158c4449
19 ### You should have received a copy of the GNU General Public License 19 ### You should have received a copy of the GNU General Public License
20 ### along with Octave; see the file COPYING. If not, write to the Free 20 ### along with Octave; see the file COPYING. If not, write to the Free
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 ### 02111-1307, USA. 22 ### 02111-1307, USA.
23 23
24 AC_REVISION($Revision: 1.280 $) 24 AC_REVISION($Revision: 1.281 $)
25 AC_PREREQ(2.9) 25 AC_PREREQ(2.9)
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h) 27 AC_CONFIG_HEADER(config.h)
28 28
29 AC_DEFINE(OCTAVE_SOURCE, 1) 29 AC_DEFINE(OCTAVE_SOURCE, 1)
274 if test -n "$gcc_version"; then 274 if test -n "$gcc_version"; then
275 CC_VERSION="$gcc_version" 275 CC_VERSION="$gcc_version"
276 fi 276 fi
277 AC_SUBST(CC_VERSION) 277 AC_SUBST(CC_VERSION)
278 278
279 ### On Intel systems with gcc, we need to compile with -mieee-fp to 279 ### On Intel systems with gcc, we may need to compile with -mieee-fp to
280 ### get full support for IEEE floating point. 280 ### get full support for IEEE floating point.
281 ### 281 ###
282 ### On Alpha/OSF systems, wee need -mieee, but that also 282 ### On Alpha/OSF systems, wee need -mieee, but that also
283 ### requires gcc 2.8.x or later. 283 ### requires gcc 2.8.x or later.
284 284
285 GCC_IEEE_FP_FLAG=
285 case "$canonical_host_type" in 286 case "$canonical_host_type" in
286 changequote(,)dnl 287 changequote(,)dnl
287 i[3456789]86-*-*) 288 i[3456789]86-*-*)
288 changequote([,])dnl 289 changequote([,])dnl
289 GCC_IEEE_FP_FLAG="-mieee-fp" 290 XCFLAGS="$CFLAGS"
290 AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG]) 291 CFLAGS="$CFLAGS -mieee-fp"
292 AC_TRY_LINK([], [], [GCC_IEEE_FP_FLAG="-mieee-fp"], [])
293 CFLAGS="$XCFLAGS"
291 ;; 294 ;;
292 alpha-dec-osf*) 295 alpha-dec-osf*)
293 case "$gcc_version" in 296 case "$gcc_version" in
294 changequote(,)dnl 297 changequote(,)dnl
295 1.* | 2.[01234567].*) 298 1.* | 2.[01234567].*)
296 changequote([,])dnl 299 changequote([,])dnl
297 ;; 300 ;;
298 *) 301 *)
299 GCC_IEEE_FP_FLAG="-mieee" 302 GCC_IEEE_FP_FLAG="-mieee"
300 AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG])
301 ;; 303 ;;
302 esac 304 esac
303 ;; 305 ;;
304 esac 306 esac
307 if test -n "$GCC_IEEE_FP_FLAG"; then
308 AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG])
309 fi
305 AC_SUBST(GCC_IEEE_FP_FLAG) 310 AC_SUBST(GCC_IEEE_FP_FLAG)
306 311
307 ### Use -static if compiling on Alpha OSF/1 1.3 systems. 312 ### Use -static if compiling on Alpha OSF/1 1.3 systems.
308 313
309 case "$canonical_host_type" in 314 case "$canonical_host_type" in