X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=d5650737317431f4d9ccabeda740b0230c61045e;hb=d0a684e232d82a32079cbe2cc04cffa0ebf4b4f3;hp=532aea3aad8d2e4c19dd9cedaf471ea9de80832b;hpb=c4597dfe0b0de808b6e024b7d7e898e5ae14de19;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index 532aea3..d565073 100644 --- a/configure.ac +++ b/configure.ac @@ -1136,17 +1136,13 @@ dnl (.subsections-via-symbols assembler directive) AC_MSG_CHECKING(for .subsections_via_symbols) -AC_TRY_COMPILE(,[__asm__ (".subsections_via_symbols");], - [ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[1], - [Define to 1 if Apple-style dead-stripping is supported.]) +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([], [__asm__ (".subsections_via_symbols");])], + [AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[1], + [Define to 1 if Apple-style dead-stripping is supported.]) ], - [ - AC_MSG_RESULT(no) - AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[0], - [Define to 1 if Apple-style dead-stripping is supported.]) - ]) + [AC_MSG_RESULT(no)]) dnl *** check for GNU non-executable stack note support (ELF only) dnl (.section .note.GNU-stack,"",@progbits)