emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure should avoid exec-shield breakage


From: David PONCE
Subject: Re: configure should avoid exec-shield breakage
Date: Fri, 24 Sep 2004 12:24:20 +0200 (CEST)

Hi,

[...]
> > I wish someone could fix the dump code instead.
>
> It seems a bit complicated as the feature is not very well
> documented.  In the mean time, I've checked in a configure test so
> that dumping works on Fedora 2 (and possible 1 but I don't have
> access to that).  I'll fix PROBLEMS soon.

Thanks!  Work nicely on Fedora 2.

WDYT of the following (untested) change to also check that exec-shield
is enabled.

[ As I never used autoconf myself my patch might be wrong ;-) ]

Sincerely,
David

Index: configure.in
===================================================================
RCS file: /cvsroot/emacs/emacs/configure.in,v
retrieving revision 1.368
diff -c -r1.368 configure.in
*** configure.in        24 Sep 2004 07:18:15 -0000      1.368
--- configure.in        24 Sep 2004 10:05:44 -0000
***************
*** 1287,1295 ****
  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
--- 1287,1296 ----
  AC_AIX
  
  dnl check if exec-shield is present.
! AC_CHECK_FILE(/proc/sys/kernel/exec-shield,
!   emacs_cv_execshield=`cat /proc/sys/kernel/exec-shield`,
!   emacs_cv_execshield=0)
! if test "$emacs_cv_execshield" != 0; then
     AC_PATH_PROG(SETARCH, setarch, no)
     AC_SUBST(SETARCH)
     if test "$setarch" != no; then





reply via email to

[Prev in Thread] Current Thread [Next in Thread]