diff options
author | PHO <pho@cielonegro.org> | 2011-11-30 17:46:27 +0900 |
---|---|---|
committer | PHO <pho@cielonegro.org> | 2011-12-08 10:57:28 +0900 |
commit | 3640d374f3501c0addb1be273ecc0f10f93be10d (patch) | |
tree | 17a23f00548a6ecbe1728bfdd561247ed8cc94e4 /aclocal.m4 | |
parent | 8b48562e8cd773b4bc162edb4fc6d05a7654c7e1 (diff) | |
download | haskell-3640d374f3501c0addb1be273ecc0f10f93be10d.tar.gz |
Detect cases where as(1) doesn't recognise .ident directive (#5408)
.ident directives are usually ignored by as(1), and in some cases (like Darwin/PPC) they even raise an error.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 4d65e4eb2b..1d5d1f7ef2 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -251,6 +251,16 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS], [HaskellHaveSubsectionsViaSymbols=False AC_MSG_RESULT(no)]) + dnl ** check for .ident assembler directive + + AC_MSG_CHECKING(whether your assembler supports .ident directive) + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE([__asm__ (".ident \"GHC x.y.z\"");])], + [AC_MSG_RESULT(yes) + HaskellHaveIdentDirective=True], + [AC_MSG_RESULT(no) + HaskellHaveIdentDirective=False]) + dnl *** check for GNU non-executable stack note support (ELF only) dnl (.section .note.GNU-stack,"",@progbits) @@ -283,6 +293,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS], AC_SUBST(HaskellTargetArch) AC_SUBST(HaskellTargetOs) AC_SUBST(HaskellHaveSubsectionsViaSymbols) + AC_SUBST(HaskellHaveIdentDirective) AC_SUBST(HaskellHaveGnuNonexecStack) ]) |