Mercurial > emacs
comparison configure @ 57622:a17f324d7b7f
* configure.in (HAVE_PERSONALITY_LINUX32): New test if PER_LINUX32
can be set. Remove SETARCH test.
* configure: Rebuild
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Wed, 20 Oct 2004 16:16:07 +0000 |
parents | f95883a41a23 |
children | eee018b36c35 f3ec05478165 |
comparison
equal
deleted
inserted
replaced
57621:705620eb98c4 | 57622:a17f324d7b7f |
---|---|
308 #endif | 308 #endif |
309 #if HAVE_UNISTD_H | 309 #if HAVE_UNISTD_H |
310 # include <unistd.h> | 310 # include <unistd.h> |
311 #endif" | 311 #endif" |
312 | 312 |
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SETARCH SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' | 313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' |
314 ac_subst_files='' | 314 ac_subst_files='' |
315 | 315 |
316 # Initialize some variables set by options. | 316 # Initialize some variables set by options. |
317 ac_init_help= | 317 ac_init_help= |
318 ac_init_version=false | 318 ac_init_version=false |
5438 fi | 5438 fi |
5439 | 5439 |
5440 done | 5440 done |
5441 | 5441 |
5442 | 5442 |
5443 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 | |
5444 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6 | |
5445 cat >conftest.$ac_ext <<_ACEOF | |
5446 /* confdefs.h. */ | |
5447 _ACEOF | |
5448 cat confdefs.h >>conftest.$ac_ext | |
5449 cat >>conftest.$ac_ext <<_ACEOF | |
5450 /* end confdefs.h. */ | |
5451 #include <sys/personality.h> | |
5452 int | |
5453 main () | |
5454 { | |
5455 personality (PER_LINUX32) | |
5456 ; | |
5457 return 0; | |
5458 } | |
5459 _ACEOF | |
5460 rm -f conftest.$ac_objext | |
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5462 (eval $ac_compile) 2>conftest.er1 | |
5463 ac_status=$? | |
5464 grep -v '^ *+' conftest.er1 >conftest.err | |
5465 rm -f conftest.er1 | |
5466 cat conftest.err >&5 | |
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5468 (exit $ac_status); } && | |
5469 { ac_try='test -z "$ac_c_werror_flag" | |
5470 || test ! -s conftest.err' | |
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5472 (eval $ac_try) 2>&5 | |
5473 ac_status=$? | |
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5475 (exit $ac_status); }; } && | |
5476 { ac_try='test -s conftest.$ac_objext' | |
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5478 (eval $ac_try) 2>&5 | |
5479 ac_status=$? | |
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5481 (exit $ac_status); }; }; then | |
5482 emacs_cv_personality_linux32=yes | |
5483 else | |
5484 echo "$as_me: failed program was:" >&5 | |
5485 sed 's/^/| /' conftest.$ac_ext >&5 | |
5486 | |
5487 emacs_cv_personality_linux32=no | |
5488 fi | |
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5490 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | |
5491 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6 | |
5492 | |
5493 if test $emacs_cv_personality_linux32 = yes; then | |
5494 | |
5495 cat >>confdefs.h <<\_ACEOF | |
5496 #define HAVE_PERSONALITY_LINUX32 1 | |
5497 _ACEOF | |
5498 | |
5499 fi | |
5500 | |
5501 | |
5443 for ac_header in term.h | 5502 for ac_header in term.h |
5444 do | 5503 do |
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5446 echo "$as_me:$LINENO: checking for $ac_header" >&5 | 5505 echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 5506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7739 _ACEOF | 7798 _ACEOF |
7740 | 7799 |
7741 fi | 7800 fi |
7742 | 7801 |
7743 | 7802 |
7744 echo "$as_me:$LINENO: checking whether heap start address is randomized" >&5 | |
7745 echo $ECHO_N "checking whether heap start address is randomized... $ECHO_C" >&6 | |
7746 if test x"$ac_cv_header_unistd_h" != x && test x"$ac_cv_header_stdlib_h" != x | |
7747 then | |
7748 if test "$cross_compiling" = yes; then | |
7749 emacs_cv_randomheap='assuming no' | |
7750 else | |
7751 cat >conftest.$ac_ext <<_ACEOF | |
7752 /* confdefs.h. */ | |
7753 _ACEOF | |
7754 cat confdefs.h >>conftest.$ac_ext | |
7755 cat >>conftest.$ac_ext <<_ACEOF | |
7756 /* end confdefs.h. */ | |
7757 #include <stdio.h> | |
7758 #include <unistd.h> | |
7759 #include <stdlib.h> | |
7760 int main (int argc, char *argv[]) | |
7761 { | |
7762 unsigned long old_sbrk = 0; | |
7763 unsigned long this_sbrk = (unsigned long) sbrk(0); | |
7764 int nr = 1; | |
7765 if (argc != 1) { | |
7766 old_sbrk = strtoul (argv[1], 0, 0); | |
7767 nr = atoi (argv[2])+1; | |
7768 } | |
7769 if (argc == 1 || (old_sbrk == this_sbrk && nr < 3)) | |
7770 { | |
7771 char buf1[32], buf2[32]; | |
7772 sprintf (buf1, "%lu", this_sbrk); | |
7773 sprintf (buf2, "%d", nr); | |
7774 execl (argv[0], argv[0], buf1, buf2, 0); | |
7775 exit (-1); | |
7776 } | |
7777 exit (this_sbrk == old_sbrk); | |
7778 } | |
7779 _ACEOF | |
7780 rm -f conftest$ac_exeext | |
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7782 (eval $ac_link) 2>&5 | |
7783 ac_status=$? | |
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7787 (eval $ac_try) 2>&5 | |
7788 ac_status=$? | |
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7790 (exit $ac_status); }; }; then | |
7791 emacs_cv_randomheap=yes | |
7792 else | |
7793 echo "$as_me: program exited with status $ac_status" >&5 | |
7794 echo "$as_me: failed program was:" >&5 | |
7795 sed 's/^/| /' conftest.$ac_ext >&5 | |
7796 | |
7797 ( exit $ac_status ) | |
7798 emacs_cv_randomheap=no | |
7799 fi | |
7800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7801 fi | |
7802 else | |
7803 emacs_cv_randomheap='assuming no' | |
7804 fi | |
7805 echo "$as_me:$LINENO: result: $emacs_cv_randomheap" >&5 | |
7806 echo "${ECHO_T}$emacs_cv_randomheap" >&6 | |
7807 | |
7808 if test "$emacs_cv_randomheap" = yes; then | |
7809 # Extract the first word of "setarch", so it can be a program name with args. | |
7810 set dummy setarch; ac_word=$2 | |
7811 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7813 if test "${ac_cv_path_SETARCH+set}" = set; then | |
7814 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7815 else | |
7816 case $SETARCH in | |
7817 [\\/]* | ?:[\\/]*) | |
7818 ac_cv_path_SETARCH="$SETARCH" # Let the user override the test with a path. | |
7819 ;; | |
7820 *) | |
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7822 for as_dir in $PATH | |
7823 do | |
7824 IFS=$as_save_IFS | |
7825 test -z "$as_dir" && as_dir=. | |
7826 for ac_exec_ext in '' $ac_executable_extensions; do | |
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7828 ac_cv_path_SETARCH="$as_dir/$ac_word$ac_exec_ext" | |
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7830 break 2 | |
7831 fi | |
7832 done | |
7833 done | |
7834 | |
7835 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH="no" | |
7836 ;; | |
7837 esac | |
7838 fi | |
7839 SETARCH=$ac_cv_path_SETARCH | |
7840 | |
7841 if test -n "$SETARCH"; then | |
7842 echo "$as_me:$LINENO: result: $SETARCH" >&5 | |
7843 echo "${ECHO_T}$SETARCH" >&6 | |
7844 else | |
7845 echo "$as_me:$LINENO: result: no" >&5 | |
7846 echo "${ECHO_T}no" >&6 | |
7847 fi | |
7848 | |
7849 | |
7850 if test "$SETARCH" != no && test "$machine" = "intel386"; then | |
7851 | |
7852 cat >>confdefs.h <<\_ACEOF | |
7853 #define HAVE_RANDOM_HEAPSTART 1 | |
7854 _ACEOF | |
7855 | |
7856 else | |
7857 emacs_cv_randomheap=warn | |
7858 fi | |
7859 fi | |
7860 | 7803 |
7861 | 7804 |
7862 | 7805 |
7863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 7806 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
7864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | 7807 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
22289 s,@RANLIB@,$RANLIB,;t t | 22232 s,@RANLIB@,$RANLIB,;t t |
22290 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 22233 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
22291 s,@INSTALL_INFO@,$INSTALL_INFO,;t t | 22234 s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
22292 s,@EGREP@,$EGREP,;t t | 22235 s,@EGREP@,$EGREP,;t t |
22293 s,@LIBSOUND@,$LIBSOUND,;t t | 22236 s,@LIBSOUND@,$LIBSOUND,;t t |
22294 s,@SETARCH@,$SETARCH,;t t | |
22295 s,@SET_MAKE@,$SET_MAKE,;t t | 22237 s,@SET_MAKE@,$SET_MAKE,;t t |
22296 s,@PKG_CONFIG@,$PKG_CONFIG,;t t | 22238 s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
22297 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | 22239 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
22298 s,@GTK_LIBS@,$GTK_LIBS,;t t | 22240 s,@GTK_LIBS@,$GTK_LIBS,;t t |
22299 s,@ALLOCA@,$ALLOCA,;t t | 22241 s,@ALLOCA@,$ALLOCA,;t t |