X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=f61558e4c1361b74bcda4b8b3b10d04719916e1f;hb=d7c977f78cb1f71ff5b30a198dc04c64f00088d5;hp=53c0cd6baffb214c26fed2558124484af4e42bb4;hpb=16fc5c3b540decac324183dab9a0050c02efef91;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index 53c0cd6..f61558e 100644 --- a/configure.in +++ b/configure.in @@ -556,12 +556,15 @@ FPTOOLS_HAVE_GCC dnl ** figure out how to invoke cpp directly (gcc -E is no good) AC_PROG_CPP -dnl ** does the C compiler support the following options? -FPTOOLS_CC_FLAG(-mno-cygwin,CC_SUPPORTS_MNO_CYGWIN) - -EXTRA_CC_OPTS="$CC_SUPPORTS_MNO_CYGWIN" -SRC_CC_OPTS="-O $EXTRA_CC_OPTS" -CPPFLAGS="$EXTRA_CC_OPTS $CPPFLAGS" +dnl ** Without optimization some INLINE trickery fails for GHCi +SRC_CC_OPTS="-O" + +dnl ** Try to add -mno-cygwin to the C compiler options for mingw32 targets +if test x"$TargetOS_CPP" = x"mingw32"; then + FPTOOLS_CC_FLAG(-mno-cygwin,CC_SUPPORTS_MNO_CYGWIN) + SRC_CC_OPTS="$CC_SUPPORTS_MNO_CYGWIN $SRC_CC_OPTS" + CPPFLAGS="$CC_SUPPORTS_MNO_CYGWIN $CPPFLAGS" +fi AC_SUBST(SRC_CC_OPTS) dnl ** figure out how to do context diffs @@ -986,6 +989,24 @@ AC_EGREP_CPP(yes, ]) AC_SUBST(HaveRtldNext) +dnl ** RTLD_LOCAL isn't available on cygwin +AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h) +AC_EGREP_CPP(yes, +[ + #include + #ifdef RTLD_LOCAL + yes + #endif +], [ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_RTLDLOCAL) + HaveRtldLocal=YES +], [ + AC_MSG_RESULT(no) + HaveRtldLocal=NO + ]) +AC_SUBST(HaveRtldLocal) + FPTOOLS_CHECK_LIB_NOWARN(m, atan) dnl --------------------------------------------------