aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2003-11-16 16:09:07 +0000
committerJan Djärv2003-11-16 16:09:07 +0000
commit57669b57fca39a20c2bdf20a32bff6ab2e999f00 (patch)
tree0484e16f553200ad8aaa6ed7ea048843d596a379
parenta32e9bfd0009ed0d78a6de7932d361555a0ec361 (diff)
downloademacs-57669b57fca39a20c2bdf20a32bff6ab2e999f00.tar.gz
emacs-57669b57fca39a20c2bdf20a32bff6ab2e999f00.zip
* configure.in (HAVE_GTK_MULTIDISPLAY): Check if GTK can handle
multiple displays. Regenerate configure.
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure122
-rw-r--r--configure.in13
3 files changed, 126 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index da09162e00c..2abd179f5ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12003-11-16 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * configure.in (HAVE_GTK_MULTIDISPLAY): Check if GTK can handle
4 multiple displays.
5
12003-09-23 Dave Love <fx@gnu.org> 62003-09-23 Dave Love <fx@gnu.org>
2 7
3 * configure.in: Check members of struct ifreq. 8 * configure.in: Check members of struct ifreq.
diff --git a/configure b/configure
index 686bbfe7ae7..20ba19f4c86 100755
--- a/configure
+++ b/configure
@@ -950,7 +950,7 @@ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
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
955fi 955fi
956 956
@@ -1147,7 +1147,7 @@ _ASBOX
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
@@ -3420,7 +3420,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
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 ();' \
@@ -3434,8 +3435,8 @@ _ACEOF
3434cat confdefs.h >>conftest.$ac_ext 3435cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF 3436cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */ 3437/* end confdefs.h. */
3437$ac_declaration
3438#include <stdlib.h> 3438#include <stdlib.h>
3439$ac_declaration
3439int 3440int
3440main () 3441main ()
3441{ 3442{
@@ -4748,7 +4749,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
4748( exit $ac_status ) 4749( exit $ac_status )
4749ac_cv_header_stdc=no 4750ac_cv_header_stdc=no
4750fi 4751fi
4751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4752rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4752fi 4753fi
4753fi 4754fi
4754fi 4755fi
@@ -5401,7 +5402,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5401( exit $ac_status ) 5402( exit $ac_status )
5402ac_cv_header_stdc=no 5403ac_cv_header_stdc=no
5403fi 5404fi
5404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5405rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5405fi 5406fi
5406fi 5407fi
5407fi 5408fi
@@ -7985,7 +7986,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
7985( exit $ac_status ) 7986( exit $ac_status )
7986ac_cv_func_mmap_fixed_mapped=no 7987ac_cv_func_mmap_fixed_mapped=no
7987fi 7988fi
7988rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7989rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7989fi 7990fi
7990fi 7991fi
7991echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 7992echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
@@ -8764,6 +8765,8 @@ echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjus
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
8769cat >>confdefs.h <<\_ACEOF 8772cat >>confdefs.h <<\_ACEOF
@@ -8773,6 +8776,99 @@ _ACEOF
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
8782for ac_func in gdk_display_open
8783do
8784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785echo "$as_me:$LINENO: checking for $ac_func" >&5
8786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789else
8790 cat >conftest.$ac_ext <<_ACEOF
8791#line $LINENO "configure"
8792/* confdefs.h. */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>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
8808extern "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. */
8813char $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)
8818choke me
8819#else
8820char (*f) () = $ac_func;
8821#endif
8822#ifdef __cplusplus
8823}
8824#endif
8825
8826int
8827main ()
8828{
8829return f != $ac_func;
8830 ;
8831 return 0;
8832}
8833_ACEOF
8834rm -f conftest.$ac_objext conftest$ac_exeext
8835if { (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"
8847else
8848 echo "$as_me: failed program was:" >&5
8849sed 's/^/| /' conftest.$ac_ext >&5
8850
8851eval "$as_ac_var=no"
8852fi
8853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8854fi
8855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8857if 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
8862fi
8863done
8864
8865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8866
8867cat >>confdefs.h <<\_ACEOF
8868#define HAVE_GTK_MULTIDISPLAY 1
8869_ACEOF
8870
8871 fi
8776fi 8872fi
8777 8873
8778if test x"${USE_X_TOOLKIT}" = xmaybe; then 8874if test x"${USE_X_TOOLKIT}" = xmaybe; then
@@ -11337,7 +11433,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
11337( exit $ac_status ) 11433( exit $ac_status )
11338ac_cv_c_stack_direction=-1 11434ac_cv_c_stack_direction=-1
11339fi 11435fi
11340rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11436rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11341fi 11437fi
11342fi 11438fi
11343echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 11439echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
@@ -12537,7 +12633,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
12537( exit $ac_status ) 12633( exit $ac_status )
12538ac_cv_func_working_mktime=no 12634ac_cv_func_working_mktime=no
12539fi 12635fi
12540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12636rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12541fi 12637fi
12542fi 12638fi
12543echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 12639echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
@@ -17136,7 +17232,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17136( exit $ac_status ) 17232( exit $ac_status )
17137emacs_cv_localtime_cache=yes 17233emacs_cv_localtime_cache=yes
17138fi 17234fi
17139rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17235rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17140fi 17236fi
17141else 17237else
17142 # If we lack tzset, report that localtime does not cache TZ, 17238 # If we lack tzset, report that localtime does not cache TZ,
@@ -17550,7 +17646,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17550( exit $ac_status ) 17646( exit $ac_status )
17551emacs_cv_struct_timezone=no 17647emacs_cv_struct_timezone=no
17552fi 17648fi
17553rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17649rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17554fi 17650fi
17555else 17651else
17556 echo "$as_me: failed program was:" >&5 17652 echo "$as_me: failed program was:" >&5
@@ -18422,7 +18518,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18422( exit $ac_status ) 18518( exit $ac_status )
18423ac_cv_func_fork_works=no 18519ac_cv_func_fork_works=no
18424fi 18520fi
18425rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18521rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18426fi 18522fi
18427fi 18523fi
18428echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 18524echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
@@ -18577,7 +18673,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18577( exit $ac_status ) 18673( exit $ac_status )
18578ac_cv_func_vfork_works=no 18674ac_cv_func_vfork_works=no
18579fi 18675fi
18580rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18676rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18581fi 18677fi
18582fi 18678fi
18583echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 18679echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
diff --git a/configure.in b/configure.in
index 3add836efc4..5a3c296d57e 100644
--- a/configure.in
+++ b/configure.in
@@ -1915,13 +1915,24 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
1915 AC_SUBST(GTK_CFLAGS) 1915 AC_SUBST(GTK_CFLAGS)
1916 AC_SUBST(GTK_LIBS) 1916 AC_SUBST(GTK_LIBS)
1917 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 1917 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
1918 CFLAGS="$CFLAGS $GTK_CFLAGS"
1919 LIBS="$GTK_LIBS $LIBS"
1918 HAVE_GTK=yes 1920 HAVE_GTK=yes
1919 AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.]) 1921 AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.])
1920 USE_X_TOOLKIT=none 1922 USE_X_TOOLKIT=none
1921 1923
1922 dnl GTK scrollbars resembles toolkit scrollbars alot, so to avoid 1924 dnl GTK scrollbars resemble toolkit scrollbars a lot, so to avoid
1923 dnl a lot if #ifdef:s, say we have toolkit scrollbars. 1925 dnl a lot if #ifdef:s, say we have toolkit scrollbars.
1924 with_toolkit_scroll_bars=yes 1926 with_toolkit_scroll_bars=yes
1927
1928 dnl Check if we can use multiple displays with this GTK version.
1929 dnl If gdk_display_open exists, assume all others are there also.
1930 HAVE_GTK_MULTIDISPLAY=no
1931 AC_CHECK_FUNCS(gdk_display_open, HAVE_GTK_MULTIDISPLAY=yes)
1932 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
1933 AC_DEFINE(HAVE_GTK_MULTIDISPLAY, 1,
1934 [Define to 1 if GTK can handle more than one display.])
1935 fi
1925fi 1936fi
1926 1937
1927dnl Do not put whitespace before the #include statements below. 1938dnl Do not put whitespace before the #include statements below.