2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / configure.in
index c97b2d347816c19c6e504e5baac01af53c9d9a08..6f6537bbd37adb3d09fb48e4db9f5906a0e3d4c1 100644 (file)
@@ -251,6 +251,18 @@ AC_CHECK_HEADERS(elf.h)
 
 # for mono/dis
 AC_CHECK_HEADERS(wchar.h)
+AC_CHECK_HEADERS(ieeefp.h)
+AC_MSG_CHECKING(for isinf)
+AC_TRY_COMPILE([#include <math.h>], [
+       int f = isinf (1);
+], [
+       AC_MSG_RESULT(yes)
+       AC_DEFINE(HAVE_ISINF, 1, [isinf available])
+], [
+       # We'll have to use signals
+       AC_MSG_RESULT(no)
+])
+
 
 # not 64 bit clean in cross-compile
 AC_CHECK_SIZEOF(void *, 4)
@@ -1637,8 +1649,17 @@ tools/locale-builder/Makefile
 runtime/Makefile
 ])
 
-echo "prefix=$prefix" > $mcsdir/build/config.make
-echo "MCS_FLAGS = \$(PLATFORM_DEBUG_FLAGS)" >> $mcsdir/build/config.make
+(
+  case $prefix in
+  NONE) prefix=/usr/local ;;
+  esac
+  case $exec_prefix in
+  NONE | '${prefix}') exec_prefix=$prefix ;;
+  esac
+
+  echo "prefix=$exec_prefix" > $srcdir/$mcsdir/build/config.make
+  echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$mcsdir/build/config.make
+)
 
 echo "
         mcs source:  $mcs_topdir