comparison configure @ 83550:17e0dd217877

Merged from emacs@sv.gnu.org. Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-536 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-537 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-538 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-539 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-540 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-541 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-542 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-543 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-544 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-545 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-546 Update from erc--emacs--22 * emacs@sv.gnu.org/emacs--devo--0--patch-547 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-548 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-549 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-550 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-551 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-552 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-553 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-554 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-555 erc-iswitchb: Temporarily enable iswitchb mode * emacs@sv.gnu.org/emacs--devo--0--patch-556 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-557 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-558 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-559 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-560 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-561 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-562 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-563 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-564 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-565 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-566 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-567 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-568 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-569 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-570 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-571 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-572 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-573 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-574 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-575 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-576 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-577 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-578 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-579 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-580 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-581 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-582 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-583 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-584 Fix admin/quick-install-emacs to work with recent versions of autoconf * emacs@sv.gnu.org/gnus--rel--5.10--patch-171 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-172 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-173 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-174 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-175 Update from CVS: lisp/legacy-gnus-agent.el: Add Copyright notice. * emacs@sv.gnu.org/gnus--rel--5.10--patch-176 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-177 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-178 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-179 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-180 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-181 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-182 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-183 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-184 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-185 Merge from emacs--devo--0 git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-590
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 01 Jan 2007 17:38:32 +0000
parents c71725faff1a c633c56c8543
children b8d9a391daf3
comparison
equal deleted inserted replaced
83549:8d80de0a1ac6 83550:17e0dd217877
681 GZIP_PROG 681 GZIP_PROG
682 LIBSOUND 682 LIBSOUND
683 PKG_CONFIG 683 PKG_CONFIG
684 ALSA_CFLAGS 684 ALSA_CFLAGS
685 ALSA_LIBS 685 ALSA_LIBS
686
686 CFLAGS_SOUND 687 CFLAGS_SOUND
687 SET_MAKE 688 SET_MAKE
688 XMKMF 689 XMKMF
689 GTK_CFLAGS 690 GTK_CFLAGS
690 GTK_LIBS 691 GTK_LIBS
2221 alpha*-*-netbsd*) machine=alpha ;; 2222 alpha*-*-netbsd*) machine=alpha ;;
2222 i[3456]86-*-netbsd*) machine=intel386 ;; 2223 i[3456]86-*-netbsd*) machine=intel386 ;;
2223 m68k-*-netbsd*) 2224 m68k-*-netbsd*)
2224 # This is somewhat bogus. 2225 # This is somewhat bogus.
2225 machine=hp9000s300 ;; 2226 machine=hp9000s300 ;;
2226 powerpc-apple-netbsd*) machine=macppc ;;
2227 mips-*-netbsd*) machine=pmax ;; 2227 mips-*-netbsd*) machine=pmax ;;
2228 mipsel-*-netbsd*) machine=pmax ;; 2228 mipsel-*-netbsd*) machine=pmax ;;
2229 mipseb-*-netbsd*) machine=pmax ;; 2229 mipseb-*-netbsd*) machine=pmax ;;
2230 ns32k-*-netbsd*) machine=ns32000 ;; 2230 ns32k-*-netbsd*) machine=ns32000 ;;
2231 powerpc-*-netbsd*) machine=macppc ;; 2231 powerpc-*-netbsd*) machine=macppc ;;
2232 sparc*-*-netbsd*) machine=sparc ;; 2232 sparc*-*-netbsd*) machine=sparc ;;
2233 vax-*-netbsd*) machine=vax ;; 2233 vax-*-netbsd*) machine=vax ;;
2234 arm-*-netbsd*) machine=arm ;; 2234 arm-*-netbsd*) machine=arm ;;
2235 x86_64-*-netbsd*) machine=amdx86-64 ;;
2236 hppa-*-netbsd*) machine=hp800 ;;
2237 shle-*-netbsd*) machine=sh3el ;;
2235 esac 2238 esac
2236 ;; 2239 ;;
2237 2240
2238 ## OpenBSD ports 2241 ## OpenBSD ports
2239 *-*-openbsd* ) 2242 *-*-openbsd* )
2912 m68*-sunos1* ) machine=sun1 ;; 2915 m68*-sunos1* ) machine=sun1 ;;
2913 m68*-sunos2* ) machine=sun2 ;; 2916 m68*-sunos2* ) machine=sun2 ;;
2914 m68* ) machine=sun3 ;; 2917 m68* ) machine=sun3 ;;
2915 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; 2918 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2916 i[3456]86-*-* ) machine=intel386 ;; 2919 i[3456]86-*-* ) machine=intel386 ;;
2920 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2917 powerpcle* ) machine=powerpcle ;; 2921 powerpcle* ) machine=powerpcle ;;
2918 powerpc* | rs6000* ) machine=ibmrs6000 ;; 2922 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2919 sparc* ) machine=sparc ;; 2923 sparc* ) machine=sparc ;;
2920 * ) unported=yes ;; 2924 * ) unported=yes ;;
2921 esac 2925 esac
6352 else 6356 else
6353 HAVE_ALSA=no 6357 HAVE_ALSA=no
6354 fi 6358 fi
6355 6359
6356 if test $HAVE_ALSA = yes; then 6360 if test $HAVE_ALSA = yes; then
6361 SAVE_CFLAGS="$CFLAGS"
6362 SAVE_LDFLAGS="$LDFLAGS"
6363 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6364 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <asoundlib.h>
6372 int
6373 main ()
6374 {
6375 snd_lib_error_set_handler (0);
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
6397 emacs_alsa_normal=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 emacs_alsa_normal=no
6403 fi
6404
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 if test "$emacs_alsa_normal" != yes; then
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <alsa/asoundlib.h>
6414 int
6415 main ()
6416 {
6417 snd_lib_error_set_handler (0);
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 emacs_alsa_subdir=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 emacs_alsa_subdir=no
6445 fi
6446
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 if test "$emacs_alsa_subdir" != yes; then
6449 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6450 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6451 { (exit 1); exit 1; }; }
6452 fi
6453 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6454 fi
6455
6456 CFLAGS="$SAVE_CFLAGS"
6457 LDFLAGS="$SAVE_LDFLAGS"
6357 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6458 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6358 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6459 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6359 6460
6360 cat >>confdefs.h <<\_ACEOF 6461 cat >>confdefs.h <<\_ACEOF
6361 #define HAVE_ALSA 1 6462 #define HAVE_ALSA 1
6362 _ACEOF 6463 _ACEOF
6464
6363 6465
6364 fi 6466 fi
6365 6467
6366 fi 6468 fi
6367 6469
10802 echo "${ECHO_T}before 5" >&6; } 10904 echo "${ECHO_T}before 5" >&6; }
10803 fi 10905 fi
10804 fi 10906 fi
10805 10907
10806 HAVE_GTK=no 10908 HAVE_GTK=no
10909 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10910 USE_X_TOOLKIT=none
10911 fi
10807 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then 10912 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10808 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then 10913 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10809 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 10914 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10810 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} 10915 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10811 { (exit 1); exit 1; }; }; 10916 { (exit 1); exit 1; }; };
10922 11027
10923 11028
10924 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 11029 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10925 CFLAGS="$CFLAGS $GTK_CFLAGS" 11030 CFLAGS="$CFLAGS $GTK_CFLAGS"
10926 LIBS="$GTK_LIBS $LIBS" 11031 LIBS="$GTK_LIBS $LIBS"
11032 GTK_COMPILES=no
11033
11034 for ac_func in gtk_main
11035 do
11036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050 #define $ac_func innocuous_$ac_func
11051
11052 /* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11056
11057 #ifdef __STDC__
11058 # include <limits.h>
11059 #else
11060 # include <assert.h>
11061 #endif
11062
11063 #undef $ac_func
11064
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char $ac_func ();
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11076 choke me
11077 #endif
11078
11079 int
11080 main ()
11081 {
11082 return $ac_func ();
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (ac_try="$ac_link"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092 esac
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext &&
11104 $as_test_x conftest$ac_exeext; then
11105 eval "$as_ac_var=yes"
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 eval "$as_ac_var=no"
11111 fi
11112
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11115 fi
11116 ac_res=`eval echo '${'$as_ac_var'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122 _ACEOF
11123 GTK_COMPILES=yes
11124 fi
11125 done
11126
11127 if test "${GTK_COMPILES}" != "yes"; then
11128 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11129 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11130 { (exit 1); exit 1; }; };
11131 fi
11132
10927 HAVE_GTK=yes 11133 HAVE_GTK=yes
10928 11134
10929 cat >>confdefs.h <<\_ACEOF 11135 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_GTK 1 11136 #define HAVE_GTK 1
10931 _ACEOF 11137 _ACEOF
14632 14838
14633 14839
14634 14840
14635 14841
14636 14842
14843
14637 for ac_func in gethostname getdomainname dup2 \ 14844 for ac_func in gethostname getdomainname dup2 \
14638 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 14845 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14639 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 14846 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14640 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 14847 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14641 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ 14848 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14642 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 14849 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14643 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 14850 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14644 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ 14851 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14645 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign 14852 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14646 do 14853 do
14647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14648 { echo "$as_me:$LINENO: checking for $ac_func" >&5 14855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17241 /* confdefs.h. */ 17448 /* confdefs.h. */
17242 _ACEOF 17449 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext 17450 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF 17451 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */ 17452 /* end confdefs.h. */
17246 #include <stdio.h> 17453 #include <sys/types.h> /* for off_t */
17454 #include <stdio.h>
17247 int 17455 int
17248 main () 17456 main ()
17249 { 17457 {
17250 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); 17458 int (*fp) (FILE *, off_t, int) = fseeko;
17459 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17251 ; 17460 ;
17252 return 0; 17461 return 0;
17253 } 17462 }
17254 _ACEOF 17463 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext 17464 rm -f conftest.$ac_objext conftest$ac_exeext
17285 _ACEOF 17494 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext 17495 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF 17496 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */ 17497 /* end confdefs.h. */
17289 #define _LARGEFILE_SOURCE 1 17498 #define _LARGEFILE_SOURCE 1
17290 #include <stdio.h> 17499 #include <sys/types.h> /* for off_t */
17500 #include <stdio.h>
17291 int 17501 int
17292 main () 17502 main ()
17293 { 17503 {
17294 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); 17504 int (*fp) (FILE *, off_t, int) = fseeko;
17505 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17295 ; 17506 ;
17296 return 0; 17507 return 0;
17297 } 17508 }
17298 _ACEOF 17509 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext 17510 rm -f conftest.$ac_objext conftest$ac_exeext
20831 #define GETTIMEOFDAY_ONE_ARGUMENT 1 21042 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20832 _ACEOF 21043 _ACEOF
20833 21044
20834 fi 21045 fi
20835 fi 21046 fi
20836 fi
20837
20838 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20839 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20840 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20841 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <sys/types.h>
20851 #include <$ac_cv_struct_tm>
20852
20853
20854 int
20855 main ()
20856 {
20857 static struct tm ac_aggr;
20858 if (ac_aggr.tm_zone)
20859 return 0;
20860 ;
20861 return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest.$ac_objext; then
20881 ac_cv_member_struct_tm_tm_zone=yes
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <sys/types.h>
20893 #include <$ac_cv_struct_tm>
20894
20895
20896 int
20897 main ()
20898 {
20899 static struct tm ac_aggr;
20900 if (sizeof ac_aggr.tm_zone)
20901 return 0;
20902 ;
20903 return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (ac_try="$ac_compile"
20908 case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_compile") 2>conftest.er1
20914 ac_status=$?
20915 grep -v '^ *+' conftest.er1 >conftest.err
20916 rm -f conftest.er1
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && {
20920 test -z "$ac_c_werror_flag" ||
20921 test ! -s conftest.err
20922 } && test -s conftest.$ac_objext; then
20923 ac_cv_member_struct_tm_tm_zone=yes
20924 else
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 ac_cv_member_struct_tm_tm_zone=no
20929 fi
20930
20931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 fi
20936 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20937 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20938 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20939
20940 cat >>confdefs.h <<_ACEOF
20941 #define HAVE_STRUCT_TM_TM_ZONE 1
20942 _ACEOF
20943
20944
20945 fi
20946
20947 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20948
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_TM_ZONE 1
20951 _ACEOF
20952
20953 else
20954 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20955 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20956 if test "${ac_cv_have_decl_tzname+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h. */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 #include <time.h>
20966
20967 int
20968 main ()
20969 {
20970 #ifndef tzname
20971 (void) tzname;
20972 #endif
20973
20974 ;
20975 return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_compile") 2>conftest.er1
20986 ac_status=$?
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest.$ac_objext; then
20995 ac_cv_have_decl_tzname=yes
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 ac_cv_have_decl_tzname=no
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 fi
21005 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21006 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21007 if test $ac_cv_have_decl_tzname = yes; then
21008
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_DECL_TZNAME 1
21011 _ACEOF
21012
21013
21014 else
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_DECL_TZNAME 0
21017 _ACEOF
21018
21019
21020 fi
21021
21022
21023 { echo "$as_me:$LINENO: checking for tzname" >&5
21024 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21025 if test "${ac_cv_var_tzname+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 #include <time.h>
21035 #if !HAVE_DECL_TZNAME
21036 extern char *tzname[];
21037 #endif
21038
21039 int
21040 main ()
21041 {
21042 return tzname[0][0];
21043 ;
21044 return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_link") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest$ac_exeext &&
21064 $as_test_x conftest$ac_exeext; then
21065 ac_cv_var_tzname=yes
21066 else
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ac_cv_var_tzname=no
21071 fi
21072
21073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21074 conftest$ac_exeext conftest.$ac_ext
21075 fi
21076 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21077 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21078 if test $ac_cv_var_tzname = yes; then
21079
21080 cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_TZNAME 1
21082 _ACEOF
21083
21084 fi
21085 fi
21086
21087
21088 if test "$ac_cv_func_gettimeofday" = yes; then
21089 { echo "$as_me:$LINENO: checking for struct timezone" >&5
21090 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
21091 if test "${emacs_cv_struct_timezone+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 cat >conftest.$ac_ext <<_ACEOF
21095 /* confdefs.h. */
21096 _ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21100 #include <sys/time.h>
21101 int
21102 main ()
21103 {
21104 struct timezone tz;
21105 ;
21106 return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21117 ac_status=$?
21118 grep -v '^ *+' conftest.er1 >conftest.err
21119 rm -f conftest.er1
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && {
21123 test -z "$ac_c_werror_flag" ||
21124 test ! -s conftest.err
21125 } && test -s conftest.$ac_objext; then
21126 if test "$cross_compiling" = yes; then
21127 emacs_cv_struct_timezone=yes
21128 else
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h. */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135
21136 #ifdef TIME_WITH_SYS_TIME
21137 #include <sys/time.h>
21138 #include <time.h>
21139 #else
21140 #ifdef HAVE_SYS_TIME_H
21141 #include <sys/time.h>
21142 #else
21143 #include <time.h>
21144 #endif
21145 #endif
21146 main () {
21147 struct timeval time;
21148 struct timezone dummy;
21149 exit (gettimeofday (&time, &dummy));
21150 }
21151 _ACEOF
21152 rm -f conftest$ac_exeext
21153 if { (ac_try="$ac_link"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_link") 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 emacs_cv_struct_timezone=yes
21173 else
21174 echo "$as_me: program exited with status $ac_status" >&5
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21177
21178 ( exit $ac_status )
21179 emacs_cv_struct_timezone=no
21180 fi
21181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21182 fi
21183
21184
21185 else
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 emacs_cv_struct_timezone=no
21190 fi
21191
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193 fi
21194 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21195 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6; }
21196 fi 21047 fi
21197 21048
21198 ok_so_far=yes 21049 ok_so_far=yes
21199 { echo "$as_me:$LINENO: checking for socket" >&5 21050 { echo "$as_me:$LINENO: checking for socket" >&5
21200 echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 21051 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }