diff --git a/configure.ac b/configure.ac index addde578ad0ef2d9960a2a6711e12fd244b97d0a..289a6a5776a86734b16b02afcf7f6c01fd7cdaaa 100644 --- a/configure.ac +++ b/configure.ac @@ -1021,20 +1021,6 @@ fi AC_CHECK_FUNCS(clock_gettime timer_settime) FP_CHECK_TIMER_CREATE -dnl ** check for Apple's "interesting" long double compatibility scheme -AC_MSG_CHECKING(for printf\$LDBLStub) -AC_LINK_IFELSE([AC_LANG_CALL([], [printf\$LDBLStub])], - [ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[1], - [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).]) - ], - [ - AC_MSG_RESULT(no) - AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[0], - [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).]) - ]) - FP_CHECK_PTHREAD_LIB AC_SUBST([UseLibpthread]) diff --git a/rts/configure.ac b/rts/configure.ac index 6500e828ac52eeadd920a36dffcff156a90cd81b..cbf57b92415054ebb608878c1034f4aa3af14ed8 100644 --- a/rts/configure.ac +++ b/rts/configure.ac @@ -33,6 +33,20 @@ GHC_CONVERT_PLATFORM_PARTS([host], [Host]) FPTOOLS_SET_PLATFORM_VARS([host], [Host]) FPTOOLS_SET_HASKELL_PLATFORM_VARS([Host]) +dnl ** check for Apple's "interesting" long double compatibility scheme +AC_MSG_CHECKING(for printf\$LDBLStub) +AC_LINK_IFELSE([AC_LANG_CALL([], [printf\$LDBLStub])], + [ + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[1], + [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).]) + ], + [ + AC_MSG_RESULT(no) + AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[0], + [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).]) + ]) + FP_CHECK_PTHREAD_FUNCS dnl ** check for eventfd which is needed by the I/O manager