- [
- 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)
+
+AC_MSG_CHECKING(for GNU non-executable stack support)
+AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([__asm__ (".section .note.GNU-stack,\"\",@progbits");], [0])],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_GNU_NONEXEC_STACK],[1],
+ [Define to 1 if GNU non-executable stack notes are supported.])
+ ],
+ [AC_MSG_RESULT(no)])