]> code.delx.au - gnu-emacs/commitdiff
configure.in (HAVE_RANDOM_HEAPSTART): Move output of warning message to end
authorJan Djärv <jan.h.d@swipnet.se>
Wed, 6 Oct 2004 12:28:31 +0000 (12:28 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Wed, 6 Oct 2004 12:28:31 +0000 (12:28 +0000)
of configure run.

ChangeLog
configure
configure.in

index 87efe955d9eefc308815185312662b112f6e8754..aa5d01c16f5a7a7435cd77f7ace3ce66153bd174 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2004-10-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
        * configure.in (HAVE_RANDOM_HEAPSTART): Change AC_MSG_ERROR to
-       AC_MSG_WARN.
+       AC_MSG_WARN.  Move output of warning message to end of configure run.
 
 2004-10-05  Jan Dj\e,Ad\e(Brv.  <jan.h.d@swipnet.se>
 
index 7f1a82f8dfcb6f550635fa57aafe60d18b004c51..83ac957143d7ae67150f35788ecaea172b447060 100755 (executable)
--- a/configure
+++ b/configure
@@ -7854,26 +7854,7 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
   else
-    { echo "$as_me:$LINENO: WARNING:
-**********************************************************************
-
-Heap start address is randomized and no workaround is known.
-Emacs will probably dump core when temacs is run in the build phase.
-Maybe exec-shield is turned on.  Read about exec-shield in \`etc/PROBLEMS'
-for further information.
-
-**********************************************************************
-" >&5
-echo "$as_me: WARNING:
-**********************************************************************
-
-Heap start address is randomized and no workaround is known.
-Emacs will probably dump core when temacs is run in the build phase.
-Maybe exec-shield is turned on.  Read about exec-shield in \`etc/PROBLEMS'
-for further information.
-
-**********************************************************************
-" >&2;}
+        emacs_cv_randomheap=warn
   fi
 fi
 
@@ -21452,6 +21433,29 @@ echo "  Does Emacs use -lpng?                                   ${HAVE_PNG}"
 echo "  Does Emacs use X toolkit scroll bars?                   ${USE_TOOLKIT_SCROLL_BARS}"
 echo
 
+if test "$emacs_cv_randomheap" = warn; then
+  { echo "$as_me:$LINENO: WARNING:
+**********************************************************************
+
+Heap start address is randomized and no workaround is known.
+Emacs will probably dump core when temacs is run in the build phase.
+Maybe exec-shield is turned on.  Read about exec-shield in \`etc/PROBLEMS'
+for further information.
+
+**********************************************************************
+" >&5
+echo "$as_me: WARNING:
+**********************************************************************
+
+Heap start address is randomized and no workaround is known.
+Emacs will probably dump core when temacs is run in the build phase.
+Maybe exec-shield is turned on.  Read about exec-shield in \`etc/PROBLEMS'
+for further information.
+
+**********************************************************************
+" >&2;}
+fi
+
 # Remove any trailing slashes in these variables.
 test "${prefix}" != NONE &&
   prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
index 0bbcb76b2628d7177d08a68b8130d7dbd95b05ab..4e534a5348511ebc1281d128da8fea0537a7d936 100644 (file)
@@ -1613,16 +1613,8 @@ if test "$emacs_cv_randomheap" = yes; then
     AC_DEFINE(HAVE_RANDOM_HEAPSTART, 1,
     [Define to 1 if this OS randomizes the start address of the heap.])
   else
-    AC_MSG_WARN([
-**********************************************************************
-
-Heap start address is randomized and no workaround is known.
-Emacs will probably dump core when temacs is run in the build phase.
-Maybe exec-shield is turned on.  Read about exec-shield in `etc/PROBLEMS'
-for further information.
-
-**********************************************************************
-])
+    dnl We do the warning at the end of the configure run so it is seen.
+    emacs_cv_randomheap=warn
   fi
 fi
 
@@ -3094,6 +3086,19 @@ echo "  Does Emacs use -lpng?                                   ${HAVE_PNG}"
 echo "  Does Emacs use X toolkit scroll bars?                   ${USE_TOOLKIT_SCROLL_BARS}"
 echo
 
+if test "$emacs_cv_randomheap" = warn; then 
+  AC_MSG_WARN([
+**********************************************************************
+
+Heap start address is randomized and no workaround is known.
+Emacs will probably dump core when temacs is run in the build phase.
+Maybe exec-shield is turned on.  Read about exec-shield in `etc/PROBLEMS'
+for further information.
+
+**********************************************************************
+])
+fi
+
 # Remove any trailing slashes in these variables.
 [test "${prefix}" != NONE &&
   prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`