comparison configure @ 53071:aa5d7d8f5736

* configure.in (HAVE_GTK_MULTIDISPLAY): Check if GTK can handle multiple displays. Regenerate configure.
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 16 Nov 2003 16:09:07 +0000
parents e560ea7636d6
children a919198c0f2f
comparison
equal deleted inserted replaced
53070:2a9957bfae3f 53071:aa5d7d8f5736
948 echo 948 echo
949 $ac_configure --help 949 $ac_configure --help
950 else 950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi 952 fi
953 cd "$ac_popdir" 953 cd $ac_popdir
954 done 954 done
955 fi 955 fi
956 956
957 test -n "$ac_init_help" && exit 0 957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then 958 if $ac_init_version; then
1145 fi 1145 fi
1146 test "$ac_signal" != 0 && 1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal" 1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status" 1148 echo "$as_me: exit $exit_status"
1149 } >&5 1149 } >&5
1150 rm -f core *.core && 1150 rm -f core core.* *.core &&
1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 exit $exit_status 1152 exit $exit_status
1153 ' 0 1153 ' 0
1154 for ac_signal in 1 2 13 15; do 1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
3418 (eval $ac_try) 2>&5 3418 (eval $ac_try) 2>&5
3419 ac_status=$? 3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then 3421 (exit $ac_status); }; }; then
3422 for ac_declaration in \ 3422 for ac_declaration in \
3423 '' \ 3423 ''\
3424 '#include <stdlib.h>' \
3424 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3425 'extern "C" void std::exit (int) throw (); using std::exit;' \
3425 'extern "C" void std::exit (int); using std::exit;' \ 3426 'extern "C" void std::exit (int); using std::exit;' \
3426 'extern "C" void exit (int) throw ();' \ 3427 'extern "C" void exit (int) throw ();' \
3427 'extern "C" void exit (int);' \ 3428 'extern "C" void exit (int);' \
3428 'void exit (int);' 3429 'void exit (int);'
3432 /* confdefs.h. */ 3433 /* confdefs.h. */
3433 _ACEOF 3434 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext 3435 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF 3436 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */ 3437 /* end confdefs.h. */
3438 #include <stdlib.h>
3437 $ac_declaration 3439 $ac_declaration
3438 #include <stdlib.h>
3439 int 3440 int
3440 main () 3441 main ()
3441 { 3442 {
3442 exit (42); 3443 exit (42);
3443 ; 3444 ;
4746 sed 's/^/| /' conftest.$ac_ext >&5 4747 sed 's/^/| /' conftest.$ac_ext >&5
4747 4748
4748 ( exit $ac_status ) 4749 ( exit $ac_status )
4749 ac_cv_header_stdc=no 4750 ac_cv_header_stdc=no
4750 fi 4751 fi
4751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4752 fi 4753 fi
4753 fi 4754 fi
4754 fi 4755 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4756 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4756 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4757 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5399 sed 's/^/| /' conftest.$ac_ext >&5 5400 sed 's/^/| /' conftest.$ac_ext >&5
5400 5401
5401 ( exit $ac_status ) 5402 ( exit $ac_status )
5402 ac_cv_header_stdc=no 5403 ac_cv_header_stdc=no
5403 fi 5404 fi
5404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5405 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5405 fi 5406 fi
5406 fi 5407 fi
5407 fi 5408 fi
5408 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5409 echo "${ECHO_T}$ac_cv_header_stdc" >&6 5410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7983 sed 's/^/| /' conftest.$ac_ext >&5 7984 sed 's/^/| /' conftest.$ac_ext >&5
7984 7985
7985 ( exit $ac_status ) 7986 ( exit $ac_status )
7986 ac_cv_func_mmap_fixed_mapped=no 7987 ac_cv_func_mmap_fixed_mapped=no
7987 fi 7988 fi
7988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7989 fi 7990 fi
7990 fi 7991 fi
7991 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 7992 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 7993 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7993 if test $ac_cv_func_mmap_fixed_mapped = yes; then 7994 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8762 fi 8763 fi
8763 8764
8764 8765
8765 8766
8766 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 8767 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8768 CFLAGS="$CFLAGS $GTK_CFLAGS"
8769 LIBS="$GTK_LIBS $LIBS"
8767 HAVE_GTK=yes 8770 HAVE_GTK=yes
8768 8771
8769 cat >>confdefs.h <<\_ACEOF 8772 cat >>confdefs.h <<\_ACEOF
8770 #define HAVE_GTK 1 8773 #define HAVE_GTK 1
8771 _ACEOF 8774 _ACEOF
8772 8775
8773 USE_X_TOOLKIT=none 8776 USE_X_TOOLKIT=none
8774 8777
8775 with_toolkit_scroll_bars=yes 8778 with_toolkit_scroll_bars=yes
8779
8780 HAVE_GTK_MULTIDISPLAY=no
8781
8782 for ac_func in gdk_display_open
8783 do
8784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785 echo "$as_me:$LINENO: checking for $ac_func" >&5
8786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 cat >conftest.$ac_ext <<_ACEOF
8791 #line $LINENO "configure"
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func (); below.
8799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800 <limits.h> exists even on freestanding compilers. */
8801 #ifdef __STDC__
8802 # include <limits.h>
8803 #else
8804 # include <assert.h>
8805 #endif
8806 /* Override any gcc2 internal prototype to avoid an error. */
8807 #ifdef __cplusplus
8808 extern "C"
8809 {
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char $ac_func ();
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8818 choke me
8819 #else
8820 char (*f) () = $ac_func;
8821 #endif
8822 #ifdef __cplusplus
8823 }
8824 #endif
8825
8826 int
8827 main ()
8828 {
8829 return f != $ac_func;
8830 ;
8831 return 0;
8832 }
8833 _ACEOF
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 eval "$as_ac_var=yes"
8847 else
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 eval "$as_ac_var=no"
8852 fi
8853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8854 fi
8855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8857 if test `eval echo '${'$as_ac_var'}'` = yes; then
8858 cat >>confdefs.h <<_ACEOF
8859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8860 _ACEOF
8861 HAVE_GTK_MULTIDISPLAY=yes
8862 fi
8863 done
8864
8865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8866
8867 cat >>confdefs.h <<\_ACEOF
8868 #define HAVE_GTK_MULTIDISPLAY 1
8869 _ACEOF
8870
8871 fi
8776 fi 8872 fi
8777 8873
8778 if test x"${USE_X_TOOLKIT}" = xmaybe; then 8874 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8779 if test x"${HAVE_X11R5}" = xyes; then 8875 if test x"${HAVE_X11R5}" = xyes; then
8780 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 8876 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5 11431 sed 's/^/| /' conftest.$ac_ext >&5
11336 11432
11337 ( exit $ac_status ) 11433 ( exit $ac_status )
11338 ac_cv_c_stack_direction=-1 11434 ac_cv_c_stack_direction=-1
11339 fi 11435 fi
11340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11436 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11341 fi 11437 fi
11342 fi 11438 fi
11343 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 11439 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11344 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 11440 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11345 11441
12535 sed 's/^/| /' conftest.$ac_ext >&5 12631 sed 's/^/| /' conftest.$ac_ext >&5
12536 12632
12537 ( exit $ac_status ) 12633 ( exit $ac_status )
12538 ac_cv_func_working_mktime=no 12634 ac_cv_func_working_mktime=no
12539 fi 12635 fi
12540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12636 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12541 fi 12637 fi
12542 fi 12638 fi
12543 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 12639 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12544 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 12640 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12545 if test $ac_cv_func_working_mktime = no; then 12641 if test $ac_cv_func_working_mktime = no; then
17134 sed 's/^/| /' conftest.$ac_ext >&5 17230 sed 's/^/| /' conftest.$ac_ext >&5
17135 17231
17136 ( exit $ac_status ) 17232 ( exit $ac_status )
17137 emacs_cv_localtime_cache=yes 17233 emacs_cv_localtime_cache=yes
17138 fi 17234 fi
17139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17235 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17140 fi 17236 fi
17141 else 17237 else
17142 # If we lack tzset, report that localtime does not cache TZ, 17238 # If we lack tzset, report that localtime does not cache TZ,
17143 # since we can't invalidate the cache if we don't have tzset. 17239 # since we can't invalidate the cache if we don't have tzset.
17144 emacs_cv_localtime_cache=no 17240 emacs_cv_localtime_cache=no
17548 sed 's/^/| /' conftest.$ac_ext >&5 17644 sed 's/^/| /' conftest.$ac_ext >&5
17549 17645
17550 ( exit $ac_status ) 17646 ( exit $ac_status )
17551 emacs_cv_struct_timezone=no 17647 emacs_cv_struct_timezone=no
17552 fi 17648 fi
17553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17649 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17554 fi 17650 fi
17555 else 17651 else
17556 echo "$as_me: failed program was:" >&5 17652 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5 17653 sed 's/^/| /' conftest.$ac_ext >&5
17558 17654
18420 sed 's/^/| /' conftest.$ac_ext >&5 18516 sed 's/^/| /' conftest.$ac_ext >&5
18421 18517
18422 ( exit $ac_status ) 18518 ( exit $ac_status )
18423 ac_cv_func_fork_works=no 18519 ac_cv_func_fork_works=no
18424 fi 18520 fi
18425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18521 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18426 fi 18522 fi
18427 fi 18523 fi
18428 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 18524 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18429 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 18525 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18430 18526
18575 sed 's/^/| /' conftest.$ac_ext >&5 18671 sed 's/^/| /' conftest.$ac_ext >&5
18576 18672
18577 ( exit $ac_status ) 18673 ( exit $ac_status )
18578 ac_cv_func_vfork_works=no 18674 ac_cv_func_vfork_works=no
18579 fi 18675 fi
18580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18676 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18581 fi 18677 fi
18582 fi 18678 fi
18583 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 18679 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18584 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 18680 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18585 18681