X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=28e380b7194d073107e8b5589c4ed0c0f0300100;hb=786932468faac49aafe20b65eabc8bdf465fbc9d;hp=634b66b2bb939565b015fe4c206d1cfce3307a62;hpb=8924296aac382b808d89c865a9c4a05ebbf21a0e;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index 634b66b..28e380b 100644 --- a/configure.ac +++ b/configure.ac @@ -823,6 +823,11 @@ AC_COMPILE_IFELSE( dnl *** check for GNU non-executable stack note support (ELF only) dnl (.section .note.GNU-stack,"",@progbits) +dnl This test doesn't work with "gcc -g" in gcc 4.4 (GHC trac #3889: +dnl Error: can't resolve `.note.GNU-stack' {.note.GNU-stack section} - `.Ltext0' {.text section} +dnl so we empty CFLAGS while running this test +CFLAGS2="$CFLAGS" +CFLAGS= AC_MSG_CHECKING(for GNU non-executable stack support) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([__asm__ (".section .note.GNU-stack,\"\",@progbits");], [0])], @@ -831,6 +836,7 @@ AC_COMPILE_IFELSE( [Define to 1 if GNU non-executable stack notes are supported.]) ], [AC_MSG_RESULT(no)]) +CFLAGS="$CFLAGS2" dnl ** check for librt AC_CHECK_LIB(rt, clock_gettime)