diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2004-09-24 07:18:15 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2004-09-24 07:18:15 +0000 |
commit | 4489ece2663ff713da6e5b08e8e3cb96a8af9fdc (patch) | |
tree | b8ddca12a44a892980538af29515fa4f69b2fd8d /configure.in | |
parent | 988c3fe319b24d20ff12d0a9a87e31f355d04cbf (diff) | |
download | emacs-4489ece2663ff713da6e5b08e8e3cb96a8af9fdc.tar.gz |
* configure.in: Check for exec-shield.
* configure: Rebuild.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index b7318b8f805..52c35bb2b09 100644 --- a/configure.in +++ b/configure.in @@ -1286,6 +1286,17 @@ AC_LINK_IFELSE([main(){return 0;}], dnl checks for Unix variants AC_AIX +dnl check if exec-shield is present. +AC_CHECK_FILE(/proc/sys/kernel/exec-shield, emacs_cv_execshield=1, + emacs_cv_execshield=0) +if test "$emacs_cv_execshield" = 1; then + AC_PATH_PROG(SETARCH, setarch, no) + AC_SUBST(SETARCH) + if test "$setarch" != no; then + AC_DEFINE(HAVE_EXECSHIELD, 1, [Define to 1 if this OS has exec shield.]) + fi +fi + #### Extract some information from the operating system and machine files. AC_CHECKING([the machine- and system-dependent files to find out @@ -2342,7 +2353,7 @@ utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ sendto recvfrom getsockopt setsockopt getsockname getpeername \ gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ -memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign) +memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign) AC_CHECK_HEADERS(sys/un.h) |