comparison configure @ 83410:fea405284011

Prevent core dumps with GTK by disabling secondary X connections there. * src/xterm.c (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary X connections. * configure.in (HAVE_GTK_MULTIDISPLAY): Disable test, unconditionally undefine. * configure: Regenerate. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-450
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 12 Dec 2005 03:15:52 +0000
parents 693e794b57bf
children 55e22205ba88
comparison
equal deleted inserted replaced
83409:be1f74bffc1d 83410:fea405284011
9962 9962
9963 if test "$with_toolkit_scroll_bars" != no; then 9963 if test "$with_toolkit_scroll_bars" != no; then
9964 with_toolkit_scroll_bars=yes 9964 with_toolkit_scroll_bars=yes
9965 fi 9965 fi
9966 9966
9967 HAVE_GTK_MULTIDISPLAY=no 9967 HAVE_GTK_MULTIDISPLAY=no
9968 9968
9969 for ac_func in gdk_display_open
9970 do
9971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 echo "$as_me:$LINENO: checking for $ac_func" >&5
9973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_var+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h. */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9985 #define $ac_func innocuous_$ac_func
9986
9987 /* System header to define __stub macros and hopefully few prototypes,
9988 which can conflict with char $ac_func (); below.
9989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9990 <limits.h> exists even on freestanding compilers. */
9991
9992 #ifdef __STDC__
9993 # include <limits.h>
9994 #else
9995 # include <assert.h>
9996 #endif
9997
9998 #undef $ac_func
9999
10000 /* Override any gcc2 internal prototype to avoid an error. */
10001 #ifdef __cplusplus
10002 extern "C"
10003 {
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007 char $ac_func ();
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10012 choke me
10013 #else
10014 char (*f) () = $ac_func;
10015 #endif
10016 #ifdef __cplusplus
10017 }
10018 #endif
10019
10020 int
10021 main ()
10022 {
10023 return f != $ac_func;
10024 ;
10025 return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 eval "$as_ac_var=yes"
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 eval "$as_ac_var=no"
10055 fi
10056 rm -f conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 fi
10059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10061 if test `eval echo '${'$as_ac_var'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10064 _ACEOF
10065 HAVE_GTK_MULTIDISPLAY=yes
10066 fi
10067 done
10068
10069 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10070
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_GTK_MULTIDISPLAY 1
10073 _ACEOF
10074
10075 fi
10076 HAVE_GTK_FILE_SELECTION=no 9969 HAVE_GTK_FILE_SELECTION=no
10077 9970
10078 for ac_func in gtk_file_selection_new 9971 for ac_func in gtk_file_selection_new
10079 do 9972 do
10080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`