* dired-x.el (dired-jump, dired-jump-other-window): Add arg
[emacs.git] / configure
blob7435d3d059b2c2981f04c7e37dd4b218cdaa6c86
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
695 GREP
696 EGREP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 RANLIB
701 INSTALL_INFO
702 GZIP_PROG
703 MAKEINFO
704 LD_SWITCH_SYSTEM
705 C_SWITCH_MACHINE
706 C_SWITCH_SYSTEM
707 LIBS_SYSTEM
708 CRT_DIR
709 LIB_MATH
710 START_FILES
711 LIBSOUND
712 PKG_CONFIG
713 ALSA_CFLAGS
714 ALSA_LIBS
715 CFLAGS_SOUND
716 SET_MAKE
717 MKDEPDIR
718 DEPFLAGS
719 XMKMF
720 LD_SWITCH_X_SITE_AUX
721 LD_SWITCH_X_SITE_AUX_RPATH
722 NS_IMPL_GNUSTEP_INC
723 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
724 TEMACS_LDFLAGS2
725 NS_OBJ
726 NS_SUPPORT
727 LIB_STANDARD
728 HAVE_XSERVER
729 GMALLOC_OBJ
730 VMLIMIT_OBJ
731 RSVG_CFLAGS
732 RSVG_LIBS
733 GTK_CFLAGS
734 GTK_LIBS
735 GTK_OBJ
736 DBUS_CFLAGS
737 DBUS_LIBS
738 DBUS_OBJ
739 GCONF_CFLAGS
740 GCONF_LIBS
741 LIBSELINUX_LIBS
742 LIBXTR6
743 LIBXMU
744 FONTCONFIG_CFLAGS
745 FONTCONFIG_LIBS
746 XFT_CFLAGS
747 XFT_LIBS
748 LIBOTF_CFLAGS
749 LIBOTF_LIBS
750 M17N_FLT_CFLAGS
751 M17N_FLT_LIBS
752 FREETYPE_CFLAGS
753 FREETYPE_LIBS
754 LIBXPM
755 LIBJPEG
756 LIBPNG
757 LIBTIFF
758 LIBGIF
759 LIBGPM
760 LIBXSM
761 ALLOCA
762 liblockfile
763 LIBS_MAIL
764 BLESSMAIL_TARGET
765 LIBOBJS
766 NEED_SETGID
767 KMEM_GROUP
768 GETLOADAVG_LIBS
769 GETOPT_H
770 GETOPTOBJS
771 LIBS_TERMCAP
772 TERMCAP_OBJ
773 LIBHESIOD
774 LIBRESOLV
775 COM_ERRLIB
776 CRYPTOLIB
777 KRB5LIB
778 DESLIB
779 KRB4LIB
780 version
781 configuration
782 canonical
783 srcdir
784 lispdir
785 locallisppath
786 lisppath
787 x_default_search_path
788 etcdir
789 archlibdir
790 bitmapdir
791 gamedir
792 gameuser
793 unexec
794 LD_SWITCH_X_SITE
795 C_SWITCH_X_SITE
796 C_SWITCH_X_SYSTEM
797 X_TOOLKIT_TYPE
798 machfile
799 opsysfile
800 ns_appdir
801 ns_appbindir
802 ns_appresdir
803 ns_appsrc
804 GNU_OBJC_CFLAGS
805 OTHER_FILES
806 FONT_OBJ
807 XMENU_OBJ
808 XOBJ
809 WIDGET_OBJ
810 TOOLKIT_LIBW
811 LIBXT_OTHER
812 OLDXMENU_TARGET
813 OLDXMENU
814 LIBXMENU
815 LIBX_OTHER
816 OLDXMENU_DEPS
817 RALLOC_OBJ
818 CYGWIN_OBJ
819 PRE_ALLOC_OBJ
820 POST_ALLOC_OBJ
821 LD_SWITCH_SYSTEM_TEMACS
822 LD_SWITCH_SYSTEM_EXTRA
823 YMF_PASS_LDFLAGS
824 LINKER
825 LIB_GCC
826 MOUSE_SUPPORT
827 TOOLTIP_SUPPORT
828 WINDOW_SUPPORT
829 LTLIBOBJS'
830 ac_subst_files='deps_frag'
831 ac_user_opts='
832 enable_option_checking
833 with_pop
834 with_kerberos
835 with_kerberos5
836 with_hesiod
837 with_mmdf
838 with_mail_unlink
839 with_mailhost
840 with_sound
841 with_sync_input
842 with_x_toolkit
843 with_xpm
844 with_jpeg
845 with_tiff
846 with_gif
847 with_png
848 with_rsvg
849 with_xft
850 with_libotf
851 with_m17n_flt
852 with_toolkit_scroll_bars
853 with_xaw3d
854 with_xim
855 with_ns
856 with_gpm
857 with_dbus
858 with_gconf
859 with_selinux
860 with_makeinfo
861 with_pkg_config_prog
862 with_crt_dir
863 with_gnustep_conf
864 enable_ns_self_contained
865 enable_asserts
866 enable_maintainer_mode
867 enable_locallisppath
868 enable_checking
869 enable_profiling
870 enable_autodepend
871 enable_largefile
872 with_x
874 ac_precious_vars='build_alias
875 host_alias
876 target_alias
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
883 XMKMF'
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
934 ac_prev=
935 ac_dashdash=
936 for ac_option
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
954 ac_dashdash=yes ;;
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
973 --config-cache | -C)
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1273 Try \`$0 --help' for more information." >&2
1274 { (exit 1); exit 1; }; }
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1281 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282 { (exit 1); exit 1; }; }
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 esac
1295 done
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1300 { (exit 1); exit 1; }; }
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1307 { (exit 1); exit 1; }; } ;;
1308 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1331 { (exit 1); exit 1; }; }
1332 done
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1362 { (exit 1); exit 1; }; }
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1365 { (exit 1); exit 1; }; }
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1386 /^X\(\/\/\)$/{
1387 s//\1/
1390 /^X\(\/\).*/{
1391 s//\1/
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1399 else
1400 ac_srcdir_defaulted=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1405 { (exit 1); exit 1; }; }
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1410 { (exit 1); exit 1; }; }
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489 _ACEOF
1491 cat <<\_ACEOF
1493 Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 X features:
1499 --x-includes=DIR X include files are in DIR
1500 --x-libraries=DIR X library files are in DIR
1502 System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 _ACEOF
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1511 esac
1512 cat <<\_ACEOF
1514 Optional Features:
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --disable-ns-self-contained
1519 disable self contained build under NeXTstep
1520 --enable-asserts compile code with asserts enabled
1521 --enable-maintainer-mode
1522 enable make rules and dependencies not useful (and
1523 sometimes confusing) to the casual installer
1524 --enable-locallisppath=PATH
1525 directories Emacs should search for lisp files
1526 specific to this site
1527 --enable-checking[=LIST]
1528 enable expensive run-time checks. With LIST, enable
1529 only specific categories of checks. Categories are:
1530 all,yes,no. Flags are: stringbytes, stringoverrun,
1531 stringfreelist, xmallocoverrun, conslist
1532 --enable-profiling build emacs with profiling support. This might not
1533 work on all platforms
1534 --enable-autodepend automatically generate dependencies to .h-files.
1535 Requires GNU Make and Gcc. Enabled if GNU Make and
1536 Gcc is found
1537 --disable-largefile omit support for large files
1539 Optional Packages:
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --without-pop don't support POP mail retrieval with movemail
1543 --with-kerberos support Kerberos-authenticated POP
1544 --with-kerberos5 support Kerberos version 5 authenticated POP
1545 --with-hesiod support Hesiod to get the POP server host
1546 --with-mmdf support MMDF mailboxes
1547 --with-mail-unlink unlink, rather than empty, mail spool after reading
1548 --with-mailhost=HOSTNAME
1549 string giving default POP mail host
1550 --without-sound don't compile with sound support
1551 --without-sync-input process async input synchronously
1552 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1553 athena, motif, no)
1554 --without-xpm don't compile with XPM image support
1555 --without-jpeg don't compile with JPEG image support
1556 --without-tiff don't compile with TIFF image support
1557 --without-gif don't compile with GIF image support
1558 --without-png don't compile with PNG image support
1559 --without-rsvg don't compile with SVG image support
1560 --without-xft don't use XFT for anti aliased fonts
1561 --without-libotf don't use libotf for OpenType font support
1562 --without-m17n-flt don't use m17n-flt for text shaping
1563 --without-toolkit-scroll-bars
1564 don't use Motif or Xaw3d scroll bars
1565 --without-xaw3d don't use Xaw3d
1566 --without-xim don't use X11 XIM
1567 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1568 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1569 console
1570 --without-dbus don't compile with D-Bus support
1571 --without-gconf don't compile with GConf support
1572 --without-selinux don't compile with SELinux support
1573 --without-makeinfo don't require makeinfo for building manuals
1574 --with-pkg-config-prog=PATH
1575 path to pkg-config for finding GTK and librsvg
1576 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1577 /usr/lib, or /usr/lib64 on some platforms.
1578 --with-gnustep-conf=PATH
1579 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1580 or /etc/GNUstep/GNUstep.conf
1581 --with-x use the X Window System
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 XMKMF Path to xmkmf, Makefile generator for X Window System
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 _ACEOF
1598 ac_status=$?
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 emacs configure 24.0.50
1660 generated by GNU Autoconf 2.62
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667 exit
1669 cat >config.log <<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1673 It was created by emacs $as_me 24.0.50, which was
1674 generated by GNU Autoconf 2.62. Invocation command line was
1676 $ $0 $@
1678 _ACEOF
1679 exec 5>>config.log
1681 cat <<_ASUNAME
1682 ## --------- ##
1683 ## Platform. ##
1684 ## --------- ##
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1696 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1699 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1700 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1701 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703 _ASUNAME
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 $as_echo "PATH: $as_dir"
1711 done
1712 IFS=$as_save_IFS
1714 } >&5
1716 cat >&5 <<_ACEOF
1719 ## ----------- ##
1720 ## Core tests. ##
1721 ## ----------- ##
1723 _ACEOF
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_configure_args=
1732 ac_configure_args0=
1733 ac_configure_args1=
1734 ac_must_keep_next=false
1735 for ac_pass in 1 2
1737 for ac_arg
1739 case $ac_arg in
1740 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1742 | -silent | --silent | --silen | --sile | --sil)
1743 continue ;;
1744 *\'*)
1745 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 esac
1747 case $ac_pass in
1748 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1751 if test $ac_must_keep_next = true; then
1752 ac_must_keep_next=false # Got value, back to normal.
1753 else
1754 case $ac_arg in
1755 *=* | --config-cache | -C | -disable-* | --disable-* \
1756 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1757 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1758 | -with-* | --with-* | -without-* | --without-* | --x)
1759 case "$ac_configure_args0 " in
1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761 esac
1763 -* ) ac_must_keep_next=true ;;
1764 esac
1766 ac_configure_args="$ac_configure_args '$ac_arg'"
1768 esac
1769 done
1770 done
1771 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1772 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log. We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780 # Save into config.log some information that might help in debugging.
1782 echo
1784 cat <<\_ASBOX
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1788 _ASBOX
1789 echo
1790 # The following way of writing the cache mishandles newlines in values,
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in #(
1795 *${as_nl}*)
1796 case $ac_var in #(
1797 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1798 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1799 esac
1800 case $ac_var in #(
1801 _ | IFS | as_nl) ;; #(
1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
1807 (set) 2>&1 |
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1810 sed -n \
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 esac |
1818 sort
1820 echo
1822 cat <<\_ASBOX
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1826 _ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 $as_echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1843 _ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 $as_echo "$ac_var='\''$ac_val'\''"
1852 done | sort
1853 echo
1856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858 ## ----------- ##
1859 ## confdefs.h. ##
1860 ## ----------- ##
1861 _ASBOX
1862 echo
1863 cat confdefs.h
1864 echo
1866 test "$ac_signal" != 0 &&
1867 $as_echo "$as_me: caught signal $ac_signal"
1868 $as_echo "$as_me: exit $exit_status"
1869 } >&5
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 exit $exit_status
1874 for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 done
1877 ac_signal=0
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1882 # Predefined preprocessor variables.
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 _ACEOF
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 _ACEOF
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 _ACEOF
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 _ACEOF
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer an explicitly selected file to automatically selected ones.
1911 ac_site_file1=NONE
1912 ac_site_file2=NONE
1913 if test -n "$CONFIG_SITE"; then
1914 ac_site_file1=$CONFIG_SITE
1915 elif test "x$prefix" != xNONE; then
1916 ac_site_file1=$prefix/share/config.site
1917 ac_site_file2=$prefix/etc/config.site
1918 else
1919 ac_site_file1=$ac_default_prefix/share/config.site
1920 ac_site_file2=$ac_default_prefix/etc/config.site
1922 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1924 test "x$ac_site_file" = xNONE && continue
1925 if test -r "$ac_site_file"; then
1926 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1929 . "$ac_site_file"
1931 done
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 $as_echo "$as_me: loading cache $cache_file" >&6;}
1939 case $cache_file in
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941 *) . "./$cache_file";;
1942 esac
1944 else
1945 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 $as_echo "$as_me: creating cache $cache_file" >&6;}
1947 >$cache_file
1950 ac_header_list="$ac_header_list sys/time.h"
1951 ac_header_list="$ac_header_list unistd.h"
1952 ac_func_list="$ac_func_list alarm"
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1962 set,)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,set)
1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,);;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 # differences in whitespace do not lead to failure.
1974 ac_old_val_w=`echo x $ac_old_val`
1975 ac_new_val_w=`echo x $ac_new_val`
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 ac_cache_corrupted=:
1980 else
1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983 eval $ac_var=\$ac_old_val
1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1989 fi;;
1990 esac
1991 # Pass precious variables to config.status.
1992 if test "$ac_new_set" = set; then
1993 case $ac_new_val in
1994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 *) ac_arg=$ac_var=$ac_new_val ;;
1996 esac
1997 case " $ac_configure_args " in
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1999 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2000 esac
2002 done
2003 if $ac_cache_corrupted; then
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008 { (exit 1); exit 1; }; }
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2046 test "$program_prefix" != NONE &&
2047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2048 # Use a double $ so make ignores it.
2049 test "$program_suffix" != NONE &&
2050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2051 # Double any \ or $.
2052 # By default was `s,x,x', remove it if useless.
2053 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2054 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2057 lispdir='${datadir}/emacs/${version}/lisp'
2058 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2059 '${datadir}/emacs/site-lisp'
2060 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2061 etcdir='${datadir}/emacs/${version}/etc'
2062 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2063 docdir='${datadir}/emacs/${version}/etc'
2064 gamedir='${localstatedir}/games/emacs'
2066 gameuser=games
2071 # Check whether --with-pop was given.
2072 if test "${with_pop+set}" = set; then
2073 withval=$with_pop;
2074 else
2075 with_pop=yes
2078 if test "$with_pop" = yes; then
2079 cat >>confdefs.h <<\_ACEOF
2080 #define MAIL_USE_POP 1
2081 _ACEOF
2087 # Check whether --with-kerberos was given.
2088 if test "${with_kerberos+set}" = set; then
2089 withval=$with_kerberos;
2090 else
2091 with_kerberos=no
2094 if test "$with_kerberos" != no; then
2095 cat >>confdefs.h <<\_ACEOF
2096 #define KERBEROS 1
2097 _ACEOF
2103 # Check whether --with-kerberos5 was given.
2104 if test "${with_kerberos5+set}" = set; then
2105 withval=$with_kerberos5;
2106 else
2107 with_kerberos5=no
2110 if test "${with_kerberos5}" != no; then
2111 if test "${with_kerberos}" = no; then
2112 with_kerberos=yes
2113 cat >>confdefs.h <<\_ACEOF
2114 #define KERBEROS 1
2115 _ACEOF
2119 cat >>confdefs.h <<\_ACEOF
2120 #define KERBEROS5 1
2121 _ACEOF
2126 # Check whether --with-hesiod was given.
2127 if test "${with_hesiod+set}" = set; then
2128 withval=$with_hesiod;
2129 else
2130 with_hesiod=no
2133 if test "$with_hesiod" != no; then
2135 cat >>confdefs.h <<\_ACEOF
2136 #define HESIOD 1
2137 _ACEOF
2142 # Check whether --with-mmdf was given.
2143 if test "${with_mmdf+set}" = set; then
2144 withval=$with_mmdf;
2145 else
2146 with_mmdf=no
2149 if test "$with_mmdf" != no; then
2151 cat >>confdefs.h <<\_ACEOF
2152 #define MAIL_USE_MMDF 1
2153 _ACEOF
2158 # Check whether --with-mail-unlink was given.
2159 if test "${with_mail_unlink+set}" = set; then
2160 withval=$with_mail_unlink;
2161 else
2162 with_mail_unlink=no
2165 if test "$with_mail_unlink" != no; then
2167 cat >>confdefs.h <<\_ACEOF
2168 #define MAIL_UNLINK_SPOOL 1
2169 _ACEOF
2174 # Check whether --with-mailhost was given.
2175 if test "${with_mailhost+set}" = set; then
2176 withval=$with_mailhost;
2177 cat >>confdefs.h <<_ACEOF
2178 #define MAILHOST "$withval"
2179 _ACEOF
2185 # Check whether --with-sound was given.
2186 if test "${with_sound+set}" = set; then
2187 withval=$with_sound;
2188 else
2189 with_sound=yes
2194 # Check whether --with-sync-input was given.
2195 if test "${with_sync_input+set}" = set; then
2196 withval=$with_sync_input;
2197 else
2198 with_sync_input=yes
2201 if test "$with_sync_input" = yes; then
2203 cat >>confdefs.h <<\_ACEOF
2204 #define SYNC_INPUT 1
2205 _ACEOF
2210 # Check whether --with-x-toolkit was given.
2211 if test "${with_x_toolkit+set}" = set; then
2212 withval=$with_x_toolkit; case "${withval}" in
2213 y | ye | yes ) val=gtk ;;
2214 n | no ) val=no ;;
2215 l | lu | luc | luci | lucid ) val=lucid ;;
2216 a | at | ath | athe | athen | athena ) val=athena ;;
2217 m | mo | mot | moti | motif ) val=motif ;;
2218 g | gt | gtk ) val=gtk ;;
2220 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2221 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2222 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2223 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2224 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2225 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2226 { (exit 1); exit 1; }; }
2228 esac
2229 with_x_toolkit=$val
2235 # Check whether --with-xpm was given.
2236 if test "${with_xpm+set}" = set; then
2237 withval=$with_xpm;
2238 else
2239 with_xpm=yes
2243 # Check whether --with-jpeg was given.
2244 if test "${with_jpeg+set}" = set; then
2245 withval=$with_jpeg;
2246 else
2247 with_jpeg=yes
2251 # Check whether --with-tiff was given.
2252 if test "${with_tiff+set}" = set; then
2253 withval=$with_tiff;
2254 else
2255 with_tiff=yes
2259 # Check whether --with-gif was given.
2260 if test "${with_gif+set}" = set; then
2261 withval=$with_gif;
2262 else
2263 with_gif=yes
2267 # Check whether --with-png was given.
2268 if test "${with_png+set}" = set; then
2269 withval=$with_png;
2270 else
2271 with_png=yes
2275 # Check whether --with-rsvg was given.
2276 if test "${with_rsvg+set}" = set; then
2277 withval=$with_rsvg;
2278 else
2279 with_rsvg=yes
2284 # Check whether --with-xft was given.
2285 if test "${with_xft+set}" = set; then
2286 withval=$with_xft;
2287 else
2288 with_xft=yes
2292 # Check whether --with-libotf was given.
2293 if test "${with_libotf+set}" = set; then
2294 withval=$with_libotf;
2295 else
2296 with_libotf=yes
2300 # Check whether --with-m17n-flt was given.
2301 if test "${with_m17n_flt+set}" = set; then
2302 withval=$with_m17n_flt;
2303 else
2304 with_m17n_flt=yes
2309 # Check whether --with-toolkit-scroll-bars was given.
2310 if test "${with_toolkit_scroll_bars+set}" = set; then
2311 withval=$with_toolkit_scroll_bars;
2312 else
2313 with_toolkit_scroll_bars=yes
2317 # Check whether --with-xaw3d was given.
2318 if test "${with_xaw3d+set}" = set; then
2319 withval=$with_xaw3d;
2320 else
2321 with_xaw3d=yes
2325 # Check whether --with-xim was given.
2326 if test "${with_xim+set}" = set; then
2327 withval=$with_xim;
2328 else
2329 with_xim=yes
2333 # Check whether --with-ns was given.
2334 if test "${with_ns+set}" = set; then
2335 withval=$with_ns;
2336 else
2337 with_ns=no
2342 # Check whether --with-gpm was given.
2343 if test "${with_gpm+set}" = set; then
2344 withval=$with_gpm;
2345 else
2346 with_gpm=yes
2350 # Check whether --with-dbus was given.
2351 if test "${with_dbus+set}" = set; then
2352 withval=$with_dbus;
2353 else
2354 with_dbus=yes
2358 # Check whether --with-gconf was given.
2359 if test "${with_gconf+set}" = set; then
2360 withval=$with_gconf;
2361 else
2362 with_gconf=yes
2366 # Check whether --with-selinux was given.
2367 if test "${with_selinux+set}" = set; then
2368 withval=$with_selinux;
2369 else
2370 with_selinux=yes
2374 ## For the times when you want to build Emacs but don't have
2375 ## a suitable makeinfo, and can live without the manuals.
2377 # Check whether --with-makeinfo was given.
2378 if test "${with_makeinfo+set}" = set; then
2379 withval=$with_makeinfo;
2380 else
2381 with_makeinfo=yes
2386 # Check whether --with-pkg-config-prog was given.
2387 if test "${with_pkg_config_prog+set}" = set; then
2388 withval=$with_pkg_config_prog;
2391 if test "X${with_pkg_config_prog}" != X; then
2392 if test "${with_pkg_config_prog}" != yes; then
2393 PKG_CONFIG="${with_pkg_config_prog}"
2397 CRT_DIR=
2399 # Check whether --with-crt-dir was given.
2400 if test "${with_crt_dir+set}" = set; then
2401 withval=$with_crt_dir;
2404 CRT_DIR="${with_crt_dir}"
2407 # Check whether --with-gnustep-conf was given.
2408 if test "${with_gnustep_conf+set}" = set; then
2409 withval=$with_gnustep_conf;
2412 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2413 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2414 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2415 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2417 # Check whether --enable-ns-self-contained was given.
2418 if test "${enable_ns_self_contained+set}" = set; then
2419 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2420 else
2421 EN_NS_SELF_CONTAINED=yes
2425 # Check whether --enable-asserts was given.
2426 if test "${enable_asserts+set}" = set; then
2427 enableval=$enable_asserts; USE_XASSERTS=$enableval
2428 else
2429 USE_XASSERTS=no
2433 # Check whether --enable-maintainer-mode was given.
2434 if test "${enable_maintainer_mode+set}" = set; then
2435 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2436 else
2437 USE_MAINTAINER_MODE=no
2440 if test $USE_MAINTAINER_MODE = yes; then
2441 MAINT=
2442 else
2443 MAINT=#
2447 # Check whether --enable-locallisppath was given.
2448 if test "${enable_locallisppath+set}" = set; then
2449 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2450 locallisppath=
2451 elif test "${enableval}" != "yes"; then
2452 locallisppath=${enableval}
2457 # Check whether --enable-checking was given.
2458 if test "${enable_checking+set}" = set; then
2459 enableval=$enable_checking; ac_checking_flags="${enableval}"
2462 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2463 for check in $ac_checking_flags
2465 case $check in
2466 # these set all the flags to specific states
2467 yes) ac_enable_checking=1 ;;
2468 no) ac_enable_checking= ;
2469 ac_gc_check_stringbytes= ;
2470 ac_gc_check_string_overrun= ;
2471 ac_gc_check_string_free_list= ;
2472 ac_xmalloc_overrun= ;
2473 ac_gc_check_cons_list= ;;
2474 all) ac_enable_checking=1 ;
2475 ac_gc_check_stringbytes=1 ;
2476 ac_gc_check_string_overrun=1 ;
2477 ac_gc_check_string_free_list=1 ;
2478 ac_xmalloc_overrun=1 ;
2479 ac_gc_check_cons_list=1 ;;
2480 # these enable particular checks
2481 stringbytes) ac_gc_check_stringbytes=1 ;;
2482 stringoverrun) ac_gc_check_string_overrun=1 ;;
2483 stringfreelist) ac_gc_check_string_free_list=1 ;;
2484 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2485 conslist) ac_gc_check_cons_list=1 ;;
2486 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2487 $as_echo "$as_me: error: unknown check category $check" >&2;}
2488 { (exit 1); exit 1; }; } ;;
2489 esac
2490 done
2491 IFS="$ac_save_IFS"
2493 if test x$ac_enable_checking != x ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define ENABLE_CHECKING 1
2497 _ACEOF
2500 if test x$ac_gc_check_stringbytes != x ; then
2502 cat >>confdefs.h <<\_ACEOF
2503 #define GC_CHECK_STRING_BYTES 1
2504 _ACEOF
2507 if test x$ac_gc_check_stringoverrun != x ; then
2509 cat >>confdefs.h <<\_ACEOF
2510 #define GC_CHECK_STRING_OVERRUN 1
2511 _ACEOF
2514 if test x$ac_gc_check_string_free_list != x ; then
2516 cat >>confdefs.h <<\_ACEOF
2517 #define GC_CHECK_STRING_FREE_LIST 1
2518 _ACEOF
2521 if test x$ac_xmalloc_overrun != x ; then
2523 cat >>confdefs.h <<\_ACEOF
2524 #define XMALLOC_OVERRUN_CHECK 1
2525 _ACEOF
2528 if test x$ac_gc_check_cons_list != x ; then
2530 cat >>confdefs.h <<\_ACEOF
2531 #define GC_CHECK_CONS_LIST 1
2532 _ACEOF
2536 # Check whether --enable-profiling was given.
2537 if test "${enable_profiling+set}" = set; then
2538 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2541 if test x$ac_enable_profiling != x ; then
2542 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2543 PROFILING_LDFLAGS="-pg"
2544 else
2545 PROFILING_CFLAGS=
2546 PROFILING_LDFLAGS=
2549 # Check whether --enable-autodepend was given.
2550 if test "${enable_autodepend+set}" = set; then
2551 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2552 else
2553 ac_enable_autodepend=yes
2557 #### Make srcdir absolute, if it isn't already. It's important to
2558 #### avoid running the path through pwd unnecessarily, since pwd can
2559 #### give you automounter prefixes, which can go away. We do all this
2560 #### so Emacs can find its files when run uninstalled.
2561 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2562 unset CDPATH
2563 case "${srcdir}" in
2564 /* ) ;;
2566 ## We may be able to use the $PWD environment variable to make this
2567 ## absolute. But sometimes PWD is inaccurate.
2568 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2569 ## but that tested only for a well-formed and valid PWD,
2570 ## it did not object when PWD was well-formed and valid but just wrong.
2571 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2572 then
2573 srcdir="$PWD"
2574 else
2575 srcdir="`(cd ${srcdir}; pwd)`"
2578 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2579 esac
2581 #### Check if the source directory already has a configured system in it.
2582 if test `pwd` != `(cd ${srcdir} && pwd)` \
2583 && test -f "${srcdir}/src/config.h" ; then
2584 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2585 as a build directory right now; it has been configured in its own
2586 right. To configure in another directory as well, you MUST
2587 use GNU make. If you do not have GNU make, then you must
2588 now do \`make distclean' in ${srcdir},
2589 and then run $0 again." >&5
2590 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2591 as a build directory right now; it has been configured in its own
2592 right. To configure in another directory as well, you MUST
2593 use GNU make. If you do not have GNU make, then you must
2594 now do \`make distclean' in ${srcdir},
2595 and then run $0 again." >&2;}
2598 #### Given the configuration name, set machfile and opsysfile to the
2599 #### names of the m/*.h and s/*.h files we should use.
2601 ### Canonicalize the configuration name.
2603 ac_aux_dir=
2604 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2605 if test -f "$ac_dir/install-sh"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/install-sh -c"
2608 break
2609 elif test -f "$ac_dir/install.sh"; then
2610 ac_aux_dir=$ac_dir
2611 ac_install_sh="$ac_aux_dir/install.sh -c"
2612 break
2613 elif test -f "$ac_dir/shtool"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/shtool install -c"
2616 break
2618 done
2619 if test -z "$ac_aux_dir"; then
2620 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2621 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2622 { (exit 1); exit 1; }; }
2625 # These three variables are undocumented and unsupported,
2626 # and are intended to be withdrawn in a future Autoconf release.
2627 # They can cause serious problems if a builder's source tree is in a directory
2628 # whose full name contains unusual characters.
2629 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2630 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2631 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634 # Make sure we can run config.sub.
2635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2636 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2637 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2638 { (exit 1); exit 1; }; }
2640 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2644 else
2645 ac_build_alias=$build_alias
2646 test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x &&
2649 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2650 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2651 { (exit 1); exit 1; }; }
2652 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2653 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2654 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2655 { (exit 1); exit 1; }; }
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2661 *-*-*) ;;
2662 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2663 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2664 { (exit 1); exit 1; }; };;
2665 esac
2666 build=$ac_cv_build
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_build
2669 shift
2670 build_cpu=$1
2671 build_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 build_os=$*
2676 IFS=$ac_save_IFS
2677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test "x$host_alias" = x; then
2686 ac_cv_host=$ac_cv_build
2687 else
2688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2690 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2691 { (exit 1); exit 1; }; }
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2696 $as_echo "$ac_cv_host" >&6; }
2697 case $ac_cv_host in
2698 *-*-*) ;;
2699 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2700 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2701 { (exit 1); exit 1; }; };;
2702 esac
2703 host=$ac_cv_host
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_host
2706 shift
2707 host_cpu=$1
2708 host_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 host_os=$*
2713 IFS=$ac_save_IFS
2714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2717 canonical=$host
2718 configuration=${host_alias-${build_alias-$host}}
2722 ### If you add support for a new configuration, add code to this
2723 ### switch statement to recognize your configuration name and select
2724 ### the appropriate operating system and machine description files.
2726 ### You would hope that you could choose an m/*.h file pretty much
2727 ### based on the machine portion of the configuration name, and an s-
2728 ### file based on the operating system portion. However, it turns out
2729 ### that each m/*.h file is pretty manufacturer-specific - for
2730 ### example mips.h is MIPS
2731 ### So we basically have to have a special case for each
2732 ### configuration name.
2734 ### As far as handling version numbers on operating systems is
2735 ### concerned, make sure things will fail in a fixable way. If
2736 ### /etc/MACHINES doesn't say anything about version numbers, be
2737 ### prepared to handle anything reasonably. If version numbers
2738 ### matter, be sure /etc/MACHINES says something about it.
2740 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2741 ### "System V Release 4"; he writes, "The old convention encouraged
2742 ### confusion between `system' and `release' levels'."
2744 machine='' opsys='' unported=no
2745 case "${canonical}" in
2747 ## FreeBSD ports
2748 *-*-freebsd* )
2749 opsys=freebsd
2750 case "${canonical}" in
2751 alpha*-*-freebsd*) machine=alpha ;;
2752 arm*-*-freebsd*) machine=arm ;;
2753 ia64-*-freebsd*) machine=ia64 ;;
2754 sparc-*-freebsd*) machine=sparc ;;
2755 sparc64-*-freebsd*) machine=sparc ;;
2756 powerpc-*-freebsd*) machine=macppc ;;
2757 i[3456]86-*-freebsd*) machine=intel386 ;;
2758 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2759 esac
2762 ## FreeBSD kernel + glibc based userland
2763 *-*-kfreebsd*gnu* )
2764 opsys=gnu-kfreebsd
2765 case "${canonical}" in
2766 alpha*-*-kfreebsd*) machine=alpha ;;
2767 ia64-*-kfreebsd*) machine=ia64 ;;
2768 sparc-*-kfreebsd*) machine=sparc ;;
2769 sparc64-*-kfreebsd*) machine=sparc ;;
2770 powerpc-*-kfreebsd*) machine=macppc ;;
2771 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2772 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2773 esac
2776 ## NetBSD ports
2777 *-*-netbsd* )
2778 opsys=netbsd
2779 case "${canonical}" in
2780 alpha*-*-netbsd*) machine=alpha ;;
2781 i[3456]86-*-netbsd*) machine=intel386 ;;
2782 mips-*-netbsd*) machine=mips ;;
2783 mipsel-*-netbsd*) machine=mips ;;
2784 mipseb-*-netbsd*) machine=mips ;;
2785 powerpc-*-netbsd*) machine=macppc ;;
2786 sparc*-*-netbsd*) machine=sparc ;;
2787 vax-*-netbsd*) machine=vax ;;
2788 arm-*-netbsd*) machine=arm ;;
2789 x86_64-*-netbsd*) machine=amdx86-64 ;;
2790 hppa-*-netbsd*) machine=hp800 ;;
2791 m68k-*-netbsd*) machine=m68k ;;
2792 esac
2795 ## OpenBSD ports
2796 *-*-openbsd* )
2797 opsys=openbsd
2798 case "${canonical}" in
2799 alpha*-*-openbsd*) machine=alpha ;;
2800 arm-*-openbsd*) machine=arm ;;
2801 i386-*-openbsd*) machine=intel386 ;;
2802 powerpc-*-openbsd*) machine=macppc ;;
2803 sparc*-*-openbsd*) machine=sparc ;;
2804 vax-*-openbsd*) machine=vax ;;
2805 x86_64-*-openbsd*) machine=amdx86-64 ;;
2806 hppa-*-openbsd*) machine=hp800 ;;
2807 esac
2810 alpha*-*-linux-gnu* )
2811 machine=alpha opsys=gnu-linux
2814 arm*-*-linux-gnu* )
2815 machine=arm opsys=gnu-linux
2818 ## Apple Darwin / Mac OS X
2819 *-apple-darwin* )
2820 case "${canonical}" in
2821 i[3456]86-* ) machine=intel386 ;;
2822 powerpc-* ) machine=macppc ;;
2823 x86_64-* ) machine=amdx86-64 ;;
2824 * ) unported=yes ;;
2825 esac
2826 opsys=darwin
2827 # Define CPP as follows to make autoconf work correctly.
2828 CPP="${CC-cc} -E -no-cpp-precomp"
2829 # Use fink packages if available.
2830 if test -d /sw/include && test -d /sw/lib; then
2831 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2832 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2833 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2837 ## HP 9000 series 700 and 800, running HP/UX
2838 hppa*-hp-hpux10.2* )
2839 machine=hp800 opsys=hpux10-20
2841 hppa*-hp-hpux1[1-9]* )
2842 machine=hp800 opsys=hpux11
2843 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2846 hppa*-*-linux-gnu* )
2847 machine=hp800 opsys=gnu-linux
2850 ## IBM machines
2851 s390-*-linux-gnu* )
2852 machine=ibms390 opsys=gnu-linux
2854 s390x-*-linux-gnu* )
2855 machine=ibms390x opsys=gnu-linux
2857 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2858 machine=ibmrs6000 opsys=aix4-2
2860 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2861 machine=ibmrs6000 opsys=aix4-2
2863 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2864 machine=ibmrs6000 opsys=aix4-2
2866 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2867 machine=ibmrs6000 opsys=aix4-2
2870 ## Macintosh PowerPC
2871 powerpc*-*-linux-gnu* )
2872 machine=macppc opsys=gnu-linux
2875 ## Silicon Graphics machines
2876 ## Iris 4D
2877 mips-sgi-irix6.5 )
2878 machine=iris4d opsys=irix6-5
2879 # Without defining _LANGUAGE_C, things get masked out in the headers
2880 # so that, for instance, grepping for `free' in stdlib.h fails and
2881 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2882 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2883 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2886 ## Suns
2887 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2888 machine=sparc opsys=gnu-linux
2891 *-sun-solaris* \
2892 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2893 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2894 case "${canonical}" in
2895 i[3456]86-*-* ) machine=intel386 ;;
2896 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2897 sparc* ) machine=sparc ;;
2898 * ) unported=yes ;;
2899 esac
2900 case "${canonical}" in
2901 *-sunos5.6* | *-solaris2.6* )
2902 opsys=sol2-6
2903 NON_GNU_CPP=/usr/ccs/lib/cpp
2904 RANLIB="ar -ts"
2906 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2907 opsys=sol2-6
2908 emacs_check_sunpro_c=yes
2909 NON_GNU_CPP=/usr/ccs/lib/cpp
2911 *-sunos5* | *-solaris* )
2912 opsys=sol2-10
2913 emacs_check_sunpro_c=yes
2914 NON_GNU_CPP=/usr/ccs/lib/cpp
2916 esac
2917 ## Watch out for a compiler that we know will not work.
2918 case "${canonical}" in
2919 *-solaris* | *-sunos5* )
2920 if [ "x$CC" = x/usr/ucb/cc ]; then
2921 ## /usr/ucb/cc doesn't work;
2922 ## we should find some other compiler that does work.
2923 unset CC
2926 *) ;;
2927 esac
2930 ## IA-64
2931 ia64*-*-linux* )
2932 machine=ia64 opsys=gnu-linux
2935 ## Intel 386 machines where we don't care about the manufacturer
2936 i[3456]86-*-* )
2937 machine=intel386
2938 case "${canonical}" in
2939 *-cygwin ) opsys=cygwin ;;
2940 *-darwin* ) opsys=darwin
2941 CPP="${CC-cc} -E -no-cpp-precomp"
2943 *-linux-gnu* ) opsys=gnu-linux ;;
2944 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2945 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2946 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2947 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2948 esac
2951 ## m68k Linux-based GNU system
2952 m68k-*-linux-gnu* )
2953 machine=m68k opsys=gnu-linux
2956 ## Mips Linux-based GNU system
2957 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2958 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2959 machine=mips opsys=gnu-linux
2962 ## AMD x86-64 Linux-based GNU system
2963 x86_64-*-linux-gnu* )
2964 machine=amdx86-64 opsys=gnu-linux
2967 ## Tensilica Xtensa Linux-based GNU system
2968 xtensa*-*-linux-gnu* )
2969 machine=xtensa opsys=gnu-linux
2972 ## SuperH Linux-based GNU system
2973 sh[34]*-*-linux-gnu* )
2974 machine=sh3 opsys=gnu-linux
2978 unported=yes
2980 esac
2982 ### If the code above didn't choose an operating system, just choose
2983 ### an operating system based on the configuration name. You really
2984 ### only want to use this when you have no idea what the right
2985 ### operating system is; if you know what operating systems a machine
2986 ### runs, it's cleaner to make it explicit in the case statement
2987 ### above.
2988 if test x"${opsys}" = x; then
2989 case "${canonical}" in
2990 *-gnu* ) opsys=gnu ;;
2992 unported=yes
2994 esac
2999 if test $unported = yes; then
3000 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3001 Check \`etc/MACHINES' for recognized configuration names." >&5
3002 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3003 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3004 { (exit 1); exit 1; }; }
3007 machfile="m/${machine}.h"
3008 opsysfile="s/${opsys}.h"
3011 #### Choose a compiler.
3012 test -n "$CC" && cc_specified=yes
3014 # Save the value of CFLAGS that the user specified.
3015 SPECIFIED_CFLAGS="$CFLAGS"
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_CC+set}" = set; then
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3054 else
3055 { $as_echo "$as_me:$LINENO: result: no" >&5
3056 $as_echo "no" >&6; }
3061 if test -z "$ac_cv_prog_CC"; then
3062 ac_ct_CC=$CC
3063 # Extract the first word of "gcc", so it can be a program name with args.
3064 set dummy gcc; ac_word=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_ac_ct_CC="gcc"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091 if test -n "$ac_ct_CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3093 $as_echo "$ac_ct_CC" >&6; }
3094 else
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3099 if test "x$ac_ct_CC" = x; then
3100 CC=""
3101 else
3102 case $cross_compiling:$ac_tool_warned in
3103 yes:)
3104 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&5
3107 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3108 whose name does not start with the host triplet. If you think this
3109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3110 ac_tool_warned=yes ;;
3111 esac
3112 CC=$ac_ct_CC
3114 else
3115 CC="$ac_cv_prog_CC"
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}cc; ac_word=$2
3122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if test "${ac_cv_prog_CC+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_CC="${ac_tool_prefix}cc"
3138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3141 done
3142 done
3143 IFS=$as_save_IFS
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3159 if test -z "$CC"; then
3160 # Extract the first word of "cc", so it can be a program name with args.
3161 set dummy cc; ac_word=$2
3162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_CC+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 ac_prog_rejected=no
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179 ac_prog_rejected=yes
3180 continue
3182 ac_cv_prog_CC="cc"
3183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3188 IFS=$as_save_IFS
3190 if test $ac_prog_rejected = yes; then
3191 # We found a bogon in the path, so make sure we never use it.
3192 set dummy $ac_cv_prog_CC
3193 shift
3194 if test $# != 0; then
3195 # We chose a different compiler from the bogus one.
3196 # However, it has the same basename, so the bogon will be chosen
3197 # first if we set CC to just the basename; use the full file name.
3198 shift
3199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in cl.exe
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3240 done
3241 done
3242 IFS=$as_save_IFS
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251 { $as_echo "$as_me:$LINENO: result: no" >&5
3252 $as_echo "no" >&6; }
3256 test -n "$CC" && break
3257 done
3259 if test -z "$CC"; then
3260 ac_ct_CC=$CC
3261 for ac_prog in cl.exe
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_CC="$ac_prog"
3281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3294 else
3295 { $as_echo "$as_me:$LINENO: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$ac_ct_CC" && break
3301 done
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3309 whose name does not start with the host triplet. If you think this
3310 configuration is useful to you, please write to autoconf@gnu.org." >&5
3311 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3312 whose name does not start with the host triplet. If you think this
3313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3314 ac_tool_warned=yes ;;
3315 esac
3316 CC=$ac_ct_CC
3323 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3324 See \`config.log' for more details." >&5
3325 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." >&2;}
3327 { (exit 1); exit 1; }; }
3329 # Provide some information about the compiler.
3330 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3331 set X $ac_compile
3332 ac_compiler=$2
3333 { (ac_try="$ac_compiler --version >&5"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_compiler --version >&5") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }
3344 { (ac_try="$ac_compiler -v >&5"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_compiler -v >&5") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (ac_try="$ac_compiler -V >&5"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler -V >&5") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3375 main ()
3379 return 0;
3381 _ACEOF
3382 ac_clean_files_save=$ac_clean_files
3383 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384 # Try to create an executable without -o first, disregard a.out.
3385 # It will help us diagnose broken compilers, and finding out an intuition
3386 # of exeext.
3387 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3388 $as_echo_n "checking for C compiler default output file name... " >&6; }
3389 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3391 # The possible output files:
3392 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3394 ac_rmfiles=
3395 for ac_file in $ac_files
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3400 esac
3401 done
3402 rm -f $ac_rmfiles
3404 if { (ac_try="$ac_link_default"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_link_default") 2>&5
3412 ac_status=$?
3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; then
3415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3416 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3417 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3418 # so that the user can short-circuit this test for compilers unknown to
3419 # Autoconf.
3420 for ac_file in $ac_files ''
3422 test -f "$ac_file" || continue
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3426 [ab].out )
3427 # We found the default executable, but exeext='' is most
3428 # certainly right.
3429 break;;
3430 *.* )
3431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3432 then :; else
3433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435 # We set ac_cv_exeext here because the later test for it is not
3436 # safe: cross compilers may not add the suffix if given an `-o'
3437 # argument, so we may need to know it at that point already.
3438 # Even if this section looks crufty: it has the advantage of
3439 # actually working.
3440 break;;
3442 break;;
3443 esac
3444 done
3445 test "$ac_cv_exeext" = no && ac_cv_exeext=
3447 else
3448 ac_file=''
3451 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3452 $as_echo "$ac_file" >&6; }
3453 if test -z "$ac_file"; then
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3458 See \`config.log' for more details." >&5
3459 $as_echo "$as_me: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&2;}
3461 { (exit 77); exit 77; }; }
3464 ac_exeext=$ac_cv_exeext
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3469 $as_echo_n "checking whether the C compiler works... " >&6; }
3470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3471 # If not cross compiling, check that we can run a simple program.
3472 if test "$cross_compiling" != yes; then
3473 if { ac_try='./$ac_file'
3474 { (case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3479 $as_echo "$ac_try_echo") >&5
3480 (eval "$ac_try") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 cross_compiling=no
3485 else
3486 if test "$cross_compiling" = maybe; then
3487 cross_compiling=yes
3488 else
3489 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3490 If you meant to cross compile, use \`--host'.
3491 See \`config.log' for more details." >&5
3492 $as_echo "$as_me: error: cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }
3499 { $as_echo "$as_me:$LINENO: result: yes" >&5
3500 $as_echo "yes" >&6; }
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 # Check that the compiler produces executables we can run. If not, either
3505 # the compiler is broken, or we cross compile.
3506 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3507 $as_echo_n "checking whether we are cross compiling... " >&6; }
3508 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3509 $as_echo "$cross_compiling" >&6; }
3511 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3512 $as_echo_n "checking for suffix of executables... " >&6; }
3513 if { (ac_try="$ac_link"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_link") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; then
3524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3526 # work properly (i.e., refer to `conftest.exe'), while it won't with
3527 # `rm'.
3528 for ac_file in conftest.exe conftest conftest.*; do
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533 break;;
3534 * ) break;;
3535 esac
3536 done
3537 else
3538 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3539 See \`config.log' for more details." >&5
3540 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&2;}
3542 { (exit 1); exit 1; }; }
3545 rm -f conftest$ac_cv_exeext
3546 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3547 $as_echo "$ac_cv_exeext" >&6; }
3549 rm -f conftest.$ac_ext
3550 EXEEXT=$ac_cv_exeext
3551 ac_exeext=$EXEEXT
3552 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3553 $as_echo_n "checking for suffix of object files... " >&6; }
3554 if test "${ac_cv_objext+set}" = set; then
3555 $as_echo_n "(cached) " >&6
3556 else
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3565 main ()
3569 return 0;
3571 _ACEOF
3572 rm -f conftest.o conftest.obj
3573 if { (ac_try="$ac_compile"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3579 $as_echo "$ac_try_echo") >&5
3580 (eval "$ac_compile") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; then
3584 for ac_file in conftest.o conftest.obj conftest.*; do
3585 test -f "$ac_file" || continue;
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3589 break;;
3590 esac
3591 done
3592 else
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3597 See \`config.log' for more details." >&5
3598 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3599 See \`config.log' for more details." >&2;}
3600 { (exit 1); exit 1; }; }
3603 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3605 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3606 $as_echo "$ac_cv_objext" >&6; }
3607 OBJEXT=$ac_cv_objext
3608 ac_objext=$OBJEXT
3609 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3612 $as_echo_n "(cached) " >&6
3613 else
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3622 main ()
3624 #ifndef __GNUC__
3625 choke me
3626 #endif
3629 return 0;
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (ac_try="$ac_compile"
3634 case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3639 $as_echo "$ac_try_echo") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3650 ac_compiler_gnu=yes
3651 else
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 ac_compiler_gnu=no
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3663 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3664 if test $ac_compiler_gnu = yes; then
3665 GCC=yes
3666 else
3667 GCC=
3669 ac_test_CFLAGS=${CFLAGS+set}
3670 ac_save_CFLAGS=$CFLAGS
3671 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3672 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3673 if test "${ac_cv_prog_cc_g+set}" = set; then
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_save_c_werror_flag=$ac_c_werror_flag
3677 ac_c_werror_flag=yes
3678 ac_cv_prog_cc_g=no
3679 CFLAGS="-g"
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3688 main ()
3692 return 0;
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_prog_cc_g=yes
3714 else
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 CFLAGS=""
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h. */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3727 main ()
3731 return 0;
3733 _ACEOF
3734 rm -f conftest.$ac_objext
3735 if { (ac_try="$ac_compile"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3741 $as_echo "$ac_try_echo") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3753 else
3754 $as_echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ac_c_werror_flag=$ac_save_c_werror_flag
3758 CFLAGS="-g"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3781 $as_echo "$ac_try_echo") >&5
3782 (eval "$ac_compile") 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } && {
3789 test -z "$ac_c_werror_flag" ||
3790 test ! -s conftest.err
3791 } && test -s conftest.$ac_objext; then
3792 ac_cv_prog_cc_g=yes
3793 else
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3809 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3810 $as_echo "$ac_cv_prog_cc_g" >&6; }
3811 if test "$ac_test_CFLAGS" = set; then
3812 CFLAGS=$ac_save_CFLAGS
3813 elif test $ac_cv_prog_cc_g = yes; then
3814 if test "$GCC" = yes; then
3815 CFLAGS="-g -O2"
3816 else
3817 CFLAGS="-g"
3819 else
3820 if test "$GCC" = yes; then
3821 CFLAGS="-O2"
3822 else
3823 CFLAGS=
3826 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3828 if test "${ac_cv_prog_cc_c89+set}" = set; then
3829 $as_echo_n "(cached) " >&6
3830 else
3831 ac_cv_prog_cc_c89=no
3832 ac_save_CC=$CC
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #include <stdarg.h>
3840 #include <stdio.h>
3841 #include <sys/types.h>
3842 #include <sys/stat.h>
3843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3844 struct buf { int x; };
3845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846 static char *e (p, i)
3847 char **p;
3848 int i;
3850 return p[i];
3852 static char *f (char * (*g) (char **, int), char **p, ...)
3854 char *s;
3855 va_list v;
3856 va_start (v,p);
3857 s = g (p, va_arg (v,int));
3858 va_end (v);
3859 return s;
3862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3863 function prototypes and stuff, but not '\xHH' hex character constants.
3864 These don't provoke an error unfortunately, instead are silently treated
3865 as 'x'. The following induces an error, until -std is added to get
3866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3867 array size at least. It's necessary to write '\x00'==0 to get something
3868 that's true only with -std. */
3869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872 inside strings and character constants. */
3873 #define FOO(x) 'x'
3874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3876 int test (int i, double x);
3877 struct s1 {int (*f) (int a);};
3878 struct s2 {int (*f) (double a);};
3879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 int argc;
3881 char **argv;
3883 main ()
3885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3887 return 0;
3889 _ACEOF
3890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3893 CC="$ac_save_CC $ac_arg"
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3901 $as_echo "$ac_try_echo") >&5
3902 (eval "$ac_compile") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest.$ac_objext; then
3912 ac_cv_prog_cc_c89=$ac_arg
3913 else
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f core conftest.err conftest.$ac_objext
3921 test "x$ac_cv_prog_cc_c89" != "xno" && break
3922 done
3923 rm -f conftest.$ac_ext
3924 CC=$ac_save_CC
3927 # AC_CACHE_VAL
3928 case "x$ac_cv_prog_cc_c89" in
3930 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3931 $as_echo "none needed" >&6; } ;;
3932 xno)
3933 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3934 $as_echo "unsupported" >&6; } ;;
3936 CC="$CC $ac_cv_prog_cc_c89"
3937 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3939 esac
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 # On Suns, sometimes $CPP names a directory.
3950 if test -n "$CPP" && test -d "$CPP"; then
3951 CPP=
3954 ## If not using gcc, and on Solaris, and no CPP specified, see if
3955 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3956 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3957 test x"$CPP" = x; then
3958 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3959 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3961 if test "${emacs_cv_sunpro_c+set}" = set; then
3962 $as_echo_n "(cached) " >&6
3963 else
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3972 main ()
3974 #ifndef __SUNPRO_C
3975 fail;
3976 #endif
3979 return 0;
3981 _ACEOF
3982 rm -f conftest.$ac_objext conftest$ac_exeext
3983 if { (ac_try="$ac_link"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3989 $as_echo "$ac_try_echo") >&5
3990 (eval "$ac_link") 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } && {
3997 test -z "$ac_c_werror_flag" ||
3998 test ! -s conftest.err
3999 } && test -s conftest$ac_exeext && {
4000 test "$cross_compiling" = yes ||
4001 $as_test_x conftest$ac_exeext
4002 }; then
4003 emacs_cv_sunpro_c=yes
4004 else
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 emacs_cv_sunpro_c=no
4011 rm -rf conftest.dSYM
4012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4013 conftest$ac_exeext conftest.$ac_ext
4016 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4017 $as_echo "$emacs_cv_sunpro_c" >&6; }
4019 if test x"$emacs_cv_sunpro_c" = xyes; then
4020 NON_GNU_CPP="$CC -E -Xs"
4024 #### Some systems specify a CPP to use unless we are using GCC.
4025 #### Now that we know whether we are using GCC, we can decide whether
4026 #### to use that one.
4027 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4028 then
4029 CPP="$NON_GNU_CPP"
4032 #### Some systems specify a CC to use unless we are using GCC.
4033 #### Now that we know whether we are using GCC, we can decide whether
4034 #### to use that one.
4035 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4036 test x$cc_specified != xyes
4037 then
4038 CC="$NON_GNU_CC"
4041 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4042 then
4043 CC="$CC $GCC_TEST_OPTIONS"
4046 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4047 then
4048 CC="$CC $NON_GCC_TEST_OPTIONS"
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4057 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4058 # On Suns, sometimes $CPP names a directory.
4059 if test -n "$CPP" && test -d "$CPP"; then
4060 CPP=
4062 if test -z "$CPP"; then
4063 if test "${ac_cv_prog_CPP+set}" = set; then
4064 $as_echo_n "(cached) " >&6
4065 else
4066 # Double quotes because CPP needs to be expanded
4067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4069 ac_preproc_ok=false
4070 for ac_c_preproc_warn_flag in '' yes
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error" is here to catch this case.
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #ifdef __STDC__
4085 # include <limits.h>
4086 #else
4087 # include <assert.h>
4088 #endif
4089 Syntax error
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } >/dev/null && {
4105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 }; then
4109 else
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 # Broken: fails on valid input.
4114 continue
4117 rm -f conftest.err conftest.$ac_ext
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4128 _ACEOF
4129 if { (ac_try="$ac_cpp conftest.$ac_ext"
4130 case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } >/dev/null && {
4143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 }; then
4146 # Broken: success on invalid input.
4147 continue
4148 else
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 # Passes both tests.
4153 ac_preproc_ok=:
4154 break
4157 rm -f conftest.err conftest.$ac_ext
4159 done
4160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4161 rm -f conftest.err conftest.$ac_ext
4162 if $ac_preproc_ok; then
4163 break
4166 done
4167 ac_cv_prog_CPP=$CPP
4170 CPP=$ac_cv_prog_CPP
4171 else
4172 ac_cv_prog_CPP=$CPP
4174 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4175 $as_echo "$CPP" >&6; }
4176 ac_preproc_ok=false
4177 for ac_c_preproc_warn_flag in '' yes
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error" is here to catch this case.
4185 cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196 Syntax error
4197 _ACEOF
4198 if { (ac_try="$ac_cpp conftest.$ac_ext"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4204 $as_echo "$ac_try_echo") >&5
4205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null && {
4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4214 }; then
4216 else
4217 $as_echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 # Broken: fails on valid input.
4221 continue
4224 rm -f conftest.err conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if { (ac_try="$ac_cpp conftest.$ac_ext"
4237 case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4242 $as_echo "$ac_try_echo") >&5
4243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 }; then
4253 # Broken: success on invalid input.
4254 continue
4255 else
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 # Passes both tests.
4260 ac_preproc_ok=:
4261 break
4264 rm -f conftest.err conftest.$ac_ext
4266 done
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then
4271 else
4272 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4273 See \`config.log' for more details." >&5
4274 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4275 See \`config.log' for more details." >&2;}
4276 { (exit 1); exit 1; }; }
4279 ac_ext=c
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4287 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4288 if test "${ac_cv_path_GREP+set}" = set; then
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -z "$GREP"; then
4292 ac_path_GREP_found=false
4293 # Loop through the user's path and test for each of PROGNAME-LIST
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_prog in grep ggrep; do
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4302 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4303 # Check for GNU ac_path_GREP and select it if it is found.
4304 # Check for GNU $ac_path_GREP
4305 case `"$ac_path_GREP" --version 2>&1` in
4306 *GNU*)
4307 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4309 ac_count=0
4310 $as_echo_n 0123456789 >"conftest.in"
4311 while :
4313 cat "conftest.in" "conftest.in" >"conftest.tmp"
4314 mv "conftest.tmp" "conftest.in"
4315 cp "conftest.in" "conftest.nl"
4316 $as_echo 'GREP' >> "conftest.nl"
4317 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4319 ac_count=`expr $ac_count + 1`
4320 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4321 # Best one so far, save it but keep looking for a better one
4322 ac_cv_path_GREP="$ac_path_GREP"
4323 ac_path_GREP_max=$ac_count
4325 # 10*(2^10) chars as input seems more than enough
4326 test $ac_count -gt 10 && break
4327 done
4328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4329 esac
4331 $ac_path_GREP_found && break 3
4332 done
4333 done
4334 done
4335 IFS=$as_save_IFS
4336 if test -z "$ac_cv_path_GREP"; then
4337 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4338 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4339 { (exit 1); exit 1; }; }
4341 else
4342 ac_cv_path_GREP=$GREP
4346 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4347 $as_echo "$ac_cv_path_GREP" >&6; }
4348 GREP="$ac_cv_path_GREP"
4351 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4352 $as_echo_n "checking for egrep... " >&6; }
4353 if test "${ac_cv_path_EGREP+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4357 then ac_cv_path_EGREP="$GREP -E"
4358 else
4359 if test -z "$EGREP"; then
4360 ac_path_EGREP_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in egrep; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4371 # Check for GNU ac_path_EGREP and select it if it is found.
4372 # Check for GNU $ac_path_EGREP
4373 case `"$ac_path_EGREP" --version 2>&1` in
4374 *GNU*)
4375 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4377 ac_count=0
4378 $as_echo_n 0123456789 >"conftest.in"
4379 while :
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 $as_echo 'EGREP' >> "conftest.nl"
4385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 ac_count=`expr $ac_count + 1`
4388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_EGREP="$ac_path_EGREP"
4391 ac_path_EGREP_max=$ac_count
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397 esac
4399 $ac_path_EGREP_found && break 3
4400 done
4401 done
4402 done
4403 IFS=$as_save_IFS
4404 if test -z "$ac_cv_path_EGREP"; then
4405 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4406 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4407 { (exit 1); exit 1; }; }
4409 else
4410 ac_cv_path_EGREP=$EGREP
4415 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4416 $as_echo "$ac_cv_path_EGREP" >&6; }
4417 EGREP="$ac_cv_path_EGREP"
4420 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4421 $as_echo_n "checking for ANSI C header files... " >&6; }
4422 if test "${ac_cv_header_stdc+set}" = set; then
4423 $as_echo_n "(cached) " >&6
4424 else
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <stdlib.h>
4432 #include <stdarg.h>
4433 #include <string.h>
4434 #include <float.h>
4437 main ()
4441 return 0;
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (ac_try="$ac_compile"
4446 case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4451 $as_echo "$ac_try_echo") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest.$ac_objext; then
4462 ac_cv_header_stdc=yes
4463 else
4464 $as_echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_header_stdc=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 if test $ac_cv_header_stdc = yes; then
4473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4474 cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h. */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #include <string.h>
4482 _ACEOF
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "memchr" >/dev/null 2>&1; then
4486 else
4487 ac_cv_header_stdc=no
4489 rm -f conftest*
4493 if test $ac_cv_header_stdc = yes; then
4494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495 cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h. */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 #include <stdlib.h>
4503 _ACEOF
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "free" >/dev/null 2>&1; then
4507 else
4508 ac_cv_header_stdc=no
4510 rm -f conftest*
4514 if test $ac_cv_header_stdc = yes; then
4515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4516 if test "$cross_compiling" = yes; then
4518 else
4519 cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h. */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 #include <ctype.h>
4526 #include <stdlib.h>
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530 #else
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536 #endif
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4540 main ()
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 return 2;
4547 return 0;
4549 _ACEOF
4550 rm -f conftest$ac_exeext
4551 if { (ac_try="$ac_link"
4552 case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557 $as_echo "$ac_try_echo") >&5
4558 (eval "$ac_link") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4562 { (case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4567 $as_echo "$ac_try_echo") >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4573 else
4574 $as_echo "$as_me: program exited with status $ac_status" >&5
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 ( exit $ac_status )
4579 ac_cv_header_stdc=no
4581 rm -rf conftest.dSYM
4582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4589 $as_echo "$ac_cv_header_stdc" >&6; }
4590 if test $ac_cv_header_stdc = yes; then
4592 cat >>confdefs.h <<\_ACEOF
4593 #define STDC_HEADERS 1
4594 _ACEOF
4598 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4609 inttypes.h stdint.h unistd.h
4611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4613 $as_echo_n "checking for $ac_header... " >&6; }
4614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 $as_echo_n "(cached) " >&6
4616 else
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 $ac_includes_default
4625 #include <$ac_header>
4626 _ACEOF
4627 rm -f conftest.$ac_objext
4628 if { (ac_try="$ac_compile"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 eval "$as_ac_Header=yes"
4646 else
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 eval "$as_ac_Header=no"
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_res=`eval 'as_val=${'$as_ac_Header'}
4656 $as_echo "$as_val"'`
4657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4658 $as_echo "$ac_res" >&6; }
4659 if test `eval 'as_val=${'$as_ac_Header'}
4660 $as_echo "$as_val"'` = yes; then
4661 cat >>confdefs.h <<_ACEOF
4662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663 _ACEOF
4667 done
4671 if test "${ac_cv_header_minix_config_h+set}" = set; then
4672 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4673 $as_echo_n "checking for minix/config.h... " >&6; }
4674 if test "${ac_cv_header_minix_config_h+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4678 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4679 else
4680 # Is the header compilable?
4681 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4682 $as_echo_n "checking minix/config.h usability... " >&6; }
4683 cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h. */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 $ac_includes_default
4690 #include <minix/config.h>
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (ac_try="$ac_compile"
4694 case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4699 $as_echo "$ac_try_echo") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && {
4707 test -z "$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 } && test -s conftest.$ac_objext; then
4710 ac_header_compiler=yes
4711 else
4712 $as_echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4715 ac_header_compiler=no
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4720 $as_echo "$ac_header_compiler" >&6; }
4722 # Is the header present?
4723 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4724 $as_echo_n "checking minix/config.h presence... " >&6; }
4725 cat >conftest.$ac_ext <<_ACEOF
4726 /* confdefs.h. */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 #include <minix/config.h>
4732 _ACEOF
4733 if { (ac_try="$ac_cpp conftest.$ac_ext"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null && {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 }; then
4750 ac_header_preproc=yes
4751 else
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_header_preproc=no
4758 rm -f conftest.err conftest.$ac_ext
4759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4760 $as_echo "$ac_header_preproc" >&6; }
4762 # So? What about this header?
4763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4764 yes:no: )
4765 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4766 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4769 ac_header_preproc=yes
4771 no:yes:* )
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4786 esac
4787 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4788 $as_echo_n "checking for minix/config.h... " >&6; }
4789 if test "${ac_cv_header_minix_config_h+set}" = set; then
4790 $as_echo_n "(cached) " >&6
4791 else
4792 ac_cv_header_minix_config_h=$ac_header_preproc
4794 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4795 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4798 if test $ac_cv_header_minix_config_h = yes; then
4799 MINIX=yes
4800 else
4801 MINIX=
4805 if test "$MINIX" = yes; then
4807 cat >>confdefs.h <<\_ACEOF
4808 #define _POSIX_SOURCE 1
4809 _ACEOF
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _POSIX_1_SOURCE 2
4814 _ACEOF
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _MINIX 1
4819 _ACEOF
4825 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4826 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4827 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4837 # define __EXTENSIONS__ 1
4838 $ac_includes_default
4840 main ()
4844 return 0;
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855 (eval "$ac_compile") 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && {
4862 test -z "$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4864 } && test -s conftest.$ac_objext; then
4865 ac_cv_safe_to_define___extensions__=yes
4866 else
4867 $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4870 ac_cv_safe_to_define___extensions__=no
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4876 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4877 test $ac_cv_safe_to_define___extensions__ = yes &&
4878 cat >>confdefs.h <<\_ACEOF
4879 #define __EXTENSIONS__ 1
4880 _ACEOF
4882 cat >>confdefs.h <<\_ACEOF
4883 #define _ALL_SOURCE 1
4884 _ACEOF
4886 cat >>confdefs.h <<\_ACEOF
4887 #define _GNU_SOURCE 1
4888 _ACEOF
4890 cat >>confdefs.h <<\_ACEOF
4891 #define _POSIX_PTHREAD_SEMANTICS 1
4892 _ACEOF
4894 cat >>confdefs.h <<\_ACEOF
4895 #define _TANDEM_SOURCE 1
4896 _ACEOF
4900 ### Use -Wno-pointer-sign if the compiler supports it
4901 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4902 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4903 SAVE_CFLAGS="$CFLAGS"
4904 CFLAGS="$CFLAGS -Wno-pointer-sign"
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4913 main ()
4917 return 0;
4919 _ACEOF
4920 rm -f conftest.$ac_objext
4921 if { (ac_try="$ac_compile"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4927 $as_echo "$ac_try_echo") >&5
4928 (eval "$ac_compile") 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } && {
4935 test -z "$ac_c_werror_flag" ||
4936 test ! -s conftest.err
4937 } && test -s conftest.$ac_objext; then
4938 has_option=yes
4939 else
4940 $as_echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4943 has_option=no
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 if test $has_option = yes; then
4948 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4950 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4951 $as_echo "$has_option" >&6; }
4952 CFLAGS="$SAVE_CFLAGS"
4953 unset has_option
4954 unset SAVE_CFLAGS
4956 ### Use -Wdeclaration-after-statement if the compiler supports it
4957 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4958 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4959 SAVE_CFLAGS="$CFLAGS"
4960 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4969 main ()
4973 return 0;
4975 _ACEOF
4976 rm -f conftest.$ac_objext
4977 if { (ac_try="$ac_compile"
4978 case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981 esac
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4994 has_option=yes
4995 else
4996 $as_echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 has_option=no
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 if test $has_option = yes; then
5004 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5006 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5007 $as_echo "$has_option" >&6; }
5008 CFLAGS="$SAVE_CFLAGS"
5009 unset has_option
5010 unset SAVE_CFLAGS
5012 #### Some other nice autoconf tests.
5014 ac_ext=c
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5021 # On Suns, sometimes $CPP names a directory.
5022 if test -n "$CPP" && test -d "$CPP"; then
5023 CPP=
5025 if test -z "$CPP"; then
5026 if test "${ac_cv_prog_CPP+set}" = set; then
5027 $as_echo_n "(cached) " >&6
5028 else
5029 # Double quotes because CPP needs to be expanded
5030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5032 ac_preproc_ok=false
5033 for ac_c_preproc_warn_flag in '' yes
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
5037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
5039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 #ifdef __STDC__
5048 # include <limits.h>
5049 #else
5050 # include <assert.h>
5051 #endif
5052 Syntax error
5053 _ACEOF
5054 if { (ac_try="$ac_cpp conftest.$ac_ext"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5060 $as_echo "$ac_try_echo") >&5
5061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev/null && {
5068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 }; then
5072 else
5073 $as_echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 # Broken: fails on valid input.
5077 continue
5080 rm -f conftest.err conftest.$ac_ext
5082 # OK, works on sane cases. Now check whether nonexistent headers
5083 # can be detected and how.
5084 cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h. */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 #include <ac_nonexistent.h>
5091 _ACEOF
5092 if { (ac_try="$ac_cpp conftest.$ac_ext"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null && {
5106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 }; then
5109 # Broken: success on invalid input.
5110 continue
5111 else
5112 $as_echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 # Passes both tests.
5116 ac_preproc_ok=:
5117 break
5120 rm -f conftest.err conftest.$ac_ext
5122 done
5123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124 rm -f conftest.err conftest.$ac_ext
5125 if $ac_preproc_ok; then
5126 break
5129 done
5130 ac_cv_prog_CPP=$CPP
5133 CPP=$ac_cv_prog_CPP
5134 else
5135 ac_cv_prog_CPP=$CPP
5137 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5138 $as_echo "$CPP" >&6; }
5139 ac_preproc_ok=false
5140 for ac_c_preproc_warn_flag in '' yes
5142 # Use a header file that comes with gcc, so configuring glibc
5143 # with a fresh cross-compiler works.
5144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145 # <limits.h> exists even on freestanding compilers.
5146 # On the NeXT, cc -E runs the code through the compiler's parser,
5147 # not just through cpp. "Syntax error" is here to catch this case.
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 #ifdef __STDC__
5155 # include <limits.h>
5156 #else
5157 # include <assert.h>
5158 #endif
5159 Syntax error
5160 _ACEOF
5161 if { (ac_try="$ac_cpp conftest.$ac_ext"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5167 $as_echo "$ac_try_echo") >&5
5168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } >/dev/null && {
5175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5176 test ! -s conftest.err
5177 }; then
5179 else
5180 $as_echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5183 # Broken: fails on valid input.
5184 continue
5187 rm -f conftest.err conftest.$ac_ext
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 #include <ac_nonexistent.h>
5198 _ACEOF
5199 if { (ac_try="$ac_cpp conftest.$ac_ext"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev/null && {
5213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 }; then
5216 # Broken: success on invalid input.
5217 continue
5218 else
5219 $as_echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 # Passes both tests.
5223 ac_preproc_ok=:
5224 break
5227 rm -f conftest.err conftest.$ac_ext
5229 done
5230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5231 rm -f conftest.err conftest.$ac_ext
5232 if $ac_preproc_ok; then
5234 else
5235 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&5
5237 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5238 See \`config.log' for more details." >&2;}
5239 { (exit 1); exit 1; }; }
5242 ac_ext=c
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 # Find a good install program. We prefer a C program (faster),
5249 # so one script is as good as another. But avoid the broken or
5250 # incompatible versions:
5251 # SysV /etc/install, /usr/sbin/install
5252 # SunOS /usr/etc/install
5253 # IRIX /sbin/install
5254 # AIX /bin/install
5255 # AmigaOS /C/install, which installs bootblocks on floppy discs
5256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5259 # OS/2's system install, which has a completely different semantic
5260 # ./install, which can be erroneously created by make from ./install.sh.
5261 # Reject install programs that cannot install multiple files.
5262 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5264 if test -z "$INSTALL"; then
5265 if test "${ac_cv_path_install+set}" = set; then
5266 $as_echo_n "(cached) " >&6
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 # Account for people who put trailing slashes in PATH elements.
5274 case $as_dir/ in
5275 ./ | .// | /cC/* | \
5276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5277 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5278 /usr/ucb/* ) ;;
5280 # OSF1 and SCO ODT 3.0 have their own names for install.
5281 # Don't use installbsd from OSF since it installs stuff as root
5282 # by default.
5283 for ac_prog in ginstall scoinst install; do
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5286 if test $ac_prog = install &&
5287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5288 # AIX install. It has an incompatible calling convention.
5290 elif test $ac_prog = install &&
5291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5292 # program-specific install script used by HP pwplus--don't use.
5294 else
5295 rm -rf conftest.one conftest.two conftest.dir
5296 echo one > conftest.one
5297 echo two > conftest.two
5298 mkdir conftest.dir
5299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5300 test -s conftest.one && test -s conftest.two &&
5301 test -s conftest.dir/conftest.one &&
5302 test -s conftest.dir/conftest.two
5303 then
5304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5305 break 3
5309 done
5310 done
5312 esac
5314 done
5315 IFS=$as_save_IFS
5317 rm -rf conftest.one conftest.two conftest.dir
5320 if test "${ac_cv_path_install+set}" = set; then
5321 INSTALL=$ac_cv_path_install
5322 else
5323 # As a last resort, use the slow shell script. Don't cache a
5324 # value for INSTALL within a source directory, because that will
5325 # break other packages using the cache if that directory is
5326 # removed, or if the value is a relative name.
5327 INSTALL=$ac_install_sh
5330 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5331 $as_echo "$INSTALL" >&6; }
5333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5334 # It thinks the first close brace ends the variable substitution.
5335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5341 if test "x$RANLIB" = x; then
5342 if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_prog_RANLIB+set}" = set; then
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$RANLIB"; then
5351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5370 RANLIB=$ac_cv_prog_RANLIB
5371 if test -n "$RANLIB"; then
5372 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5373 $as_echo "$RANLIB" >&6; }
5374 else
5375 { $as_echo "$as_me:$LINENO: result: no" >&5
5376 $as_echo "no" >&6; }
5381 if test -z "$ac_cv_prog_RANLIB"; then
5382 ac_ct_RANLIB=$RANLIB
5383 # Extract the first word of "ranlib", so it can be a program name with args.
5384 set dummy ranlib; ac_word=$2
5385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$ac_ct_RANLIB"; then
5391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_ac_ct_RANLIB="ranlib"
5401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5410 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5411 if test -n "$ac_ct_RANLIB"; then
5412 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5413 $as_echo "$ac_ct_RANLIB" >&6; }
5414 else
5415 { $as_echo "$as_me:$LINENO: result: no" >&5
5416 $as_echo "no" >&6; }
5419 if test "x$ac_ct_RANLIB" = x; then
5420 RANLIB=":"
5421 else
5422 case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5425 whose name does not start with the host triplet. If you think this
5426 configuration is useful to you, please write to autoconf@gnu.org." >&5
5427 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5428 whose name does not start with the host triplet. If you think this
5429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5430 ac_tool_warned=yes ;;
5431 esac
5432 RANLIB=$ac_ct_RANLIB
5434 else
5435 RANLIB="$ac_cv_prog_RANLIB"
5440 ## Although we're running on an amd64 kernel, we're actually compiling for
5441 ## the x86 architecture. The user should probably have provided an
5442 ## explicit --build to `configure', but if everything else than the kernel
5443 ## is running in i386 mode, we can help them out.
5444 if test "$machine" = "amdx86-64"; then
5445 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5446 $as_echo_n "checking whether i386 is declared... " >&6; }
5447 if test "${ac_cv_have_decl_i386+set}" = set; then
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 $ac_includes_default
5458 main ()
5460 #ifndef i386
5461 (void) i386;
5462 #endif
5465 return 0;
5467 _ACEOF
5468 rm -f conftest.$ac_objext
5469 if { (ac_try="$ac_compile"
5470 case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473 esac
5474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5475 $as_echo "$ac_try_echo") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5486 ac_cv_have_decl_i386=yes
5487 else
5488 $as_echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_cv_have_decl_i386=no
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5497 $as_echo "$ac_cv_have_decl_i386" >&6; }
5499 if test "$ac_cv_have_decl_i386" = "yes"; then
5500 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5501 machine=intel386
5502 machfile="m/${machine}.h"
5506 # Extract the first word of "install-info", so it can be a program name with args.
5507 set dummy install-info; ac_word=$2
5508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5511 $as_echo_n "(cached) " >&6
5512 else
5513 case $INSTALL_INFO in
5514 [\\/]* | ?:[\\/]*)
5515 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5529 done
5530 done
5531 IFS=$as_save_IFS
5534 esac
5536 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5537 if test -n "$INSTALL_INFO"; then
5538 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5539 $as_echo "$INSTALL_INFO" >&6; }
5540 else
5541 { $as_echo "$as_me:$LINENO: result: no" >&5
5542 $as_echo "no" >&6; }
5546 # Extract the first word of "install-info", so it can be a program name with args.
5547 set dummy install-info; ac_word=$2
5548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5551 $as_echo_n "(cached) " >&6
5552 else
5553 case $INSTALL_INFO in
5554 [\\/]* | ?:[\\/]*)
5555 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in /usr/sbin
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5569 done
5570 done
5571 IFS=$as_save_IFS
5574 esac
5576 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5577 if test -n "$INSTALL_INFO"; then
5578 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5579 $as_echo "$INSTALL_INFO" >&6; }
5580 else
5581 { $as_echo "$as_me:$LINENO: result: no" >&5
5582 $as_echo "no" >&6; }
5586 # Extract the first word of "install-info", so it can be a program name with args.
5587 set dummy install-info; ac_word=$2
5588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5591 $as_echo_n "(cached) " >&6
5592 else
5593 case $INSTALL_INFO in
5594 [\\/]* | ?:[\\/]*)
5595 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in /sbin
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5609 done
5610 done
5611 IFS=$as_save_IFS
5613 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5615 esac
5617 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5618 if test -n "$INSTALL_INFO"; then
5619 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5620 $as_echo "$INSTALL_INFO" >&6; }
5621 else
5622 { $as_echo "$as_me:$LINENO: result: no" >&5
5623 $as_echo "no" >&6; }
5627 # Extract the first word of "gzip", so it can be a program name with args.
5628 set dummy gzip; ac_word=$2
5629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5632 $as_echo_n "(cached) " >&6
5633 else
5634 case $GZIP_PROG in
5635 [\\/]* | ?:[\\/]*)
5636 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5650 done
5651 done
5652 IFS=$as_save_IFS
5655 esac
5657 GZIP_PROG=$ac_cv_path_GZIP_PROG
5658 if test -n "$GZIP_PROG"; then
5659 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5660 $as_echo "$GZIP_PROG" >&6; }
5661 else
5662 { $as_echo "$as_me:$LINENO: result: no" >&5
5663 $as_echo "no" >&6; }
5669 ## Need makeinfo >= 4.6 (?) to build the manuals.
5670 # Extract the first word of "makeinfo", so it can be a program name with args.
5671 set dummy makeinfo; ac_word=$2
5672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5675 $as_echo_n "(cached) " >&6
5676 else
5677 case $MAKEINFO in
5678 [\\/]* | ?:[\\/]*)
5679 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5693 done
5694 done
5695 IFS=$as_save_IFS
5697 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5699 esac
5701 MAKEINFO=$ac_cv_path_MAKEINFO
5702 if test -n "$MAKEINFO"; then
5703 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5704 $as_echo "$MAKEINFO" >&6; }
5705 else
5706 { $as_echo "$as_me:$LINENO: result: no" >&5
5707 $as_echo "no" >&6; }
5711 if test "$MAKEINFO" != "no" && \
5712 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5713 MAKEINFO=no
5716 ## Makeinfo is unusual. For a released Emacs, the manuals are
5717 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5718 ## therefore in the category of "special tools" not normally required, which
5719 ## configure does not have to check for (eg autoconf itself).
5720 ## In a Bazaar checkout on the other hand, the manuals are not included.
5721 ## So makeinfo is a requirement to build from Bazaar, and configure
5722 ## should test for it as it does for any other build requirement.
5723 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5724 ## with pre-built manuals, from a Bazaar checkout.
5725 if test "$MAKEINFO" = "no"; then
5726 if test "x${with_makeinfo}" = "xno"; then
5727 MAKEINFO=off
5728 elif test ! -e $srcdir/info/emacs; then
5729 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5730 source tree does not seem to have pre-built manuals in the \`info' directory.
5731 Either install a suitable version of makeinfo, or re-run configure
5732 with the \`--without-makeinfo' option to build without the manuals. " >&5
5733 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5734 source tree does not seem to have pre-built manuals in the \`info' directory.
5735 Either install a suitable version of makeinfo, or re-run configure
5736 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5737 { (exit 1); exit 1; }; }
5742 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5743 then
5744 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5747 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5748 then
5749 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5753 late_LDFLAGS=$LDFLAGS
5754 if test "$GCC" = yes; then
5755 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5756 else
5757 LDFLAGS="$LDFLAGS -znocombreloc"
5760 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5761 $as_echo_n "checking for -znocombreloc... " >&6; }
5762 cat >conftest.$ac_ext <<_ACEOF
5763 main(){return 0;}
5764 _ACEOF
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (ac_try="$ac_link"
5767 case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770 esac
5771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5772 $as_echo "$ac_try_echo") >&5
5773 (eval "$ac_link") 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && {
5780 test -z "$ac_c_werror_flag" ||
5781 test ! -s conftest.err
5782 } && test -s conftest$ac_exeext && {
5783 test "$cross_compiling" = yes ||
5784 $as_test_x conftest$ac_exeext
5785 }; then
5786 { $as_echo "$as_me:$LINENO: result: yes" >&5
5787 $as_echo "yes" >&6; }
5788 else
5789 $as_echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 LDFLAGS=$late_LDFLAGS
5793 { $as_echo "$as_me:$LINENO: result: no" >&5
5794 $as_echo "no" >&6; }
5797 rm -rf conftest.dSYM
5798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5799 conftest$ac_exeext conftest.$ac_ext
5801 #### Extract some information from the operating system and machine files.
5803 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5804 - which libraries the lib-src programs will want, and
5805 - whether the GNU malloc routines are usable..." >&5
5806 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5807 - which libraries the lib-src programs will want, and
5808 - whether the GNU malloc routines are usable..." >&6;}
5810 ### First figure out CFLAGS (which we use for running the compiler here)
5811 ### and REAL_CFLAGS (which we use for real compilation).
5812 ### The two are the same except on a few systems, where they are made
5813 ### different to work around various lossages. For example,
5814 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5815 ### as implying static linking.
5817 ### If the CFLAGS env var is specified, we use that value
5818 ### instead of the default.
5820 ### It's not important that this name contain the PID; you can't run
5821 ### two configures in the same directory and have anything work
5822 ### anyway.
5823 tempcname="conftest.c"
5825 echo '
5826 #include "'${srcdir}'/src/'${opsysfile}'"
5827 #include "'${srcdir}'/src/'${machfile}'"
5829 configure___ LIBX=-lX11
5831 configure___ unexec=UNEXEC
5833 #ifdef SYSTEM_MALLOC
5834 configure___ system_malloc=yes
5835 #else
5836 configure___ system_malloc=no
5837 #endif
5839 #ifdef USE_MMAP_FOR_BUFFERS
5840 configure___ use_mmap_for_buffers=yes
5841 #else
5842 configure___ use_mmap_for_buffers=no
5843 #endif
5845 #ifndef C_OPTIMIZE_SWITCH
5846 #ifdef __GNUC__
5847 #define C_OPTIMIZE_SWITCH -O2
5848 #else
5849 #define C_OPTIMIZE_SWITCH -O
5850 #endif
5851 #endif
5853 #ifndef C_WARNINGS_SWITCH
5854 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5855 #endif
5857 #ifdef THIS_IS_CONFIGURE
5859 /* Get the CFLAGS for tests in configure. */
5860 #ifdef __GNUC__
5861 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5862 #else
5863 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5864 #endif
5866 #else /* not THIS_IS_CONFIGURE */
5868 /* Get the CFLAGS for real compilation. */
5869 #ifdef __GNUC__
5870 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5871 #else
5872 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5873 #endif
5875 #endif /* not THIS_IS_CONFIGURE */
5876 ' > ${tempcname}
5878 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5880 # The value of CPP is a quoted variable reference, so we need to do this
5881 # to get its actual value...
5882 CPP=`eval "echo $CPP"`
5883 eval `${CPP} -Isrc ${tempcname} \
5884 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5885 if test "x$SPECIFIED_CFLAGS" = x; then
5886 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5887 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5888 else
5889 REAL_CFLAGS="$CFLAGS"
5891 rm ${tempcname}
5894 LD_SWITCH_SYSTEM=
5895 case "$opsys" in
5896 freebsd)
5897 ## Let `ld' find image libs and similar things in /usr/local/lib.
5898 ## The system compiler, GCC, has apparently been modified to not
5899 ## look there, contrary to what a stock GCC would do.
5900 LD_SWITCH_SYSTEM=-L/usr/local/lib
5903 gnu-linux)
5904 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5905 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5908 netbsd)
5909 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5912 openbsd)
5913 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5914 ## otherwise Emacs dumps core on elf systems.
5915 LD_SWITCH_SYSTEM="-Z"
5917 esac
5920 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5922 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5923 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5924 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5925 ## values in configure and the Makefiles. How helpful.
5926 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5927 case "$opsys" in
5928 gnu-linux)
5929 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5930 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5932 netbsd|openbsd)
5933 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5934 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5935 esac
5938 C_SWITCH_MACHINE=
5939 if test "$machine" = "alpha"; then
5940 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5941 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5942 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5943 $as_echo_n "(cached) " >&6
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5953 main ()
5955 #ifndef __ELF__
5956 (void) __ELF__;
5957 #endif
5960 return 0;
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5970 $as_echo "$ac_try_echo") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && {
5978 test -z "$ac_c_werror_flag" ||
5979 test ! -s conftest.err
5980 } && test -s conftest.$ac_objext; then
5981 ac_cv_have_decl___ELF__=yes
5982 else
5983 $as_echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_cv_have_decl___ELF__=no
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
5992 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
5994 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5995 ## With ELF, make sure that all common symbols get allocated to in the
5996 ## data section. Otherwise, the dump of temacs may miss variables in
5997 ## the shared library that have been initialized. For example, with
5998 ## GNU libc, __malloc_initialized would normally be resolved to the
5999 ## shared library's .bss section, which is fatal.
6000 if test "x$GCC" = "xyes"; then
6001 C_SWITCH_MACHINE="-fno-common"
6002 else
6003 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6004 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6005 { (exit 1); exit 1; }; }
6012 C_SWITCH_SYSTEM=
6013 ## Some programs in src produce warnings saying certain subprograms
6014 ## are too complex and need a MAXMEM value greater than 2000 for
6015 ## additional optimization. --nils@exp-math.uni-essen.de
6016 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6017 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6018 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6019 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6023 LIBS_SYSTEM=
6024 case "$opsys" in
6025 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6026 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6028 freebsd) LIBS_SYSTEM="-lutil" ;;
6030 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6032 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6034 ## Motif needs -lgen.
6035 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6036 esac
6040 ### Make sure subsequent tests use flags consistent with the build flags.
6042 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6043 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6044 else
6045 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6050 # Check whether --enable-largefile was given.
6051 if test "${enable_largefile+set}" = set; then
6052 enableval=$enable_largefile;
6055 if test "$enable_largefile" != no; then
6057 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6058 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6059 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6060 $as_echo_n "(cached) " >&6
6061 else
6062 ac_cv_sys_largefile_CC=no
6063 if test "$GCC" != yes; then
6064 ac_save_CC=$CC
6065 while :; do
6066 # IRIX 6.2 and later do not support large files by default,
6067 # so use the C compiler's -n32 option if that helps.
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <sys/types.h>
6075 /* Check that off_t can represent 2**63 - 1 correctly.
6076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6077 since some C++ compilers masquerading as C compilers
6078 incorrectly reject 9223372036854775807. */
6079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6081 && LARGE_OFF_T % 2147483647 == 1)
6082 ? 1 : -1];
6084 main ()
6088 return 0;
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 break
6110 else
6111 $as_echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6117 rm -f core conftest.err conftest.$ac_objext
6118 CC="$CC -n32"
6119 rm -f conftest.$ac_objext
6120 if { (ac_try="$ac_compile"
6121 case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6126 $as_echo "$ac_try_echo") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && {
6134 test -z "$ac_c_werror_flag" ||
6135 test ! -s conftest.err
6136 } && test -s conftest.$ac_objext; then
6137 ac_cv_sys_largefile_CC=' -n32'; break
6138 else
6139 $as_echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6145 rm -f core conftest.err conftest.$ac_objext
6146 break
6147 done
6148 CC=$ac_save_CC
6149 rm -f conftest.$ac_ext
6152 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6153 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6154 if test "$ac_cv_sys_largefile_CC" != no; then
6155 CC=$CC$ac_cv_sys_largefile_CC
6158 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6159 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6160 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6161 $as_echo_n "(cached) " >&6
6162 else
6163 while :; do
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <sys/types.h>
6171 /* Check that off_t can represent 2**63 - 1 correctly.
6172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6173 since some C++ compilers masquerading as C compilers
6174 incorrectly reject 9223372036854775807. */
6175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6177 && LARGE_OFF_T % 2147483647 == 1)
6178 ? 1 : -1];
6180 main ()
6184 return 0;
6186 _ACEOF
6187 rm -f conftest.$ac_objext
6188 if { (ac_try="$ac_compile"
6189 case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192 esac
6193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194 $as_echo "$ac_try_echo") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.$ac_objext; then
6205 ac_cv_sys_file_offset_bits=no; break
6206 else
6207 $as_echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 #define _FILE_OFFSET_BITS 64
6221 #include <sys/types.h>
6222 /* Check that off_t can represent 2**63 - 1 correctly.
6223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6224 since some C++ compilers masquerading as C compilers
6225 incorrectly reject 9223372036854775807. */
6226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6228 && LARGE_OFF_T % 2147483647 == 1)
6229 ? 1 : -1];
6231 main ()
6235 return 0;
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6245 $as_echo "$ac_try_echo") >&5
6246 (eval "$ac_compile") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && {
6253 test -z "$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6255 } && test -s conftest.$ac_objext; then
6256 ac_cv_sys_file_offset_bits=64; break
6257 else
6258 $as_echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_cv_sys_file_offset_bits=unknown
6266 break
6267 done
6269 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6270 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6271 case $ac_cv_sys_file_offset_bits in #(
6272 no | unknown) ;;
6274 cat >>confdefs.h <<_ACEOF
6275 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6276 _ACEOF
6278 esac
6279 rm -rf conftest*
6280 if test $ac_cv_sys_file_offset_bits = unknown; then
6281 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6282 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6283 if test "${ac_cv_sys_large_files+set}" = set; then
6284 $as_echo_n "(cached) " >&6
6285 else
6286 while :; do
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #include <sys/types.h>
6294 /* Check that off_t can represent 2**63 - 1 correctly.
6295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6296 since some C++ compilers masquerading as C compilers
6297 incorrectly reject 9223372036854775807. */
6298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6300 && LARGE_OFF_T % 2147483647 == 1)
6301 ? 1 : -1];
6303 main ()
6307 return 0;
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (ac_try="$ac_compile"
6312 case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315 esac
6316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6317 $as_echo "$ac_try_echo") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6328 ac_cv_sys_large_files=no; break
6329 else
6330 $as_echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #define _LARGE_FILES 1
6344 #include <sys/types.h>
6345 /* Check that off_t can represent 2**63 - 1 correctly.
6346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6347 since some C++ compilers masquerading as C compilers
6348 incorrectly reject 9223372036854775807. */
6349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6351 && LARGE_OFF_T % 2147483647 == 1)
6352 ? 1 : -1];
6354 main ()
6358 return 0;
6360 _ACEOF
6361 rm -f conftest.$ac_objext
6362 if { (ac_try="$ac_compile"
6363 case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366 esac
6367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6368 $as_echo "$ac_try_echo") >&5
6369 (eval "$ac_compile") 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && {
6376 test -z "$ac_c_werror_flag" ||
6377 test ! -s conftest.err
6378 } && test -s conftest.$ac_objext; then
6379 ac_cv_sys_large_files=1; break
6380 else
6381 $as_echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 ac_cv_sys_large_files=unknown
6389 break
6390 done
6392 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6393 $as_echo "$ac_cv_sys_large_files" >&6; }
6394 case $ac_cv_sys_large_files in #(
6395 no | unknown) ;;
6397 cat >>confdefs.h <<_ACEOF
6398 #define _LARGE_FILES $ac_cv_sys_large_files
6399 _ACEOF
6401 esac
6402 rm -rf conftest*
6408 ## If user specified a crt-dir, use that unconditionally.
6409 if test "X$CRT_DIR" = "X"; then
6411 case "$canonical" in
6412 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6413 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6414 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6415 ## For anything else (eg /usr/lib32), it is up the user to specify
6416 ## the location (bug#5655).
6417 ## Test for crtn.o, not just the directory, because sometimes the
6418 ## directory exists but does not have the relevant files (bug#1287).
6419 ## FIXME better to test for binary compatibility somehow.
6420 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6423 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6424 esac
6426 case "$opsys" in
6427 hpux10-20) CRT_DIR=/lib ;;
6428 esac
6430 ## Default is /usr/lib.
6431 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6433 else
6435 ## Some platforms don't use any of these files, so it is not
6436 ## appropriate to put this test outside the if block.
6437 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6438 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6439 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6440 { (exit 1); exit 1; }; }
6446 LIB_MATH=-lm
6447 LIB_STANDARD=
6448 START_FILES=
6450 case $opsys in
6451 cygwin )
6452 LIB_MATH=
6453 START_FILES='ecrt0.o'
6455 darwin )
6456 ## Adding -lm confuses the dynamic linker, so omit it.
6457 LIB_MATH=
6458 START_FILES='pre-crt0.o'
6460 freebsd )
6461 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6462 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6464 gnu-linux | gnu-kfreebsd )
6465 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6466 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6468 hpux10-20 | hpux11 )
6469 LIB_STANDARD=-lc
6470 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6472 netbsd | openbsd )
6473 if test -f $CRT_DIR/crti.o; then
6474 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6475 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6476 else
6477 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6478 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6481 esac
6489 if test "${with_sound}" != "no"; then
6490 # Sound support for GNU/Linux and the free BSDs.
6494 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 $as_echo_n "checking for $ac_header... " >&6; }
6500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6501 $as_echo_n "(cached) " >&6
6503 ac_res=`eval 'as_val=${'$as_ac_Header'}
6504 $as_echo "$as_val"'`
6505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6506 $as_echo "$ac_res" >&6; }
6507 else
6508 # Is the header compilable?
6509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6510 $as_echo_n "checking $ac_header usability... " >&6; }
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6518 #include <$ac_header>
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (ac_try="$ac_compile"
6522 case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525 esac
6526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6527 $as_echo "$ac_try_echo") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
6538 ac_header_compiler=yes
6539 else
6540 $as_echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6543 ac_header_compiler=no
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6548 $as_echo "$ac_header_compiler" >&6; }
6550 # Is the header present?
6551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6552 $as_echo_n "checking $ac_header presence... " >&6; }
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 #include <$ac_header>
6560 _ACEOF
6561 if { (ac_try="$ac_cpp conftest.$ac_ext"
6562 case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565 esac
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } >/dev/null && {
6575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 }; then
6578 ac_header_preproc=yes
6579 else
6580 $as_echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_header_preproc=no
6586 rm -f conftest.err conftest.$ac_ext
6587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6588 $as_echo "$ac_header_preproc" >&6; }
6590 # So? What about this header?
6591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6592 yes:no: )
6593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6597 ac_header_preproc=yes
6599 no:yes:* )
6600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6614 esac
6615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6616 $as_echo_n "checking for $ac_header... " >&6; }
6617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6618 $as_echo_n "(cached) " >&6
6619 else
6620 eval "$as_ac_Header=\$ac_header_preproc"
6622 ac_res=`eval 'as_val=${'$as_ac_Header'}
6623 $as_echo "$as_val"'`
6624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6625 $as_echo "$ac_res" >&6; }
6628 if test `eval 'as_val=${'$as_ac_Header'}
6629 $as_echo "$as_val"'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 _ACEOF
6636 done
6638 # Emulation library used on NetBSD.
6639 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6640 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6641 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6642 $as_echo_n "(cached) " >&6
6643 else
6644 ac_check_lib_save_LIBS=$LIBS
6645 LIBS="-lossaudio $LIBS"
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6653 /* Override any GCC internal prototype to avoid an error.
6654 Use char because int might match the return type of a GCC
6655 builtin and then its argument prototype would still apply. */
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 char _oss_ioctl ();
6661 main ()
6663 return _oss_ioctl ();
6665 return 0;
6667 _ACEOF
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (ac_try="$ac_link"
6670 case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6675 $as_echo "$ac_try_echo") >&5
6676 (eval "$ac_link") 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 } && test -s conftest$ac_exeext && {
6686 test "$cross_compiling" = yes ||
6687 $as_test_x conftest$ac_exeext
6688 }; then
6689 ac_cv_lib_ossaudio__oss_ioctl=yes
6690 else
6691 $as_echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cv_lib_ossaudio__oss_ioctl=no
6697 rm -rf conftest.dSYM
6698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6699 conftest$ac_exeext conftest.$ac_ext
6700 LIBS=$ac_check_lib_save_LIBS
6702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6703 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6704 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6705 LIBSOUND=-lossaudio
6706 else
6707 LIBSOUND=
6712 ALSA_REQUIRED=1.0.0
6713 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6715 succeeded=no
6717 # Extract the first word of "pkg-config", so it can be a program name with args.
6718 set dummy pkg-config; ac_word=$2
6719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6722 $as_echo_n "(cached) " >&6
6723 else
6724 case $PKG_CONFIG in
6725 [\\/]* | ?:[\\/]*)
6726 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6740 done
6741 done
6742 IFS=$as_save_IFS
6744 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6746 esac
6748 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6749 if test -n "$PKG_CONFIG"; then
6750 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6751 $as_echo "$PKG_CONFIG" >&6; }
6752 else
6753 { $as_echo "$as_me:$LINENO: result: no" >&5
6754 $as_echo "no" >&6; }
6759 if test "$PKG_CONFIG" = "no" ; then
6760 HAVE_ALSA=no
6761 else
6762 PKG_CONFIG_MIN_VERSION=0.9.0
6763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6764 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6765 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6767 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6768 { $as_echo "$as_me:$LINENO: result: yes" >&5
6769 $as_echo "yes" >&6; }
6770 succeeded=yes
6772 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6773 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6774 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6775 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6776 $as_echo "$ALSA_CFLAGS" >&6; }
6778 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6779 $as_echo_n "checking ALSA_LIBS... " >&6; }
6780 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6781 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6782 $as_echo "$ALSA_LIBS" >&6; }
6783 else
6784 { $as_echo "$as_me:$LINENO: result: no" >&5
6785 $as_echo "no" >&6; }
6786 ALSA_CFLAGS=""
6787 ALSA_LIBS=""
6788 ## If we have a custom action on failure, don't print errors, but
6789 ## do set a variable so people can do so.
6790 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6796 else
6797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6802 if test $succeeded = yes; then
6803 HAVE_ALSA=yes
6804 else
6805 HAVE_ALSA=no
6808 if test $HAVE_ALSA = yes; then
6809 SAVE_CFLAGS="$CFLAGS"
6810 SAVE_LDFLAGS="$LDFLAGS"
6811 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6812 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 #include <asoundlib.h>
6821 main ()
6823 snd_lib_error_set_handler (0);
6825 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6835 $as_echo "$ac_try_echo") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6846 emacs_alsa_normal=yes
6847 else
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 emacs_alsa_normal=no
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 if test "$emacs_alsa_normal" != yes; then
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 #include <alsa/asoundlib.h>
6864 main ()
6866 snd_lib_error_set_handler (0);
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 emacs_alsa_subdir=yes
6890 else
6891 $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 emacs_alsa_subdir=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 if test "$emacs_alsa_subdir" != yes; then
6899 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6900 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6901 { (exit 1); exit 1; }; }
6903 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6906 CFLAGS="$SAVE_CFLAGS"
6907 LDFLAGS="$SAVE_LDFLAGS"
6908 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6909 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_ALSA 1
6913 _ACEOF
6944 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6945 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6946 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6947 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6948 sys/utsname.h pwd.h utmp.h
6950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6953 $as_echo_n "checking for $ac_header... " >&6; }
6954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6955 $as_echo_n "(cached) " >&6
6957 ac_res=`eval 'as_val=${'$as_ac_Header'}
6958 $as_echo "$as_val"'`
6959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6960 $as_echo "$ac_res" >&6; }
6961 else
6962 # Is the header compilable?
6963 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6964 $as_echo_n "checking $ac_header usability... " >&6; }
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 $ac_includes_default
6972 #include <$ac_header>
6973 _ACEOF
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6976 case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979 esac
6980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6981 $as_echo "$ac_try_echo") >&5
6982 (eval "$ac_compile") 2>conftest.er1
6983 ac_status=$?
6984 grep -v '^ *+' conftest.er1 >conftest.err
6985 rm -f conftest.er1
6986 cat conftest.err >&5
6987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && {
6989 test -z "$ac_c_werror_flag" ||
6990 test ! -s conftest.err
6991 } && test -s conftest.$ac_objext; then
6992 ac_header_compiler=yes
6993 else
6994 $as_echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_header_compiler=no
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7002 $as_echo "$ac_header_compiler" >&6; }
7004 # Is the header present?
7005 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7006 $as_echo_n "checking $ac_header presence... " >&6; }
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 #include <$ac_header>
7014 _ACEOF
7015 if { (ac_try="$ac_cpp conftest.$ac_ext"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7021 $as_echo "$ac_try_echo") >&5
7022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev/null && {
7029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 }; then
7032 ac_header_preproc=yes
7033 else
7034 $as_echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_header_preproc=no
7040 rm -f conftest.err conftest.$ac_ext
7041 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7042 $as_echo "$ac_header_preproc" >&6; }
7044 # So? What about this header?
7045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7046 yes:no: )
7047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7048 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7051 ac_header_preproc=yes
7053 no:yes:* )
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7055 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7057 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7059 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7061 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7065 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7068 esac
7069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7070 $as_echo_n "checking for $ac_header... " >&6; }
7071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7072 $as_echo_n "(cached) " >&6
7073 else
7074 eval "$as_ac_Header=\$ac_header_preproc"
7076 ac_res=`eval 'as_val=${'$as_ac_Header'}
7077 $as_echo "$as_val"'`
7078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7079 $as_echo "$ac_res" >&6; }
7082 if test `eval 'as_val=${'$as_ac_Header'}
7083 $as_echo "$as_val"'` = yes; then
7084 cat >>confdefs.h <<_ACEOF
7085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7086 _ACEOF
7090 done
7093 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7094 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 #include <sys/personality.h>
7103 main ()
7105 personality (PER_LINUX32)
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7112 case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115 esac
7116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7117 $as_echo "$ac_try_echo") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 emacs_cv_personality_linux32=yes
7129 else
7130 $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 emacs_cv_personality_linux32=no
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7138 $as_echo "$emacs_cv_personality_linux32" >&6; }
7140 if test $emacs_cv_personality_linux32 = yes; then
7142 cat >>confdefs.h <<\_ACEOF
7143 #define HAVE_PERSONALITY_LINUX32 1
7144 _ACEOF
7149 for ac_header in term.h
7151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7153 $as_echo_n "checking for $ac_header... " >&6; }
7154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7155 $as_echo_n "(cached) " >&6
7156 else
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <$ac_header>
7164 _ACEOF
7165 if { (ac_try="$ac_cpp conftest.$ac_ext"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } >/dev/null && {
7179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 }; then
7182 eval "$as_ac_Header=yes"
7183 else
7184 $as_echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 eval "$as_ac_Header=no"
7190 rm -f conftest.err conftest.$ac_ext
7192 ac_res=`eval 'as_val=${'$as_ac_Header'}
7193 $as_echo "$as_val"'`
7194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7195 $as_echo "$ac_res" >&6; }
7196 if test `eval 'as_val=${'$as_ac_Header'}
7197 $as_echo "$as_val"'` = yes; then
7198 cat >>confdefs.h <<_ACEOF
7199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7200 _ACEOF
7204 done
7206 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7207 $as_echo_n "checking for ANSI C header files... " >&6; }
7208 if test "${ac_cv_header_stdc+set}" = set; then
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <stdlib.h>
7218 #include <stdarg.h>
7219 #include <string.h>
7220 #include <float.h>
7223 main ()
7227 return 0;
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7232 case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235 esac
7236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7237 $as_echo "$ac_try_echo") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.$ac_objext; then
7248 ac_cv_header_stdc=yes
7249 else
7250 $as_echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7253 ac_cv_header_stdc=no
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 if test $ac_cv_header_stdc = yes; then
7259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h. */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 #include <string.h>
7268 _ACEOF
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270 $EGREP "memchr" >/dev/null 2>&1; then
7272 else
7273 ac_cv_header_stdc=no
7275 rm -f conftest*
7279 if test $ac_cv_header_stdc = yes; then
7280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 #include <stdlib.h>
7289 _ACEOF
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 $EGREP "free" >/dev/null 2>&1; then
7293 else
7294 ac_cv_header_stdc=no
7296 rm -f conftest*
7300 if test $ac_cv_header_stdc = yes; then
7301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7302 if test "$cross_compiling" = yes; then
7304 else
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 #include <ctype.h>
7312 #include <stdlib.h>
7313 #if ((' ' & 0x0FF) == 0x020)
7314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7316 #else
7317 # define ISLOWER(c) \
7318 (('a' <= (c) && (c) <= 'i') \
7319 || ('j' <= (c) && (c) <= 'r') \
7320 || ('s' <= (c) && (c) <= 'z'))
7321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7322 #endif
7324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7326 main ()
7328 int i;
7329 for (i = 0; i < 256; i++)
7330 if (XOR (islower (i), ISLOWER (i))
7331 || toupper (i) != TOUPPER (i))
7332 return 2;
7333 return 0;
7335 _ACEOF
7336 rm -f conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7338 case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7341 esac
7342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7343 $as_echo "$ac_try_echo") >&5
7344 (eval "$ac_link") 2>&5
7345 ac_status=$?
7346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7348 { (case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_try") 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7359 else
7360 $as_echo "$as_me: program exited with status $ac_status" >&5
7361 $as_echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 ( exit $ac_status )
7365 ac_cv_header_stdc=no
7367 rm -rf conftest.dSYM
7368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7375 $as_echo "$ac_cv_header_stdc" >&6; }
7376 if test $ac_cv_header_stdc = yes; then
7378 cat >>confdefs.h <<\_ACEOF
7379 #define STDC_HEADERS 1
7380 _ACEOF
7384 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7386 if test "${ac_cv_header_time+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <sys/types.h>
7396 #include <sys/time.h>
7397 #include <time.h>
7400 main ()
7402 if ((struct tm *) 0)
7403 return 0;
7405 return 0;
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (ac_try="$ac_compile"
7410 case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413 esac
7414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415 $as_echo "$ac_try_echo") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7426 ac_cv_header_time=yes
7427 else
7428 $as_echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 ac_cv_header_time=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7437 $as_echo "$ac_cv_header_time" >&6; }
7438 if test $ac_cv_header_time = yes; then
7440 cat >>confdefs.h <<\_ACEOF
7441 #define TIME_WITH_SYS_TIME 1
7442 _ACEOF
7446 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7447 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7448 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7449 $as_echo_n "(cached) " >&6
7450 else
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7459 main ()
7461 #ifndef sys_siglist
7462 (void) sys_siglist;
7463 #endif
7466 return 0;
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7471 case "(($ac_try" in
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7474 esac
7475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7476 $as_echo "$ac_try_echo") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 ac_cv_have_decl_sys_siglist=yes
7488 else
7489 $as_echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ac_cv_have_decl_sys_siglist=no
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7498 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7499 if test $ac_cv_have_decl_sys_siglist = yes; then
7501 cat >>confdefs.h <<_ACEOF
7502 #define HAVE_DECL_SYS_SIGLIST 1
7503 _ACEOF
7506 else
7507 cat >>confdefs.h <<_ACEOF
7508 #define HAVE_DECL_SYS_SIGLIST 0
7509 _ACEOF
7515 if test $ac_cv_have_decl_sys_siglist != yes; then
7516 # For Tru64, at least:
7517 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7518 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7519 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7521 else
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7530 main ()
7532 #ifndef __sys_siglist
7533 (void) __sys_siglist;
7534 #endif
7537 return 0;
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (ac_try="$ac_compile"
7542 case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545 esac
7546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7547 $as_echo "$ac_try_echo") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7558 ac_cv_have_decl___sys_siglist=yes
7559 else
7560 $as_echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_cv_have_decl___sys_siglist=no
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7569 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7570 if test $ac_cv_have_decl___sys_siglist = yes; then
7572 cat >>confdefs.h <<_ACEOF
7573 #define HAVE_DECL___SYS_SIGLIST 1
7574 _ACEOF
7577 else
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_DECL___SYS_SIGLIST 0
7580 _ACEOF
7586 if test $ac_cv_have_decl___sys_siglist = yes; then
7588 cat >>confdefs.h <<\_ACEOF
7589 #define sys_siglist __sys_siglist
7590 _ACEOF
7594 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7595 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7596 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7597 $as_echo_n "(cached) " >&6
7598 else
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <sys/types.h>
7606 #include <sys/wait.h>
7607 #ifndef WEXITSTATUS
7608 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7609 #endif
7610 #ifndef WIFEXITED
7611 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7612 #endif
7615 main ()
7617 int s;
7618 wait (&s);
7619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7621 return 0;
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (ac_try="$ac_compile"
7626 case "(($ac_try" in
7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7629 esac
7630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7631 $as_echo "$ac_try_echo") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7633 ac_status=$?
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
7637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
7642 ac_cv_header_sys_wait_h=yes
7643 else
7644 $as_echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_header_sys_wait_h=no
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7653 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7654 if test $ac_cv_header_sys_wait_h = yes; then
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_SYS_WAIT_H 1
7658 _ACEOF
7663 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7664 $as_echo_n "checking for struct utimbuf... " >&6; }
7665 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7666 $as_echo_n "(cached) " >&6
7667 else
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #ifdef TIME_WITH_SYS_TIME
7675 #include <sys/time.h>
7676 #include <time.h>
7677 #else
7678 #ifdef HAVE_SYS_TIME_H
7679 #include <sys/time.h>
7680 #else
7681 #include <time.h>
7682 #endif
7683 #endif
7684 #ifdef HAVE_UTIME_H
7685 #include <utime.h>
7686 #endif
7688 main ()
7690 static struct utimbuf x; x.actime = x.modtime;
7692 return 0;
7694 _ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7697 case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7702 $as_echo "$ac_try_echo") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 emacs_cv_struct_utimbuf=yes
7714 else
7715 $as_echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 emacs_cv_struct_utimbuf=no
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7724 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7725 if test $emacs_cv_struct_utimbuf = yes; then
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_STRUCT_UTIMBUF 1
7729 _ACEOF
7733 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7734 $as_echo_n "checking return type of signal handlers... " >&6; }
7735 if test "${ac_cv_type_signal+set}" = set; then
7736 $as_echo_n "(cached) " >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <sys/types.h>
7745 #include <signal.h>
7748 main ()
7750 return *(signal (0, 0)) (0) == 1;
7752 return 0;
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.$ac_objext; then
7773 ac_cv_type_signal=int
7774 else
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_type_signal=void
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7784 $as_echo "$ac_cv_type_signal" >&6; }
7786 cat >>confdefs.h <<_ACEOF
7787 #define RETSIGTYPE $ac_cv_type_signal
7788 _ACEOF
7792 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7793 $as_echo_n "checking for speed_t... " >&6; }
7794 if test "${emacs_cv_speed_t+set}" = set; then
7795 $as_echo_n "(cached) " >&6
7796 else
7797 cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h. */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <termios.h>
7805 main ()
7807 speed_t x = 1;
7809 return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7814 case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817 esac
7818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7819 $as_echo "$ac_try_echo") >&5
7820 (eval "$ac_compile") 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } && {
7827 test -z "$ac_c_werror_flag" ||
7828 test ! -s conftest.err
7829 } && test -s conftest.$ac_objext; then
7830 emacs_cv_speed_t=yes
7831 else
7832 $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 emacs_cv_speed_t=no
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7841 $as_echo "$emacs_cv_speed_t" >&6; }
7842 if test $emacs_cv_speed_t = yes; then
7844 cat >>confdefs.h <<\_ACEOF
7845 #define HAVE_SPEED_T 1
7846 _ACEOF
7850 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7851 $as_echo_n "checking for struct timeval... " >&6; }
7852 if test "${emacs_cv_struct_timeval+set}" = set; then
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #ifdef TIME_WITH_SYS_TIME
7862 #include <sys/time.h>
7863 #include <time.h>
7864 #else
7865 #ifdef HAVE_SYS_TIME_H
7866 #include <sys/time.h>
7867 #else
7868 #include <time.h>
7869 #endif
7870 #endif
7872 main ()
7874 static struct timeval x; x.tv_sec = x.tv_usec;
7876 return 0;
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (ac_try="$ac_compile"
7881 case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884 esac
7885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7886 $as_echo "$ac_try_echo") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 emacs_cv_struct_timeval=yes
7898 else
7899 $as_echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 emacs_cv_struct_timeval=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7908 $as_echo "$emacs_cv_struct_timeval" >&6; }
7909 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7910 if test $emacs_cv_struct_timeval = yes; then
7912 cat >>confdefs.h <<\_ACEOF
7913 #define HAVE_TIMEVAL 1
7914 _ACEOF
7918 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7919 $as_echo_n "checking for struct exception... " >&6; }
7920 if test "${emacs_cv_struct_exception+set}" = set; then
7921 $as_echo_n "(cached) " >&6
7922 else
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 #include <math.h>
7931 main ()
7933 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7935 return 0;
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7945 $as_echo "$ac_try_echo") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7956 emacs_cv_struct_exception=yes
7957 else
7958 $as_echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 emacs_cv_struct_exception=no
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7967 $as_echo "$emacs_cv_struct_exception" >&6; }
7968 HAVE_EXCEPTION=$emacs_cv_struct_exception
7969 if test $emacs_cv_struct_exception != yes; then
7971 cat >>confdefs.h <<\_ACEOF
7972 #define NO_MATHERR 1
7973 _ACEOF
7978 for ac_header in sys/socket.h
7980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7983 $as_echo_n "checking for $ac_header... " >&6; }
7984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7985 $as_echo_n "(cached) " >&6
7987 ac_res=`eval 'as_val=${'$as_ac_Header'}
7988 $as_echo "$as_val"'`
7989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7990 $as_echo "$ac_res" >&6; }
7991 else
7992 # Is the header compilable?
7993 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7994 $as_echo_n "checking $ac_header usability... " >&6; }
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h. */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 $ac_includes_default
8002 #include <$ac_header>
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009 esac
8010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8011 $as_echo "$ac_try_echo") >&5
8012 (eval "$ac_compile") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest.$ac_objext; then
8022 ac_header_compiler=yes
8023 else
8024 $as_echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_header_compiler=no
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8032 $as_echo "$ac_header_compiler" >&6; }
8034 # Is the header present?
8035 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8036 $as_echo_n "checking $ac_header presence... " >&6; }
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 #include <$ac_header>
8044 _ACEOF
8045 if { (ac_try="$ac_cpp conftest.$ac_ext"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8051 $as_echo "$ac_try_echo") >&5
8052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } >/dev/null && {
8059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 }; then
8062 ac_header_preproc=yes
8063 else
8064 $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_header_preproc=no
8070 rm -f conftest.err conftest.$ac_ext
8071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8072 $as_echo "$ac_header_preproc" >&6; }
8074 # So? What about this header?
8075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8076 yes:no: )
8077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8078 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8081 ac_header_preproc=yes
8083 no:yes:* )
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8085 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8087 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8089 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8091 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8098 esac
8099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 $as_echo_n "checking for $ac_header... " >&6; }
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 $as_echo_n "(cached) " >&6
8103 else
8104 eval "$as_ac_Header=\$ac_header_preproc"
8106 ac_res=`eval 'as_val=${'$as_ac_Header'}
8107 $as_echo "$as_val"'`
8108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8109 $as_echo "$ac_res" >&6; }
8112 if test `eval 'as_val=${'$as_ac_Header'}
8113 $as_echo "$as_val"'` = yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8116 _ACEOF
8120 done
8123 for ac_header in net/if.h
8125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8127 $as_echo_n "checking for $ac_header... " >&6; }
8128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8129 $as_echo_n "(cached) " >&6
8130 else
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8138 #if HAVE_SYS_SOCKET_H
8139 #include <sys/socket.h>
8140 #endif
8142 #include <$ac_header>
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8151 $as_echo "$ac_try_echo") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8162 eval "$as_ac_Header=yes"
8163 else
8164 $as_echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 eval "$as_ac_Header=no"
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 ac_res=`eval 'as_val=${'$as_ac_Header'}
8173 $as_echo "$as_val"'`
8174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8175 $as_echo "$ac_res" >&6; }
8176 if test `eval 'as_val=${'$as_ac_Header'}
8177 $as_echo "$as_val"'` = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8180 _ACEOF
8184 done
8187 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8188 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8189 if test "${ac_cv_struct_tm+set}" = set; then
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h. */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 #include <sys/types.h>
8199 #include <time.h>
8202 main ()
8204 struct tm tm;
8205 int *p = &tm.tm_sec;
8206 return !p;
8208 return 0;
8210 _ACEOF
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8213 case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_compile") 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest.$ac_objext; then
8229 ac_cv_struct_tm=time.h
8230 else
8231 $as_echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_cv_struct_tm=sys/time.h
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8240 $as_echo "$ac_cv_struct_tm" >&6; }
8241 if test $ac_cv_struct_tm = sys/time.h; then
8243 cat >>confdefs.h <<\_ACEOF
8244 #define TM_IN_SYS_TIME 1
8245 _ACEOF
8249 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8250 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8251 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8252 $as_echo_n "(cached) " >&6
8253 else
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #include <sys/types.h>
8261 #include <$ac_cv_struct_tm>
8265 main ()
8267 static struct tm ac_aggr;
8268 if (ac_aggr.tm_zone)
8269 return 0;
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8281 $as_echo "$ac_try_echo") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest.$ac_objext; then
8292 ac_cv_member_struct_tm_tm_zone=yes
8293 else
8294 $as_echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h. */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <$ac_cv_struct_tm>
8308 main ()
8310 static struct tm ac_aggr;
8311 if (sizeof ac_aggr.tm_zone)
8312 return 0;
8314 return 0;
8316 _ACEOF
8317 rm -f conftest.$ac_objext
8318 if { (ac_try="$ac_compile"
8319 case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322 esac
8323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8324 $as_echo "$ac_try_echo") >&5
8325 (eval "$ac_compile") 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 } && test -s conftest.$ac_objext; then
8335 ac_cv_member_struct_tm_tm_zone=yes
8336 else
8337 $as_echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_cv_member_struct_tm_tm_zone=no
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8349 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8350 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_STRUCT_TM_TM_ZONE 1
8354 _ACEOF
8359 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_TM_ZONE 1
8363 _ACEOF
8365 else
8366 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8367 $as_echo_n "checking whether tzname is declared... " >&6; }
8368 if test "${ac_cv_have_decl_tzname+set}" = set; then
8369 $as_echo_n "(cached) " >&6
8370 else
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 #include <time.h>
8380 main ()
8382 #ifndef tzname
8383 (void) tzname;
8384 #endif
8387 return 0;
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8392 case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8397 $as_echo "$ac_try_echo") >&5
8398 (eval "$ac_compile") 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } && {
8405 test -z "$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8407 } && test -s conftest.$ac_objext; then
8408 ac_cv_have_decl_tzname=yes
8409 else
8410 $as_echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_have_decl_tzname=no
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8419 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8420 if test $ac_cv_have_decl_tzname = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define HAVE_DECL_TZNAME 1
8424 _ACEOF
8427 else
8428 cat >>confdefs.h <<_ACEOF
8429 #define HAVE_DECL_TZNAME 0
8430 _ACEOF
8436 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8437 $as_echo_n "checking for tzname... " >&6; }
8438 if test "${ac_cv_var_tzname+set}" = set; then
8439 $as_echo_n "(cached) " >&6
8440 else
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <time.h>
8448 #if !HAVE_DECL_TZNAME
8449 extern char *tzname[];
8450 #endif
8453 main ()
8455 return tzname[0][0];
8457 return 0;
8459 _ACEOF
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8462 case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465 esac
8466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8467 $as_echo "$ac_try_echo") >&5
8468 (eval "$ac_link") 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } && {
8475 test -z "$ac_c_werror_flag" ||
8476 test ! -s conftest.err
8477 } && test -s conftest$ac_exeext && {
8478 test "$cross_compiling" = yes ||
8479 $as_test_x conftest$ac_exeext
8480 }; then
8481 ac_cv_var_tzname=yes
8482 else
8483 $as_echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_cv_var_tzname=no
8489 rm -rf conftest.dSYM
8490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8491 conftest$ac_exeext conftest.$ac_ext
8493 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8494 $as_echo "$ac_cv_var_tzname" >&6; }
8495 if test $ac_cv_var_tzname = yes; then
8497 cat >>confdefs.h <<\_ACEOF
8498 #define HAVE_TZNAME 1
8499 _ACEOF
8504 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8505 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8506 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8507 $as_echo_n "(cached) " >&6
8508 else
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h. */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 #include <time.h>
8518 main ()
8520 static struct tm ac_aggr;
8521 if (ac_aggr.tm_gmtoff)
8522 return 0;
8524 return 0;
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (ac_try="$ac_compile"
8529 case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532 esac
8533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534 $as_echo "$ac_try_echo") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
8545 ac_cv_member_struct_tm_tm_gmtoff=yes
8546 else
8547 $as_echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 #include <time.h>
8559 main ()
8561 static struct tm ac_aggr;
8562 if (sizeof ac_aggr.tm_gmtoff)
8563 return 0;
8565 return 0;
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573 esac
8574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576 (eval "$ac_compile") 2>conftest.er1
8577 ac_status=$?
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest.$ac_objext; then
8586 ac_cv_member_struct_tm_tm_gmtoff=yes
8587 else
8588 $as_echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_cv_member_struct_tm_tm_gmtoff=no
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8600 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8601 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8603 cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_TM_GMTOFF 1
8605 _ACEOF
8609 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8610 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8611 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8612 $as_echo_n "(cached) " >&6
8613 else
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 $ac_includes_default
8621 #if HAVE_SYS_SOCKET_H
8622 #include <sys/socket.h>
8623 #endif
8624 #if HAVE_NET_IF_H
8625 #include <net/if.h>
8626 #endif
8629 main ()
8631 static struct ifreq ac_aggr;
8632 if (ac_aggr.ifr_flags)
8633 return 0;
8635 return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8640 case "(($ac_try" in
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8643 esac
8644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8645 $as_echo "$ac_try_echo") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8656 ac_cv_member_struct_ifreq_ifr_flags=yes
8657 else
8658 $as_echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #if HAVE_SYS_SOCKET_H
8669 #include <sys/socket.h>
8670 #endif
8671 #if HAVE_NET_IF_H
8672 #include <net/if.h>
8673 #endif
8676 main ()
8678 static struct ifreq ac_aggr;
8679 if (sizeof ac_aggr.ifr_flags)
8680 return 0;
8682 return 0;
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (ac_try="$ac_compile"
8687 case "(($ac_try" in
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8690 esac
8691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8692 $as_echo "$ac_try_echo") >&5
8693 (eval "$ac_compile") 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } && {
8700 test -z "$ac_c_werror_flag" ||
8701 test ! -s conftest.err
8702 } && test -s conftest.$ac_objext; then
8703 ac_cv_member_struct_ifreq_ifr_flags=yes
8704 else
8705 $as_echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 ac_cv_member_struct_ifreq_ifr_flags=no
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8717 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8718 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8722 _ACEOF
8726 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8727 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8728 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h. */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 #if HAVE_SYS_SOCKET_H
8739 #include <sys/socket.h>
8740 #endif
8741 #if HAVE_NET_IF_H
8742 #include <net/if.h>
8743 #endif
8746 main ()
8748 static struct ifreq ac_aggr;
8749 if (ac_aggr.ifr_hwaddr)
8750 return 0;
8752 return 0;
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8757 case "(($ac_try" in
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8760 esac
8761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8762 $as_echo "$ac_try_echo") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.$ac_objext; then
8773 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8774 else
8775 $as_echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h. */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 $ac_includes_default
8785 #if HAVE_SYS_SOCKET_H
8786 #include <sys/socket.h>
8787 #endif
8788 #if HAVE_NET_IF_H
8789 #include <net/if.h>
8790 #endif
8793 main ()
8795 static struct ifreq ac_aggr;
8796 if (sizeof ac_aggr.ifr_hwaddr)
8797 return 0;
8799 return 0;
8801 _ACEOF
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8804 case "(($ac_try" in
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8807 esac
8808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8809 $as_echo "$ac_try_echo") >&5
8810 (eval "$ac_compile") 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } && {
8817 test -z "$ac_c_werror_flag" ||
8818 test ! -s conftest.err
8819 } && test -s conftest.$ac_objext; then
8820 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8821 else
8822 $as_echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8834 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8835 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8837 cat >>confdefs.h <<_ACEOF
8838 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8839 _ACEOF
8843 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8844 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8845 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8846 $as_echo_n "(cached) " >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 $ac_includes_default
8855 #if HAVE_SYS_SOCKET_H
8856 #include <sys/socket.h>
8857 #endif
8858 #if HAVE_NET_IF_H
8859 #include <net/if.h>
8860 #endif
8863 main ()
8865 static struct ifreq ac_aggr;
8866 if (ac_aggr.ifr_netmask)
8867 return 0;
8869 return 0;
8871 _ACEOF
8872 rm -f conftest.$ac_objext
8873 if { (ac_try="$ac_compile"
8874 case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877 esac
8878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8879 $as_echo "$ac_try_echo") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 ac_cv_member_struct_ifreq_ifr_netmask=yes
8891 else
8892 $as_echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8902 #if HAVE_SYS_SOCKET_H
8903 #include <sys/socket.h>
8904 #endif
8905 #if HAVE_NET_IF_H
8906 #include <net/if.h>
8907 #endif
8910 main ()
8912 static struct ifreq ac_aggr;
8913 if (sizeof ac_aggr.ifr_netmask)
8914 return 0;
8916 return 0;
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (ac_try="$ac_compile"
8921 case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8924 esac
8925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8926 $as_echo "$ac_try_echo") >&5
8927 (eval "$ac_compile") 2>conftest.er1
8928 ac_status=$?
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
8932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } && {
8934 test -z "$ac_c_werror_flag" ||
8935 test ! -s conftest.err
8936 } && test -s conftest.$ac_objext; then
8937 ac_cv_member_struct_ifreq_ifr_netmask=yes
8938 else
8939 $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8942 ac_cv_member_struct_ifreq_ifr_netmask=no
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8951 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8952 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8954 cat >>confdefs.h <<_ACEOF
8955 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8956 _ACEOF
8960 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8961 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8962 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8963 $as_echo_n "(cached) " >&6
8964 else
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8972 #if HAVE_SYS_SOCKET_H
8973 #include <sys/socket.h>
8974 #endif
8975 #if HAVE_NET_IF_H
8976 #include <net/if.h>
8977 #endif
8980 main ()
8982 static struct ifreq ac_aggr;
8983 if (ac_aggr.ifr_broadaddr)
8984 return 0;
8986 return 0;
8988 _ACEOF
8989 rm -f conftest.$ac_objext
8990 if { (ac_try="$ac_compile"
8991 case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994 esac
8995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8996 $as_echo "$ac_try_echo") >&5
8997 (eval "$ac_compile") 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_c_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest.$ac_objext; then
9007 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9008 else
9009 $as_echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9019 #if HAVE_SYS_SOCKET_H
9020 #include <sys/socket.h>
9021 #endif
9022 #if HAVE_NET_IF_H
9023 #include <net/if.h>
9024 #endif
9027 main ()
9029 static struct ifreq ac_aggr;
9030 if (sizeof ac_aggr.ifr_broadaddr)
9031 return 0;
9033 return 0;
9035 _ACEOF
9036 rm -f conftest.$ac_objext
9037 if { (ac_try="$ac_compile"
9038 case "(($ac_try" in
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9041 esac
9042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9043 $as_echo "$ac_try_echo") >&5
9044 (eval "$ac_compile") 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } && {
9051 test -z "$ac_c_werror_flag" ||
9052 test ! -s conftest.err
9053 } && test -s conftest.$ac_objext; then
9054 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9055 else
9056 $as_echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9068 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9069 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9071 cat >>confdefs.h <<_ACEOF
9072 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9073 _ACEOF
9077 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9078 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9079 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9080 $as_echo_n "(cached) " >&6
9081 else
9082 cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 $ac_includes_default
9089 #if HAVE_SYS_SOCKET_H
9090 #include <sys/socket.h>
9091 #endif
9092 #if HAVE_NET_IF_H
9093 #include <net/if.h>
9094 #endif
9097 main ()
9099 static struct ifreq ac_aggr;
9100 if (ac_aggr.ifr_addr)
9101 return 0;
9103 return 0;
9105 _ACEOF
9106 rm -f conftest.$ac_objext
9107 if { (ac_try="$ac_compile"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9113 $as_echo "$ac_try_echo") >&5
9114 (eval "$ac_compile") 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && {
9121 test -z "$ac_c_werror_flag" ||
9122 test ! -s conftest.err
9123 } && test -s conftest.$ac_objext; then
9124 ac_cv_member_struct_ifreq_ifr_addr=yes
9125 else
9126 $as_echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 $ac_includes_default
9136 #if HAVE_SYS_SOCKET_H
9137 #include <sys/socket.h>
9138 #endif
9139 #if HAVE_NET_IF_H
9140 #include <net/if.h>
9141 #endif
9144 main ()
9146 static struct ifreq ac_aggr;
9147 if (sizeof ac_aggr.ifr_addr)
9148 return 0;
9150 return 0;
9152 _ACEOF
9153 rm -f conftest.$ac_objext
9154 if { (ac_try="$ac_compile"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9160 $as_echo "$ac_try_echo") >&5
9161 (eval "$ac_compile") 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest.$ac_objext; then
9171 ac_cv_member_struct_ifreq_ifr_addr=yes
9172 else
9173 $as_echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_cv_member_struct_ifreq_ifr_addr=no
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9185 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9186 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9188 cat >>confdefs.h <<_ACEOF
9189 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9190 _ACEOF
9197 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9198 $as_echo_n "checking for function prototypes... " >&6; }
9199 if test "$ac_cv_prog_cc_c89" != no; then
9200 { $as_echo "$as_me:$LINENO: result: yes" >&5
9201 $as_echo "yes" >&6; }
9203 cat >>confdefs.h <<\_ACEOF
9204 #define PROTOTYPES 1
9205 _ACEOF
9208 cat >>confdefs.h <<\_ACEOF
9209 #define __PROTOTYPES 1
9210 _ACEOF
9212 else
9213 { $as_echo "$as_me:$LINENO: result: no" >&5
9214 $as_echo "no" >&6; }
9217 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9218 $as_echo_n "checking for working volatile... " >&6; }
9219 if test "${ac_cv_c_volatile+set}" = set; then
9220 $as_echo_n "(cached) " >&6
9221 else
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9230 main ()
9233 volatile int x;
9234 int * volatile y = (int *) 0;
9235 return !x && !y;
9237 return 0;
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9242 case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245 esac
9246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247 $as_echo "$ac_try_echo") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_cv_c_volatile=yes
9259 else
9260 $as_echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 ac_cv_c_volatile=no
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9269 $as_echo "$ac_cv_c_volatile" >&6; }
9270 if test $ac_cv_c_volatile = no; then
9272 cat >>confdefs.h <<\_ACEOF
9273 #define volatile /**/
9274 _ACEOF
9278 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9279 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9280 if test "${ac_cv_c_const+set}" = set; then
9281 $as_echo_n "(cached) " >&6
9282 else
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h. */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9291 main ()
9293 /* FIXME: Include the comments suggested by Paul. */
9294 #ifndef __cplusplus
9295 /* Ultrix mips cc rejects this. */
9296 typedef int charset[2];
9297 const charset cs;
9298 /* SunOS 4.1.1 cc rejects this. */
9299 char const *const *pcpcc;
9300 char **ppc;
9301 /* NEC SVR4.0.2 mips cc rejects this. */
9302 struct point {int x, y;};
9303 static struct point const zero = {0,0};
9304 /* AIX XL C 1.02.0.0 rejects this.
9305 It does not let you subtract one const X* pointer from another in
9306 an arm of an if-expression whose if-part is not a constant
9307 expression */
9308 const char *g = "string";
9309 pcpcc = &g + (g ? g-g : 0);
9310 /* HPUX 7.0 cc rejects these. */
9311 ++pcpcc;
9312 ppc = (char**) pcpcc;
9313 pcpcc = (char const *const *) ppc;
9314 { /* SCO 3.2v4 cc rejects this. */
9315 char *t;
9316 char const *s = 0 ? (char *) 0 : (char const *) 0;
9318 *t++ = 0;
9319 if (s) return 0;
9321 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9322 int x[] = {25, 17};
9323 const int *foo = &x[0];
9324 ++foo;
9326 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9327 typedef const int *iptr;
9328 iptr p = 0;
9329 ++p;
9331 { /* AIX XL C 1.02.0.0 rejects this saying
9332 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9333 struct s { int j; const int *ap[3]; };
9334 struct s *b; b->j = 5;
9336 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9337 const int foo = 10;
9338 if (!foo) return 0;
9340 return !cs[0] && !zero.x;
9341 #endif
9344 return 0;
9346 _ACEOF
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9349 case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_compile") 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest.$ac_objext; then
9365 ac_cv_c_const=yes
9366 else
9367 $as_echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_cv_c_const=no
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9376 $as_echo "$ac_cv_c_const" >&6; }
9377 if test $ac_cv_c_const = no; then
9379 cat >>confdefs.h <<\_ACEOF
9380 #define const /**/
9381 _ACEOF
9385 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9386 $as_echo_n "checking for void * support... " >&6; }
9387 if test "${emacs_cv_void_star+set}" = set; then
9388 $as_echo_n "(cached) " >&6
9389 else
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9398 main ()
9400 void * foo;
9402 return 0;
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (ac_try="$ac_compile"
9407 case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410 esac
9411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9412 $as_echo "$ac_try_echo") >&5
9413 (eval "$ac_compile") 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest.$ac_objext; then
9423 emacs_cv_void_star=yes
9424 else
9425 $as_echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 emacs_cv_void_star=no
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9434 $as_echo "$emacs_cv_void_star" >&6; }
9435 if test $emacs_cv_void_star = yes; then
9436 cat >>confdefs.h <<\_ACEOF
9437 #define POINTER_TYPE void
9438 _ACEOF
9440 else
9441 cat >>confdefs.h <<\_ACEOF
9442 #define POINTER_TYPE char
9443 _ACEOF
9451 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9453 set x ${MAKE-make}
9454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9455 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9456 $as_echo_n "(cached) " >&6
9457 else
9458 cat >conftest.make <<\_ACEOF
9459 SHELL = /bin/sh
9460 all:
9461 @echo '@@@%%%=$(MAKE)=@@@%%%'
9462 _ACEOF
9463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9465 *@@@%%%=?*=@@@%%%*)
9466 eval ac_cv_prog_make_${ac_make}_set=yes;;
9468 eval ac_cv_prog_make_${ac_make}_set=no;;
9469 esac
9470 rm -f conftest.make
9472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9473 { $as_echo "$as_me:$LINENO: result: yes" >&5
9474 $as_echo "yes" >&6; }
9475 SET_MAKE=
9476 else
9477 { $as_echo "$as_me:$LINENO: result: no" >&5
9478 $as_echo "no" >&6; }
9479 SET_MAKE="MAKE=${MAKE-make}"
9483 DEPFLAGS=
9484 MKDEPDIR=":"
9485 deps_frag=deps.mk
9486 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9487 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9488 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9489 HAVE_GNU_MAKE=no
9490 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9491 if test "x$testval" != x; then
9492 HAVE_GNU_MAKE=yes
9493 else
9494 ac_enable_autodepend=no
9496 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9497 $as_echo "$HAVE_GNU_MAKE" >&6; }
9498 if test $HAVE_GNU_MAKE = yes; then
9499 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9500 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9501 SAVE_CFLAGS="$CFLAGS"
9502 CFLAGS="$CFLAGS -MMD -MF deps.d"
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9511 main ()
9515 return 0;
9517 _ACEOF
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9520 case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523 esac
9524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9525 $as_echo "$ac_try_echo") >&5
9526 (eval "$ac_compile") 2>conftest.er1
9527 ac_status=$?
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
9531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest.$ac_objext; then
9537 else
9538 $as_echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ac_enable_autodepend=no
9544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545 CFLAGS="$SAVE_CFLAGS"
9546 test -f deps.d || ac_enable_autodepend=no
9547 rm -rf deps.d
9548 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9549 $as_echo "$ac_enable_autodepend" >&6; }
9551 if test $ac_enable_autodepend = yes; then
9552 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9553 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR}'
9554 deps_frag=autodeps.mk
9557 deps_frag=$srcdir/src/$deps_frag
9563 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9564 $as_echo_n "checking for long file names... " >&6; }
9565 if test "${ac_cv_sys_long_file_names+set}" = set; then
9566 $as_echo_n "(cached) " >&6
9567 else
9568 ac_cv_sys_long_file_names=yes
9569 # Test for long file names in all the places we know might matter:
9570 # . the current directory, where building will happen
9571 # $prefix/lib where we will be installing things
9572 # $exec_prefix/lib likewise
9573 # $TMPDIR if set, where it might want to write temporary files
9574 # /tmp where it might want to write temporary files
9575 # /var/tmp likewise
9576 # /usr/tmp likewise
9577 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9578 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9579 # in the usual case where exec_prefix is '${prefix}'.
9580 case $ac_dir in #(
9581 . | /* | ?:[\\/]*) ;; #(
9582 *) continue;;
9583 esac
9584 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9585 ac_xdir=$ac_dir/cf$$
9586 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9587 ac_tf1=$ac_xdir/conftest9012345
9588 ac_tf2=$ac_xdir/conftest9012346
9589 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9590 ac_cv_sys_long_file_names=no
9591 rm -f -r "$ac_xdir" 2>/dev/null
9592 test $ac_cv_sys_long_file_names = no && break
9593 done
9595 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9596 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9597 if test $ac_cv_sys_long_file_names = yes; then
9599 cat >>confdefs.h <<\_ACEOF
9600 #define HAVE_LONG_FILE_NAMES 1
9601 _ACEOF
9606 #### Choose a window system.
9608 { $as_echo "$as_me:$LINENO: checking for X" >&5
9609 $as_echo_n "checking for X... " >&6; }
9612 # Check whether --with-x was given.
9613 if test "${with_x+set}" = set; then
9614 withval=$with_x;
9617 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9618 if test "x$with_x" = xno; then
9619 # The user explicitly disabled X.
9620 have_x=disabled
9621 else
9622 case $x_includes,$x_libraries in #(
9623 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9624 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9625 { (exit 1); exit 1; }; };; #(
9626 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9627 $as_echo_n "(cached) " >&6
9628 else
9629 # One or both of the vars are not set, and there is no cached value.
9630 ac_x_includes=no ac_x_libraries=no
9631 rm -f -r conftest.dir
9632 if mkdir conftest.dir; then
9633 cd conftest.dir
9634 cat >Imakefile <<'_ACEOF'
9635 incroot:
9636 @echo incroot='${INCROOT}'
9637 usrlibdir:
9638 @echo usrlibdir='${USRLIBDIR}'
9639 libdir:
9640 @echo libdir='${LIBDIR}'
9641 _ACEOF
9642 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9644 for ac_var in incroot usrlibdir libdir; do
9645 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9646 done
9647 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9648 for ac_extension in a so sl dylib la dll; do
9649 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9650 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9651 ac_im_usrlibdir=$ac_im_libdir; break
9653 done
9654 # Screen out bogus values from the imake configuration. They are
9655 # bogus both because they are the default anyway, and because
9656 # using them would break gcc on systems where it needs fixed includes.
9657 case $ac_im_incroot in
9658 /usr/include) ac_x_includes= ;;
9659 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9660 esac
9661 case $ac_im_usrlibdir in
9662 /usr/lib | /lib) ;;
9663 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9664 esac
9666 cd ..
9667 rm -f -r conftest.dir
9670 # Standard set of common directories for X headers.
9671 # Check X11 before X11Rn because it is often a symlink to the current release.
9672 ac_x_header_dirs='
9673 /usr/X11/include
9674 /usr/X11R6/include
9675 /usr/X11R5/include
9676 /usr/X11R4/include
9678 /usr/include/X11
9679 /usr/include/X11R6
9680 /usr/include/X11R5
9681 /usr/include/X11R4
9683 /usr/local/X11/include
9684 /usr/local/X11R6/include
9685 /usr/local/X11R5/include
9686 /usr/local/X11R4/include
9688 /usr/local/include/X11
9689 /usr/local/include/X11R6
9690 /usr/local/include/X11R5
9691 /usr/local/include/X11R4
9693 /usr/X386/include
9694 /usr/x386/include
9695 /usr/XFree86/include/X11
9697 /usr/include
9698 /usr/local/include
9699 /usr/unsupported/include
9700 /usr/athena/include
9701 /usr/local/x11r5/include
9702 /usr/lpp/Xamples/include
9704 /usr/openwin/include
9705 /usr/openwin/share/include'
9707 if test "$ac_x_includes" = no; then
9708 # Guess where to find include files, by looking for Xlib.h.
9709 # First, try using that file with no special directory specified.
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 #include <X11/Xlib.h>
9717 _ACEOF
9718 if { (ac_try="$ac_cpp conftest.$ac_ext"
9719 case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722 esac
9723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9724 $as_echo "$ac_try_echo") >&5
9725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } >/dev/null && {
9732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 }; then
9735 # We can compile using X headers with no special include directory.
9736 ac_x_includes=
9737 else
9738 $as_echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 for ac_dir in $ac_x_header_dirs; do
9742 if test -r "$ac_dir/X11/Xlib.h"; then
9743 ac_x_includes=$ac_dir
9744 break
9746 done
9749 rm -f conftest.err conftest.$ac_ext
9750 fi # $ac_x_includes = no
9752 if test "$ac_x_libraries" = no; then
9753 # Check for the libraries.
9754 # See if we find them without any special options.
9755 # Don't add to $LIBS permanently.
9756 ac_save_LIBS=$LIBS
9757 LIBS="-lX11 $LIBS"
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 #include <X11/Xlib.h>
9766 main ()
9768 XrmInitialize ()
9770 return 0;
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778 esac
9779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9780 $as_echo "$ac_try_echo") >&5
9781 (eval "$ac_link") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest$ac_exeext && {
9791 test "$cross_compiling" = yes ||
9792 $as_test_x conftest$ac_exeext
9793 }; then
9794 LIBS=$ac_save_LIBS
9795 # We can link X programs with no special library path.
9796 ac_x_libraries=
9797 else
9798 $as_echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 LIBS=$ac_save_LIBS
9802 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9804 # Don't even attempt the hair of trying to link an X program!
9805 for ac_extension in a so sl dylib la dll; do
9806 if test -r "$ac_dir/libX11.$ac_extension"; then
9807 ac_x_libraries=$ac_dir
9808 break 2
9810 done
9811 done
9814 rm -rf conftest.dSYM
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816 conftest$ac_exeext conftest.$ac_ext
9817 fi # $ac_x_libraries = no
9819 case $ac_x_includes,$ac_x_libraries in #(
9820 no,* | *,no | *\'*)
9821 # Didn't find X, or a directory has "'" in its name.
9822 ac_cv_have_x="have_x=no";; #(
9824 # Record where we found X for the cache.
9825 ac_cv_have_x="have_x=yes\
9826 ac_x_includes='$ac_x_includes'\
9827 ac_x_libraries='$ac_x_libraries'"
9828 esac
9830 ;; #(
9831 *) have_x=yes;;
9832 esac
9833 eval "$ac_cv_have_x"
9834 fi # $with_x != no
9836 if test "$have_x" != yes; then
9837 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9838 $as_echo "$have_x" >&6; }
9839 no_x=yes
9840 else
9841 # If each of the values was on the command line, it overrides each guess.
9842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9844 # Update the cache value to reflect the command line values.
9845 ac_cv_have_x="have_x=yes\
9846 ac_x_includes='$x_includes'\
9847 ac_x_libraries='$x_libraries'"
9848 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9849 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9852 if test "$no_x" = yes; then
9853 window_system=none
9854 else
9855 window_system=x11
9858 ## Workaround for bug in autoconf <= 2.62.
9859 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9860 ## No need to do anything special for these standard directories.
9861 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9863 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9867 LD_SWITCH_X_SITE_AUX=
9868 LD_SWITCH_X_SITE_AUX_RPATH=
9869 if test "${x_libraries}" != NONE; then
9870 if test -n "${x_libraries}"; then
9871 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9872 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9873 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9875 x_default_search_path=""
9876 x_search_path=${x_libraries}
9877 if test -z "${x_search_path}"; then
9878 x_search_path=/usr/lib
9880 for x_library in `echo ${x_search_path}: | \
9881 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9882 x_search_path="\
9883 ${x_library}/X11/%L/%T/%N%C%S:\
9884 ${x_library}/X11/%l/%T/%N%C%S:\
9885 ${x_library}/X11/%T/%N%C%S:\
9886 ${x_library}/X11/%L/%T/%N%S:\
9887 ${x_library}/X11/%l/%T/%N%S:\
9888 ${x_library}/X11/%T/%N%S"
9889 if test x"${x_default_search_path}" = x; then
9890 x_default_search_path=${x_search_path}
9891 else
9892 x_default_search_path="${x_search_path}:${x_default_search_path}"
9894 done
9899 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9900 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9903 if test x"${x_includes}" = x; then
9904 bitmapdir=/usr/include/X11/bitmaps
9905 else
9906 # accumulate include directories that have X11 bitmap subdirectories
9907 bmd_acc="dummyval"
9908 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9909 if test -d "${bmd}/X11/bitmaps"; then
9910 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9912 if test -d "${bmd}/bitmaps"; then
9913 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9915 done
9916 if test ${bmd_acc} != "dummyval"; then
9917 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9921 HAVE_NS=no
9922 NS_IMPL_COCOA=no
9923 NS_IMPL_GNUSTEP=no
9924 NS_IMPL_GNUSTEP_INC=
9925 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS=
9926 tmp_CPPFLAGS="$CPPFLAGS"
9927 tmp_CFLAGS="$CFLAGS"
9928 CPPFLAGS="$CPPFLAGS -x objective-c"
9929 CFLAGS="$CFLAGS -x objective-c"
9930 TEMACS_LDFLAGS2="\${LDFLAGS}"
9931 if test "${with_ns}" != no; then
9932 if test "${opsys}" = darwin; then
9933 NS_IMPL_COCOA=yes
9934 ns_appdir=`pwd`/nextstep/Emacs.app/
9935 ns_appbindir=${ns_appdir}Contents/MacOS/
9936 ns_appresdir=${ns_appdir}Contents/Resources
9937 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9938 elif test -f $GNUSTEP_CONFIG_FILE; then
9939 NS_IMPL_GNUSTEP=yes
9940 ns_appdir=`pwd`/nextstep/Emacs.app/
9941 ns_appbindir=${ns_appdir}
9942 ns_appresdir=${ns_appdir}Resources
9943 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9944 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9945 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9946 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9947 ## Pull in stuff from GNUstep-make.
9948 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
9949 GUI_LIB=gnu
9950 include $GNUSTEP_MAKEFILES/Additional/base.make
9951 include $GNUSTEP_MAKEFILES/Additional/gui.make
9952 shared=no
9954 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9955 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9956 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9957 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9958 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9959 LIB_STANDARD=
9960 START_FILES=
9961 TEMACS_LDFLAGS2=
9963 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9964 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9965 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9966 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9967 $as_echo_n "(cached) " >&6
9969 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9970 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9971 else
9972 # Is the header compilable?
9973 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9974 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h. */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 $ac_includes_default
9982 #include <AppKit/AppKit.h>
9983 _ACEOF
9984 rm -f conftest.$ac_objext
9985 if { (ac_try="$ac_compile"
9986 case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9991 $as_echo "$ac_try_echo") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10002 ac_header_compiler=yes
10003 else
10004 $as_echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_header_compiler=no
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012 $as_echo "$ac_header_compiler" >&6; }
10014 # Is the header present?
10015 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10016 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <AppKit/AppKit.h>
10024 _ACEOF
10025 if { (ac_try="$ac_cpp conftest.$ac_ext"
10026 case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029 esac
10030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10031 $as_echo "$ac_try_echo") >&5
10032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev/null && {
10039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 }; then
10042 ac_header_preproc=yes
10043 else
10044 $as_echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_header_preproc=no
10050 rm -f conftest.err conftest.$ac_ext
10051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 $as_echo "$ac_header_preproc" >&6; }
10054 # So? What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056 yes:no: )
10057 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10058 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10060 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc=yes
10063 no:yes:* )
10064 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10065 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10066 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10067 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10068 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10069 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10070 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10071 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10073 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10078 esac
10079 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10080 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10081 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10082 $as_echo_n "(cached) " >&6
10083 else
10084 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10086 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10087 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10090 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10091 HAVE_NS=yes
10092 else
10093 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10094 files are missing or cannot be compiled." >&5
10095 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10096 files are missing or cannot be compiled." >&2;}
10097 { (exit 1); exit 1; }; }
10101 NS_HAVE_NSINTEGER=yes
10102 cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h. */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 #include <Foundation/NSObjCRuntime.h>
10110 main ()
10112 NSInteger i;
10114 return 0;
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (ac_try="$ac_compile"
10119 case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122 esac
10123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10124 $as_echo "$ac_try_echo") >&5
10125 (eval "$ac_compile") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest.$ac_objext; then
10135 ns_have_nsinteger=yes
10136 else
10137 $as_echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ns_have_nsinteger=no
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 if test $ns_have_nsinteger = no; then
10145 NS_HAVE_NSINTEGER=no
10152 NS_OBJ=
10153 NS_SUPPORT=
10154 if test "${HAVE_NS}" = yes; then
10155 window_system=nextstep
10156 with_xft=no
10157 # set up packaging dirs
10158 exec_prefix=${ns_appbindir}
10159 libexecdir=${ns_appbindir}/libexec
10160 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10161 prefix=${ns_appresdir}
10163 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10164 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10166 CFLAGS="$tmp_CFLAGS"
10167 CPPFLAGS="$tmp_CPPFLAGS"
10172 case "${window_system}" in
10173 x11 )
10174 HAVE_X_WINDOWS=yes
10175 HAVE_X11=yes
10176 case "${with_x_toolkit}" in
10177 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10178 motif ) USE_X_TOOLKIT=MOTIF ;;
10179 gtk ) with_gtk=yes
10180 USE_X_TOOLKIT=none ;;
10181 no ) USE_X_TOOLKIT=none ;;
10182 * ) USE_X_TOOLKIT=maybe ;;
10183 esac
10185 nextstep | none )
10186 HAVE_X_WINDOWS=no
10187 HAVE_X11=no
10188 USE_X_TOOLKIT=none
10190 esac
10192 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10193 # Extract the first word of "X", so it can be a program name with args.
10194 set dummy X; ac_word=$2
10195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10199 else
10200 if test -n "$HAVE_XSERVER"; then
10201 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_prog_HAVE_XSERVER="true"
10211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10214 done
10215 done
10216 IFS=$as_save_IFS
10218 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10221 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10222 if test -n "$HAVE_XSERVER"; then
10223 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10224 $as_echo "$HAVE_XSERVER" >&6; }
10225 else
10226 { $as_echo "$as_me:$LINENO: result: no" >&5
10227 $as_echo "no" >&6; }
10231 if test "$HAVE_XSERVER" = true ||
10232 test -n "$DISPLAY" ||
10233 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10234 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10235 were found. You should install the relevant development files for X
10236 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10237 sure you have development files for image handling, i.e.
10238 tiff, gif, jpeg, png and xpm.
10239 If you are sure you want Emacs compiled without X window support, pass
10240 --without-x
10241 to configure." >&5
10242 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10243 were found. You should install the relevant development files for X
10244 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10245 sure you have development files for image handling, i.e.
10246 tiff, gif, jpeg, png and xpm.
10247 If you are sure you want Emacs compiled without X window support, pass
10248 --without-x
10249 to configure." >&2;}
10250 { (exit 1); exit 1; }; }
10254 ### If we're using X11, we should use the X menu package.
10255 HAVE_MENUS=no
10256 case ${HAVE_X11} in
10257 yes ) HAVE_MENUS=yes ;;
10258 esac
10260 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10261 # Assume not, until told otherwise.
10262 GNU_MALLOC=yes
10263 doug_lea_malloc=yes
10264 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10265 $as_echo_n "checking for malloc_get_state... " >&6; }
10266 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10267 $as_echo_n "(cached) " >&6
10268 else
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10277 #define malloc_get_state innocuous_malloc_get_state
10279 /* System header to define __stub macros and hopefully few prototypes,
10280 which can conflict with char malloc_get_state (); below.
10281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10282 <limits.h> exists even on freestanding compilers. */
10284 #ifdef __STDC__
10285 # include <limits.h>
10286 #else
10287 # include <assert.h>
10288 #endif
10290 #undef malloc_get_state
10292 /* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10295 #ifdef __cplusplus
10296 extern "C"
10297 #endif
10298 char malloc_get_state ();
10299 /* The GNU C library defines this for functions which it implements
10300 to always fail with ENOSYS. Some functions are actually named
10301 something starting with __ and the normal name is an alias. */
10302 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10303 choke me
10304 #endif
10307 main ()
10309 return malloc_get_state ();
10311 return 0;
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (ac_try="$ac_link"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10321 $as_echo "$ac_try_echo") >&5
10322 (eval "$ac_link") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } && {
10329 test -z "$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 } && test -s conftest$ac_exeext && {
10332 test "$cross_compiling" = yes ||
10333 $as_test_x conftest$ac_exeext
10334 }; then
10335 ac_cv_func_malloc_get_state=yes
10336 else
10337 $as_echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_func_malloc_get_state=no
10343 rm -rf conftest.dSYM
10344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345 conftest$ac_exeext conftest.$ac_ext
10347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10348 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10349 if test $ac_cv_func_malloc_get_state = yes; then
10351 else
10352 doug_lea_malloc=no
10355 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10356 $as_echo_n "checking for malloc_set_state... " >&6; }
10357 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10359 else
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10368 #define malloc_set_state innocuous_malloc_set_state
10370 /* System header to define __stub macros and hopefully few prototypes,
10371 which can conflict with char malloc_set_state (); below.
10372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10373 <limits.h> exists even on freestanding compilers. */
10375 #ifdef __STDC__
10376 # include <limits.h>
10377 #else
10378 # include <assert.h>
10379 #endif
10381 #undef malloc_set_state
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 char malloc_set_state ();
10390 /* The GNU C library defines this for functions which it implements
10391 to always fail with ENOSYS. Some functions are actually named
10392 something starting with __ and the normal name is an alias. */
10393 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10394 choke me
10395 #endif
10398 main ()
10400 return malloc_set_state ();
10402 return 0;
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (ac_try="$ac_link"
10407 case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10410 esac
10411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412 $as_echo "$ac_try_echo") >&5
10413 (eval "$ac_link") 2>conftest.er1
10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest$ac_exeext && {
10423 test "$cross_compiling" = yes ||
10424 $as_test_x conftest$ac_exeext
10425 }; then
10426 ac_cv_func_malloc_set_state=yes
10427 else
10428 $as_echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 ac_cv_func_malloc_set_state=no
10434 rm -rf conftest.dSYM
10435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10436 conftest$ac_exeext conftest.$ac_ext
10438 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10439 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10440 if test $ac_cv_func_malloc_set_state = yes; then
10442 else
10443 doug_lea_malloc=no
10446 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10447 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10448 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10449 $as_echo_n "(cached) " >&6
10450 else
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h. */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10457 extern void (* __after_morecore_hook)();
10459 main ()
10461 __after_morecore_hook = 0
10463 return 0;
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10473 $as_echo "$ac_try_echo") >&5
10474 (eval "$ac_link") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext && {
10484 test "$cross_compiling" = yes ||
10485 $as_test_x conftest$ac_exeext
10486 }; then
10487 emacs_cv_var___after_morecore_hook=yes
10488 else
10489 $as_echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 emacs_cv_var___after_morecore_hook=no
10495 rm -rf conftest.dSYM
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10499 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10500 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10501 if test $emacs_cv_var___after_morecore_hook = no; then
10502 doug_lea_malloc=no
10505 if test "${system_malloc}" = "yes"; then
10506 GNU_MALLOC=no
10507 GNU_MALLOC_reason="
10508 (The GNU allocators don't work with this system configuration.)"
10509 GMALLOC_OBJ=
10510 VMLIMIT_OBJ=
10511 else
10512 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10513 VMLIMIT_OBJ=vm-limit.o
10518 if test "$doug_lea_malloc" = "yes" ; then
10519 if test "$GNU_MALLOC" = yes ; then
10520 GNU_MALLOC_reason="
10521 (Using Doug Lea's new malloc from the GNU C Library.)"
10524 cat >>confdefs.h <<\_ACEOF
10525 #define DOUG_LEA_MALLOC 1
10526 _ACEOF
10529 ## Use mmap directly for allocating larger buffers.
10530 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10531 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10532 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10533 case "$opsys" in
10534 gnu*) REL_ALLOC=no ;;
10535 esac
10538 if test x"${REL_ALLOC}" = x; then
10539 REL_ALLOC=${GNU_MALLOC}
10545 for ac_header in stdlib.h unistd.h
10547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10550 $as_echo_n "checking for $ac_header... " >&6; }
10551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10552 $as_echo_n "(cached) " >&6
10554 ac_res=`eval 'as_val=${'$as_ac_Header'}
10555 $as_echo "$as_val"'`
10556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10557 $as_echo "$ac_res" >&6; }
10558 else
10559 # Is the header compilable?
10560 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10561 $as_echo_n "checking $ac_header usability... " >&6; }
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 $ac_includes_default
10569 #include <$ac_header>
10570 _ACEOF
10571 rm -f conftest.$ac_objext
10572 if { (ac_try="$ac_compile"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576 esac
10577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10578 $as_echo "$ac_try_echo") >&5
10579 (eval "$ac_compile") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest.$ac_objext; then
10589 ac_header_compiler=yes
10590 else
10591 $as_echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_header_compiler=no
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10599 $as_echo "$ac_header_compiler" >&6; }
10601 # Is the header present?
10602 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10603 $as_echo_n "checking $ac_header presence... " >&6; }
10604 cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h. */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #include <$ac_header>
10611 _ACEOF
10612 if { (ac_try="$ac_cpp conftest.$ac_ext"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } >/dev/null && {
10626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 }; then
10629 ac_header_preproc=yes
10630 else
10631 $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_header_preproc=no
10637 rm -f conftest.err conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10639 $as_echo "$ac_header_preproc" >&6; }
10641 # So? What about this header?
10642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10643 yes:no: )
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10648 ac_header_preproc=yes
10650 no:yes:* )
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10652 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10654 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10658 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10665 esac
10666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 $as_echo_n "checking for $ac_header... " >&6; }
10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 $as_echo_n "(cached) " >&6
10670 else
10671 eval "$as_ac_Header=\$ac_header_preproc"
10673 ac_res=`eval 'as_val=${'$as_ac_Header'}
10674 $as_echo "$as_val"'`
10675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10676 $as_echo "$ac_res" >&6; }
10679 if test `eval 'as_val=${'$as_ac_Header'}
10680 $as_echo "$as_val"'` = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10683 _ACEOF
10687 done
10690 for ac_func in getpagesize
10692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10693 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10694 $as_echo_n "checking for $ac_func... " >&6; }
10695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10696 $as_echo_n "(cached) " >&6
10697 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10706 #define $ac_func innocuous_$ac_func
10708 /* System header to define __stub macros and hopefully few prototypes,
10709 which can conflict with char $ac_func (); below.
10710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711 <limits.h> exists even on freestanding compilers. */
10713 #ifdef __STDC__
10714 # include <limits.h>
10715 #else
10716 # include <assert.h>
10717 #endif
10719 #undef $ac_func
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char $ac_func ();
10728 /* The GNU C library defines this for functions which it implements
10729 to always fail with ENOSYS. Some functions are actually named
10730 something starting with __ and the normal name is an alias. */
10731 #if defined __stub_$ac_func || defined __stub___$ac_func
10732 choke me
10733 #endif
10736 main ()
10738 return $ac_func ();
10740 return 0;
10742 _ACEOF
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750 $as_echo "$ac_try_echo") >&5
10751 (eval "$ac_link") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest$ac_exeext && {
10761 test "$cross_compiling" = yes ||
10762 $as_test_x conftest$ac_exeext
10763 }; then
10764 eval "$as_ac_var=yes"
10765 else
10766 $as_echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 eval "$as_ac_var=no"
10772 rm -rf conftest.dSYM
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774 conftest$ac_exeext conftest.$ac_ext
10776 ac_res=`eval 'as_val=${'$as_ac_var'}
10777 $as_echo "$as_val"'`
10778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10779 $as_echo "$ac_res" >&6; }
10780 if test `eval 'as_val=${'$as_ac_var'}
10781 $as_echo "$as_val"'` = yes; then
10782 cat >>confdefs.h <<_ACEOF
10783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10784 _ACEOF
10787 done
10789 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10790 $as_echo_n "checking for working mmap... " >&6; }
10791 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10793 else
10794 if test "$cross_compiling" = yes; then
10795 ac_cv_func_mmap_fixed_mapped=no
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 /* malloc might have been renamed as rpl_malloc. */
10805 #undef malloc
10807 /* Thanks to Mike Haertel and Jim Avera for this test.
10808 Here is a matrix of mmap possibilities:
10809 mmap private not fixed
10810 mmap private fixed at somewhere currently unmapped
10811 mmap private fixed at somewhere already mapped
10812 mmap shared not fixed
10813 mmap shared fixed at somewhere currently unmapped
10814 mmap shared fixed at somewhere already mapped
10815 For private mappings, we should verify that changes cannot be read()
10816 back from the file, nor mmap's back from the file at a different
10817 address. (There have been systems where private was not correctly
10818 implemented like the infamous i386 svr4.0, and systems where the
10819 VM page cache was not coherent with the file system buffer cache
10820 like early versions of FreeBSD and possibly contemporary NetBSD.)
10821 For shared mappings, we should conversely verify that changes get
10822 propagated back to all the places they're supposed to be.
10824 Grep wants private fixed already mapped.
10825 The main things grep needs to know about mmap are:
10826 * does it exist and is it safe to write into the mmap'd area
10827 * how to use it (BSD variants) */
10829 #include <fcntl.h>
10830 #include <sys/mman.h>
10832 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10833 char *malloc ();
10834 #endif
10836 /* This mess was copied from the GNU getpagesize.h. */
10837 #ifndef HAVE_GETPAGESIZE
10838 /* Assume that all systems that can run configure have sys/param.h. */
10839 # ifndef HAVE_SYS_PARAM_H
10840 # define HAVE_SYS_PARAM_H 1
10841 # endif
10843 # ifdef _SC_PAGESIZE
10844 # define getpagesize() sysconf(_SC_PAGESIZE)
10845 # else /* no _SC_PAGESIZE */
10846 # ifdef HAVE_SYS_PARAM_H
10847 # include <sys/param.h>
10848 # ifdef EXEC_PAGESIZE
10849 # define getpagesize() EXEC_PAGESIZE
10850 # else /* no EXEC_PAGESIZE */
10851 # ifdef NBPG
10852 # define getpagesize() NBPG * CLSIZE
10853 # ifndef CLSIZE
10854 # define CLSIZE 1
10855 # endif /* no CLSIZE */
10856 # else /* no NBPG */
10857 # ifdef NBPC
10858 # define getpagesize() NBPC
10859 # else /* no NBPC */
10860 # ifdef PAGESIZE
10861 # define getpagesize() PAGESIZE
10862 # endif /* PAGESIZE */
10863 # endif /* no NBPC */
10864 # endif /* no NBPG */
10865 # endif /* no EXEC_PAGESIZE */
10866 # else /* no HAVE_SYS_PARAM_H */
10867 # define getpagesize() 8192 /* punt totally */
10868 # endif /* no HAVE_SYS_PARAM_H */
10869 # endif /* no _SC_PAGESIZE */
10871 #endif /* no HAVE_GETPAGESIZE */
10874 main ()
10876 char *data, *data2, *data3;
10877 int i, pagesize;
10878 int fd;
10880 pagesize = getpagesize ();
10882 /* First, make a file with some known garbage in it. */
10883 data = (char *) malloc (pagesize);
10884 if (!data)
10885 return 1;
10886 for (i = 0; i < pagesize; ++i)
10887 *(data + i) = rand ();
10888 umask (0);
10889 fd = creat ("conftest.mmap", 0600);
10890 if (fd < 0)
10891 return 1;
10892 if (write (fd, data, pagesize) != pagesize)
10893 return 1;
10894 close (fd);
10896 /* Next, try to mmap the file at a fixed address which already has
10897 something else allocated at it. If we can, also make sure that
10898 we see the same garbage. */
10899 fd = open ("conftest.mmap", O_RDWR);
10900 if (fd < 0)
10901 return 1;
10902 data2 = (char *) malloc (2 * pagesize);
10903 if (!data2)
10904 return 1;
10905 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10906 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10908 return 1;
10909 for (i = 0; i < pagesize; ++i)
10910 if (*(data + i) != *(data2 + i))
10911 return 1;
10913 /* Finally, make sure that changes to the mapped area do not
10914 percolate back to the file as seen by read(). (This is a bug on
10915 some variants of i386 svr4.0.) */
10916 for (i = 0; i < pagesize; ++i)
10917 *(data2 + i) = *(data2 + i) + 1;
10918 data3 = (char *) malloc (pagesize);
10919 if (!data3)
10920 return 1;
10921 if (read (fd, data3, pagesize) != pagesize)
10922 return 1;
10923 for (i = 0; i < pagesize; ++i)
10924 if (*(data + i) != *(data3 + i))
10925 return 1;
10926 close (fd);
10927 return 0;
10929 _ACEOF
10930 rm -f conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935 esac
10936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10937 $as_echo "$ac_try_echo") >&5
10938 (eval "$ac_link") 2>&5
10939 ac_status=$?
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945 esac
10946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10947 $as_echo "$ac_try_echo") >&5
10948 (eval "$ac_try") 2>&5
10949 ac_status=$?
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_func_mmap_fixed_mapped=yes
10953 else
10954 $as_echo "$as_me: program exited with status $ac_status" >&5
10955 $as_echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ( exit $ac_status )
10959 ac_cv_func_mmap_fixed_mapped=no
10961 rm -rf conftest.dSYM
10962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10967 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10968 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10969 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10971 cat >>confdefs.h <<\_ACEOF
10972 #define HAVE_MMAP 1
10973 _ACEOF
10976 rm -f conftest.mmap
10978 if test $use_mmap_for_buffers = yes; then
10979 REL_ALLOC=no
10982 LIBS="$LIBS_SYSTEM $LIBS"
10985 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10986 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10987 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-ldnet $LIBS"
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dnet_ntoa ();
11007 main ()
11009 return dnet_ntoa ();
11011 return 0;
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11021 $as_echo "$ac_try_echo") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest$ac_exeext && {
11032 test "$cross_compiling" = yes ||
11033 $as_test_x conftest$ac_exeext
11034 }; then
11035 ac_cv_lib_dnet_dnet_ntoa=yes
11036 else
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_cv_lib_dnet_dnet_ntoa=no
11043 rm -rf conftest.dSYM
11044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11049 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11050 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_LIBDNET 1
11053 _ACEOF
11055 LIBS="-ldnet $LIBS"
11060 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11061 $as_echo_n "checking for main in -lXbsd... " >&6; }
11062 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11063 $as_echo_n "(cached) " >&6
11064 else
11065 ac_check_lib_save_LIBS=$LIBS
11066 LIBS="-lXbsd $LIBS"
11067 cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h. */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11076 main ()
11078 return main ();
11080 return 0;
11082 _ACEOF
11083 rm -f conftest.$ac_objext conftest$ac_exeext
11084 if { (ac_try="$ac_link"
11085 case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088 esac
11089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11090 $as_echo "$ac_try_echo") >&5
11091 (eval "$ac_link") 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && {
11098 test -z "$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11100 } && test -s conftest$ac_exeext && {
11101 test "$cross_compiling" = yes ||
11102 $as_test_x conftest$ac_exeext
11103 }; then
11104 ac_cv_lib_Xbsd_main=yes
11105 else
11106 $as_echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_cv_lib_Xbsd_main=no
11112 rm -rf conftest.dSYM
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11118 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11119 if test $ac_cv_lib_Xbsd_main = yes; then
11120 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11125 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11126 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11127 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11128 $as_echo_n "(cached) " >&6
11129 else
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lpthreads $LIBS"
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h. */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char cma_open ();
11147 main ()
11149 return cma_open ();
11151 return 0;
11153 _ACEOF
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (ac_try="$ac_link"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11161 $as_echo "$ac_try_echo") >&5
11162 (eval "$ac_link") 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest$ac_exeext && {
11172 test "$cross_compiling" = yes ||
11173 $as_test_x conftest$ac_exeext
11174 }; then
11175 ac_cv_lib_pthreads_cma_open=yes
11176 else
11177 $as_echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 ac_cv_lib_pthreads_cma_open=no
11183 rm -rf conftest.dSYM
11184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11185 conftest$ac_exeext conftest.$ac_ext
11186 LIBS=$ac_check_lib_save_LIBS
11188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11189 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11190 if test $ac_cv_lib_pthreads_cma_open = yes; then
11191 cat >>confdefs.h <<_ACEOF
11192 #define HAVE_LIBPTHREADS 1
11193 _ACEOF
11195 LIBS="-lpthreads $LIBS"
11200 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11201 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11202 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11203 ## added to LIBS in configure would never contain the pthreads part,
11204 ## but the value used in Makefiles might. FIXME?
11206 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11207 ## be harmless on older versions of X where it happens to exist.
11208 test "$opsys" = "aix4-2" && \
11209 test $ac_cv_lib_pthreads_cma_open = yes && \
11210 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11213 case ${host_os} in
11214 aix*)
11215 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11216 $as_echo_n "checking for -bbigtoc option... " >&6; }
11217 if test "${gdb_cv_bigtoc+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11219 else
11221 case $GCC in
11222 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11223 *) gdb_cv_bigtoc=-bbigtoc ;;
11224 esac
11226 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11235 main ()
11237 int i;
11239 return 0;
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11249 $as_echo "$ac_try_echo") >&5
11250 (eval "$ac_link") 2>conftest.er1
11251 ac_status=$?
11252 grep -v '^ *+' conftest.er1 >conftest.err
11253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && {
11257 test -z "$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest$ac_exeext && {
11260 test "$cross_compiling" = yes ||
11261 $as_test_x conftest$ac_exeext
11262 }; then
11264 else
11265 $as_echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 gdb_cv_bigtoc=
11271 rm -rf conftest.dSYM
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273 conftest$ac_exeext conftest.$ac_ext
11276 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11277 $as_echo "$gdb_cv_bigtoc" >&6; }
11279 esac
11281 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11282 # used for the tests that follow. We set them back to REAL_CFLAGS and
11283 # REAL_CPPFLAGS later on.
11285 REAL_CPPFLAGS="$CPPFLAGS"
11287 if test "${HAVE_X11}" = "yes"; then
11288 DEFS="$C_SWITCH_X_SITE $DEFS"
11289 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11290 LIBS="$LIBX $LIBS"
11291 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11292 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11294 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11295 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11296 # but it's more convenient here to set LD_RUN_PATH
11297 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11298 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11299 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11300 export LD_RUN_PATH
11303 if test "${opsys}" = "gnu-linux"; then
11304 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11305 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11314 main ()
11316 XOpenDisplay ("foo");
11318 return 0;
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326 esac
11327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$ac_try_echo") >&5
11329 (eval "$ac_link") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest$ac_exeext && {
11339 test "$cross_compiling" = yes ||
11340 $as_test_x conftest$ac_exeext
11341 }; then
11342 xlinux_first_failure=no
11343 else
11344 $as_echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 xlinux_first_failure=yes
11350 rm -rf conftest.dSYM
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11353 if test "${xlinux_first_failure}" = "yes"; then
11354 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11355 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11356 OLD_CPPFLAGS="$CPPFLAGS"
11357 OLD_LIBS="$LIBS"
11358 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11359 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11360 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11361 LIBS="$LIBS -b i486-linuxaout"
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11370 main ()
11372 XOpenDisplay ("foo");
11374 return 0;
11376 _ACEOF
11377 rm -f conftest.$ac_objext conftest$ac_exeext
11378 if { (ac_try="$ac_link"
11379 case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11382 esac
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385 (eval "$ac_link") 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest$ac_exeext && {
11395 test "$cross_compiling" = yes ||
11396 $as_test_x conftest$ac_exeext
11397 }; then
11398 xlinux_second_failure=no
11399 else
11400 $as_echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 xlinux_second_failure=yes
11406 rm -rf conftest.dSYM
11407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408 conftest$ac_exeext conftest.$ac_ext
11409 if test "${xlinux_second_failure}" = "yes"; then
11410 # If we get the same failure with -b, there is no use adding -b.
11411 # So take it out. This plays safe.
11412 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11413 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11414 CPPFLAGS="$OLD_CPPFLAGS"
11415 LIBS="$OLD_LIBS"
11416 { $as_echo "$as_me:$LINENO: result: no" >&5
11417 $as_echo "no" >&6; }
11418 else
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11422 else
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11428 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11429 # header files included from there.
11430 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11431 $as_echo_n "checking for Xkb... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <X11/Xlib.h>
11439 #include <X11/XKBlib.h>
11441 main ()
11443 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11445 return 0;
11447 _ACEOF
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453 esac
11454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11455 $as_echo "$ac_try_echo") >&5
11456 (eval "$ac_link") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest$ac_exeext && {
11466 test "$cross_compiling" = yes ||
11467 $as_test_x conftest$ac_exeext
11468 }; then
11469 emacs_xkb=yes
11470 else
11471 $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 emacs_xkb=no
11477 rm -rf conftest.dSYM
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479 conftest$ac_exeext conftest.$ac_ext
11480 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11481 $as_echo "$emacs_xkb" >&6; }
11482 if test $emacs_xkb = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_XKBGETKEYBOARD 1
11486 _ACEOF
11494 for ac_func in XrmSetDatabase XScreenResourceString \
11495 XScreenNumberOfScreen XSetWMProtocols
11497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 $as_echo_n "checking for $ac_func... " >&6; }
11500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11518 #ifdef __STDC__
11519 # include <limits.h>
11520 #else
11521 # include <assert.h>
11522 #endif
11524 #undef $ac_func
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char $ac_func ();
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 choke me
11538 #endif
11541 main ()
11543 return $ac_func ();
11545 return 0;
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11555 $as_echo "$ac_try_echo") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext && {
11566 test "$cross_compiling" = yes ||
11567 $as_test_x conftest$ac_exeext
11568 }; then
11569 eval "$as_ac_var=yes"
11570 else
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 eval "$as_ac_var=no"
11577 rm -rf conftest.dSYM
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579 conftest$ac_exeext conftest.$ac_ext
11581 ac_res=`eval 'as_val=${'$as_ac_var'}
11582 $as_echo "$as_val"'`
11583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11585 if test `eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11589 _ACEOF
11592 done
11596 if test "${window_system}" = "x11"; then
11597 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11598 $as_echo_n "checking X11 version 6... " >&6; }
11599 if test "${emacs_cv_x11_version_6+set}" = set; then
11600 $as_echo_n "(cached) " >&6
11601 else
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 #include <X11/Xlib.h>
11610 main ()
11612 #if XlibSpecificationRelease < 6
11613 fail;
11614 #endif
11617 return 0;
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11627 $as_echo "$ac_try_echo") >&5
11628 (eval "$ac_link") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest$ac_exeext && {
11638 test "$cross_compiling" = yes ||
11639 $as_test_x conftest$ac_exeext
11640 }; then
11641 emacs_cv_x11_version_6=yes
11642 else
11643 $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 emacs_cv_x11_version_6=no
11649 rm -rf conftest.dSYM
11650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11651 conftest$ac_exeext conftest.$ac_ext
11654 if test $emacs_cv_x11_version_6 = yes; then
11655 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11656 $as_echo "6 or newer" >&6; }
11658 cat >>confdefs.h <<\_ACEOF
11659 #define HAVE_X11R6 1
11660 _ACEOF
11662 else
11663 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11664 $as_echo "before 6" >&6; }
11669 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11670 HAVE_RSVG=no
11671 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11672 if test "${with_rsvg}" != "no"; then
11673 RSVG_REQUIRED=2.11.0
11674 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11677 succeeded=no
11679 # Extract the first word of "pkg-config", so it can be a program name with args.
11680 set dummy pkg-config; ac_word=$2
11681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11684 $as_echo_n "(cached) " >&6
11685 else
11686 case $PKG_CONFIG in
11687 [\\/]* | ?:[\\/]*)
11688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11708 esac
11710 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11711 if test -n "$PKG_CONFIG"; then
11712 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11713 $as_echo "$PKG_CONFIG" >&6; }
11714 else
11715 { $as_echo "$as_me:$LINENO: result: no" >&5
11716 $as_echo "no" >&6; }
11721 if test "$PKG_CONFIG" = "no" ; then
11723 else
11724 PKG_CONFIG_MIN_VERSION=0.9.0
11725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11726 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11727 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11729 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11730 { $as_echo "$as_me:$LINENO: result: yes" >&5
11731 $as_echo "yes" >&6; }
11732 succeeded=yes
11734 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11735 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11736 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11737 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11738 $as_echo "$RSVG_CFLAGS" >&6; }
11740 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11741 $as_echo_n "checking RSVG_LIBS... " >&6; }
11742 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11743 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11744 $as_echo "$RSVG_LIBS" >&6; }
11745 else
11746 { $as_echo "$as_me:$LINENO: result: no" >&5
11747 $as_echo "no" >&6; }
11748 RSVG_CFLAGS=""
11749 RSVG_LIBS=""
11750 ## If we have a custom action on failure, don't print errors, but
11751 ## do set a variable so people can do so.
11752 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11758 else
11759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11764 if test $succeeded = yes; then
11766 else
11773 if test ".${RSVG_CFLAGS}" != "."; then
11774 HAVE_RSVG=yes
11776 cat >>confdefs.h <<\_ACEOF
11777 #define HAVE_RSVG 1
11778 _ACEOF
11780 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11781 LIBS="$RSVG_LIBS $LIBS"
11787 HAVE_GTK=no
11788 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11789 GLIB_REQUIRED=2.6
11790 GTK_REQUIRED=2.6
11791 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11794 succeeded=no
11796 # Extract the first word of "pkg-config", so it can be a program name with args.
11797 set dummy pkg-config; ac_word=$2
11798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11801 $as_echo_n "(cached) " >&6
11802 else
11803 case $PKG_CONFIG in
11804 [\\/]* | ?:[\\/]*)
11805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
11814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11817 break 2
11819 done
11820 done
11821 IFS=$as_save_IFS
11823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11825 esac
11827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11828 if test -n "$PKG_CONFIG"; then
11829 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11830 $as_echo "$PKG_CONFIG" >&6; }
11831 else
11832 { $as_echo "$as_me:$LINENO: result: no" >&5
11833 $as_echo "no" >&6; }
11838 if test "$PKG_CONFIG" = "no" ; then
11839 pkg_check_gtk=no
11840 else
11841 PKG_CONFIG_MIN_VERSION=0.9.0
11842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11843 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11844 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11846 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11847 { $as_echo "$as_me:$LINENO: result: yes" >&5
11848 $as_echo "yes" >&6; }
11849 succeeded=yes
11851 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11852 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11853 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11854 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11855 $as_echo "$GTK_CFLAGS" >&6; }
11857 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11858 $as_echo_n "checking GTK_LIBS... " >&6; }
11859 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11860 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11861 $as_echo "$GTK_LIBS" >&6; }
11862 else
11863 { $as_echo "$as_me:$LINENO: result: no" >&5
11864 $as_echo "no" >&6; }
11865 GTK_CFLAGS=""
11866 GTK_LIBS=""
11867 ## If we have a custom action on failure, don't print errors, but
11868 ## do set a variable so people can do so.
11869 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11875 else
11876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11881 if test $succeeded = yes; then
11882 pkg_check_gtk=yes
11883 else
11884 pkg_check_gtk=no
11887 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11888 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11889 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11890 { (exit 1); exit 1; }; }
11895 GTK_OBJ=
11896 if test x"$pkg_check_gtk" = xyes; then
11900 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11901 CFLAGS="$CFLAGS $GTK_CFLAGS"
11902 LIBS="$GTK_LIBS $LIBS"
11903 GTK_COMPILES=no
11905 for ac_func in gtk_main
11907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 $as_echo_n "checking for $ac_func... " >&6; }
11910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11911 $as_echo_n "(cached) " >&6
11912 else
11913 cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h. */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11921 #define $ac_func innocuous_$ac_func
11923 /* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char $ac_func (); below.
11925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926 <limits.h> exists even on freestanding compilers. */
11928 #ifdef __STDC__
11929 # include <limits.h>
11930 #else
11931 # include <assert.h>
11932 #endif
11934 #undef $ac_func
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char $ac_func ();
11943 /* The GNU C library defines this for functions which it implements
11944 to always fail with ENOSYS. Some functions are actually named
11945 something starting with __ and the normal name is an alias. */
11946 #if defined __stub_$ac_func || defined __stub___$ac_func
11947 choke me
11948 #endif
11951 main ()
11953 return $ac_func ();
11955 return 0;
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965 $as_echo "$ac_try_echo") >&5
11966 (eval "$ac_link") 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } && {
11973 test -z "$ac_c_werror_flag" ||
11974 test ! -s conftest.err
11975 } && test -s conftest$ac_exeext && {
11976 test "$cross_compiling" = yes ||
11977 $as_test_x conftest$ac_exeext
11978 }; then
11979 eval "$as_ac_var=yes"
11980 else
11981 $as_echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 eval "$as_ac_var=no"
11987 rm -rf conftest.dSYM
11988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11989 conftest$ac_exeext conftest.$ac_ext
11991 ac_res=`eval 'as_val=${'$as_ac_var'}
11992 $as_echo "$as_val"'`
11993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11994 $as_echo "$ac_res" >&6; }
11995 if test `eval 'as_val=${'$as_ac_var'}
11996 $as_echo "$as_val"'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12000 GTK_COMPILES=yes
12002 done
12004 if test "${GTK_COMPILES}" != "yes"; then
12005 if test "$USE_X_TOOLKIT" != "maybe"; then
12006 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12007 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12008 { (exit 1); exit 1; }; };
12010 else
12011 HAVE_GTK=yes
12013 cat >>confdefs.h <<\_ACEOF
12014 #define USE_GTK 1
12015 _ACEOF
12017 GTK_OBJ=gtkutil.o
12018 USE_X_TOOLKIT=none
12019 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12021 else
12022 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12023 closing open displays. This is no problem if you just use
12024 one display, but if you use more than one and close one of them
12025 Emacs may crash." >&5
12026 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12027 closing open displays. This is no problem if you just use
12028 one display, but if you use more than one and close one of them
12029 Emacs may crash." >&2;}
12030 sleep 3
12038 if test "${HAVE_GTK}" = "yes"; then
12040 if test "$with_toolkit_scroll_bars" != no; then
12041 with_toolkit_scroll_bars=yes
12044 HAVE_GTK_MULTIDISPLAY=no
12046 for ac_func in gdk_display_open
12048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12049 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12050 $as_echo_n "checking for $ac_func... " >&6; }
12051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12052 $as_echo_n "(cached) " >&6
12053 else
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12062 #define $ac_func innocuous_$ac_func
12064 /* System header to define __stub macros and hopefully few prototypes,
12065 which can conflict with char $ac_func (); below.
12066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067 <limits.h> exists even on freestanding compilers. */
12069 #ifdef __STDC__
12070 # include <limits.h>
12071 #else
12072 # include <assert.h>
12073 #endif
12075 #undef $ac_func
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char $ac_func ();
12084 /* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087 #if defined __stub_$ac_func || defined __stub___$ac_func
12088 choke me
12089 #endif
12092 main ()
12094 return $ac_func ();
12096 return 0;
12098 _ACEOF
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104 esac
12105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12106 $as_echo "$ac_try_echo") >&5
12107 (eval "$ac_link") 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } && {
12114 test -z "$ac_c_werror_flag" ||
12115 test ! -s conftest.err
12116 } && test -s conftest$ac_exeext && {
12117 test "$cross_compiling" = yes ||
12118 $as_test_x conftest$ac_exeext
12119 }; then
12120 eval "$as_ac_var=yes"
12121 else
12122 $as_echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12125 eval "$as_ac_var=no"
12128 rm -rf conftest.dSYM
12129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12130 conftest$ac_exeext conftest.$ac_ext
12132 ac_res=`eval 'as_val=${'$as_ac_var'}
12133 $as_echo "$as_val"'`
12134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12135 $as_echo "$ac_res" >&6; }
12136 if test `eval 'as_val=${'$as_ac_var'}
12137 $as_echo "$as_val"'` = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140 _ACEOF
12141 HAVE_GTK_MULTIDISPLAY=yes
12143 done
12145 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define HAVE_GTK_MULTIDISPLAY 1
12149 _ACEOF
12153 HAVE_GTK_FILE_SELECTION=no
12154 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12155 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12156 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12157 $as_echo_n "(cached) " >&6
12158 else
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h. */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 $ac_includes_default
12166 #include <gtk/gtk.h>
12169 main ()
12171 #ifndef GTK_TYPE_FILE_SELECTION
12172 (void) GTK_TYPE_FILE_SELECTION;
12173 #endif
12176 return 0;
12178 _ACEOF
12179 rm -f conftest.$ac_objext
12180 if { (ac_try="$ac_compile"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184 esac
12185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12186 $as_echo "$ac_try_echo") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12198 else
12199 $as_echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12208 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12209 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12210 HAVE_GTK_FILE_SELECTION=yes
12211 else
12212 HAVE_GTK_FILE_SELECTION=no
12215 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12217 for ac_func in gtk_file_selection_new
12219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12221 $as_echo_n "checking for $ac_func... " >&6; }
12222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12224 else
12225 cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h. */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define $ac_func innocuous_$ac_func
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12240 #ifdef __STDC__
12241 # include <limits.h>
12242 #else
12243 # include <assert.h>
12244 #endif
12246 #undef $ac_func
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char $ac_func ();
12255 /* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258 #if defined __stub_$ac_func || defined __stub___$ac_func
12259 choke me
12260 #endif
12263 main ()
12265 return $ac_func ();
12267 return 0;
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275 esac
12276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12277 $as_echo "$ac_try_echo") >&5
12278 (eval "$ac_link") 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && {
12285 test -z "$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12287 } && test -s conftest$ac_exeext && {
12288 test "$cross_compiling" = yes ||
12289 $as_test_x conftest$ac_exeext
12290 }; then
12291 eval "$as_ac_var=yes"
12292 else
12293 $as_echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 eval "$as_ac_var=no"
12299 rm -rf conftest.dSYM
12300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12301 conftest$ac_exeext conftest.$ac_ext
12303 ac_res=`eval 'as_val=${'$as_ac_var'}
12304 $as_echo "$as_val"'`
12305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12306 $as_echo "$ac_res" >&6; }
12307 if test `eval 'as_val=${'$as_ac_var'}
12308 $as_echo "$as_val"'` = yes; then
12309 cat >>confdefs.h <<_ACEOF
12310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12311 _ACEOF
12312 HAVE_GTK_FILE_SELECTION=yes
12313 else
12314 HAVE_GTK_FILE_SELECTION=no
12316 done
12320 HAVE_GTK_FILE_CHOOSER=no
12321 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12322 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12323 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12324 $as_echo_n "(cached) " >&6
12325 else
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 #include <gtk/gtk.h>
12336 main ()
12338 #ifndef GTK_TYPE_FILE_CHOOSER
12339 (void) GTK_TYPE_FILE_CHOOSER;
12340 #endif
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354 (eval "$ac_compile") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest.$ac_objext; then
12364 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12365 else
12366 $as_echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12375 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12376 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12377 HAVE_GTK_FILE_CHOOSER=yes
12378 else
12379 HAVE_GTK_FILE_CHOOSER=no
12382 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12384 for ac_func in gtk_file_chooser_dialog_new
12386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12387 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12388 $as_echo_n "checking for $ac_func... " >&6; }
12389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12390 $as_echo_n "(cached) " >&6
12391 else
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define $ac_func innocuous_$ac_func
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12407 #ifdef __STDC__
12408 # include <limits.h>
12409 #else
12410 # include <assert.h>
12411 #endif
12413 #undef $ac_func
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char $ac_func ();
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined __stub_$ac_func || defined __stub___$ac_func
12426 choke me
12427 #endif
12430 main ()
12432 return $ac_func ();
12434 return 0;
12436 _ACEOF
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442 esac
12443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12444 $as_echo "$ac_try_echo") >&5
12445 (eval "$ac_link") 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } && {
12452 test -z "$ac_c_werror_flag" ||
12453 test ! -s conftest.err
12454 } && test -s conftest$ac_exeext && {
12455 test "$cross_compiling" = yes ||
12456 $as_test_x conftest$ac_exeext
12457 }; then
12458 eval "$as_ac_var=yes"
12459 else
12460 $as_echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 eval "$as_ac_var=no"
12466 rm -rf conftest.dSYM
12467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12468 conftest$ac_exeext conftest.$ac_ext
12470 ac_res=`eval 'as_val=${'$as_ac_var'}
12471 $as_echo "$as_val"'`
12472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12473 $as_echo "$ac_res" >&6; }
12474 if test `eval 'as_val=${'$as_ac_var'}
12475 $as_echo "$as_val"'` = yes; then
12476 cat >>confdefs.h <<_ACEOF
12477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12478 _ACEOF
12479 HAVE_GTK_FILE_CHOOSER=yes
12480 else
12481 HAVE_GTK_FILE_CHOOSER=no
12483 done
12487 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12488 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12490 cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_GTK_FILE_BOTH 1
12492 _ACEOF
12496 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12497 HAVE_GTK_AND_PTHREAD=no
12499 for ac_header in pthread.h
12501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12504 $as_echo_n "checking for $ac_header... " >&6; }
12505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506 $as_echo_n "(cached) " >&6
12508 ac_res=`eval 'as_val=${'$as_ac_Header'}
12509 $as_echo "$as_val"'`
12510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12511 $as_echo "$ac_res" >&6; }
12512 else
12513 # Is the header compilable?
12514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12515 $as_echo_n "checking $ac_header usability... " >&6; }
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 $ac_includes_default
12523 #include <$ac_header>
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (ac_try="$ac_compile"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530 esac
12531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12532 $as_echo "$ac_try_echo") >&5
12533 (eval "$ac_compile") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest.$ac_objext; then
12543 ac_header_compiler=yes
12544 else
12545 $as_echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 ac_header_compiler=no
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12553 $as_echo "$ac_header_compiler" >&6; }
12555 # Is the header present?
12556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12557 $as_echo_n "checking $ac_header presence... " >&6; }
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h. */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 #include <$ac_header>
12565 _ACEOF
12566 if { (ac_try="$ac_cpp conftest.$ac_ext"
12567 case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12570 esac
12571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12572 $as_echo "$ac_try_echo") >&5
12573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } >/dev/null && {
12580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12581 test ! -s conftest.err
12582 }; then
12583 ac_header_preproc=yes
12584 else
12585 $as_echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 ac_header_preproc=no
12591 rm -f conftest.err conftest.$ac_ext
12592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12593 $as_echo "$ac_header_preproc" >&6; }
12595 # So? What about this header?
12596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12597 yes:no: )
12598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12602 ac_header_preproc=yes
12604 no:yes:* )
12605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12612 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12619 esac
12620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12621 $as_echo_n "checking for $ac_header... " >&6; }
12622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12623 $as_echo_n "(cached) " >&6
12624 else
12625 eval "$as_ac_Header=\$ac_header_preproc"
12627 ac_res=`eval 'as_val=${'$as_ac_Header'}
12628 $as_echo "$as_val"'`
12629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12630 $as_echo "$ac_res" >&6; }
12633 if test `eval 'as_val=${'$as_ac_Header'}
12634 $as_echo "$as_val"'` = yes; then
12635 cat >>confdefs.h <<_ACEOF
12636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12637 _ACEOF
12641 done
12643 if test "$ac_cv_header_pthread_h"; then
12644 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12645 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12646 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12647 $as_echo_n "(cached) " >&6
12648 else
12649 ac_check_lib_save_LIBS=$LIBS
12650 LIBS="-lpthread $LIBS"
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h. */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12661 #ifdef __cplusplus
12662 extern "C"
12663 #endif
12664 char pthread_self ();
12666 main ()
12668 return pthread_self ();
12670 return 0;
12672 _ACEOF
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (ac_try="$ac_link"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680 $as_echo "$ac_try_echo") >&5
12681 (eval "$ac_link") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest$ac_exeext && {
12691 test "$cross_compiling" = yes ||
12692 $as_test_x conftest$ac_exeext
12693 }; then
12694 ac_cv_lib_pthread_pthread_self=yes
12695 else
12696 $as_echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_cv_lib_pthread_pthread_self=no
12702 rm -rf conftest.dSYM
12703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12708 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12709 if test $ac_cv_lib_pthread_pthread_self = yes; then
12710 HAVE_GTK_AND_PTHREAD=yes
12714 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12715 case "${canonical}" in
12716 *-hpux*) ;;
12717 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12718 esac
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_GTK_AND_PTHREAD 1
12722 _ACEOF
12728 HAVE_DBUS=no
12729 DBUS_OBJ=
12730 if test "${with_dbus}" = "yes"; then
12732 succeeded=no
12734 # Extract the first word of "pkg-config", so it can be a program name with args.
12735 set dummy pkg-config; ac_word=$2
12736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12739 $as_echo_n "(cached) " >&6
12740 else
12741 case $PKG_CONFIG in
12742 [\\/]* | ?:[\\/]*)
12743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12757 done
12758 done
12759 IFS=$as_save_IFS
12761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12763 esac
12765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12766 if test -n "$PKG_CONFIG"; then
12767 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12768 $as_echo "$PKG_CONFIG" >&6; }
12769 else
12770 { $as_echo "$as_me:$LINENO: result: no" >&5
12771 $as_echo "no" >&6; }
12776 if test "$PKG_CONFIG" = "no" ; then
12777 HAVE_DBUS=no
12778 else
12779 PKG_CONFIG_MIN_VERSION=0.9.0
12780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12781 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12782 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12784 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12785 { $as_echo "$as_me:$LINENO: result: yes" >&5
12786 $as_echo "yes" >&6; }
12787 succeeded=yes
12789 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12790 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12791 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12792 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12793 $as_echo "$DBUS_CFLAGS" >&6; }
12795 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12796 $as_echo_n "checking DBUS_LIBS... " >&6; }
12797 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12798 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12799 $as_echo "$DBUS_LIBS" >&6; }
12800 else
12801 { $as_echo "$as_me:$LINENO: result: no" >&5
12802 $as_echo "no" >&6; }
12803 DBUS_CFLAGS=""
12804 DBUS_LIBS=""
12805 ## If we have a custom action on failure, don't print errors, but
12806 ## do set a variable so people can do so.
12807 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12813 else
12814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12819 if test $succeeded = yes; then
12820 HAVE_DBUS=yes
12821 else
12822 HAVE_DBUS=no
12825 if test "$HAVE_DBUS" = yes; then
12826 LIBS="$LIBS $DBUS_LIBS"
12828 cat >>confdefs.h <<\_ACEOF
12829 #define HAVE_DBUS 1
12830 _ACEOF
12833 for ac_func in dbus_watch_get_unix_fd
12835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12837 $as_echo_n "checking for $ac_func... " >&6; }
12838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12839 $as_echo_n "(cached) " >&6
12840 else
12841 cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h. */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12849 #define $ac_func innocuous_$ac_func
12851 /* System header to define __stub macros and hopefully few prototypes,
12852 which can conflict with char $ac_func (); below.
12853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12854 <limits.h> exists even on freestanding compilers. */
12856 #ifdef __STDC__
12857 # include <limits.h>
12858 #else
12859 # include <assert.h>
12860 #endif
12862 #undef $ac_func
12864 /* Override any GCC internal prototype to avoid an error.
12865 Use char because int might match the return type of a GCC
12866 builtin and then its argument prototype would still apply. */
12867 #ifdef __cplusplus
12868 extern "C"
12869 #endif
12870 char $ac_func ();
12871 /* The GNU C library defines this for functions which it implements
12872 to always fail with ENOSYS. Some functions are actually named
12873 something starting with __ and the normal name is an alias. */
12874 #if defined __stub_$ac_func || defined __stub___$ac_func
12875 choke me
12876 #endif
12879 main ()
12881 return $ac_func ();
12883 return 0;
12885 _ACEOF
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (ac_try="$ac_link"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12891 esac
12892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894 (eval "$ac_link") 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } && {
12901 test -z "$ac_c_werror_flag" ||
12902 test ! -s conftest.err
12903 } && test -s conftest$ac_exeext && {
12904 test "$cross_compiling" = yes ||
12905 $as_test_x conftest$ac_exeext
12906 }; then
12907 eval "$as_ac_var=yes"
12908 else
12909 $as_echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 eval "$as_ac_var=no"
12915 rm -rf conftest.dSYM
12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12917 conftest$ac_exeext conftest.$ac_ext
12919 ac_res=`eval 'as_val=${'$as_ac_var'}
12920 $as_echo "$as_val"'`
12921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12922 $as_echo "$ac_res" >&6; }
12923 if test `eval 'as_val=${'$as_ac_var'}
12924 $as_echo "$as_val"'` = yes; then
12925 cat >>confdefs.h <<_ACEOF
12926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12927 _ACEOF
12930 done
12932 DBUS_OBJ=dbusbind.o
12937 HAVE_GCONF=no
12938 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12940 succeeded=no
12942 # Extract the first word of "pkg-config", so it can be a program name with args.
12943 set dummy pkg-config; ac_word=$2
12944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12947 $as_echo_n "(cached) " >&6
12948 else
12949 case $PKG_CONFIG in
12950 [\\/]* | ?:[\\/]*)
12951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12957 IFS=$as_save_IFS
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12961 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 break 2
12965 done
12966 done
12967 IFS=$as_save_IFS
12969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12971 esac
12973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12974 if test -n "$PKG_CONFIG"; then
12975 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12976 $as_echo "$PKG_CONFIG" >&6; }
12977 else
12978 { $as_echo "$as_me:$LINENO: result: no" >&5
12979 $as_echo "no" >&6; }
12984 if test "$PKG_CONFIG" = "no" ; then
12985 HAVE_GCONF=no
12986 else
12987 PKG_CONFIG_MIN_VERSION=0.9.0
12988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12989 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12990 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12992 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12993 { $as_echo "$as_me:$LINENO: result: yes" >&5
12994 $as_echo "yes" >&6; }
12995 succeeded=yes
12997 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12998 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12999 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13000 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13001 $as_echo "$GCONF_CFLAGS" >&6; }
13003 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13004 $as_echo_n "checking GCONF_LIBS... " >&6; }
13005 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13006 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13007 $as_echo "$GCONF_LIBS" >&6; }
13008 else
13009 { $as_echo "$as_me:$LINENO: result: no" >&5
13010 $as_echo "no" >&6; }
13011 GCONF_CFLAGS=""
13012 GCONF_LIBS=""
13013 ## If we have a custom action on failure, don't print errors, but
13014 ## do set a variable so people can do so.
13015 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13021 else
13022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13027 if test $succeeded = yes; then
13028 HAVE_GCONF=yes
13029 else
13030 HAVE_GCONF=no
13033 if test "$HAVE_GCONF" = yes; then
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_GCONF 1
13037 _ACEOF
13042 HAVE_LIBSELINUX=no
13043 LIBSELINUX_LIBS=
13044 if test "${with_selinux}" = "yes"; then
13045 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13046 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13047 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13048 $as_echo_n "(cached) " >&6
13049 else
13050 ac_check_lib_save_LIBS=$LIBS
13051 LIBS="-lselinux $LIBS"
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h. */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13062 #ifdef __cplusplus
13063 extern "C"
13064 #endif
13065 char lgetfilecon ();
13067 main ()
13069 return lgetfilecon ();
13071 return 0;
13073 _ACEOF
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (ac_try="$ac_link"
13076 case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13079 esac
13080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13081 $as_echo "$ac_try_echo") >&5
13082 (eval "$ac_link") 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } && {
13089 test -z "$ac_c_werror_flag" ||
13090 test ! -s conftest.err
13091 } && test -s conftest$ac_exeext && {
13092 test "$cross_compiling" = yes ||
13093 $as_test_x conftest$ac_exeext
13094 }; then
13095 ac_cv_lib_selinux_lgetfilecon=yes
13096 else
13097 $as_echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_cv_lib_selinux_lgetfilecon=no
13103 rm -rf conftest.dSYM
13104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13105 conftest$ac_exeext conftest.$ac_ext
13106 LIBS=$ac_check_lib_save_LIBS
13108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13109 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13110 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13111 HAVE_LIBSELINUX=yes
13112 else
13113 HAVE_LIBSELINUX=no
13116 if test "$HAVE_LIBSELINUX" = yes; then
13118 cat >>confdefs.h <<\_ACEOF
13119 #define HAVE_LIBSELINUX 1
13120 _ACEOF
13122 LIBSELINUX_LIBS=-lselinux
13127 HAVE_XAW3D=no
13128 LUCID_LIBW=
13129 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13130 if test "$with_xaw3d" != no; then
13131 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13132 $as_echo_n "checking for xaw3d... " >&6; }
13133 if test "${emacs_cv_xaw3d+set}" = set; then
13134 $as_echo_n "(cached) " >&6
13135 else
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h. */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13143 #include <X11/Intrinsic.h>
13144 #include <X11/Xaw3d/Simple.h>
13146 main ()
13150 return 0;
13152 _ACEOF
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (ac_try="$ac_link"
13155 case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13158 esac
13159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13160 $as_echo "$ac_try_echo") >&5
13161 (eval "$ac_link") 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } && {
13168 test -z "$ac_c_werror_flag" ||
13169 test ! -s conftest.err
13170 } && test -s conftest$ac_exeext && {
13171 test "$cross_compiling" = yes ||
13172 $as_test_x conftest$ac_exeext
13173 }; then
13174 emacs_cv_xaw3d=yes
13175 else
13176 $as_echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 emacs_cv_xaw3d=no
13182 rm -rf conftest.dSYM
13183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13184 conftest$ac_exeext conftest.$ac_ext
13187 else
13188 emacs_cv_xaw3d=no
13190 if test $emacs_cv_xaw3d = yes; then
13191 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13192 $as_echo "yes; using Lucid toolkit" >&6; }
13193 USE_X_TOOLKIT=LUCID
13194 HAVE_XAW3D=yes
13195 LUCID_LIBW=-lXaw3d
13197 cat >>confdefs.h <<\_ACEOF
13198 #define HAVE_XAW3D 1
13199 _ACEOF
13201 else
13202 { $as_echo "$as_me:$LINENO: result: no" >&5
13203 $as_echo "no" >&6; }
13204 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13205 $as_echo_n "checking for libXaw... " >&6; }
13206 if test "${emacs_cv_xaw+set}" = set; then
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h. */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13216 #include <X11/Intrinsic.h>
13217 #include <X11/Xaw/Simple.h>
13219 main ()
13223 return 0;
13225 _ACEOF
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231 esac
13232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13233 $as_echo "$ac_try_echo") >&5
13234 (eval "$ac_link") 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest$ac_exeext && {
13244 test "$cross_compiling" = yes ||
13245 $as_test_x conftest$ac_exeext
13246 }; then
13247 emacs_cv_xaw=yes
13248 else
13249 $as_echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 emacs_cv_xaw=no
13255 rm -rf conftest.dSYM
13256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13257 conftest$ac_exeext conftest.$ac_ext
13260 if test $emacs_cv_xaw = yes; then
13261 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13262 $as_echo "yes; using Lucid toolkit" >&6; }
13263 USE_X_TOOLKIT=LUCID
13264 LUCID_LIBW=-lXaw
13265 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13266 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13267 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13268 { (exit 1); exit 1; }; }
13269 else
13270 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13271 $as_echo "no; do not use toolkit by default" >&6; }
13272 USE_X_TOOLKIT=none
13277 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13279 LIBXTR6=
13280 if test "${USE_X_TOOLKIT}" != "none"; then
13281 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13282 $as_echo_n "checking X11 toolkit version... " >&6; }
13283 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13284 $as_echo_n "(cached) " >&6
13285 else
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 #include <X11/Intrinsic.h>
13294 main ()
13296 #if XtSpecificationRelease < 6
13297 fail;
13298 #endif
13301 return 0;
13303 _ACEOF
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (ac_try="$ac_link"
13306 case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309 esac
13310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13311 $as_echo "$ac_try_echo") >&5
13312 (eval "$ac_link") 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest$ac_exeext && {
13322 test "$cross_compiling" = yes ||
13323 $as_test_x conftest$ac_exeext
13324 }; then
13325 emacs_cv_x11_toolkit_version_6=yes
13326 else
13327 $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 emacs_cv_x11_toolkit_version_6=no
13333 rm -rf conftest.dSYM
13334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13335 conftest$ac_exeext conftest.$ac_ext
13338 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13339 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13340 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13341 $as_echo "6 or newer" >&6; }
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_X11XTR6 1
13345 _ACEOF
13347 LIBXTR6="-lSM -lICE"
13348 case "$opsys" in
13349 ## Use libw.a along with X11R6 Xt.
13350 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13351 esac
13352 else
13353 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13354 $as_echo "before 6" >&6; }
13357 OLDLIBS="$LIBS"
13358 if test x$HAVE_X11XTR6 = xyes; then
13359 LIBS="-lXt -lSM -lICE $LIBS"
13360 else
13361 LIBS="-lXt $LIBS"
13364 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13365 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13366 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13367 $as_echo_n "(cached) " >&6
13368 else
13369 ac_check_lib_save_LIBS=$LIBS
13370 LIBS="-lXmu $LIBS"
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char XmuConvertStandardSelection ();
13386 main ()
13388 return XmuConvertStandardSelection ();
13390 return 0;
13392 _ACEOF
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (ac_try="$ac_link"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398 esac
13399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400 $as_echo "$ac_try_echo") >&5
13401 (eval "$ac_link") 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest$ac_exeext && {
13411 test "$cross_compiling" = yes ||
13412 $as_test_x conftest$ac_exeext
13413 }; then
13414 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13415 else
13416 $as_echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13422 rm -rf conftest.dSYM
13423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13428 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13429 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13430 cat >>confdefs.h <<_ACEOF
13431 #define HAVE_LIBXMU 1
13432 _ACEOF
13434 LIBS="-lXmu $LIBS"
13438 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13442 LIBXMU=-lXmu
13443 case "$machine" in
13444 ## These machines don't supply Xmu.
13445 hpux* | aix4-2 )
13446 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13448 esac
13451 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13452 if test "${HAVE_X11}" = "yes"; then
13453 if test "${USE_X_TOOLKIT}" != "none"; then
13455 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13456 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13457 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13458 $as_echo_n "(cached) " >&6
13459 else
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-lXext $LIBS"
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h. */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char XShapeQueryExtension ();
13477 main ()
13479 return XShapeQueryExtension ();
13481 return 0;
13483 _ACEOF
13484 rm -f conftest.$ac_objext conftest$ac_exeext
13485 if { (ac_try="$ac_link"
13486 case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489 esac
13490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13491 $as_echo "$ac_try_echo") >&5
13492 (eval "$ac_link") 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_c_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest$ac_exeext && {
13502 test "$cross_compiling" = yes ||
13503 $as_test_x conftest$ac_exeext
13504 }; then
13505 ac_cv_lib_Xext_XShapeQueryExtension=yes
13506 else
13507 $as_echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 ac_cv_lib_Xext_XShapeQueryExtension=no
13513 rm -rf conftest.dSYM
13514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13515 conftest$ac_exeext conftest.$ac_ext
13516 LIBS=$ac_check_lib_save_LIBS
13518 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13519 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13520 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13521 cat >>confdefs.h <<_ACEOF
13522 #define HAVE_LIBXEXT 1
13523 _ACEOF
13525 LIBS="-lXext $LIBS"
13532 LIBXP=
13533 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13534 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13535 $as_echo_n "checking for Motif version 2.1... " >&6; }
13536 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13537 $as_echo_n "(cached) " >&6
13538 else
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h. */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545 #include <Xm/Xm.h>
13547 main ()
13549 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13550 int x = 5;
13551 #else
13552 Motif version prior to 2.1.
13553 #endif
13555 return 0;
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563 esac
13564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13565 $as_echo "$ac_try_echo") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest.$ac_objext; then
13576 emacs_cv_motif_version_2_1=yes
13577 else
13578 $as_echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 emacs_cv_motif_version_2_1=no
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13587 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13588 if test $emacs_cv_motif_version_2_1 = yes; then
13589 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13590 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13591 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13592 $as_echo_n "(cached) " >&6
13593 else
13594 ac_check_lib_save_LIBS=$LIBS
13595 LIBS="-lXp $LIBS"
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13603 /* Override any GCC internal prototype to avoid an error.
13604 Use char because int might match the return type of a GCC
13605 builtin and then its argument prototype would still apply. */
13606 #ifdef __cplusplus
13607 extern "C"
13608 #endif
13609 char XpCreateContext ();
13611 main ()
13613 return XpCreateContext ();
13615 return 0;
13617 _ACEOF
13618 rm -f conftest.$ac_objext conftest$ac_exeext
13619 if { (ac_try="$ac_link"
13620 case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13623 esac
13624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13625 $as_echo "$ac_try_echo") >&5
13626 (eval "$ac_link") 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } && {
13633 test -z "$ac_c_werror_flag" ||
13634 test ! -s conftest.err
13635 } && test -s conftest$ac_exeext && {
13636 test "$cross_compiling" = yes ||
13637 $as_test_x conftest$ac_exeext
13638 }; then
13639 ac_cv_lib_Xp_XpCreateContext=yes
13640 else
13641 $as_echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_cv_lib_Xp_XpCreateContext=no
13647 rm -rf conftest.dSYM
13648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13653 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13654 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13655 LIBXP=-lXp
13658 else
13659 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13660 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13661 if test "${emacs_cv_lesstif+set}" = set; then
13662 $as_echo_n "(cached) " >&6
13663 else
13664 # We put this in CFLAGS temporarily to precede other -I options
13665 # that might be in CFLAGS temporarily.
13666 # We put this in CPPFLAGS where it precedes the other -I options.
13667 OLD_CPPFLAGS=$CPPFLAGS
13668 OLD_CFLAGS=$CFLAGS
13669 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13670 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13679 main ()
13681 int x = 5;
13683 return 0;
13685 _ACEOF
13686 rm -f conftest.$ac_objext
13687 if { (ac_try="$ac_compile"
13688 case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691 esac
13692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13693 $as_echo "$ac_try_echo") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13704 emacs_cv_lesstif=yes
13705 else
13706 $as_echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 emacs_cv_lesstif=no
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13715 $as_echo "$emacs_cv_lesstif" >&6; }
13716 if test $emacs_cv_lesstif = yes; then
13717 # Make sure this -I option remains in CPPFLAGS after it is set
13718 # back to REAL_CPPFLAGS.
13719 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13720 # have those other -I options anyway. Ultimately, having this
13721 # directory ultimately in CPPFLAGS will be enough.
13722 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13723 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13724 else
13725 CFLAGS=$OLD_CFLAGS
13726 CPPFLAGS=$OLD_CPPFLAGS
13733 USE_TOOLKIT_SCROLL_BARS=no
13734 if test "${with_toolkit_scroll_bars}" != "no"; then
13735 if test "${USE_X_TOOLKIT}" != "none"; then
13736 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define USE_TOOLKIT_SCROLL_BARS 1
13739 _ACEOF
13741 HAVE_XAW3D=no
13742 USE_TOOLKIT_SCROLL_BARS=yes
13743 elif test "${HAVE_XAW3D}" = "yes"; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define USE_TOOLKIT_SCROLL_BARS 1
13746 _ACEOF
13748 USE_TOOLKIT_SCROLL_BARS=yes
13750 elif test "${HAVE_GTK}" = "yes"; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define USE_TOOLKIT_SCROLL_BARS 1
13753 _ACEOF
13755 USE_TOOLKIT_SCROLL_BARS=yes
13756 elif test "${HAVE_NS}" = "yes"; then
13757 cat >>confdefs.h <<\_ACEOF
13758 #define USE_TOOLKIT_SCROLL_BARS 1
13759 _ACEOF
13761 USE_TOOLKIT_SCROLL_BARS=yes
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 #include <X11/Xlib.h>
13773 #include <X11/Xresource.h>
13775 main ()
13777 XIMProc callback;
13779 return 0;
13781 _ACEOF
13782 rm -f conftest.$ac_objext
13783 if { (ac_try="$ac_compile"
13784 case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787 esac
13788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13789 $as_echo "$ac_try_echo") >&5
13790 (eval "$ac_compile") 2>conftest.er1
13791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } && {
13797 test -z "$ac_c_werror_flag" ||
13798 test ! -s conftest.err
13799 } && test -s conftest.$ac_objext; then
13800 HAVE_XIM=yes
13802 cat >>confdefs.h <<\_ACEOF
13803 #define HAVE_XIM 1
13804 _ACEOF
13806 else
13807 $as_echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 HAVE_XIM=no
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 if test "${with_xim}" != "no"; then
13818 cat >>confdefs.h <<\_ACEOF
13819 #define USE_XIM 1
13820 _ACEOF
13825 if test "${HAVE_XIM}" != "no"; then
13826 late_CFLAGS=$CFLAGS
13827 if test "$GCC" = yes; then
13828 CFLAGS="$CFLAGS --pedantic-errors"
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13837 #include <X11/Xlib.h>
13838 #include <X11/Xresource.h>
13840 main ()
13842 Display *display;
13843 XrmDatabase db;
13844 char *res_name;
13845 char *res_class;
13846 XIMProc callback;
13847 XPointer *client_data;
13848 #ifndef __GNUC__
13849 /* If we're not using GCC, it's probably not XFree86, and this is
13850 probably right, but we can't use something like --pedantic-errors. */
13851 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13852 char*, XIMProc, XPointer*);
13853 #endif
13854 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13855 client_data);
13857 return 0;
13859 _ACEOF
13860 rm -f conftest.$ac_objext
13861 if { (ac_try="$ac_compile"
13862 case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865 esac
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868 (eval "$ac_compile") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest.$ac_objext; then
13878 emacs_cv_arg6_star=yes
13879 else
13880 $as_echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 if test "$emacs_cv_arg6_star" = yes; then
13889 cat >>confdefs.h <<\_ACEOF
13890 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13891 _ACEOF
13893 else
13894 cat >>confdefs.h <<\_ACEOF
13895 #define XRegisterIMInstantiateCallback_arg6 XPointer
13896 _ACEOF
13899 CFLAGS=$late_CFLAGS
13902 ### Start of font-backend (under any platform) section.
13903 # (nothing here yet -- this is a placeholder)
13904 ### End of font-backend (under any platform) section.
13906 ### Start of font-backend (under X11) section.
13907 if test "${HAVE_X11}" = "yes"; then
13909 succeeded=no
13911 # Extract the first word of "pkg-config", so it can be a program name with args.
13912 set dummy pkg-config; ac_word=$2
13913 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13916 $as_echo_n "(cached) " >&6
13917 else
13918 case $PKG_CONFIG in
13919 [\\/]* | ?:[\\/]*)
13920 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13934 done
13935 done
13936 IFS=$as_save_IFS
13938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13940 esac
13942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13943 if test -n "$PKG_CONFIG"; then
13944 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13945 $as_echo "$PKG_CONFIG" >&6; }
13946 else
13947 { $as_echo "$as_me:$LINENO: result: no" >&5
13948 $as_echo "no" >&6; }
13953 if test "$PKG_CONFIG" = "no" ; then
13954 HAVE_FC=no
13955 else
13956 PKG_CONFIG_MIN_VERSION=0.9.0
13957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13958 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13959 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13961 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13962 { $as_echo "$as_me:$LINENO: result: yes" >&5
13963 $as_echo "yes" >&6; }
13964 succeeded=yes
13966 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13967 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13968 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13969 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13970 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13972 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13973 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13974 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13975 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13976 $as_echo "$FONTCONFIG_LIBS" >&6; }
13977 else
13978 { $as_echo "$as_me:$LINENO: result: no" >&5
13979 $as_echo "no" >&6; }
13980 FONTCONFIG_CFLAGS=""
13981 FONTCONFIG_LIBS=""
13982 ## If we have a custom action on failure, don't print errors, but
13983 ## do set a variable so people can do so.
13984 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13990 else
13991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13996 if test $succeeded = yes; then
13997 HAVE_FC=yes
13998 else
13999 HAVE_FC=no
14003 ## Use -lXft if available, unless `--with-xft=no'.
14004 HAVE_XFT=maybe
14005 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14006 with_xft="no";
14008 if test "x${with_xft}" != "xno"; then
14011 succeeded=no
14013 # Extract the first word of "pkg-config", so it can be a program name with args.
14014 set dummy pkg-config; ac_word=$2
14015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14018 $as_echo_n "(cached) " >&6
14019 else
14020 case $PKG_CONFIG in
14021 [\\/]* | ?:[\\/]*)
14022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14028 IFS=$as_save_IFS
14029 test -z "$as_dir" && as_dir=.
14030 for ac_exec_ext in '' $ac_executable_extensions; do
14031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14034 break 2
14036 done
14037 done
14038 IFS=$as_save_IFS
14040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14042 esac
14044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14045 if test -n "$PKG_CONFIG"; then
14046 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14047 $as_echo "$PKG_CONFIG" >&6; }
14048 else
14049 { $as_echo "$as_me:$LINENO: result: no" >&5
14050 $as_echo "no" >&6; }
14055 if test "$PKG_CONFIG" = "no" ; then
14056 HAVE_XFT=no
14057 else
14058 PKG_CONFIG_MIN_VERSION=0.9.0
14059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14060 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14061 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14063 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14064 { $as_echo "$as_me:$LINENO: result: yes" >&5
14065 $as_echo "yes" >&6; }
14066 succeeded=yes
14068 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14069 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14070 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14071 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14072 $as_echo "$XFT_CFLAGS" >&6; }
14074 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14075 $as_echo_n "checking XFT_LIBS... " >&6; }
14076 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14077 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14078 $as_echo "$XFT_LIBS" >&6; }
14079 else
14080 { $as_echo "$as_me:$LINENO: result: no" >&5
14081 $as_echo "no" >&6; }
14082 XFT_CFLAGS=""
14083 XFT_LIBS=""
14084 ## If we have a custom action on failure, don't print errors, but
14085 ## do set a variable so people can do so.
14086 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14092 else
14093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14098 if test $succeeded = yes; then
14100 else
14101 HAVE_XFT=no
14104 ## Because xftfont.c uses XRenderQueryExtension, we also
14105 ## need to link to -lXrender.
14106 HAVE_XRENDER=no
14107 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14108 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14109 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14110 $as_echo_n "(cached) " >&6
14111 else
14112 ac_check_lib_save_LIBS=$LIBS
14113 LIBS="-lXrender $LIBS"
14114 cat >conftest.$ac_ext <<_ACEOF
14115 /* confdefs.h. */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14121 /* Override any GCC internal prototype to avoid an error.
14122 Use char because int might match the return type of a GCC
14123 builtin and then its argument prototype would still apply. */
14124 #ifdef __cplusplus
14125 extern "C"
14126 #endif
14127 char XRenderQueryExtension ();
14129 main ()
14131 return XRenderQueryExtension ();
14133 return 0;
14135 _ACEOF
14136 rm -f conftest.$ac_objext conftest$ac_exeext
14137 if { (ac_try="$ac_link"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141 esac
14142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14143 $as_echo "$ac_try_echo") >&5
14144 (eval "$ac_link") 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } && {
14151 test -z "$ac_c_werror_flag" ||
14152 test ! -s conftest.err
14153 } && test -s conftest$ac_exeext && {
14154 test "$cross_compiling" = yes ||
14155 $as_test_x conftest$ac_exeext
14156 }; then
14157 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14158 else
14159 $as_echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_cv_lib_Xrender_XRenderQueryExtension=no
14165 rm -rf conftest.dSYM
14166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14171 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14172 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14173 HAVE_XRENDER=yes
14176 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14177 OLD_CPPFLAGS="$CPPFLAGS"
14178 OLD_CFLAGS="$CFLAGS"
14179 OLD_LIBS="$LIBS"
14180 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14181 CFLAGS="$CFLAGS $XFT_CFLAGS"
14182 XFT_LIBS="-lXrender $XFT_LIBS"
14183 LIBS="$XFT_LIBS $LIBS"
14184 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14185 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14186 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14187 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14188 $as_echo_n "(cached) " >&6
14190 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14191 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14192 else
14193 # Is the header compilable?
14194 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14195 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14196 cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h. */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 $ac_includes_default
14203 #include <X11/Xft/Xft.h>
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14212 $as_echo "$ac_try_echo") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest.$ac_objext; then
14223 ac_header_compiler=yes
14224 else
14225 $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_header_compiler=no
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14233 $as_echo "$ac_header_compiler" >&6; }
14235 # Is the header present?
14236 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14237 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <X11/Xft/Xft.h>
14245 _ACEOF
14246 if { (ac_try="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14250 esac
14251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14252 $as_echo "$ac_try_echo") >&5
14253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14254 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
14258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } >/dev/null && {
14260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14261 test ! -s conftest.err
14262 }; then
14263 ac_header_preproc=yes
14264 else
14265 $as_echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14268 ac_header_preproc=no
14271 rm -f conftest.err conftest.$ac_ext
14272 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14273 $as_echo "$ac_header_preproc" >&6; }
14275 # So? What about this header?
14276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14277 yes:no: )
14278 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14279 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14280 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14281 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14282 ac_header_preproc=yes
14284 no:yes:* )
14285 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14286 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14287 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14288 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14289 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14290 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14291 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14292 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14293 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14294 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14295 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14296 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14299 esac
14300 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14301 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14302 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14303 $as_echo_n "(cached) " >&6
14304 else
14305 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14308 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14311 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14312 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14313 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14314 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14315 $as_echo_n "(cached) " >&6
14316 else
14317 ac_check_lib_save_LIBS=$LIBS
14318 LIBS="-lXft $XFT_LIBS $LIBS"
14319 cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h. */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14326 /* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply. */
14329 #ifdef __cplusplus
14330 extern "C"
14331 #endif
14332 char XftFontOpen ();
14334 main ()
14336 return XftFontOpen ();
14338 return 0;
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346 esac
14347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14348 $as_echo "$ac_try_echo") >&5
14349 (eval "$ac_link") 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } && {
14356 test -z "$ac_c_werror_flag" ||
14357 test ! -s conftest.err
14358 } && test -s conftest$ac_exeext && {
14359 test "$cross_compiling" = yes ||
14360 $as_test_x conftest$ac_exeext
14361 }; then
14362 ac_cv_lib_Xft_XftFontOpen=yes
14363 else
14364 $as_echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ac_cv_lib_Xft_XftFontOpen=no
14370 rm -rf conftest.dSYM
14371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14376 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14377 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14378 HAVE_XFT=yes
14385 if test "${HAVE_XFT}" = "yes"; then
14387 cat >>confdefs.h <<\_ACEOF
14388 #define HAVE_XFT 1
14389 _ACEOF
14392 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14393 else
14394 CPPFLAGS="$OLD_CPPFLAGS"
14395 CFLAGS="$OLD_CFLAGS"
14396 LIBS="$OLD_LIBS"
14397 fi # "${HAVE_XFT}" = "yes"
14398 fi # "$HAVE_XFT" != no
14399 fi # "x${with_xft}" != "xno"
14401 if test "$HAVE_XFT" != "yes"; then
14402 HAVE_XFT=no
14406 HAVE_FREETYPE=no
14407 ## We used to allow building with FreeType and without Xft.
14408 ## However, the ftx font backend driver is not in good shape.
14409 if test "${HAVE_XFT}" = "yes"; then
14410 HAVE_FREETYPE=yes
14411 FONTCONFIG_CFLAGS=
14412 FONTCONFIG_LIBS=
14415 HAVE_LIBOTF=no
14416 if test "${HAVE_FREETYPE}" = "yes"; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_FREETYPE 1
14420 _ACEOF
14422 if test "${with_libotf}" != "no"; then
14424 succeeded=no
14426 # Extract the first word of "pkg-config", so it can be a program name with args.
14427 set dummy pkg-config; ac_word=$2
14428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14429 $as_echo_n "checking for $ac_word... " >&6; }
14430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14431 $as_echo_n "(cached) " >&6
14432 else
14433 case $PKG_CONFIG in
14434 [\\/]* | ?:[\\/]*)
14435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14439 for as_dir in $PATH
14441 IFS=$as_save_IFS
14442 test -z "$as_dir" && as_dir=.
14443 for ac_exec_ext in '' $ac_executable_extensions; do
14444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14447 break 2
14449 done
14450 done
14451 IFS=$as_save_IFS
14453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14455 esac
14457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14458 if test -n "$PKG_CONFIG"; then
14459 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14460 $as_echo "$PKG_CONFIG" >&6; }
14461 else
14462 { $as_echo "$as_me:$LINENO: result: no" >&5
14463 $as_echo "no" >&6; }
14468 if test "$PKG_CONFIG" = "no" ; then
14469 HAVE_LIBOTF=no
14470 else
14471 PKG_CONFIG_MIN_VERSION=0.9.0
14472 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14473 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14474 $as_echo_n "checking for libotf... " >&6; }
14476 if $PKG_CONFIG --exists "libotf" 2>&5; then
14477 { $as_echo "$as_me:$LINENO: result: yes" >&5
14478 $as_echo "yes" >&6; }
14479 succeeded=yes
14481 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14482 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14483 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14484 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14485 $as_echo "$LIBOTF_CFLAGS" >&6; }
14487 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14488 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14489 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14490 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14491 $as_echo "$LIBOTF_LIBS" >&6; }
14492 else
14493 { $as_echo "$as_me:$LINENO: result: no" >&5
14494 $as_echo "no" >&6; }
14495 LIBOTF_CFLAGS=""
14496 LIBOTF_LIBS=""
14497 ## If we have a custom action on failure, don't print errors, but
14498 ## do set a variable so people can do so.
14499 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14505 else
14506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14511 if test $succeeded = yes; then
14512 HAVE_LIBOTF=yes
14513 else
14514 HAVE_LIBOTF=no
14517 if test "$HAVE_LIBOTF" = "yes"; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_LIBOTF 1
14521 _ACEOF
14523 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14524 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14525 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14526 $as_echo_n "(cached) " >&6
14527 else
14528 ac_check_lib_save_LIBS=$LIBS
14529 LIBS="-lotf $LIBS"
14530 cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h. */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 char OTF_get_variation_glyphs ();
14545 main ()
14547 return OTF_get_variation_glyphs ();
14549 return 0;
14551 _ACEOF
14552 rm -f conftest.$ac_objext conftest$ac_exeext
14553 if { (ac_try="$ac_link"
14554 case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14557 esac
14558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14559 $as_echo "$ac_try_echo") >&5
14560 (eval "$ac_link") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } && {
14567 test -z "$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 } && test -s conftest$ac_exeext && {
14570 test "$cross_compiling" = yes ||
14571 $as_test_x conftest$ac_exeext
14572 }; then
14573 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14574 else
14575 $as_echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14581 rm -rf conftest.dSYM
14582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14586 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14587 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14588 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14589 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14590 else
14591 HAVE_OTF_GET_VARIATION_GLYPHS=no
14594 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14598 _ACEOF
14605 HAVE_M17N_FLT=no
14606 if test "${HAVE_LIBOTF}" = yes; then
14607 if test "${with_m17n_flt}" != "no"; then
14609 succeeded=no
14611 # Extract the first word of "pkg-config", so it can be a program name with args.
14612 set dummy pkg-config; ac_word=$2
14613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14616 $as_echo_n "(cached) " >&6
14617 else
14618 case $PKG_CONFIG in
14619 [\\/]* | ?:[\\/]*)
14620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14624 for as_dir in $PATH
14626 IFS=$as_save_IFS
14627 test -z "$as_dir" && as_dir=.
14628 for ac_exec_ext in '' $ac_executable_extensions; do
14629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14632 break 2
14634 done
14635 done
14636 IFS=$as_save_IFS
14638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14640 esac
14642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14643 if test -n "$PKG_CONFIG"; then
14644 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14645 $as_echo "$PKG_CONFIG" >&6; }
14646 else
14647 { $as_echo "$as_me:$LINENO: result: no" >&5
14648 $as_echo "no" >&6; }
14653 if test "$PKG_CONFIG" = "no" ; then
14654 HAVE_M17N_FLT=no
14655 else
14656 PKG_CONFIG_MIN_VERSION=0.9.0
14657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14658 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14659 $as_echo_n "checking for m17n-flt... " >&6; }
14661 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14662 { $as_echo "$as_me:$LINENO: result: yes" >&5
14663 $as_echo "yes" >&6; }
14664 succeeded=yes
14666 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14667 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14668 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14669 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14670 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14672 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14673 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14674 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14675 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14676 $as_echo "$M17N_FLT_LIBS" >&6; }
14677 else
14678 { $as_echo "$as_me:$LINENO: result: no" >&5
14679 $as_echo "no" >&6; }
14680 M17N_FLT_CFLAGS=""
14681 M17N_FLT_LIBS=""
14682 ## If we have a custom action on failure, don't print errors, but
14683 ## do set a variable so people can do so.
14684 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14690 else
14691 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14692 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14696 if test $succeeded = yes; then
14697 HAVE_M17N_FLT=yes
14698 else
14699 HAVE_M17N_FLT=no
14702 if test "$HAVE_M17N_FLT" = "yes"; then
14704 cat >>confdefs.h <<\_ACEOF
14705 #define HAVE_M17N_FLT 1
14706 _ACEOF
14711 else
14712 HAVE_XFT=no
14713 HAVE_FREETYPE=no
14714 HAVE_LIBOTF=no
14715 HAVE_M17N_FLT=no
14718 ### End of font-backend (under X11) section.
14729 ### Use -lXpm if available, unless `--with-xpm=no'.
14730 HAVE_XPM=no
14731 LIBXPM=
14732 if test "${HAVE_X11}" = "yes"; then
14733 if test "${with_xpm}" != "no"; then
14734 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14735 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14736 $as_echo_n "checking for X11/xpm.h... " >&6; }
14737 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14738 $as_echo_n "(cached) " >&6
14740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14741 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14742 else
14743 # Is the header compilable?
14744 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14745 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 #include <X11/xpm.h>
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (ac_try="$ac_compile"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760 esac
14761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763 (eval "$ac_compile") 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } && {
14770 test -z "$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14772 } && test -s conftest.$ac_objext; then
14773 ac_header_compiler=yes
14774 else
14775 $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_header_compiler=no
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14783 $as_echo "$ac_header_compiler" >&6; }
14785 # Is the header present?
14786 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14787 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <X11/xpm.h>
14795 _ACEOF
14796 if { (ac_try="$ac_cpp conftest.$ac_ext"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14800 esac
14801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14802 $as_echo "$ac_try_echo") >&5
14803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14804 ac_status=$?
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
14808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } >/dev/null && {
14810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 }; then
14813 ac_header_preproc=yes
14814 else
14815 $as_echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 $as_echo "$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 yes:no: )
14828 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14831 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14834 no:yes:* )
14835 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14836 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14837 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14838 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14840 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14841 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14842 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14844 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14845 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14846 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14849 esac
14850 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14851 $as_echo_n "checking for X11/xpm.h... " >&6; }
14852 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14853 $as_echo_n "(cached) " >&6
14854 else
14855 ac_cv_header_X11_xpm_h=$ac_header_preproc
14857 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14858 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14861 if test $ac_cv_header_X11_xpm_h = yes; then
14862 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14863 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14864 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14865 $as_echo_n "(cached) " >&6
14866 else
14867 ac_check_lib_save_LIBS=$LIBS
14868 LIBS="-lXpm -lX11 $LIBS"
14869 cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h. */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14876 /* Override any GCC internal prototype to avoid an error.
14877 Use char because int might match the return type of a GCC
14878 builtin and then its argument prototype would still apply. */
14879 #ifdef __cplusplus
14880 extern "C"
14881 #endif
14882 char XpmReadFileToPixmap ();
14884 main ()
14886 return XpmReadFileToPixmap ();
14888 return 0;
14890 _ACEOF
14891 rm -f conftest.$ac_objext conftest$ac_exeext
14892 if { (ac_try="$ac_link"
14893 case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14896 esac
14897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14898 $as_echo "$ac_try_echo") >&5
14899 (eval "$ac_link") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest$ac_exeext && {
14909 test "$cross_compiling" = yes ||
14910 $as_test_x conftest$ac_exeext
14911 }; then
14912 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14913 else
14914 $as_echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14920 rm -rf conftest.dSYM
14921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14922 conftest$ac_exeext conftest.$ac_ext
14923 LIBS=$ac_check_lib_save_LIBS
14925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14926 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14927 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14928 HAVE_XPM=yes
14934 if test "${HAVE_XPM}" = "yes"; then
14935 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14936 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 #include "X11/xpm.h"
14944 #ifndef XpmReturnAllocPixels
14945 no_return_alloc_pixels
14946 #endif
14948 _ACEOF
14949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14951 HAVE_XPM=no
14952 else
14953 HAVE_XPM=yes
14955 rm -f conftest*
14958 if test "${HAVE_XPM}" = "yes"; then
14959 { $as_echo "$as_me:$LINENO: result: yes" >&5
14960 $as_echo "yes" >&6; }
14961 else
14962 { $as_echo "$as_me:$LINENO: result: no" >&5
14963 $as_echo "no" >&6; }
14968 if test "${HAVE_XPM}" = "yes"; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_XPM 1
14972 _ACEOF
14974 LIBXPM=-lXpm
14979 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14980 HAVE_JPEG=no
14981 LIBJPEG=
14982 if test "${HAVE_X11}" = "yes"; then
14983 if test "${with_jpeg}" != "no"; then
14984 if test "${ac_cv_header_jerror_h+set}" = set; then
14985 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14986 $as_echo_n "checking for jerror.h... " >&6; }
14987 if test "${ac_cv_header_jerror_h+set}" = set; then
14988 $as_echo_n "(cached) " >&6
14990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14991 $as_echo "$ac_cv_header_jerror_h" >&6; }
14992 else
14993 # Is the header compilable?
14994 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14995 $as_echo_n "checking jerror.h usability... " >&6; }
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 #include <jerror.h>
15004 _ACEOF
15005 rm -f conftest.$ac_objext
15006 if { (ac_try="$ac_compile"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15012 $as_echo "$ac_try_echo") >&5
15013 (eval "$ac_compile") 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } && {
15020 test -z "$ac_c_werror_flag" ||
15021 test ! -s conftest.err
15022 } && test -s conftest.$ac_objext; then
15023 ac_header_compiler=yes
15024 else
15025 $as_echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_header_compiler=no
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15033 $as_echo "$ac_header_compiler" >&6; }
15035 # Is the header present?
15036 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15037 $as_echo_n "checking jerror.h presence... " >&6; }
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h. */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 #include <jerror.h>
15045 _ACEOF
15046 if { (ac_try="$ac_cpp conftest.$ac_ext"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } >/dev/null && {
15060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 }; then
15063 ac_header_preproc=yes
15064 else
15065 $as_echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_header_preproc=no
15071 rm -f conftest.err conftest.$ac_ext
15072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073 $as_echo "$ac_header_preproc" >&6; }
15075 # So? What about this header?
15076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15077 yes:no: )
15078 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15079 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15081 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15082 ac_header_preproc=yes
15084 no:yes:* )
15085 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15086 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15088 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15090 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15092 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15094 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15096 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15099 esac
15100 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15101 $as_echo_n "checking for jerror.h... " >&6; }
15102 if test "${ac_cv_header_jerror_h+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15104 else
15105 ac_cv_header_jerror_h=$ac_header_preproc
15107 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15108 $as_echo "$ac_cv_header_jerror_h" >&6; }
15111 if test $ac_cv_header_jerror_h = yes; then
15112 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15113 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15114 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15115 $as_echo_n "(cached) " >&6
15116 else
15117 ac_check_lib_save_LIBS=$LIBS
15118 LIBS="-ljpeg $LIBS"
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15126 /* Override any GCC internal prototype to avoid an error.
15127 Use char because int might match the return type of a GCC
15128 builtin and then its argument prototype would still apply. */
15129 #ifdef __cplusplus
15130 extern "C"
15131 #endif
15132 char jpeg_destroy_compress ();
15134 main ()
15136 return jpeg_destroy_compress ();
15138 return 0;
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (ac_try="$ac_link"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146 esac
15147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148 $as_echo "$ac_try_echo") >&5
15149 (eval "$ac_link") 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest$ac_exeext && {
15159 test "$cross_compiling" = yes ||
15160 $as_test_x conftest$ac_exeext
15161 }; then
15162 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15163 else
15164 $as_echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15170 rm -rf conftest.dSYM
15171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15172 conftest$ac_exeext conftest.$ac_ext
15173 LIBS=$ac_check_lib_save_LIBS
15175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15176 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15177 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15178 HAVE_JPEG=yes
15187 if test "${HAVE_JPEG}" = "yes"; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_JPEG 1
15190 _ACEOF
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 #include <jpeglib.h>
15199 version=JPEG_LIB_VERSION
15201 _ACEOF
15202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15203 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15204 cat >>confdefs.h <<\_ACEOF
15205 #define HAVE_JPEG 1
15206 _ACEOF
15208 else
15209 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15210 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15211 HAVE_JPEG=no
15213 rm -f conftest*
15216 if test "${HAVE_JPEG}" = "yes"; then
15217 LIBJPEG=-ljpeg
15222 ### Use -lpng if available, unless `--with-png=no'.
15223 HAVE_PNG=no
15224 LIBPNG=
15225 if test "${HAVE_X11}" = "yes"; then
15226 if test "${with_png}" != "no"; then
15227 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15228 # in /usr/include/libpng.
15231 for ac_header in png.h libpng/png.h
15233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 $as_echo_n "checking for $ac_header... " >&6; }
15237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15238 $as_echo_n "(cached) " >&6
15240 ac_res=`eval 'as_val=${'$as_ac_Header'}
15241 $as_echo "$as_val"'`
15242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15243 $as_echo "$ac_res" >&6; }
15244 else
15245 # Is the header compilable?
15246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15247 $as_echo_n "checking $ac_header usability... " >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15255 #include <$ac_header>
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (ac_try="$ac_compile"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262 esac
15263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15264 $as_echo "$ac_try_echo") >&5
15265 (eval "$ac_compile") 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 } && test -s conftest.$ac_objext; then
15275 ac_header_compiler=yes
15276 else
15277 $as_echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 ac_header_compiler=no
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15285 $as_echo "$ac_header_compiler" >&6; }
15287 # Is the header present?
15288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15289 $as_echo_n "checking $ac_header presence... " >&6; }
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 #include <$ac_header>
15297 _ACEOF
15298 if { (ac_try="$ac_cpp conftest.$ac_ext"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302 esac
15303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15304 $as_echo "$ac_try_echo") >&5
15305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15306 ac_status=$?
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
15310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } >/dev/null && {
15312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15313 test ! -s conftest.err
15314 }; then
15315 ac_header_preproc=yes
15316 else
15317 $as_echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ac_header_preproc=no
15323 rm -f conftest.err conftest.$ac_ext
15324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15325 $as_echo "$ac_header_preproc" >&6; }
15327 # So? What about this header?
15328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15329 yes:no: )
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15334 ac_header_preproc=yes
15336 no:yes:* )
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15340 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15344 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15351 esac
15352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 $as_echo_n "checking for $ac_header... " >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 $as_echo_n "(cached) " >&6
15356 else
15357 eval "$as_ac_Header=\$ac_header_preproc"
15359 ac_res=`eval 'as_val=${'$as_ac_Header'}
15360 $as_echo "$as_val"'`
15361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15362 $as_echo "$ac_res" >&6; }
15365 if test `eval 'as_val=${'$as_ac_Header'}
15366 $as_echo "$as_val"'` = yes; then
15367 cat >>confdefs.h <<_ACEOF
15368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15369 _ACEOF
15373 done
15375 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15376 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15377 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15378 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15379 $as_echo_n "(cached) " >&6
15380 else
15381 ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lpng -lz -lm $LIBS"
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h. */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char png_get_channels ();
15398 main ()
15400 return png_get_channels ();
15402 return 0;
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410 esac
15411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15412 $as_echo "$ac_try_echo") >&5
15413 (eval "$ac_link") 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest$ac_exeext && {
15423 test "$cross_compiling" = yes ||
15424 $as_test_x conftest$ac_exeext
15425 }; then
15426 ac_cv_lib_png_png_get_channels=yes
15427 else
15428 $as_echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_cv_lib_png_png_get_channels=no
15434 rm -rf conftest.dSYM
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15439 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15440 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15441 if test $ac_cv_lib_png_png_get_channels = yes; then
15442 HAVE_PNG=yes
15448 if test "${HAVE_PNG}" = "yes"; then
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE_PNG 1
15452 _ACEOF
15454 LIBPNG="-lpng -lz -lm"
15459 ### Use -ltiff if available, unless `--with-tiff=no'.
15460 HAVE_TIFF=no
15461 LIBTIFF=
15462 if test "${HAVE_X11}" = "yes"; then
15463 if test "${with_tiff}" != "no"; then
15464 if test "${ac_cv_header_tiffio_h+set}" = set; then
15465 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15466 $as_echo_n "checking for tiffio.h... " >&6; }
15467 if test "${ac_cv_header_tiffio_h+set}" = set; then
15468 $as_echo_n "(cached) " >&6
15470 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15471 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15472 else
15473 # Is the header compilable?
15474 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15475 $as_echo_n "checking tiffio.h usability... " >&6; }
15476 cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h. */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 $ac_includes_default
15483 #include <tiffio.h>
15484 _ACEOF
15485 rm -f conftest.$ac_objext
15486 if { (ac_try="$ac_compile"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490 esac
15491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15492 $as_echo "$ac_try_echo") >&5
15493 (eval "$ac_compile") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest.$ac_objext; then
15503 ac_header_compiler=yes
15504 else
15505 $as_echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 ac_header_compiler=no
15511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15513 $as_echo "$ac_header_compiler" >&6; }
15515 # Is the header present?
15516 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15517 $as_echo_n "checking tiffio.h presence... " >&6; }
15518 cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h. */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15524 #include <tiffio.h>
15525 _ACEOF
15526 if { (ac_try="$ac_cpp conftest.$ac_ext"
15527 case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15530 esac
15531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15532 $as_echo "$ac_try_echo") >&5
15533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } >/dev/null && {
15540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15542 }; then
15543 ac_header_preproc=yes
15544 else
15545 $as_echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 ac_header_preproc=no
15551 rm -f conftest.err conftest.$ac_ext
15552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15553 $as_echo "$ac_header_preproc" >&6; }
15555 # So? What about this header?
15556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15557 yes:no: )
15558 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15559 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15560 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15561 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15562 ac_header_preproc=yes
15564 no:yes:* )
15565 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15566 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15567 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15568 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15570 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15571 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15572 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15574 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15575 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15576 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15579 esac
15580 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15581 $as_echo_n "checking for tiffio.h... " >&6; }
15582 if test "${ac_cv_header_tiffio_h+set}" = set; then
15583 $as_echo_n "(cached) " >&6
15584 else
15585 ac_cv_header_tiffio_h=$ac_header_preproc
15587 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15588 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15591 if test $ac_cv_header_tiffio_h = yes; then
15592 tifflibs="-lz -lm"
15593 # At least one tiff package requires the jpeg library.
15594 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15595 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15596 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15597 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15598 $as_echo_n "(cached) " >&6
15599 else
15600 ac_check_lib_save_LIBS=$LIBS
15601 LIBS="-ltiff $tifflibs $LIBS"
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h. */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15609 /* Override any GCC internal prototype to avoid an error.
15610 Use char because int might match the return type of a GCC
15611 builtin and then its argument prototype would still apply. */
15612 #ifdef __cplusplus
15613 extern "C"
15614 #endif
15615 char TIFFGetVersion ();
15617 main ()
15619 return TIFFGetVersion ();
15621 return 0;
15623 _ACEOF
15624 rm -f conftest.$ac_objext conftest$ac_exeext
15625 if { (ac_try="$ac_link"
15626 case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629 esac
15630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15631 $as_echo "$ac_try_echo") >&5
15632 (eval "$ac_link") 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest$ac_exeext && {
15642 test "$cross_compiling" = yes ||
15643 $as_test_x conftest$ac_exeext
15644 }; then
15645 ac_cv_lib_tiff_TIFFGetVersion=yes
15646 else
15647 $as_echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_cv_lib_tiff_TIFFGetVersion=no
15653 rm -rf conftest.dSYM
15654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15655 conftest$ac_exeext conftest.$ac_ext
15656 LIBS=$ac_check_lib_save_LIBS
15658 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15659 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15660 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15661 HAVE_TIFF=yes
15669 if test "${HAVE_TIFF}" = "yes"; then
15671 cat >>confdefs.h <<\_ACEOF
15672 #define HAVE_TIFF 1
15673 _ACEOF
15675 LIBTIFF=-ltiff
15680 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15681 HAVE_GIF=no
15682 LIBGIF=
15683 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15684 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15685 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15686 $as_echo_n "checking for gif_lib.h... " >&6; }
15687 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15688 $as_echo_n "(cached) " >&6
15690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15691 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15692 else
15693 # Is the header compilable?
15694 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15695 $as_echo_n "checking gif_lib.h usability... " >&6; }
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15703 #include <gif_lib.h>
15704 _ACEOF
15705 rm -f conftest.$ac_objext
15706 if { (ac_try="$ac_compile"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710 esac
15711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712 $as_echo "$ac_try_echo") >&5
15713 (eval "$ac_compile") 2>conftest.er1
15714 ac_status=$?
15715 grep -v '^ *+' conftest.er1 >conftest.err
15716 rm -f conftest.er1
15717 cat conftest.err >&5
15718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && {
15720 test -z "$ac_c_werror_flag" ||
15721 test ! -s conftest.err
15722 } && test -s conftest.$ac_objext; then
15723 ac_header_compiler=yes
15724 else
15725 $as_echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 ac_header_compiler=no
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15733 $as_echo "$ac_header_compiler" >&6; }
15735 # Is the header present?
15736 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15737 $as_echo_n "checking gif_lib.h presence... " >&6; }
15738 cat >conftest.$ac_ext <<_ACEOF
15739 /* confdefs.h. */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15744 #include <gif_lib.h>
15745 _ACEOF
15746 if { (ac_try="$ac_cpp conftest.$ac_ext"
15747 case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750 esac
15751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15752 $as_echo "$ac_try_echo") >&5
15753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15754 ac_status=$?
15755 grep -v '^ *+' conftest.er1 >conftest.err
15756 rm -f conftest.er1
15757 cat conftest.err >&5
15758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } >/dev/null && {
15760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15761 test ! -s conftest.err
15762 }; then
15763 ac_header_preproc=yes
15764 else
15765 $as_echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_header_preproc=no
15771 rm -f conftest.err conftest.$ac_ext
15772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15773 $as_echo "$ac_header_preproc" >&6; }
15775 # So? What about this header?
15776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15777 yes:no: )
15778 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15779 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15780 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15781 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15782 ac_header_preproc=yes
15784 no:yes:* )
15785 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15786 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15787 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15788 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15790 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15791 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15792 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15793 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15794 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15796 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15799 esac
15800 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15801 $as_echo_n "checking for gif_lib.h... " >&6; }
15802 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15803 $as_echo_n "(cached) " >&6
15804 else
15805 ac_cv_header_gif_lib_h=$ac_header_preproc
15807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15808 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15811 if test $ac_cv_header_gif_lib_h = yes; then
15812 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15813 # Earlier versions can crash Emacs.
15814 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15815 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15816 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15817 $as_echo_n "(cached) " >&6
15818 else
15819 ac_check_lib_save_LIBS=$LIBS
15820 LIBS="-lgif $LIBS"
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15828 /* Override any GCC internal prototype to avoid an error.
15829 Use char because int might match the return type of a GCC
15830 builtin and then its argument prototype would still apply. */
15831 #ifdef __cplusplus
15832 extern "C"
15833 #endif
15834 char EGifPutExtensionLast ();
15836 main ()
15838 return EGifPutExtensionLast ();
15840 return 0;
15842 _ACEOF
15843 rm -f conftest.$ac_objext conftest$ac_exeext
15844 if { (ac_try="$ac_link"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848 esac
15849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15850 $as_echo "$ac_try_echo") >&5
15851 (eval "$ac_link") 2>conftest.er1
15852 ac_status=$?
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
15856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } && {
15858 test -z "$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15860 } && test -s conftest$ac_exeext && {
15861 test "$cross_compiling" = yes ||
15862 $as_test_x conftest$ac_exeext
15863 }; then
15864 ac_cv_lib_gif_EGifPutExtensionLast=yes
15865 else
15866 $as_echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_cv_lib_gif_EGifPutExtensionLast=no
15872 rm -rf conftest.dSYM
15873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15874 conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15878 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15879 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15880 HAVE_GIF=yes
15881 else
15882 HAVE_GIF=maybe
15889 if test "$HAVE_GIF" = yes; then
15890 LIBGIF=-lgif
15891 elif test "$HAVE_GIF" = maybe; then
15892 # If gif_lib.h but no libgif, try libungif.
15893 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15894 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15895 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15896 $as_echo_n "(cached) " >&6
15897 else
15898 ac_check_lib_save_LIBS=$LIBS
15899 LIBS="-lungif $LIBS"
15900 cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h. */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15907 /* Override any GCC internal prototype to avoid an error.
15908 Use char because int might match the return type of a GCC
15909 builtin and then its argument prototype would still apply. */
15910 #ifdef __cplusplus
15911 extern "C"
15912 #endif
15913 char EGifPutExtensionLast ();
15915 main ()
15917 return EGifPutExtensionLast ();
15919 return 0;
15921 _ACEOF
15922 rm -f conftest.$ac_objext conftest$ac_exeext
15923 if { (ac_try="$ac_link"
15924 case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927 esac
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930 (eval "$ac_link") 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } && {
15937 test -z "$ac_c_werror_flag" ||
15938 test ! -s conftest.err
15939 } && test -s conftest$ac_exeext && {
15940 test "$cross_compiling" = yes ||
15941 $as_test_x conftest$ac_exeext
15942 }; then
15943 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15944 else
15945 $as_echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_cv_lib_ungif_EGifPutExtensionLast=no
15951 rm -rf conftest.dSYM
15952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15953 conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15957 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15958 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15959 HAVE_GIF=yes
15960 else
15961 HAVE_GIF=no
15964 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15967 if test "${HAVE_GIF}" = "yes"; then
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_GIF 1
15971 _ACEOF
15977 if test "${HAVE_X11}" = "yes"; then
15978 MISSING=""
15979 WITH_NO=""
15980 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15981 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15982 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15983 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15984 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15985 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15986 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15987 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15988 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15989 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15991 if test "X${MISSING}" != X; then
15992 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15993 $MISSING
15994 Maybe some development libraries/packages are missing?
15995 If you don't want to link with them give
15996 $WITH_NO
15997 as options to configure" >&5
15998 $as_echo "$as_me: error: The following required libraries were not found:
15999 $MISSING
16000 Maybe some development libraries/packages are missing?
16001 If you don't want to link with them give
16002 $WITH_NO
16003 as options to configure" >&2;}
16004 { (exit 1); exit 1; }; }
16008 ### Use -lgpm if available, unless `--with-gpm=no'.
16009 HAVE_GPM=no
16010 LIBGPM=
16011 MOUSE_SUPPORT=
16012 if test "${with_gpm}" != "no"; then
16013 if test "${ac_cv_header_gpm_h+set}" = set; then
16014 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16015 $as_echo_n "checking for gpm.h... " >&6; }
16016 if test "${ac_cv_header_gpm_h+set}" = set; then
16017 $as_echo_n "(cached) " >&6
16019 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16020 $as_echo "$ac_cv_header_gpm_h" >&6; }
16021 else
16022 # Is the header compilable?
16023 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16024 $as_echo_n "checking gpm.h usability... " >&6; }
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 $ac_includes_default
16032 #include <gpm.h>
16033 _ACEOF
16034 rm -f conftest.$ac_objext
16035 if { (ac_try="$ac_compile"
16036 case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039 esac
16040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041 $as_echo "$ac_try_echo") >&5
16042 (eval "$ac_compile") 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } && {
16049 test -z "$ac_c_werror_flag" ||
16050 test ! -s conftest.err
16051 } && test -s conftest.$ac_objext; then
16052 ac_header_compiler=yes
16053 else
16054 $as_echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 ac_header_compiler=no
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16062 $as_echo "$ac_header_compiler" >&6; }
16064 # Is the header present?
16065 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16066 $as_echo_n "checking gpm.h presence... " >&6; }
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <gpm.h>
16074 _ACEOF
16075 if { (ac_try="$ac_cpp conftest.$ac_ext"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079 esac
16080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16081 $as_echo "$ac_try_echo") >&5
16082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } >/dev/null && {
16089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16090 test ! -s conftest.err
16091 }; then
16092 ac_header_preproc=yes
16093 else
16094 $as_echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_preproc=no
16100 rm -f conftest.err conftest.$ac_ext
16101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16102 $as_echo "$ac_header_preproc" >&6; }
16104 # So? What about this header?
16105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16106 yes:no: )
16107 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16108 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16109 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16110 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16111 ac_header_preproc=yes
16113 no:yes:* )
16114 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16115 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16117 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16119 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16120 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16121 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16123 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16125 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16128 esac
16129 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16130 $as_echo_n "checking for gpm.h... " >&6; }
16131 if test "${ac_cv_header_gpm_h+set}" = set; then
16132 $as_echo_n "(cached) " >&6
16133 else
16134 ac_cv_header_gpm_h=$ac_header_preproc
16136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16137 $as_echo "$ac_cv_header_gpm_h" >&6; }
16140 if test $ac_cv_header_gpm_h = yes; then
16141 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16142 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16143 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16145 else
16146 ac_check_lib_save_LIBS=$LIBS
16147 LIBS="-lgpm $LIBS"
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h. */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16155 /* Override any GCC internal prototype to avoid an error.
16156 Use char because int might match the return type of a GCC
16157 builtin and then its argument prototype would still apply. */
16158 #ifdef __cplusplus
16159 extern "C"
16160 #endif
16161 char Gpm_Open ();
16163 main ()
16165 return Gpm_Open ();
16167 return 0;
16169 _ACEOF
16170 rm -f conftest.$ac_objext conftest$ac_exeext
16171 if { (ac_try="$ac_link"
16172 case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175 esac
16176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16177 $as_echo "$ac_try_echo") >&5
16178 (eval "$ac_link") 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest$ac_exeext && {
16188 test "$cross_compiling" = yes ||
16189 $as_test_x conftest$ac_exeext
16190 }; then
16191 ac_cv_lib_gpm_Gpm_Open=yes
16192 else
16193 $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_lib_gpm_Gpm_Open=no
16199 rm -rf conftest.dSYM
16200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16201 conftest$ac_exeext conftest.$ac_ext
16202 LIBS=$ac_check_lib_save_LIBS
16204 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16205 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16206 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16207 HAVE_GPM=yes
16214 if test "${HAVE_GPM}" = "yes"; then
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE_GPM 1
16218 _ACEOF
16220 LIBGPM=-lgpm
16221 ## May be reset below.
16222 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16227 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16228 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16229 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16230 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16231 $as_echo_n "(cached) " >&6
16233 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16234 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16235 else
16236 # Is the header compilable?
16237 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16238 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16239 cat >conftest.$ac_ext <<_ACEOF
16240 /* confdefs.h. */
16241 _ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245 $ac_includes_default
16246 #include <malloc/malloc.h>
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16255 $as_echo "$ac_try_echo") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest.$ac_objext; then
16266 ac_header_compiler=yes
16267 else
16268 $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 ac_header_compiler=no
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16276 $as_echo "$ac_header_compiler" >&6; }
16278 # Is the header present?
16279 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16280 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 #include <malloc/malloc.h>
16288 _ACEOF
16289 if { (ac_try="$ac_cpp conftest.$ac_ext"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16293 esac
16294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16295 $as_echo "$ac_try_echo") >&5
16296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null && {
16303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16304 test ! -s conftest.err
16305 }; then
16306 ac_header_preproc=yes
16307 else
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 ac_header_preproc=no
16314 rm -f conftest.err conftest.$ac_ext
16315 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16316 $as_echo "$ac_header_preproc" >&6; }
16318 # So? What about this header?
16319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16320 yes:no: )
16321 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16322 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16323 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16324 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16325 ac_header_preproc=yes
16327 no:yes:* )
16328 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16329 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16331 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16335 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16336 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16337 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16339 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16342 esac
16343 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16344 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16345 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16346 $as_echo_n "(cached) " >&6
16347 else
16348 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16350 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16351 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16354 if test $ac_cv_header_malloc_malloc_h = yes; then
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_MALLOC_MALLOC_H 1
16358 _ACEOF
16364 C_SWITCH_X_SYSTEM=
16365 ### Use NeXTstep API to implement GUI.
16366 if test "${HAVE_NS}" = "yes"; then
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_NS 1
16370 _ACEOF
16372 if test "${NS_IMPL_COCOA}" = "yes"; then
16374 cat >>confdefs.h <<\_ACEOF
16375 #define NS_IMPL_COCOA 1
16376 _ACEOF
16378 GNU_OBJC_CFLAGS=
16380 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16382 cat >>confdefs.h <<\_ACEOF
16383 #define NS_IMPL_GNUSTEP 1
16384 _ACEOF
16386 # See also .m.o rule in Makefile.in */
16387 # FIXME: are all these flags really needed? Document here why. */
16388 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16389 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16391 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16393 cat >>confdefs.h <<\_ACEOF
16394 #define NS_HAVE_NSINTEGER 1
16395 _ACEOF
16398 # We also have mouse menus.
16399 HAVE_MENUS=yes
16400 OTHER_FILES=ns-app
16404 ### Use session management (-lSM -lICE) if available
16405 HAVE_X_SM=no
16406 LIBXSM=
16407 if test "${HAVE_X11}" = "yes"; then
16408 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16409 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16410 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16411 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16412 $as_echo_n "(cached) " >&6
16414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16415 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16416 else
16417 # Is the header compilable?
16418 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16419 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16420 cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h. */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426 $ac_includes_default
16427 #include <X11/SM/SMlib.h>
16428 _ACEOF
16429 rm -f conftest.$ac_objext
16430 if { (ac_try="$ac_compile"
16431 case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16434 esac
16435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16436 $as_echo "$ac_try_echo") >&5
16437 (eval "$ac_compile") 2>conftest.er1
16438 ac_status=$?
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
16442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } && {
16444 test -z "$ac_c_werror_flag" ||
16445 test ! -s conftest.err
16446 } && test -s conftest.$ac_objext; then
16447 ac_header_compiler=yes
16448 else
16449 $as_echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16452 ac_header_compiler=no
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16457 $as_echo "$ac_header_compiler" >&6; }
16459 # Is the header present?
16460 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16461 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include <X11/SM/SMlib.h>
16469 _ACEOF
16470 if { (ac_try="$ac_cpp conftest.$ac_ext"
16471 case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474 esac
16475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16476 $as_echo "$ac_try_echo") >&5
16477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } >/dev/null && {
16484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16485 test ! -s conftest.err
16486 }; then
16487 ac_header_preproc=yes
16488 else
16489 $as_echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_header_preproc=no
16495 rm -f conftest.err conftest.$ac_ext
16496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16497 $as_echo "$ac_header_preproc" >&6; }
16499 # So? What about this header?
16500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16501 yes:no: )
16502 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16503 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16504 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16505 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16506 ac_header_preproc=yes
16508 no:yes:* )
16509 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16510 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16511 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16512 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16515 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16516 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16523 esac
16524 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16525 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16526 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16527 $as_echo_n "(cached) " >&6
16528 else
16529 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16532 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16535 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16536 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16537 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16538 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16539 $as_echo_n "(cached) " >&6
16540 else
16541 ac_check_lib_save_LIBS=$LIBS
16542 LIBS="-lSM -lICE $LIBS"
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16553 #ifdef __cplusplus
16554 extern "C"
16555 #endif
16556 char SmcOpenConnection ();
16558 main ()
16560 return SmcOpenConnection ();
16562 return 0;
16564 _ACEOF
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (ac_try="$ac_link"
16567 case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570 esac
16571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16572 $as_echo "$ac_try_echo") >&5
16573 (eval "$ac_link") 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } && {
16580 test -z "$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16582 } && test -s conftest$ac_exeext && {
16583 test "$cross_compiling" = yes ||
16584 $as_test_x conftest$ac_exeext
16585 }; then
16586 ac_cv_lib_SM_SmcOpenConnection=yes
16587 else
16588 $as_echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_lib_SM_SmcOpenConnection=no
16594 rm -rf conftest.dSYM
16595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16596 conftest$ac_exeext conftest.$ac_ext
16597 LIBS=$ac_check_lib_save_LIBS
16599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16600 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16601 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16602 HAVE_X_SM=yes
16609 if test "${HAVE_X_SM}" = "yes"; then
16611 cat >>confdefs.h <<\_ACEOF
16612 #define HAVE_X_SM 1
16613 _ACEOF
16615 LIBXSM="-lSM -lICE"
16616 case "$LIBS" in
16617 *-lSM*) ;;
16618 *) LIBS="$LIBXSM $LIBS" ;;
16619 esac
16624 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16625 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16626 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16627 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16628 $as_echo_n "(cached) " >&6
16629 else
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h. */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 #include <netdb.h>
16638 main ()
16640 return h_errno;
16642 return 0;
16644 _ACEOF
16645 rm -f conftest.$ac_objext conftest$ac_exeext
16646 if { (ac_try="$ac_link"
16647 case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650 esac
16651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16652 $as_echo "$ac_try_echo") >&5
16653 (eval "$ac_link") 2>conftest.er1
16654 ac_status=$?
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
16658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && {
16660 test -z "$ac_c_werror_flag" ||
16661 test ! -s conftest.err
16662 } && test -s conftest$ac_exeext && {
16663 test "$cross_compiling" = yes ||
16664 $as_test_x conftest$ac_exeext
16665 }; then
16666 emacs_cv_netdb_declares_h_errno=yes
16667 else
16668 $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 emacs_cv_netdb_declares_h_errno=no
16674 rm -rf conftest.dSYM
16675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16676 conftest$ac_exeext conftest.$ac_ext
16678 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16679 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16680 if test $emacs_cv_netdb_declares_h_errno = yes; then
16682 cat >>confdefs.h <<\_ACEOF
16683 #define HAVE_H_ERRNO 1
16684 _ACEOF
16688 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16689 # for constant arguments. Useless!
16690 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16691 $as_echo_n "checking for working alloca.h... " >&6; }
16692 if test "${ac_cv_working_alloca_h+set}" = set; then
16693 $as_echo_n "(cached) " >&6
16694 else
16695 cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h. */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 #include <alloca.h>
16703 main ()
16705 char *p = (char *) alloca (2 * sizeof (int));
16706 if (p) return 0;
16708 return 0;
16710 _ACEOF
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (ac_try="$ac_link"
16713 case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16716 esac
16717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16718 $as_echo "$ac_try_echo") >&5
16719 (eval "$ac_link") 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } && {
16726 test -z "$ac_c_werror_flag" ||
16727 test ! -s conftest.err
16728 } && test -s conftest$ac_exeext && {
16729 test "$cross_compiling" = yes ||
16730 $as_test_x conftest$ac_exeext
16731 }; then
16732 ac_cv_working_alloca_h=yes
16733 else
16734 $as_echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_cv_working_alloca_h=no
16740 rm -rf conftest.dSYM
16741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16742 conftest$ac_exeext conftest.$ac_ext
16744 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16745 $as_echo "$ac_cv_working_alloca_h" >&6; }
16746 if test $ac_cv_working_alloca_h = yes; then
16748 cat >>confdefs.h <<\_ACEOF
16749 #define HAVE_ALLOCA_H 1
16750 _ACEOF
16754 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16755 $as_echo_n "checking for alloca... " >&6; }
16756 if test "${ac_cv_func_alloca_works+set}" = set; then
16757 $as_echo_n "(cached) " >&6
16758 else
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #ifdef __GNUC__
16766 # define alloca __builtin_alloca
16767 #else
16768 # ifdef _MSC_VER
16769 # include <malloc.h>
16770 # define alloca _alloca
16771 # else
16772 # ifdef HAVE_ALLOCA_H
16773 # include <alloca.h>
16774 # else
16775 # ifdef _AIX
16776 #pragma alloca
16777 # else
16778 # ifndef alloca /* predefined by HP cc +Olibcalls */
16779 char *alloca ();
16780 # endif
16781 # endif
16782 # endif
16783 # endif
16784 #endif
16787 main ()
16789 char *p = (char *) alloca (1);
16790 if (p) return 0;
16792 return 0;
16794 _ACEOF
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16802 $as_echo "$ac_try_echo") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext && {
16813 test "$cross_compiling" = yes ||
16814 $as_test_x conftest$ac_exeext
16815 }; then
16816 ac_cv_func_alloca_works=yes
16817 else
16818 $as_echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_cv_func_alloca_works=no
16824 rm -rf conftest.dSYM
16825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16826 conftest$ac_exeext conftest.$ac_ext
16828 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16829 $as_echo "$ac_cv_func_alloca_works" >&6; }
16831 if test $ac_cv_func_alloca_works = yes; then
16833 cat >>confdefs.h <<\_ACEOF
16834 #define HAVE_ALLOCA 1
16835 _ACEOF
16837 else
16838 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16839 # that cause trouble. Some versions do not even contain alloca or
16840 # contain a buggy version. If you still want to use their alloca,
16841 # use ar to extract alloca.o from them instead of compiling alloca.c.
16843 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16845 cat >>confdefs.h <<\_ACEOF
16846 #define C_ALLOCA 1
16847 _ACEOF
16850 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16851 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16852 if test "${ac_cv_os_cray+set}" = set; then
16853 $as_echo_n "(cached) " >&6
16854 else
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16861 #if defined CRAY && ! defined CRAY2
16862 webecray
16863 #else
16864 wenotbecray
16865 #endif
16867 _ACEOF
16868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16869 $EGREP "webecray" >/dev/null 2>&1; then
16870 ac_cv_os_cray=yes
16871 else
16872 ac_cv_os_cray=no
16874 rm -f conftest*
16877 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16878 $as_echo "$ac_cv_os_cray" >&6; }
16879 if test $ac_cv_os_cray = yes; then
16880 for ac_func in _getb67 GETB67 getb67; do
16881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16882 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16883 $as_echo_n "checking for $ac_func... " >&6; }
16884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16885 $as_echo_n "(cached) " >&6
16886 else
16887 cat >conftest.$ac_ext <<_ACEOF
16888 /* confdefs.h. */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16895 #define $ac_func innocuous_$ac_func
16897 /* System header to define __stub macros and hopefully few prototypes,
16898 which can conflict with char $ac_func (); below.
16899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 <limits.h> exists even on freestanding compilers. */
16902 #ifdef __STDC__
16903 # include <limits.h>
16904 #else
16905 # include <assert.h>
16906 #endif
16908 #undef $ac_func
16910 /* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16913 #ifdef __cplusplus
16914 extern "C"
16915 #endif
16916 char $ac_func ();
16917 /* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920 #if defined __stub_$ac_func || defined __stub___$ac_func
16921 choke me
16922 #endif
16925 main ()
16927 return $ac_func ();
16929 return 0;
16931 _ACEOF
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (ac_try="$ac_link"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16937 esac
16938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940 (eval "$ac_link") 2>conftest.er1
16941 ac_status=$?
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
16945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } && {
16947 test -z "$ac_c_werror_flag" ||
16948 test ! -s conftest.err
16949 } && test -s conftest$ac_exeext && {
16950 test "$cross_compiling" = yes ||
16951 $as_test_x conftest$ac_exeext
16952 }; then
16953 eval "$as_ac_var=yes"
16954 else
16955 $as_echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 eval "$as_ac_var=no"
16961 rm -rf conftest.dSYM
16962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16963 conftest$ac_exeext conftest.$ac_ext
16965 ac_res=`eval 'as_val=${'$as_ac_var'}
16966 $as_echo "$as_val"'`
16967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16968 $as_echo "$ac_res" >&6; }
16969 if test `eval 'as_val=${'$as_ac_var'}
16970 $as_echo "$as_val"'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define CRAY_STACKSEG_END $ac_func
16974 _ACEOF
16976 break
16979 done
16982 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16983 $as_echo_n "checking stack direction for C alloca... " >&6; }
16984 if test "${ac_cv_c_stack_direction+set}" = set; then
16985 $as_echo_n "(cached) " >&6
16986 else
16987 if test "$cross_compiling" = yes; then
16988 ac_cv_c_stack_direction=0
16989 else
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 $ac_includes_default
16998 find_stack_direction ()
17000 static char *addr = 0;
17001 auto char dummy;
17002 if (addr == 0)
17004 addr = &dummy;
17005 return find_stack_direction ();
17007 else
17008 return (&dummy > addr) ? 1 : -1;
17012 main ()
17014 return find_stack_direction () < 0;
17016 _ACEOF
17017 rm -f conftest$ac_exeext
17018 if { (ac_try="$ac_link"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022 esac
17023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17024 $as_echo "$ac_try_echo") >&5
17025 (eval "$ac_link") 2>&5
17026 ac_status=$?
17027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032 esac
17033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17034 $as_echo "$ac_try_echo") >&5
17035 (eval "$ac_try") 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_c_stack_direction=1
17040 else
17041 $as_echo "$as_me: program exited with status $ac_status" >&5
17042 $as_echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ( exit $ac_status )
17046 ac_cv_c_stack_direction=-1
17048 rm -rf conftest.dSYM
17049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17054 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17055 $as_echo "$ac_cv_c_stack_direction" >&6; }
17057 cat >>confdefs.h <<_ACEOF
17058 #define STACK_DIRECTION $ac_cv_c_stack_direction
17059 _ACEOF
17065 if test x"$ac_cv_func_alloca_works" != xyes; then
17066 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17067 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17068 { (exit 1); exit 1; }; }
17071 # fmod, logb, and frexp are found in -lm on most systems.
17072 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17074 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17075 $as_echo_n "checking for sqrt in -lm... " >&6; }
17076 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17077 $as_echo_n "(cached) " >&6
17078 else
17079 ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-lm $LIBS"
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17091 #ifdef __cplusplus
17092 extern "C"
17093 #endif
17094 char sqrt ();
17096 main ()
17098 return sqrt ();
17100 return 0;
17102 _ACEOF
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17110 $as_echo "$ac_try_echo") >&5
17111 (eval "$ac_link") 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } && {
17118 test -z "$ac_c_werror_flag" ||
17119 test ! -s conftest.err
17120 } && test -s conftest$ac_exeext && {
17121 test "$cross_compiling" = yes ||
17122 $as_test_x conftest$ac_exeext
17123 }; then
17124 ac_cv_lib_m_sqrt=yes
17125 else
17126 $as_echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_lib_m_sqrt=no
17132 rm -rf conftest.dSYM
17133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17137 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17138 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17139 if test $ac_cv_lib_m_sqrt = yes; then
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_LIBM 1
17142 _ACEOF
17144 LIBS="-lm $LIBS"
17149 # Check for mail-locking functions in a "mail" library. Probably this should
17150 # have the same check as for liblockfile below.
17151 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17152 $as_echo_n "checking for maillock in -lmail... " >&6; }
17153 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17154 $as_echo_n "(cached) " >&6
17155 else
17156 ac_check_lib_save_LIBS=$LIBS
17157 LIBS="-lmail $LIBS"
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17165 /* Override any GCC internal prototype to avoid an error.
17166 Use char because int might match the return type of a GCC
17167 builtin and then its argument prototype would still apply. */
17168 #ifdef __cplusplus
17169 extern "C"
17170 #endif
17171 char maillock ();
17173 main ()
17175 return maillock ();
17177 return 0;
17179 _ACEOF
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185 esac
17186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17187 $as_echo "$ac_try_echo") >&5
17188 (eval "$ac_link") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && {
17195 test -z "$ac_c_werror_flag" ||
17196 test ! -s conftest.err
17197 } && test -s conftest$ac_exeext && {
17198 test "$cross_compiling" = yes ||
17199 $as_test_x conftest$ac_exeext
17200 }; then
17201 ac_cv_lib_mail_maillock=yes
17202 else
17203 $as_echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 ac_cv_lib_mail_maillock=no
17209 rm -rf conftest.dSYM
17210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17211 conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17214 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17215 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17216 if test $ac_cv_lib_mail_maillock = yes; then
17217 have_mail=yes
17218 else
17219 have_mail=no
17222 if test $have_mail = yes; then
17223 LIBS_MAIL=-lmail
17224 LIBS="$LIBS_MAIL $LIBS"
17226 cat >>confdefs.h <<\_ACEOF
17227 #define HAVE_LIBMAIL 1
17228 _ACEOF
17230 else
17231 LIBS_MAIL=
17233 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17234 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17235 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17236 $as_echo_n "(cached) " >&6
17237 else
17238 ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-llockfile $LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 char maillock ();
17255 main ()
17257 return maillock ();
17259 return 0;
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17267 esac
17268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17269 $as_echo "$ac_try_echo") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext && {
17280 test "$cross_compiling" = yes ||
17281 $as_test_x conftest$ac_exeext
17282 }; then
17283 ac_cv_lib_lockfile_maillock=yes
17284 else
17285 $as_echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 ac_cv_lib_lockfile_maillock=no
17291 rm -rf conftest.dSYM
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17297 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17298 if test $ac_cv_lib_lockfile_maillock = yes; then
17299 have_lockfile=yes
17300 else
17301 have_lockfile=no
17304 if test $have_lockfile = yes; then
17305 LIBS_MAIL=-llockfile
17306 LIBS="$LIBS_MAIL $LIBS"
17308 cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_LIBLOCKFILE 1
17310 _ACEOF
17312 else
17313 # If we have the shared liblockfile, assume we must use it for mail
17314 # locking (e.g. Debian). If we couldn't link against liblockfile
17315 # (no liblockfile.a installed), ensure that we don't need to.
17316 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17317 set dummy liblockfile.so; ac_word=$2
17318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17319 $as_echo_n "checking for $ac_word... " >&6; }
17320 if test "${ac_cv_prog_liblockfile+set}" = set; then
17321 $as_echo_n "(cached) " >&6
17322 else
17323 if test -n "$liblockfile"; then
17324 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17325 else
17326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17327 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17328 for as_dir in $as_dummy
17330 IFS=$as_save_IFS
17331 test -z "$as_dir" && as_dir=.
17332 for ac_exec_ext in '' $ac_executable_extensions; do
17333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17334 ac_cv_prog_liblockfile="yes"
17335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17336 break 2
17338 done
17339 done
17340 IFS=$as_save_IFS
17342 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17345 liblockfile=$ac_cv_prog_liblockfile
17346 if test -n "$liblockfile"; then
17347 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17348 $as_echo "$liblockfile" >&6; }
17349 else
17350 { $as_echo "$as_me:$LINENO: result: no" >&5
17351 $as_echo "no" >&6; }
17355 if test $ac_cv_prog_liblockfile = yes; then
17356 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17357 This probably means that movemail could lose mail.
17358 There may be a \`development' package to install containing liblockfile." >&5
17359 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17360 This probably means that movemail could lose mail.
17361 There may be a \`development' package to install containing liblockfile." >&2;}
17362 { (exit 1); exit 1; }; }
17366 for ac_func in touchlock
17368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17369 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17370 $as_echo_n "checking for $ac_func... " >&6; }
17371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17372 $as_echo_n "(cached) " >&6
17373 else
17374 cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h. */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17382 #define $ac_func innocuous_$ac_func
17384 /* System header to define __stub macros and hopefully few prototypes,
17385 which can conflict with char $ac_func (); below.
17386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17387 <limits.h> exists even on freestanding compilers. */
17389 #ifdef __STDC__
17390 # include <limits.h>
17391 #else
17392 # include <assert.h>
17393 #endif
17395 #undef $ac_func
17397 /* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply. */
17400 #ifdef __cplusplus
17401 extern "C"
17402 #endif
17403 char $ac_func ();
17404 /* The GNU C library defines this for functions which it implements
17405 to always fail with ENOSYS. Some functions are actually named
17406 something starting with __ and the normal name is an alias. */
17407 #if defined __stub_$ac_func || defined __stub___$ac_func
17408 choke me
17409 #endif
17412 main ()
17414 return $ac_func ();
17416 return 0;
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424 esac
17425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17426 $as_echo "$ac_try_echo") >&5
17427 (eval "$ac_link") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest$ac_exeext && {
17437 test "$cross_compiling" = yes ||
17438 $as_test_x conftest$ac_exeext
17439 }; then
17440 eval "$as_ac_var=yes"
17441 else
17442 $as_echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 eval "$as_ac_var=no"
17448 rm -rf conftest.dSYM
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450 conftest$ac_exeext conftest.$ac_ext
17452 ac_res=`eval 'as_val=${'$as_ac_var'}
17453 $as_echo "$as_val"'`
17454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17455 $as_echo "$ac_res" >&6; }
17456 if test `eval 'as_val=${'$as_ac_var'}
17457 $as_echo "$as_val"'` = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17460 _ACEOF
17463 done
17466 for ac_header in maillock.h
17468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17470 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17471 $as_echo_n "checking for $ac_header... " >&6; }
17472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17473 $as_echo_n "(cached) " >&6
17475 ac_res=`eval 'as_val=${'$as_ac_Header'}
17476 $as_echo "$as_val"'`
17477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17478 $as_echo "$ac_res" >&6; }
17479 else
17480 # Is the header compilable?
17481 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17482 $as_echo_n "checking $ac_header usability... " >&6; }
17483 cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h. */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17489 $ac_includes_default
17490 #include <$ac_header>
17491 _ACEOF
17492 rm -f conftest.$ac_objext
17493 if { (ac_try="$ac_compile"
17494 case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17497 esac
17498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17499 $as_echo "$ac_try_echo") >&5
17500 (eval "$ac_compile") 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest.$ac_objext; then
17510 ac_header_compiler=yes
17511 else
17512 $as_echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_header_compiler=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17520 $as_echo "$ac_header_compiler" >&6; }
17522 # Is the header present?
17523 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17524 $as_echo_n "checking $ac_header presence... " >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 #include <$ac_header>
17532 _ACEOF
17533 if { (ac_try="$ac_cpp conftest.$ac_ext"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17539 $as_echo "$ac_try_echo") >&5
17540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } >/dev/null && {
17547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 }; then
17550 ac_header_preproc=yes
17551 else
17552 $as_echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_header_preproc=no
17558 rm -f conftest.err conftest.$ac_ext
17559 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17560 $as_echo "$ac_header_preproc" >&6; }
17562 # So? What about this header?
17563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17564 yes:no: )
17565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17566 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17568 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17569 ac_header_preproc=yes
17571 no:yes:* )
17572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17573 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17575 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17577 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17579 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17583 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17586 esac
17587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17588 $as_echo_n "checking for $ac_header... " >&6; }
17589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17590 $as_echo_n "(cached) " >&6
17591 else
17592 eval "$as_ac_Header=\$ac_header_preproc"
17594 ac_res=`eval 'as_val=${'$as_ac_Header'}
17595 $as_echo "$as_val"'`
17596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17597 $as_echo "$ac_res" >&6; }
17600 if test `eval 'as_val=${'$as_ac_Header'}
17601 $as_echo "$as_val"'` = yes; then
17602 cat >>confdefs.h <<_ACEOF
17603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17604 _ACEOF
17608 done
17612 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17613 ## interlock access to the mail spool. The alternative is a lock file named
17614 ## /usr/spool/mail/$USER.lock.
17615 mail_lock=no
17616 case "$opsys" in
17617 aix4-2) mail_lock="lockf" ;;
17619 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17621 ## On GNU/Linux systems, both methods are used by various mail programs.
17622 ## I assume most people are using newer mailers that have heard of flock.
17623 ## Change this if you need to.
17624 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17625 ## configure gets the right answers, and that means *NOT* using flock.
17626 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17627 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17628 ## Debian maintainer hasn't provided a clean fix for Emacs.
17629 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17630 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17631 ## correct logic. -- fx
17632 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17633 ## liblockfile is a Free Software replacement for libmail, used on
17634 ## Debian systems and elsewhere. -rfr.
17635 gnu-*)
17636 mail_lock="flock"
17637 if test $have_mail = yes || test $have_lockfile = yes; then
17638 test $ac_cv_header_maillock_h = yes && mail_lock=no
17641 esac
17643 BLESSMAIL_TARGET=
17644 case "$mail_lock" in
17645 flock)
17646 cat >>confdefs.h <<\_ACEOF
17647 #define MAIL_USE_FLOCK 1
17648 _ACEOF
17651 lockf)
17652 cat >>confdefs.h <<\_ACEOF
17653 #define MAIL_USE_LOCKF 1
17654 _ACEOF
17657 *) BLESSMAIL_TARGET="need-blessmail" ;;
17658 esac
17735 for ac_func in gethostname getdomainname dup2 \
17736 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17737 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17738 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17739 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17740 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17741 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17742 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17743 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17744 cfmakeraw cfsetspeed isnan copysign
17746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17747 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17748 $as_echo_n "checking for $ac_func... " >&6; }
17749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17750 $as_echo_n "(cached) " >&6
17751 else
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h. */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17760 #define $ac_func innocuous_$ac_func
17762 /* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char $ac_func (); below.
17764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765 <limits.h> exists even on freestanding compilers. */
17767 #ifdef __STDC__
17768 # include <limits.h>
17769 #else
17770 # include <assert.h>
17771 #endif
17773 #undef $ac_func
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 char $ac_func ();
17782 /* The GNU C library defines this for functions which it implements
17783 to always fail with ENOSYS. Some functions are actually named
17784 something starting with __ and the normal name is an alias. */
17785 #if defined __stub_$ac_func || defined __stub___$ac_func
17786 choke me
17787 #endif
17790 main ()
17792 return $ac_func ();
17794 return 0;
17796 _ACEOF
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (ac_try="$ac_link"
17799 case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802 esac
17803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17804 $as_echo "$ac_try_echo") >&5
17805 (eval "$ac_link") 2>conftest.er1
17806 ac_status=$?
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
17810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } && {
17812 test -z "$ac_c_werror_flag" ||
17813 test ! -s conftest.err
17814 } && test -s conftest$ac_exeext && {
17815 test "$cross_compiling" = yes ||
17816 $as_test_x conftest$ac_exeext
17817 }; then
17818 eval "$as_ac_var=yes"
17819 else
17820 $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17823 eval "$as_ac_var=no"
17826 rm -rf conftest.dSYM
17827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828 conftest$ac_exeext conftest.$ac_ext
17830 ac_res=`eval 'as_val=${'$as_ac_var'}
17831 $as_echo "$as_val"'`
17832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17833 $as_echo "$ac_res" >&6; }
17834 if test `eval 'as_val=${'$as_ac_var'}
17835 $as_echo "$as_val"'` = yes; then
17836 cat >>confdefs.h <<_ACEOF
17837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17838 _ACEOF
17841 done
17845 for ac_header in sys/un.h
17847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17849 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17850 $as_echo_n "checking for $ac_header... " >&6; }
17851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17852 $as_echo_n "(cached) " >&6
17854 ac_res=`eval 'as_val=${'$as_ac_Header'}
17855 $as_echo "$as_val"'`
17856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17857 $as_echo "$ac_res" >&6; }
17858 else
17859 # Is the header compilable?
17860 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17861 $as_echo_n "checking $ac_header usability... " >&6; }
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h. */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17868 $ac_includes_default
17869 #include <$ac_header>
17870 _ACEOF
17871 rm -f conftest.$ac_objext
17872 if { (ac_try="$ac_compile"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876 esac
17877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17878 $as_echo "$ac_try_echo") >&5
17879 (eval "$ac_compile") 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest.$ac_objext; then
17889 ac_header_compiler=yes
17890 else
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_header_compiler=no
17897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17899 $as_echo "$ac_header_compiler" >&6; }
17901 # Is the header present?
17902 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17903 $as_echo_n "checking $ac_header presence... " >&6; }
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 #include <$ac_header>
17911 _ACEOF
17912 if { (ac_try="$ac_cpp conftest.$ac_ext"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916 esac
17917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17918 $as_echo "$ac_try_echo") >&5
17919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } >/dev/null && {
17926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17927 test ! -s conftest.err
17928 }; then
17929 ac_header_preproc=yes
17930 else
17931 $as_echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_header_preproc=no
17937 rm -f conftest.err conftest.$ac_ext
17938 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17939 $as_echo "$ac_header_preproc" >&6; }
17941 # So? What about this header?
17942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17943 yes:no: )
17944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17945 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17948 ac_header_preproc=yes
17950 no:yes:* )
17951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17952 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17954 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17956 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17958 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17960 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17962 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17965 esac
17966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17967 $as_echo_n "checking for $ac_header... " >&6; }
17968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17969 $as_echo_n "(cached) " >&6
17970 else
17971 eval "$as_ac_Header=\$ac_header_preproc"
17973 ac_res=`eval 'as_val=${'$as_ac_Header'}
17974 $as_echo "$as_val"'`
17975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17976 $as_echo "$ac_res" >&6; }
17979 if test `eval 'as_val=${'$as_ac_Header'}
17980 $as_echo "$as_val"'` = yes; then
17981 cat >>confdefs.h <<_ACEOF
17982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17983 _ACEOF
17987 done
17994 for ac_header in $ac_header_list
17996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17999 $as_echo_n "checking for $ac_header... " >&6; }
18000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18001 $as_echo_n "(cached) " >&6
18003 ac_res=`eval 'as_val=${'$as_ac_Header'}
18004 $as_echo "$as_val"'`
18005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18006 $as_echo "$ac_res" >&6; }
18007 else
18008 # Is the header compilable?
18009 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18010 $as_echo_n "checking $ac_header usability... " >&6; }
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 $ac_includes_default
18018 #include <$ac_header>
18019 _ACEOF
18020 rm -f conftest.$ac_objext
18021 if { (ac_try="$ac_compile"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025 esac
18026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18027 $as_echo "$ac_try_echo") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest.$ac_objext; then
18038 ac_header_compiler=yes
18039 else
18040 $as_echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18043 ac_header_compiler=no
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18048 $as_echo "$ac_header_compiler" >&6; }
18050 # Is the header present?
18051 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18052 $as_echo_n "checking $ac_header presence... " >&6; }
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 #include <$ac_header>
18060 _ACEOF
18061 if { (ac_try="$ac_cpp conftest.$ac_ext"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065 esac
18066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18067 $as_echo "$ac_try_echo") >&5
18068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18069 ac_status=$?
18070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
18073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } >/dev/null && {
18075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18076 test ! -s conftest.err
18077 }; then
18078 ac_header_preproc=yes
18079 else
18080 $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_header_preproc=no
18086 rm -f conftest.err conftest.$ac_ext
18087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18088 $as_echo "$ac_header_preproc" >&6; }
18090 # So? What about this header?
18091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18092 yes:no: )
18093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18094 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18097 ac_header_preproc=yes
18099 no:yes:* )
18100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18101 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18103 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18105 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18107 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18111 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18114 esac
18115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18116 $as_echo_n "checking for $ac_header... " >&6; }
18117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18118 $as_echo_n "(cached) " >&6
18119 else
18120 eval "$as_ac_Header=\$ac_header_preproc"
18122 ac_res=`eval 'as_val=${'$as_ac_Header'}
18123 $as_echo "$as_val"'`
18124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18125 $as_echo "$ac_res" >&6; }
18128 if test `eval 'as_val=${'$as_ac_Header'}
18129 $as_echo "$as_val"'` = yes; then
18130 cat >>confdefs.h <<_ACEOF
18131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18132 _ACEOF
18136 done
18146 for ac_func in $ac_func_list
18148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18149 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18150 $as_echo_n "checking for $ac_func... " >&6; }
18151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18152 $as_echo_n "(cached) " >&6
18153 else
18154 cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h. */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18162 #define $ac_func innocuous_$ac_func
18164 /* System header to define __stub macros and hopefully few prototypes,
18165 which can conflict with char $ac_func (); below.
18166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167 <limits.h> exists even on freestanding compilers. */
18169 #ifdef __STDC__
18170 # include <limits.h>
18171 #else
18172 # include <assert.h>
18173 #endif
18175 #undef $ac_func
18177 /* Override any GCC internal prototype to avoid an error.
18178 Use char because int might match the return type of a GCC
18179 builtin and then its argument prototype would still apply. */
18180 #ifdef __cplusplus
18181 extern "C"
18182 #endif
18183 char $ac_func ();
18184 /* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187 #if defined __stub_$ac_func || defined __stub___$ac_func
18188 choke me
18189 #endif
18192 main ()
18194 return $ac_func ();
18196 return 0;
18198 _ACEOF
18199 rm -f conftest.$ac_objext conftest$ac_exeext
18200 if { (ac_try="$ac_link"
18201 case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204 esac
18205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18206 $as_echo "$ac_try_echo") >&5
18207 (eval "$ac_link") 2>conftest.er1
18208 ac_status=$?
18209 grep -v '^ *+' conftest.er1 >conftest.err
18210 rm -f conftest.er1
18211 cat conftest.err >&5
18212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && {
18214 test -z "$ac_c_werror_flag" ||
18215 test ! -s conftest.err
18216 } && test -s conftest$ac_exeext && {
18217 test "$cross_compiling" = yes ||
18218 $as_test_x conftest$ac_exeext
18219 }; then
18220 eval "$as_ac_var=yes"
18221 else
18222 $as_echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 eval "$as_ac_var=no"
18228 rm -rf conftest.dSYM
18229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18230 conftest$ac_exeext conftest.$ac_ext
18232 ac_res=`eval 'as_val=${'$as_ac_var'}
18233 $as_echo "$as_val"'`
18234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18235 $as_echo "$ac_res" >&6; }
18236 if test `eval 'as_val=${'$as_ac_var'}
18237 $as_echo "$as_val"'` = yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18240 _ACEOF
18243 done
18261 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18262 $as_echo_n "checking for working mktime... " >&6; }
18263 if test "${ac_cv_func_working_mktime+set}" = set; then
18264 $as_echo_n "(cached) " >&6
18265 else
18266 if test "$cross_compiling" = yes; then
18267 ac_cv_func_working_mktime=no
18268 else
18269 cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h. */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 /* Test program from Paul Eggert and Tony Leneis. */
18276 #ifdef TIME_WITH_SYS_TIME
18277 # include <sys/time.h>
18278 # include <time.h>
18279 #else
18280 # ifdef HAVE_SYS_TIME_H
18281 # include <sys/time.h>
18282 # else
18283 # include <time.h>
18284 # endif
18285 #endif
18287 #include <limits.h>
18288 #include <stdlib.h>
18290 #ifdef HAVE_UNISTD_H
18291 # include <unistd.h>
18292 #endif
18294 #ifndef HAVE_ALARM
18295 # define alarm(X) /* empty */
18296 #endif
18298 /* Work around redefinition to rpl_putenv by other config tests. */
18299 #undef putenv
18301 static time_t time_t_max;
18302 static time_t time_t_min;
18304 /* Values we'll use to set the TZ environment variable. */
18305 static char *tz_strings[] = {
18306 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18307 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18309 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18311 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18312 Based on a problem report from Andreas Jaeger. */
18313 static int
18314 spring_forward_gap ()
18316 /* glibc (up to about 1998-10-07) failed this test. */
18317 struct tm tm;
18319 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18320 instead of "TZ=America/Vancouver" in order to detect the bug even
18321 on systems that don't support the Olson extension, or don't have the
18322 full zoneinfo tables installed. */
18323 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18325 tm.tm_year = 98;
18326 tm.tm_mon = 3;
18327 tm.tm_mday = 5;
18328 tm.tm_hour = 2;
18329 tm.tm_min = 0;
18330 tm.tm_sec = 0;
18331 tm.tm_isdst = -1;
18332 return mktime (&tm) != (time_t) -1;
18335 static int
18336 mktime_test1 (now)
18337 time_t now;
18339 struct tm *lt;
18340 return ! (lt = localtime (&now)) || mktime (lt) == now;
18343 static int
18344 mktime_test (now)
18345 time_t now;
18347 return (mktime_test1 (now)
18348 && mktime_test1 ((time_t) (time_t_max - now))
18349 && mktime_test1 ((time_t) (time_t_min + now)));
18352 static int
18353 irix_6_4_bug ()
18355 /* Based on code from Ariel Faigon. */
18356 struct tm tm;
18357 tm.tm_year = 96;
18358 tm.tm_mon = 3;
18359 tm.tm_mday = 0;
18360 tm.tm_hour = 0;
18361 tm.tm_min = 0;
18362 tm.tm_sec = 0;
18363 tm.tm_isdst = -1;
18364 mktime (&tm);
18365 return tm.tm_mon == 2 && tm.tm_mday == 31;
18368 static int
18369 bigtime_test (j)
18370 int j;
18372 struct tm tm;
18373 time_t now;
18374 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18375 now = mktime (&tm);
18376 if (now != (time_t) -1)
18378 struct tm *lt = localtime (&now);
18379 if (! (lt
18380 && lt->tm_year == tm.tm_year
18381 && lt->tm_mon == tm.tm_mon
18382 && lt->tm_mday == tm.tm_mday
18383 && lt->tm_hour == tm.tm_hour
18384 && lt->tm_min == tm.tm_min
18385 && lt->tm_sec == tm.tm_sec
18386 && lt->tm_yday == tm.tm_yday
18387 && lt->tm_wday == tm.tm_wday
18388 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18389 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18390 return 0;
18392 return 1;
18395 static int
18396 year_2050_test ()
18398 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18399 ignoring leap seconds. */
18400 unsigned long int answer = 2527315200UL;
18402 struct tm tm;
18403 time_t t;
18404 tm.tm_year = 2050 - 1900;
18405 tm.tm_mon = 2 - 1;
18406 tm.tm_mday = 1;
18407 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18408 tm.tm_isdst = -1;
18410 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18411 instead of "TZ=America/Vancouver" in order to detect the bug even
18412 on systems that don't support the Olson extension, or don't have the
18413 full zoneinfo tables installed. */
18414 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18416 t = mktime (&tm);
18418 /* Check that the result is either a failure, or close enough
18419 to the correct answer that we can assume the discrepancy is
18420 due to leap seconds. */
18421 return (t == (time_t) -1
18422 || (0 < t && answer - 120 <= t && t <= answer + 120));
18426 main ()
18428 time_t t, delta;
18429 int i, j;
18431 /* This test makes some buggy mktime implementations loop.
18432 Give up after 60 seconds; a mktime slower than that
18433 isn't worth using anyway. */
18434 alarm (60);
18436 for (;;)
18438 t = (time_t_max << 1) + 1;
18439 if (t <= time_t_max)
18440 break;
18441 time_t_max = t;
18443 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18445 delta = time_t_max / 997; /* a suitable prime number */
18446 for (i = 0; i < N_STRINGS; i++)
18448 if (tz_strings[i])
18449 putenv (tz_strings[i]);
18451 for (t = 0; t <= time_t_max - delta; t += delta)
18452 if (! mktime_test (t))
18453 return 1;
18454 if (! (mktime_test ((time_t) 1)
18455 && mktime_test ((time_t) (60 * 60))
18456 && mktime_test ((time_t) (60 * 60 * 24))))
18457 return 1;
18459 for (j = 1; ; j <<= 1)
18460 if (! bigtime_test (j))
18461 return 1;
18462 else if (INT_MAX / 2 < j)
18463 break;
18464 if (! bigtime_test (INT_MAX))
18465 return 1;
18467 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18469 _ACEOF
18470 rm -f conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475 esac
18476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18477 $as_echo "$ac_try_echo") >&5
18478 (eval "$ac_link") 2>&5
18479 ac_status=$?
18480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485 esac
18486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18487 $as_echo "$ac_try_echo") >&5
18488 (eval "$ac_try") 2>&5
18489 ac_status=$?
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_cv_func_working_mktime=yes
18493 else
18494 $as_echo "$as_me: program exited with status $ac_status" >&5
18495 $as_echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 ( exit $ac_status )
18499 ac_cv_func_working_mktime=no
18501 rm -rf conftest.dSYM
18502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18507 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18508 $as_echo "$ac_cv_func_working_mktime" >&6; }
18509 if test $ac_cv_func_working_mktime = no; then
18510 case " $LIBOBJS " in
18511 *" mktime.$ac_objext "* ) ;;
18512 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18514 esac
18518 if test "$ac_cv_func_working_mktime" = no; then
18520 cat >>confdefs.h <<\_ACEOF
18521 #define BROKEN_MKTIME 1
18522 _ACEOF
18526 ac_have_func=no # yes means we've found a way to get the load average.
18528 # Make sure getloadavg.c is where it belongs, at configure-time.
18529 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18530 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18531 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18532 { (exit 1); exit 1; }; }
18534 ac_save_LIBS=$LIBS
18536 # Check for getloadavg, but be sure not to touch the cache variable.
18537 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18538 $as_echo_n "checking for getloadavg... " >&6; }
18539 if test "${ac_cv_func_getloadavg+set}" = set; then
18540 $as_echo_n "(cached) " >&6
18541 else
18542 cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h. */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18550 #define getloadavg innocuous_getloadavg
18552 /* System header to define __stub macros and hopefully few prototypes,
18553 which can conflict with char getloadavg (); below.
18554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18555 <limits.h> exists even on freestanding compilers. */
18557 #ifdef __STDC__
18558 # include <limits.h>
18559 #else
18560 # include <assert.h>
18561 #endif
18563 #undef getloadavg
18565 /* Override any GCC internal prototype to avoid an error.
18566 Use char because int might match the return type of a GCC
18567 builtin and then its argument prototype would still apply. */
18568 #ifdef __cplusplus
18569 extern "C"
18570 #endif
18571 char getloadavg ();
18572 /* The GNU C library defines this for functions which it implements
18573 to always fail with ENOSYS. Some functions are actually named
18574 something starting with __ and the normal name is an alias. */
18575 #if defined __stub_getloadavg || defined __stub___getloadavg
18576 choke me
18577 #endif
18580 main ()
18582 return getloadavg ();
18584 return 0;
18586 _ACEOF
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (ac_try="$ac_link"
18589 case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18592 esac
18593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18594 $as_echo "$ac_try_echo") >&5
18595 (eval "$ac_link") 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext && {
18605 test "$cross_compiling" = yes ||
18606 $as_test_x conftest$ac_exeext
18607 }; then
18608 ac_cv_func_getloadavg=yes
18609 else
18610 $as_echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_cv_func_getloadavg=no
18616 rm -rf conftest.dSYM
18617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18618 conftest$ac_exeext conftest.$ac_ext
18620 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18621 $as_echo "$ac_cv_func_getloadavg" >&6; }
18622 if test $ac_cv_func_getloadavg = yes; then
18623 exit 0
18624 else
18625 exit 1
18627 ) && ac_have_func=yes
18629 # On HPUX9, an unprivileged user can get load averages through this function.
18631 for ac_func in pstat_getdynamic
18633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18634 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18635 $as_echo_n "checking for $ac_func... " >&6; }
18636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18637 $as_echo_n "(cached) " >&6
18638 else
18639 cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h. */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18647 #define $ac_func innocuous_$ac_func
18649 /* System header to define __stub macros and hopefully few prototypes,
18650 which can conflict with char $ac_func (); below.
18651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18652 <limits.h> exists even on freestanding compilers. */
18654 #ifdef __STDC__
18655 # include <limits.h>
18656 #else
18657 # include <assert.h>
18658 #endif
18660 #undef $ac_func
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 char $ac_func ();
18669 /* The GNU C library defines this for functions which it implements
18670 to always fail with ENOSYS. Some functions are actually named
18671 something starting with __ and the normal name is an alias. */
18672 #if defined __stub_$ac_func || defined __stub___$ac_func
18673 choke me
18674 #endif
18677 main ()
18679 return $ac_func ();
18681 return 0;
18683 _ACEOF
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689 esac
18690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18691 $as_echo "$ac_try_echo") >&5
18692 (eval "$ac_link") 2>conftest.er1
18693 ac_status=$?
18694 grep -v '^ *+' conftest.er1 >conftest.err
18695 rm -f conftest.er1
18696 cat conftest.err >&5
18697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } && {
18699 test -z "$ac_c_werror_flag" ||
18700 test ! -s conftest.err
18701 } && test -s conftest$ac_exeext && {
18702 test "$cross_compiling" = yes ||
18703 $as_test_x conftest$ac_exeext
18704 }; then
18705 eval "$as_ac_var=yes"
18706 else
18707 $as_echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 eval "$as_ac_var=no"
18713 rm -rf conftest.dSYM
18714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18715 conftest$ac_exeext conftest.$ac_ext
18717 ac_res=`eval 'as_val=${'$as_ac_var'}
18718 $as_echo "$as_val"'`
18719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18720 $as_echo "$ac_res" >&6; }
18721 if test `eval 'as_val=${'$as_ac_var'}
18722 $as_echo "$as_val"'` = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18725 _ACEOF
18728 done
18731 # Solaris has libkstat which does not require root.
18733 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18734 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18735 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18736 $as_echo_n "(cached) " >&6
18737 else
18738 ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-lkstat $LIBS"
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h. */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char kstat_open ();
18755 main ()
18757 return kstat_open ();
18759 return 0;
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767 esac
18768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18769 $as_echo "$ac_try_echo") >&5
18770 (eval "$ac_link") 2>conftest.er1
18771 ac_status=$?
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
18775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && {
18777 test -z "$ac_c_werror_flag" ||
18778 test ! -s conftest.err
18779 } && test -s conftest$ac_exeext && {
18780 test "$cross_compiling" = yes ||
18781 $as_test_x conftest$ac_exeext
18782 }; then
18783 ac_cv_lib_kstat_kstat_open=yes
18784 else
18785 $as_echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_cv_lib_kstat_kstat_open=no
18791 rm -rf conftest.dSYM
18792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18793 conftest$ac_exeext conftest.$ac_ext
18794 LIBS=$ac_check_lib_save_LIBS
18796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18797 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18798 if test $ac_cv_lib_kstat_kstat_open = yes; then
18799 cat >>confdefs.h <<_ACEOF
18800 #define HAVE_LIBKSTAT 1
18801 _ACEOF
18803 LIBS="-lkstat $LIBS"
18807 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18809 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18810 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18811 # to get the right answer into the cache.
18812 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18813 if test $ac_have_func = no; then
18814 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18815 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18816 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18817 $as_echo_n "(cached) " >&6
18818 else
18819 ac_check_lib_save_LIBS=$LIBS
18820 LIBS="-lelf $LIBS"
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h. */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char elf_begin ();
18836 main ()
18838 return elf_begin ();
18840 return 0;
18842 _ACEOF
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18848 esac
18849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18850 $as_echo "$ac_try_echo") >&5
18851 (eval "$ac_link") 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext && {
18861 test "$cross_compiling" = yes ||
18862 $as_test_x conftest$ac_exeext
18863 }; then
18864 ac_cv_lib_elf_elf_begin=yes
18865 else
18866 $as_echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_cv_lib_elf_elf_begin=no
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18874 conftest$ac_exeext conftest.$ac_ext
18875 LIBS=$ac_check_lib_save_LIBS
18877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18878 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18879 if test $ac_cv_lib_elf_elf_begin = yes; then
18880 LIBS="-lelf $LIBS"
18884 if test $ac_have_func = no; then
18885 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18886 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18887 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18888 $as_echo_n "(cached) " >&6
18889 else
18890 ac_check_lib_save_LIBS=$LIBS
18891 LIBS="-lkvm $LIBS"
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18899 /* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18902 #ifdef __cplusplus
18903 extern "C"
18904 #endif
18905 char kvm_open ();
18907 main ()
18909 return kvm_open ();
18911 return 0;
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919 esac
18920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18921 $as_echo "$ac_try_echo") >&5
18922 (eval "$ac_link") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest$ac_exeext && {
18932 test "$cross_compiling" = yes ||
18933 $as_test_x conftest$ac_exeext
18934 }; then
18935 ac_cv_lib_kvm_kvm_open=yes
18936 else
18937 $as_echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18940 ac_cv_lib_kvm_kvm_open=no
18943 rm -rf conftest.dSYM
18944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18949 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18950 if test $ac_cv_lib_kvm_kvm_open = yes; then
18951 LIBS="-lkvm $LIBS"
18954 # Check for the 4.4BSD definition of getloadavg.
18955 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18956 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18957 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18958 $as_echo_n "(cached) " >&6
18959 else
18960 ac_check_lib_save_LIBS=$LIBS
18961 LIBS="-lutil $LIBS"
18962 cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h. */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18969 /* Override any GCC internal prototype to avoid an error.
18970 Use char because int might match the return type of a GCC
18971 builtin and then its argument prototype would still apply. */
18972 #ifdef __cplusplus
18973 extern "C"
18974 #endif
18975 char getloadavg ();
18977 main ()
18979 return getloadavg ();
18981 return 0;
18983 _ACEOF
18984 rm -f conftest.$ac_objext conftest$ac_exeext
18985 if { (ac_try="$ac_link"
18986 case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989 esac
18990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18991 $as_echo "$ac_try_echo") >&5
18992 (eval "$ac_link") 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest$ac_exeext && {
19002 test "$cross_compiling" = yes ||
19003 $as_test_x conftest$ac_exeext
19004 }; then
19005 ac_cv_lib_util_getloadavg=yes
19006 else
19007 $as_echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19010 ac_cv_lib_util_getloadavg=no
19013 rm -rf conftest.dSYM
19014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19015 conftest$ac_exeext conftest.$ac_ext
19016 LIBS=$ac_check_lib_save_LIBS
19018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19019 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19020 if test $ac_cv_lib_util_getloadavg = yes; then
19021 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19026 if test $ac_have_func = no; then
19027 # There is a commonly available library for RS/6000 AIX.
19028 # Since it is not a standard part of AIX, it might be installed locally.
19029 ac_getloadavg_LIBS=$LIBS
19030 LIBS="-L/usr/local/lib $LIBS"
19031 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19032 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19033 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19034 $as_echo_n "(cached) " >&6
19035 else
19036 ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lgetloadavg $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h. */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any GCC internal prototype to avoid an error.
19046 Use char because int might match the return type of a GCC
19047 builtin and then its argument prototype would still apply. */
19048 #ifdef __cplusplus
19049 extern "C"
19050 #endif
19051 char getloadavg ();
19053 main ()
19055 return getloadavg ();
19057 return 0;
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19065 esac
19066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19067 $as_echo "$ac_try_echo") >&5
19068 (eval "$ac_link") 2>conftest.er1
19069 ac_status=$?
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
19073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && {
19075 test -z "$ac_c_werror_flag" ||
19076 test ! -s conftest.err
19077 } && test -s conftest$ac_exeext && {
19078 test "$cross_compiling" = yes ||
19079 $as_test_x conftest$ac_exeext
19080 }; then
19081 ac_cv_lib_getloadavg_getloadavg=yes
19082 else
19083 $as_echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 ac_cv_lib_getloadavg_getloadavg=no
19089 rm -rf conftest.dSYM
19090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19095 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19096 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19097 LIBS="-lgetloadavg $LIBS"
19098 else
19099 LIBS=$ac_getloadavg_LIBS
19104 # Make sure it is really in the library, if we think we found it,
19105 # otherwise set up the replacement function.
19107 for ac_func in getloadavg
19109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19111 $as_echo_n "checking for $ac_func... " >&6; }
19112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19113 $as_echo_n "(cached) " >&6
19114 else
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19123 #define $ac_func innocuous_$ac_func
19125 /* System header to define __stub macros and hopefully few prototypes,
19126 which can conflict with char $ac_func (); below.
19127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128 <limits.h> exists even on freestanding compilers. */
19130 #ifdef __STDC__
19131 # include <limits.h>
19132 #else
19133 # include <assert.h>
19134 #endif
19136 #undef $ac_func
19138 /* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19141 #ifdef __cplusplus
19142 extern "C"
19143 #endif
19144 char $ac_func ();
19145 /* The GNU C library defines this for functions which it implements
19146 to always fail with ENOSYS. Some functions are actually named
19147 something starting with __ and the normal name is an alias. */
19148 #if defined __stub_$ac_func || defined __stub___$ac_func
19149 choke me
19150 #endif
19153 main ()
19155 return $ac_func ();
19157 return 0;
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19165 esac
19166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19167 $as_echo "$ac_try_echo") >&5
19168 (eval "$ac_link") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } && {
19175 test -z "$ac_c_werror_flag" ||
19176 test ! -s conftest.err
19177 } && test -s conftest$ac_exeext && {
19178 test "$cross_compiling" = yes ||
19179 $as_test_x conftest$ac_exeext
19180 }; then
19181 eval "$as_ac_var=yes"
19182 else
19183 $as_echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 eval "$as_ac_var=no"
19189 rm -rf conftest.dSYM
19190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19191 conftest$ac_exeext conftest.$ac_ext
19193 ac_res=`eval 'as_val=${'$as_ac_var'}
19194 $as_echo "$as_val"'`
19195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19196 $as_echo "$ac_res" >&6; }
19197 if test `eval 'as_val=${'$as_ac_var'}
19198 $as_echo "$as_val"'` = yes; then
19199 cat >>confdefs.h <<_ACEOF
19200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19201 _ACEOF
19203 else
19204 case " $LIBOBJS " in
19205 *" getloadavg.$ac_objext "* ) ;;
19206 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19208 esac
19211 cat >>confdefs.h <<\_ACEOF
19212 #define C_GETLOADAVG 1
19213 _ACEOF
19215 # Figure out what our getloadavg.c needs.
19216 ac_have_func=no
19217 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19218 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19219 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19220 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19221 $as_echo_n "(cached) " >&6
19223 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19224 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19225 else
19226 # Is the header compilable?
19227 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19228 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19229 cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h. */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19235 $ac_includes_default
19236 #include <sys/dg_sys_info.h>
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (ac_try="$ac_compile"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243 esac
19244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19245 $as_echo "$ac_try_echo") >&5
19246 (eval "$ac_compile") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest.$ac_objext; then
19256 ac_header_compiler=yes
19257 else
19258 $as_echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ac_header_compiler=no
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19266 $as_echo "$ac_header_compiler" >&6; }
19268 # Is the header present?
19269 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19270 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 #include <sys/dg_sys_info.h>
19278 _ACEOF
19279 if { (ac_try="$ac_cpp conftest.$ac_ext"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283 esac
19284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19285 $as_echo "$ac_try_echo") >&5
19286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } >/dev/null && {
19293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19294 test ! -s conftest.err
19295 }; then
19296 ac_header_preproc=yes
19297 else
19298 $as_echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 ac_header_preproc=no
19304 rm -f conftest.err conftest.$ac_ext
19305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19306 $as_echo "$ac_header_preproc" >&6; }
19308 # So? What about this header?
19309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19310 yes:no: )
19311 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19312 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19314 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19315 ac_header_preproc=yes
19317 no:yes:* )
19318 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19319 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19320 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19321 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19322 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19323 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19324 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19325 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19326 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19327 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19328 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19329 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19332 esac
19333 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19334 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19335 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19336 $as_echo_n "(cached) " >&6
19337 else
19338 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19340 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19341 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19344 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19345 ac_have_func=yes
19347 cat >>confdefs.h <<\_ACEOF
19348 #define DGUX 1
19349 _ACEOF
19352 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19353 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19354 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19355 $as_echo_n "(cached) " >&6
19356 else
19357 ac_check_lib_save_LIBS=$LIBS
19358 LIBS="-ldgc $LIBS"
19359 cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h. */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19366 /* Override any GCC internal prototype to avoid an error.
19367 Use char because int might match the return type of a GCC
19368 builtin and then its argument prototype would still apply. */
19369 #ifdef __cplusplus
19370 extern "C"
19371 #endif
19372 char dg_sys_info ();
19374 main ()
19376 return dg_sys_info ();
19378 return 0;
19380 _ACEOF
19381 rm -f conftest.$ac_objext conftest$ac_exeext
19382 if { (ac_try="$ac_link"
19383 case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19386 esac
19387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19388 $as_echo "$ac_try_echo") >&5
19389 (eval "$ac_link") 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } && {
19396 test -z "$ac_c_werror_flag" ||
19397 test ! -s conftest.err
19398 } && test -s conftest$ac_exeext && {
19399 test "$cross_compiling" = yes ||
19400 $as_test_x conftest$ac_exeext
19401 }; then
19402 ac_cv_lib_dgc_dg_sys_info=yes
19403 else
19404 $as_echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_cv_lib_dgc_dg_sys_info=no
19410 rm -rf conftest.dSYM
19411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19412 conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19415 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19416 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19417 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19418 cat >>confdefs.h <<_ACEOF
19419 #define HAVE_LIBDGC 1
19420 _ACEOF
19422 LIBS="-ldgc $LIBS"
19430 if test "${ac_cv_header_locale_h+set}" = set; then
19431 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19432 $as_echo_n "checking for locale.h... " >&6; }
19433 if test "${ac_cv_header_locale_h+set}" = set; then
19434 $as_echo_n "(cached) " >&6
19436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19437 $as_echo "$ac_cv_header_locale_h" >&6; }
19438 else
19439 # Is the header compilable?
19440 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19441 $as_echo_n "checking locale.h usability... " >&6; }
19442 cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h. */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 $ac_includes_default
19449 #include <locale.h>
19450 _ACEOF
19451 rm -f conftest.$ac_objext
19452 if { (ac_try="$ac_compile"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456 esac
19457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19458 $as_echo "$ac_try_echo") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest.$ac_objext; then
19469 ac_header_compiler=yes
19470 else
19471 $as_echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_header_compiler=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19479 $as_echo "$ac_header_compiler" >&6; }
19481 # Is the header present?
19482 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19483 $as_echo_n "checking locale.h presence... " >&6; }
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 #include <locale.h>
19491 _ACEOF
19492 if { (ac_try="$ac_cpp conftest.$ac_ext"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496 esac
19497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19498 $as_echo "$ac_try_echo") >&5
19499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } >/dev/null && {
19506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19508 }; then
19509 ac_header_preproc=yes
19510 else
19511 $as_echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 ac_header_preproc=no
19517 rm -f conftest.err conftest.$ac_ext
19518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19519 $as_echo "$ac_header_preproc" >&6; }
19521 # So? What about this header?
19522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19523 yes:no: )
19524 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19525 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19526 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19527 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19528 ac_header_preproc=yes
19530 no:yes:* )
19531 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19532 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19533 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19534 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19535 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19536 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19537 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19538 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19540 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19541 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19542 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19545 esac
19546 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19547 $as_echo_n "checking for locale.h... " >&6; }
19548 if test "${ac_cv_header_locale_h+set}" = set; then
19549 $as_echo_n "(cached) " >&6
19550 else
19551 ac_cv_header_locale_h=$ac_header_preproc
19553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19554 $as_echo "$ac_cv_header_locale_h" >&6; }
19560 for ac_func in setlocale
19562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19563 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19564 $as_echo_n "checking for $ac_func... " >&6; }
19565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19566 $as_echo_n "(cached) " >&6
19567 else
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h. */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19576 #define $ac_func innocuous_$ac_func
19578 /* System header to define __stub macros and hopefully few prototypes,
19579 which can conflict with char $ac_func (); below.
19580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19581 <limits.h> exists even on freestanding compilers. */
19583 #ifdef __STDC__
19584 # include <limits.h>
19585 #else
19586 # include <assert.h>
19587 #endif
19589 #undef $ac_func
19591 /* Override any GCC internal prototype to avoid an error.
19592 Use char because int might match the return type of a GCC
19593 builtin and then its argument prototype would still apply. */
19594 #ifdef __cplusplus
19595 extern "C"
19596 #endif
19597 char $ac_func ();
19598 /* The GNU C library defines this for functions which it implements
19599 to always fail with ENOSYS. Some functions are actually named
19600 something starting with __ and the normal name is an alias. */
19601 #if defined __stub_$ac_func || defined __stub___$ac_func
19602 choke me
19603 #endif
19606 main ()
19608 return $ac_func ();
19610 return 0;
19612 _ACEOF
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (ac_try="$ac_link"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618 esac
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_link") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest$ac_exeext && {
19631 test "$cross_compiling" = yes ||
19632 $as_test_x conftest$ac_exeext
19633 }; then
19634 eval "$as_ac_var=yes"
19635 else
19636 $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 eval "$as_ac_var=no"
19642 rm -rf conftest.dSYM
19643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19644 conftest$ac_exeext conftest.$ac_ext
19646 ac_res=`eval 'as_val=${'$as_ac_var'}
19647 $as_echo "$as_val"'`
19648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19649 $as_echo "$ac_res" >&6; }
19650 if test `eval 'as_val=${'$as_ac_var'}
19651 $as_echo "$as_val"'` = yes; then
19652 cat >>confdefs.h <<_ACEOF
19653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19654 _ACEOF
19657 done
19660 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19661 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19662 # Irix 4.0.5F has the header but not the library.
19663 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19664 ac_have_func=yes
19666 cat >>confdefs.h <<\_ACEOF
19667 #define SVR4 1
19668 _ACEOF
19672 if test $ac_have_func = no; then
19673 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19674 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19675 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19676 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19677 $as_echo_n "(cached) " >&6
19679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19680 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19681 else
19682 # Is the header compilable?
19683 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19684 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 $ac_includes_default
19692 #include <inq_stats/cpustats.h>
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699 esac
19700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19701 $as_echo "$ac_try_echo") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } && {
19709 test -z "$ac_c_werror_flag" ||
19710 test ! -s conftest.err
19711 } && test -s conftest.$ac_objext; then
19712 ac_header_compiler=yes
19713 else
19714 $as_echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_header_compiler=no
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19722 $as_echo "$ac_header_compiler" >&6; }
19724 # Is the header present?
19725 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19726 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 #include <inq_stats/cpustats.h>
19734 _ACEOF
19735 if { (ac_try="$ac_cpp conftest.$ac_ext"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739 esac
19740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19741 $as_echo "$ac_try_echo") >&5
19742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19743 ac_status=$?
19744 grep -v '^ *+' conftest.er1 >conftest.err
19745 rm -f conftest.er1
19746 cat conftest.err >&5
19747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } >/dev/null && {
19749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19750 test ! -s conftest.err
19751 }; then
19752 ac_header_preproc=yes
19753 else
19754 $as_echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 ac_header_preproc=no
19760 rm -f conftest.err conftest.$ac_ext
19761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19762 $as_echo "$ac_header_preproc" >&6; }
19764 # So? What about this header?
19765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19766 yes:no: )
19767 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19768 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19769 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19770 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19771 ac_header_preproc=yes
19773 no:yes:* )
19774 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19775 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19776 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19777 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19779 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19780 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19781 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19782 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19783 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19784 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19785 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19788 esac
19789 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19790 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19791 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19792 $as_echo_n "(cached) " >&6
19793 else
19794 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19797 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19800 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19801 ac_have_func=yes
19803 cat >>confdefs.h <<\_ACEOF
19804 #define UMAX 1
19805 _ACEOF
19808 cat >>confdefs.h <<\_ACEOF
19809 #define UMAX4_3 1
19810 _ACEOF
19817 if test $ac_have_func = no; then
19818 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19819 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19820 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19821 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19822 $as_echo_n "(cached) " >&6
19824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19825 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19826 else
19827 # Is the header compilable?
19828 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19829 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19830 cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h. */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836 $ac_includes_default
19837 #include <sys/cpustats.h>
19838 _ACEOF
19839 rm -f conftest.$ac_objext
19840 if { (ac_try="$ac_compile"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19844 esac
19845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19846 $as_echo "$ac_try_echo") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest.$ac_objext; then
19857 ac_header_compiler=yes
19858 else
19859 $as_echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 ac_header_compiler=no
19865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19866 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19867 $as_echo "$ac_header_compiler" >&6; }
19869 # Is the header present?
19870 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19871 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h. */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <sys/cpustats.h>
19879 _ACEOF
19880 if { (ac_try="$ac_cpp conftest.$ac_ext"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884 esac
19885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19886 $as_echo "$ac_try_echo") >&5
19887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } >/dev/null && {
19894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 }; then
19897 ac_header_preproc=yes
19898 else
19899 $as_echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_preproc=no
19905 rm -f conftest.err conftest.$ac_ext
19906 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19907 $as_echo "$ac_header_preproc" >&6; }
19909 # So? What about this header?
19910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19911 yes:no: )
19912 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19913 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19914 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19915 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19916 ac_header_preproc=yes
19918 no:yes:* )
19919 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19920 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19921 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19922 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19923 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19924 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19925 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19926 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19927 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19928 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19930 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19933 esac
19934 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19935 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19936 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19937 $as_echo_n "(cached) " >&6
19938 else
19939 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19941 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19942 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19945 if test $ac_cv_header_sys_cpustats_h = yes; then
19946 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19947 #define UMAX 1
19948 _ACEOF
19955 if test $ac_have_func = no; then
19957 for ac_header in mach/mach.h
19959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19962 $as_echo_n "checking for $ac_header... " >&6; }
19963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19964 $as_echo_n "(cached) " >&6
19966 ac_res=`eval 'as_val=${'$as_ac_Header'}
19967 $as_echo "$as_val"'`
19968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19969 $as_echo "$ac_res" >&6; }
19970 else
19971 # Is the header compilable?
19972 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19973 $as_echo_n "checking $ac_header usability... " >&6; }
19974 cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h. */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 $ac_includes_default
19981 #include <$ac_header>
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (ac_try="$ac_compile"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19988 esac
19989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19990 $as_echo "$ac_try_echo") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_header_compiler=yes
20002 else
20003 $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_compiler=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20011 $as_echo "$ac_header_compiler" >&6; }
20013 # Is the header present?
20014 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20015 $as_echo_n "checking $ac_header presence... " >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <$ac_header>
20023 _ACEOF
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20030 $as_echo "$ac_try_echo") >&5
20031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } >/dev/null && {
20038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20040 }; then
20041 ac_header_preproc=yes
20042 else
20043 $as_echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_header_preproc=no
20049 rm -f conftest.err conftest.$ac_ext
20050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20051 $as_echo "$ac_header_preproc" >&6; }
20053 # So? What about this header?
20054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20055 yes:no: )
20056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20057 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20060 ac_header_preproc=yes
20062 no:yes:* )
20063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20064 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20066 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20068 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20070 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20074 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20077 esac
20078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20079 $as_echo_n "checking for $ac_header... " >&6; }
20080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20081 $as_echo_n "(cached) " >&6
20082 else
20083 eval "$as_ac_Header=\$ac_header_preproc"
20085 ac_res=`eval 'as_val=${'$as_ac_Header'}
20086 $as_echo "$as_val"'`
20087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20088 $as_echo "$ac_res" >&6; }
20091 if test `eval 'as_val=${'$as_ac_Header'}
20092 $as_echo "$as_val"'` = yes; then
20093 cat >>confdefs.h <<_ACEOF
20094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20095 _ACEOF
20099 done
20104 for ac_header in nlist.h
20106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20109 $as_echo_n "checking for $ac_header... " >&6; }
20110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20111 $as_echo_n "(cached) " >&6
20113 ac_res=`eval 'as_val=${'$as_ac_Header'}
20114 $as_echo "$as_val"'`
20115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20116 $as_echo "$ac_res" >&6; }
20117 else
20118 # Is the header compilable?
20119 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120 $as_echo_n "checking $ac_header usability... " >&6; }
20121 cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h. */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 $ac_includes_default
20128 #include <$ac_header>
20129 _ACEOF
20130 rm -f conftest.$ac_objext
20131 if { (ac_try="$ac_compile"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20135 esac
20136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138 (eval "$ac_compile") 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest.$ac_objext; then
20148 ac_header_compiler=yes
20149 else
20150 $as_echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_compiler=no
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158 $as_echo "$ac_header_compiler" >&6; }
20160 # Is the header present?
20161 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162 $as_echo_n "checking $ac_header presence... " >&6; }
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h. */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <$ac_header>
20170 _ACEOF
20171 if { (ac_try="$ac_cpp conftest.$ac_ext"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20175 esac
20176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20177 $as_echo "$ac_try_echo") >&5
20178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20179 ac_status=$?
20180 grep -v '^ *+' conftest.er1 >conftest.err
20181 rm -f conftest.er1
20182 cat conftest.err >&5
20183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } >/dev/null && {
20185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 }; then
20188 ac_header_preproc=yes
20189 else
20190 $as_echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_preproc=no
20196 rm -f conftest.err conftest.$ac_ext
20197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198 $as_echo "$ac_header_preproc" >&6; }
20200 # So? What about this header?
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202 yes:no: )
20203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207 ac_header_preproc=yes
20209 no:yes:* )
20210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20213 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20217 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20224 esac
20225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20226 $as_echo_n "checking for $ac_header... " >&6; }
20227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20228 $as_echo_n "(cached) " >&6
20229 else
20230 eval "$as_ac_Header=\$ac_header_preproc"
20232 ac_res=`eval 'as_val=${'$as_ac_Header'}
20233 $as_echo "$as_val"'`
20234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20235 $as_echo "$ac_res" >&6; }
20238 if test `eval 'as_val=${'$as_ac_Header'}
20239 $as_echo "$as_val"'` = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20242 _ACEOF
20243 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20244 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20245 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20246 $as_echo_n "(cached) " >&6
20247 else
20248 cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h. */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 #include <nlist.h>
20257 main ()
20259 static struct nlist ac_aggr;
20260 if (ac_aggr.n_un.n_name)
20261 return 0;
20263 return 0;
20265 _ACEOF
20266 rm -f conftest.$ac_objext
20267 if { (ac_try="$ac_compile"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271 esac
20272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20273 $as_echo "$ac_try_echo") >&5
20274 (eval "$ac_compile") 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } && {
20281 test -z "$ac_c_werror_flag" ||
20282 test ! -s conftest.err
20283 } && test -s conftest.$ac_objext; then
20284 ac_cv_member_struct_nlist_n_un_n_name=yes
20285 else
20286 $as_echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 #include <nlist.h>
20298 main ()
20300 static struct nlist ac_aggr;
20301 if (sizeof ac_aggr.n_un.n_name)
20302 return 0;
20304 return 0;
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (ac_try="$ac_compile"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312 esac
20313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20314 $as_echo "$ac_try_echo") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20325 ac_cv_member_struct_nlist_n_un_n_name=yes
20326 else
20327 $as_echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_cv_member_struct_nlist_n_un_n_name=no
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20338 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20339 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20340 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20342 cat >>confdefs.h <<_ACEOF
20343 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20344 _ACEOF
20347 cat >>confdefs.h <<\_ACEOF
20348 #define NLIST_NAME_UNION 1
20349 _ACEOF
20356 done
20359 done
20362 # Some definitions of getloadavg require that the program be installed setgid.
20363 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20364 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20365 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20366 $as_echo_n "(cached) " >&6
20367 else
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20375 #ifdef LDAV_PRIVILEGED
20376 Yowza Am I SETGID yet
20377 #endif
20378 _ACEOF
20379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20380 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20381 ac_cv_func_getloadavg_setgid=yes
20382 else
20383 ac_cv_func_getloadavg_setgid=no
20385 rm -f conftest*
20388 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20389 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20390 if test $ac_cv_func_getloadavg_setgid = yes; then
20391 NEED_SETGID=true
20393 cat >>confdefs.h <<\_ACEOF
20394 #define GETLOADAVG_PRIVILEGED 1
20395 _ACEOF
20397 else
20398 NEED_SETGID=false
20401 if test $ac_cv_func_getloadavg_setgid = yes; then
20402 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20403 $as_echo_n "checking group of /dev/kmem... " >&6; }
20404 if test "${ac_cv_group_kmem+set}" = set; then
20405 $as_echo_n "(cached) " >&6
20406 else
20407 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20408 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20409 # If we got an error (system does not support symlinks), try without -L.
20410 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20411 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20412 | sed -ne 's/[ ][ ]*/ /g;
20413 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20414 / /s/.* //;p;'`
20417 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20418 $as_echo "$ac_cv_group_kmem" >&6; }
20419 KMEM_GROUP=$ac_cv_group_kmem
20421 if test "x$ac_save_LIBS" = x; then
20422 GETLOADAVG_LIBS=$LIBS
20423 else
20424 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20426 LIBS=$ac_save_LIBS
20430 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20431 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20432 if test "${ac_cv_sys_largefile_source+set}" = set; then
20433 $as_echo_n "(cached) " >&6
20434 else
20435 while :; do
20436 cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h. */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 #include <sys/types.h> /* for off_t */
20443 #include <stdio.h>
20445 main ()
20447 int (*fp) (FILE *, off_t, int) = fseeko;
20448 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20450 return 0;
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20460 $as_echo "$ac_try_echo") >&5
20461 (eval "$ac_link") 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && {
20468 test -z "$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 } && test -s conftest$ac_exeext && {
20471 test "$cross_compiling" = yes ||
20472 $as_test_x conftest$ac_exeext
20473 }; then
20474 ac_cv_sys_largefile_source=no; break
20475 else
20476 $as_echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20482 rm -rf conftest.dSYM
20483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20484 conftest$ac_exeext conftest.$ac_ext
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 #define _LARGEFILE_SOURCE 1
20492 #include <sys/types.h> /* for off_t */
20493 #include <stdio.h>
20495 main ()
20497 int (*fp) (FILE *, off_t, int) = fseeko;
20498 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20500 return 0;
20502 _ACEOF
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (ac_try="$ac_link"
20505 case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20508 esac
20509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20510 $as_echo "$ac_try_echo") >&5
20511 (eval "$ac_link") 2>conftest.er1
20512 ac_status=$?
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
20516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && {
20518 test -z "$ac_c_werror_flag" ||
20519 test ! -s conftest.err
20520 } && test -s conftest$ac_exeext && {
20521 test "$cross_compiling" = yes ||
20522 $as_test_x conftest$ac_exeext
20523 }; then
20524 ac_cv_sys_largefile_source=1; break
20525 else
20526 $as_echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20532 rm -rf conftest.dSYM
20533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20534 conftest$ac_exeext conftest.$ac_ext
20535 ac_cv_sys_largefile_source=unknown
20536 break
20537 done
20539 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20540 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20541 case $ac_cv_sys_largefile_source in #(
20542 no | unknown) ;;
20544 cat >>confdefs.h <<_ACEOF
20545 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20546 _ACEOF
20548 esac
20549 rm -rf conftest*
20551 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20552 # in glibc 2.1.3, but that breaks too many other things.
20553 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20554 if test $ac_cv_sys_largefile_source != unknown; then
20556 cat >>confdefs.h <<\_ACEOF
20557 #define HAVE_FSEEKO 1
20558 _ACEOF
20563 # Configure getopt.
20564 # getopt.m4 serial 10
20566 # The getopt module assume you want GNU getopt, with getopt_long etc,
20567 # rather than vanilla POSIX getopt. This means your your code should
20568 # always include <getopt.h> for the getopt prototypes.
20580 # Prerequisites of lib/getopt*.
20585 GETOPT_H=
20587 for ac_header in getopt.h
20589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20592 $as_echo_n "checking for $ac_header... " >&6; }
20593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20594 $as_echo_n "(cached) " >&6
20596 ac_res=`eval 'as_val=${'$as_ac_Header'}
20597 $as_echo "$as_val"'`
20598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20599 $as_echo "$ac_res" >&6; }
20600 else
20601 # Is the header compilable?
20602 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20603 $as_echo_n "checking $ac_header usability... " >&6; }
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h. */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 $ac_includes_default
20611 #include <$ac_header>
20612 _ACEOF
20613 rm -f conftest.$ac_objext
20614 if { (ac_try="$ac_compile"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20618 esac
20619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621 (eval "$ac_compile") 2>conftest.er1
20622 ac_status=$?
20623 grep -v '^ *+' conftest.er1 >conftest.err
20624 rm -f conftest.er1
20625 cat conftest.err >&5
20626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && {
20628 test -z "$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20630 } && test -s conftest.$ac_objext; then
20631 ac_header_compiler=yes
20632 else
20633 $as_echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_header_compiler=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20641 $as_echo "$ac_header_compiler" >&6; }
20643 # Is the header present?
20644 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20645 $as_echo_n "checking $ac_header presence... " >&6; }
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <$ac_header>
20653 _ACEOF
20654 if { (ac_try="$ac_cpp conftest.$ac_ext"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658 esac
20659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20660 $as_echo "$ac_try_echo") >&5
20661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } >/dev/null && {
20668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 }; then
20671 ac_header_preproc=yes
20672 else
20673 $as_echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_header_preproc=no
20679 rm -f conftest.err conftest.$ac_ext
20680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20681 $as_echo "$ac_header_preproc" >&6; }
20683 # So? What about this header?
20684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20685 yes:no: )
20686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20687 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20690 ac_header_preproc=yes
20692 no:yes:* )
20693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20694 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20696 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20698 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20700 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20704 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20707 esac
20708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20709 $as_echo_n "checking for $ac_header... " >&6; }
20710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20711 $as_echo_n "(cached) " >&6
20712 else
20713 eval "$as_ac_Header=\$ac_header_preproc"
20715 ac_res=`eval 'as_val=${'$as_ac_Header'}
20716 $as_echo "$as_val"'`
20717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20718 $as_echo "$ac_res" >&6; }
20721 if test `eval 'as_val=${'$as_ac_Header'}
20722 $as_echo "$as_val"'` = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20725 _ACEOF
20727 else
20728 GETOPT_H=getopt.h
20731 done
20733 if test -z "$GETOPT_H"; then
20735 for ac_func in getopt_long_only
20737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20739 $as_echo_n "checking for $ac_func... " >&6; }
20740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20741 $as_echo_n "(cached) " >&6
20742 else
20743 cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h. */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20751 #define $ac_func innocuous_$ac_func
20753 /* System header to define __stub macros and hopefully few prototypes,
20754 which can conflict with char $ac_func (); below.
20755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20756 <limits.h> exists even on freestanding compilers. */
20758 #ifdef __STDC__
20759 # include <limits.h>
20760 #else
20761 # include <assert.h>
20762 #endif
20764 #undef $ac_func
20766 /* Override any GCC internal prototype to avoid an error.
20767 Use char because int might match the return type of a GCC
20768 builtin and then its argument prototype would still apply. */
20769 #ifdef __cplusplus
20770 extern "C"
20771 #endif
20772 char $ac_func ();
20773 /* The GNU C library defines this for functions which it implements
20774 to always fail with ENOSYS. Some functions are actually named
20775 something starting with __ and the normal name is an alias. */
20776 #if defined __stub_$ac_func || defined __stub___$ac_func
20777 choke me
20778 #endif
20781 main ()
20783 return $ac_func ();
20785 return 0;
20787 _ACEOF
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793 esac
20794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20795 $as_echo "$ac_try_echo") >&5
20796 (eval "$ac_link") 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest$ac_exeext && {
20806 test "$cross_compiling" = yes ||
20807 $as_test_x conftest$ac_exeext
20808 }; then
20809 eval "$as_ac_var=yes"
20810 else
20811 $as_echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 eval "$as_ac_var=no"
20817 rm -rf conftest.dSYM
20818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20819 conftest$ac_exeext conftest.$ac_ext
20821 ac_res=`eval 'as_val=${'$as_ac_var'}
20822 $as_echo "$as_val"'`
20823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20824 $as_echo "$ac_res" >&6; }
20825 if test `eval 'as_val=${'$as_ac_var'}
20826 $as_echo "$as_val"'` = yes; then
20827 cat >>confdefs.h <<_ACEOF
20828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20829 _ACEOF
20831 else
20832 GETOPT_H=getopt.h
20834 done
20838 if test -z "$GETOPT_H"; then
20839 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20840 $as_echo_n "checking whether optreset is declared... " >&6; }
20841 if test "${ac_cv_have_decl_optreset+set}" = set; then
20842 $as_echo_n "(cached) " >&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 <getopt.h>
20853 main ()
20855 #ifndef optreset
20856 (void) optreset;
20857 #endif
20860 return 0;
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20870 $as_echo "$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 $as_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_have_decl_optreset=yes
20882 else
20883 $as_echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_have_decl_optreset=no
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20892 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20893 if test $ac_cv_have_decl_optreset = yes; then
20894 GETOPT_H=getopt.h
20899 if test -z "$GETOPT_H"; then
20900 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20901 $as_echo_n "checking for working GNU getopt function... " >&6; }
20902 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20903 $as_echo_n "(cached) " >&6
20904 else
20905 if test "$cross_compiling" = yes; then
20906 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20907 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20908 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20909 $as_echo_n "(cached) " >&6
20910 else
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 #include <getopt.h>
20920 main ()
20922 #ifndef getopt_clip
20923 (void) getopt_clip;
20924 #endif
20927 return 0;
20929 _ACEOF
20930 rm -f conftest.$ac_objext
20931 if { (ac_try="$ac_compile"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20935 esac
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_compile") 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest.$ac_objext; then
20948 ac_cv_have_decl_getopt_clip=yes
20949 else
20950 $as_echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 ac_cv_have_decl_getopt_clip=no
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20959 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20960 if test $ac_cv_have_decl_getopt_clip = yes; then
20961 gl_cv_func_gnu_getopt=no
20962 else
20963 gl_cv_func_gnu_getopt=yes
20966 else
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h. */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 #include <getopt.h>
20975 main ()
20978 char *myargv[3];
20979 myargv[0] = "conftest";
20980 myargv[1] = "-+";
20981 myargv[2] = 0;
20982 return getopt (2, myargv, "+a") != '?';
20985 return 0;
20987 _ACEOF
20988 rm -f conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996 (eval "$ac_link") 2>&5
20997 ac_status=$?
20998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21005 $as_echo "$ac_try_echo") >&5
21006 (eval "$ac_try") 2>&5
21007 ac_status=$?
21008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 gl_cv_func_gnu_getopt=yes
21011 else
21012 $as_echo "$as_me: program exited with status $ac_status" >&5
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 ( exit $ac_status )
21017 gl_cv_func_gnu_getopt=no
21019 rm -rf conftest.dSYM
21020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21025 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21026 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21027 if test "$gl_cv_func_gnu_getopt" = "no"; then
21028 GETOPT_H=getopt.h
21034 if test -n "$GETOPT_H"; then
21037 GETOPT_H=getopt.h
21039 cat >>confdefs.h <<\_ACEOF
21040 #define __GETOPT_PREFIX rpl_
21041 _ACEOF
21046 GETOPTOBJS='getopt.o getopt1.o'
21053 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21054 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21055 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21056 $as_echo_n "(cached) " >&6
21057 else
21058 # Use it with a single arg.
21059 cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h. */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 $ac_includes_default
21067 main ()
21069 getpgrp (0);
21071 return 0;
21073 _ACEOF
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079 esac
21080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21081 $as_echo "$ac_try_echo") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_cv_func_getpgrp_void=no
21093 else
21094 $as_echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_cv_func_getpgrp_void=yes
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21104 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21105 if test $ac_cv_func_getpgrp_void = yes; then
21107 cat >>confdefs.h <<\_ACEOF
21108 #define GETPGRP_VOID 1
21109 _ACEOF
21115 for ac_func in strftime
21117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21118 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21119 $as_echo_n "checking for $ac_func... " >&6; }
21120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21121 $as_echo_n "(cached) " >&6
21122 else
21123 cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h. */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21131 #define $ac_func innocuous_$ac_func
21133 /* System header to define __stub macros and hopefully few prototypes,
21134 which can conflict with char $ac_func (); below.
21135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21136 <limits.h> exists even on freestanding compilers. */
21138 #ifdef __STDC__
21139 # include <limits.h>
21140 #else
21141 # include <assert.h>
21142 #endif
21144 #undef $ac_func
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21149 #ifdef __cplusplus
21150 extern "C"
21151 #endif
21152 char $ac_func ();
21153 /* The GNU C library defines this for functions which it implements
21154 to always fail with ENOSYS. Some functions are actually named
21155 something starting with __ and the normal name is an alias. */
21156 #if defined __stub_$ac_func || defined __stub___$ac_func
21157 choke me
21158 #endif
21161 main ()
21163 return $ac_func ();
21165 return 0;
21167 _ACEOF
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21173 esac
21174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21175 $as_echo "$ac_try_echo") >&5
21176 (eval "$ac_link") 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } && {
21183 test -z "$ac_c_werror_flag" ||
21184 test ! -s conftest.err
21185 } && test -s conftest$ac_exeext && {
21186 test "$cross_compiling" = yes ||
21187 $as_test_x conftest$ac_exeext
21188 }; then
21189 eval "$as_ac_var=yes"
21190 else
21191 $as_echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21194 eval "$as_ac_var=no"
21197 rm -rf conftest.dSYM
21198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21199 conftest$ac_exeext conftest.$ac_ext
21201 ac_res=`eval 'as_val=${'$as_ac_var'}
21202 $as_echo "$as_val"'`
21203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21204 $as_echo "$ac_res" >&6; }
21205 if test `eval 'as_val=${'$as_ac_var'}
21206 $as_echo "$as_val"'` = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21209 _ACEOF
21211 else
21212 # strftime is in -lintl on SCO UNIX.
21213 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21214 $as_echo_n "checking for strftime in -lintl... " >&6; }
21215 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21216 $as_echo_n "(cached) " >&6
21217 else
21218 ac_check_lib_save_LIBS=$LIBS
21219 LIBS="-lintl $LIBS"
21220 cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h. */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21227 /* Override any GCC internal prototype to avoid an error.
21228 Use char because int might match the return type of a GCC
21229 builtin and then its argument prototype would still apply. */
21230 #ifdef __cplusplus
21231 extern "C"
21232 #endif
21233 char strftime ();
21235 main ()
21237 return strftime ();
21239 return 0;
21241 _ACEOF
21242 rm -f conftest.$ac_objext conftest$ac_exeext
21243 if { (ac_try="$ac_link"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247 esac
21248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21249 $as_echo "$ac_try_echo") >&5
21250 (eval "$ac_link") 2>conftest.er1
21251 ac_status=$?
21252 grep -v '^ *+' conftest.er1 >conftest.err
21253 rm -f conftest.er1
21254 cat conftest.err >&5
21255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); } && {
21257 test -z "$ac_c_werror_flag" ||
21258 test ! -s conftest.err
21259 } && test -s conftest$ac_exeext && {
21260 test "$cross_compiling" = yes ||
21261 $as_test_x conftest$ac_exeext
21262 }; then
21263 ac_cv_lib_intl_strftime=yes
21264 else
21265 $as_echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ac_cv_lib_intl_strftime=no
21271 rm -rf conftest.dSYM
21272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21273 conftest$ac_exeext conftest.$ac_ext
21274 LIBS=$ac_check_lib_save_LIBS
21276 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21277 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21278 if test $ac_cv_lib_intl_strftime = yes; then
21279 cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_STRFTIME 1
21281 _ACEOF
21283 LIBS="-lintl $LIBS"
21287 done
21290 # UNIX98 PTYs.
21292 for ac_func in grantpt
21294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21295 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21296 $as_echo_n "checking for $ac_func... " >&6; }
21297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21298 $as_echo_n "(cached) " >&6
21299 else
21300 cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h. */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21308 #define $ac_func innocuous_$ac_func
21310 /* System header to define __stub macros and hopefully few prototypes,
21311 which can conflict with char $ac_func (); below.
21312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21313 <limits.h> exists even on freestanding compilers. */
21315 #ifdef __STDC__
21316 # include <limits.h>
21317 #else
21318 # include <assert.h>
21319 #endif
21321 #undef $ac_func
21323 /* Override any GCC internal prototype to avoid an error.
21324 Use char because int might match the return type of a GCC
21325 builtin and then its argument prototype would still apply. */
21326 #ifdef __cplusplus
21327 extern "C"
21328 #endif
21329 char $ac_func ();
21330 /* The GNU C library defines this for functions which it implements
21331 to always fail with ENOSYS. Some functions are actually named
21332 something starting with __ and the normal name is an alias. */
21333 #if defined __stub_$ac_func || defined __stub___$ac_func
21334 choke me
21335 #endif
21338 main ()
21340 return $ac_func ();
21342 return 0;
21344 _ACEOF
21345 rm -f conftest.$ac_objext conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350 esac
21351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21352 $as_echo "$ac_try_echo") >&5
21353 (eval "$ac_link") 2>conftest.er1
21354 ac_status=$?
21355 grep -v '^ *+' conftest.er1 >conftest.err
21356 rm -f conftest.er1
21357 cat conftest.err >&5
21358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest$ac_exeext && {
21363 test "$cross_compiling" = yes ||
21364 $as_test_x conftest$ac_exeext
21365 }; then
21366 eval "$as_ac_var=yes"
21367 else
21368 $as_echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 eval "$as_ac_var=no"
21374 rm -rf conftest.dSYM
21375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21376 conftest$ac_exeext conftest.$ac_ext
21378 ac_res=`eval 'as_val=${'$as_ac_var'}
21379 $as_echo "$as_val"'`
21380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21381 $as_echo "$ac_res" >&6; }
21382 if test `eval 'as_val=${'$as_ac_var'}
21383 $as_echo "$as_val"'` = yes; then
21384 cat >>confdefs.h <<_ACEOF
21385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21386 _ACEOF
21389 done
21392 # PTY-related GNU extensions.
21394 for ac_func in getpt
21396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21397 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21398 $as_echo_n "checking for $ac_func... " >&6; }
21399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21400 $as_echo_n "(cached) " >&6
21401 else
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h. */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21410 #define $ac_func innocuous_$ac_func
21412 /* System header to define __stub macros and hopefully few prototypes,
21413 which can conflict with char $ac_func (); below.
21414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21415 <limits.h> exists even on freestanding compilers. */
21417 #ifdef __STDC__
21418 # include <limits.h>
21419 #else
21420 # include <assert.h>
21421 #endif
21423 #undef $ac_func
21425 /* Override any GCC internal prototype to avoid an error.
21426 Use char because int might match the return type of a GCC
21427 builtin and then its argument prototype would still apply. */
21428 #ifdef __cplusplus
21429 extern "C"
21430 #endif
21431 char $ac_func ();
21432 /* The GNU C library defines this for functions which it implements
21433 to always fail with ENOSYS. Some functions are actually named
21434 something starting with __ and the normal name is an alias. */
21435 #if defined __stub_$ac_func || defined __stub___$ac_func
21436 choke me
21437 #endif
21440 main ()
21442 return $ac_func ();
21444 return 0;
21446 _ACEOF
21447 rm -f conftest.$ac_objext conftest$ac_exeext
21448 if { (ac_try="$ac_link"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452 esac
21453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21454 $as_echo "$ac_try_echo") >&5
21455 (eval "$ac_link") 2>conftest.er1
21456 ac_status=$?
21457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
21460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest$ac_exeext && {
21465 test "$cross_compiling" = yes ||
21466 $as_test_x conftest$ac_exeext
21467 }; then
21468 eval "$as_ac_var=yes"
21469 else
21470 $as_echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 eval "$as_ac_var=no"
21476 rm -rf conftest.dSYM
21477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21478 conftest$ac_exeext conftest.$ac_ext
21480 ac_res=`eval 'as_val=${'$as_ac_var'}
21481 $as_echo "$as_val"'`
21482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21483 $as_echo "$ac_res" >&6; }
21484 if test `eval 'as_val=${'$as_ac_var'}
21485 $as_echo "$as_val"'` = yes; then
21486 cat >>confdefs.h <<_ACEOF
21487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21488 _ACEOF
21491 done
21494 # Check this now, so that we will NOT find the above functions in ncurses.
21495 # That is because we have not set up to link ncurses in lib-src.
21496 # It's better to believe a function is not available
21497 # than to expect to find it in ncurses.
21498 # Also we need tputs and friends to be able to build at all.
21499 have_tputs_et_al=true
21500 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21501 $as_echo_n "checking for library containing tputs... " >&6; }
21502 if test "${ac_cv_search_tputs+set}" = set; then
21503 $as_echo_n "(cached) " >&6
21504 else
21505 ac_func_search_save_LIBS=$LIBS
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h. */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21513 /* Override any GCC internal prototype to avoid an error.
21514 Use char because int might match the return type of a GCC
21515 builtin and then its argument prototype would still apply. */
21516 #ifdef __cplusplus
21517 extern "C"
21518 #endif
21519 char tputs ();
21521 main ()
21523 return tputs ();
21525 return 0;
21527 _ACEOF
21528 for ac_lib in '' ncurses terminfo termcap; do
21529 if test -z "$ac_lib"; then
21530 ac_res="none required"
21531 else
21532 ac_res=-l$ac_lib
21533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21535 rm -f conftest.$ac_objext conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21542 $as_echo "$ac_try_echo") >&5
21543 (eval "$ac_link") 2>conftest.er1
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest$ac_exeext && {
21553 test "$cross_compiling" = yes ||
21554 $as_test_x conftest$ac_exeext
21555 }; then
21556 ac_cv_search_tputs=$ac_res
21557 else
21558 $as_echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21564 rm -rf conftest.dSYM
21565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21566 conftest$ac_exeext
21567 if test "${ac_cv_search_tputs+set}" = set; then
21568 break
21570 done
21571 if test "${ac_cv_search_tputs+set}" = set; then
21573 else
21574 ac_cv_search_tputs=no
21576 rm conftest.$ac_ext
21577 LIBS=$ac_func_search_save_LIBS
21579 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21580 $as_echo "$ac_cv_search_tputs" >&6; }
21581 ac_res=$ac_cv_search_tputs
21582 if test "$ac_res" != no; then
21583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21585 else
21586 have_tputs_et_al=false
21589 if test "$have_tputs_et_al" != true; then
21590 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21591 Maybe some development libraries/packages are missing? Try installing
21592 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21593 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21594 Maybe some development libraries/packages are missing? Try installing
21595 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21596 { (exit 1); exit 1; }; }
21598 # Must define this when any termcap library is found.
21600 cat >>confdefs.h <<\_ACEOF
21601 #define HAVE_LIBNCURSES 1
21602 _ACEOF
21604 ## FIXME This was the cpp logic, but I am not sure it is right.
21605 ## The above test has not necessarily found libncurses.
21606 HAVE_LIBNCURSES=yes
21608 ## Use terminfo instead of termcap?
21609 ## Note only system files NOT using terminfo are:
21610 ## freebsd < 40000, ms-w32, msdos, netbsd, and
21611 ## darwin|gnu without ncurses.
21612 TERMINFO=no
21613 LIBS_TERMCAP=
21614 case "$opsys" in
21615 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21616 ## hpux10-20: Use the system provided termcap(3) library.
21617 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21618 ## is necessary. Otherwise Emacs dumps core when run -nw.
21619 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21621 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21622 ## The ncurses library has been moved out of the System framework in
21623 ## Mac OS X 10.2. So if configure detects it, set the command-line
21624 ## option to use it.
21625 darwin|gnu*)
21626 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21627 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21628 TERMINFO=yes
21629 LIBS_TERMCAP="-lncurses"
21633 freebsd)
21634 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21635 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21636 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21637 $as_echo_n "(cached) " >&6
21638 else
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h. */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <osreldate.h>
21647 main ()
21649 #if __FreeBSD_version < 400000
21650 fail;
21651 #endif
21654 return 0;
21656 _ACEOF
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21662 esac
21663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21664 $as_echo "$ac_try_echo") >&5
21665 (eval "$ac_link") 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest$ac_exeext && {
21675 test "$cross_compiling" = yes ||
21676 $as_test_x conftest$ac_exeext
21677 }; then
21678 emacs_cv_freebsd_terminfo=yes
21679 else
21680 $as_echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 emacs_cv_freebsd_terminfo=no
21686 rm -rf conftest.dSYM
21687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21688 conftest$ac_exeext conftest.$ac_ext
21692 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21693 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21695 if test $emacs_cv_freebsd_terminfo = yes; then
21696 TERMINFO=yes
21697 LIBS_TERMCAP="-lncurses"
21698 else
21699 LIBS_TERMCAP="-ltermcap"
21703 esac
21705 case "$opsys" in
21706 ## hpux: Make sure we get select from libc rather than from libcurses
21707 ## because libcurses on HPUX 10.10 has a broken version of select.
21708 ## We used to use -lc -lcurses, but this may be cleaner.
21709 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21711 openbsd) LIBS_TERMCAP="-lncurses" ;;
21713 ## Must use system termcap, if we use any termcap. It does special things.
21714 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21715 esac
21717 TERMCAP_OBJ=tparam.o
21718 if test $TERMINFO = yes; then
21720 cat >>confdefs.h <<\_ACEOF
21721 #define TERMINFO 1
21722 _ACEOF
21725 ## Default used to be -ltermcap. Add a case above if need something else.
21726 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21728 TERMCAP_OBJ=terminfo.o
21734 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21735 resolv=no
21736 cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h. */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 #include <netinet/in.h>
21743 #include <arpa/nameser.h>
21744 #include <resolv.h>
21746 main ()
21748 return res_init();
21750 return 0;
21752 _ACEOF
21753 rm -f conftest.$ac_objext conftest$ac_exeext
21754 if { (ac_try="$ac_link"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21758 esac
21759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21760 $as_echo "$ac_try_echo") >&5
21761 (eval "$ac_link") 2>conftest.er1
21762 ac_status=$?
21763 grep -v '^ *+' conftest.er1 >conftest.err
21764 rm -f conftest.er1
21765 cat conftest.err >&5
21766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } && {
21768 test -z "$ac_c_werror_flag" ||
21769 test ! -s conftest.err
21770 } && test -s conftest$ac_exeext && {
21771 test "$cross_compiling" = yes ||
21772 $as_test_x conftest$ac_exeext
21773 }; then
21774 have_res_init=yes
21775 else
21776 $as_echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21779 have_res_init=no
21782 rm -rf conftest.dSYM
21783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21784 conftest$ac_exeext conftest.$ac_ext
21785 if test "$have_res_init" = no; then
21786 OLIBS="$LIBS"
21787 LIBS="$LIBS -lresolv"
21788 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21789 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h. */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 #include <netinet/in.h>
21797 #include <arpa/nameser.h>
21798 #include <resolv.h>
21800 main ()
21802 return res_init();
21804 return 0;
21806 _ACEOF
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812 esac
21813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_link") 2>conftest.er1
21816 ac_status=$?
21817 grep -v '^ *+' conftest.er1 >conftest.err
21818 rm -f conftest.er1
21819 cat conftest.err >&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest$ac_exeext && {
21825 test "$cross_compiling" = yes ||
21826 $as_test_x conftest$ac_exeext
21827 }; then
21828 have_res_init=yes
21829 else
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 have_res_init=no
21836 rm -rf conftest.dSYM
21837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21838 conftest$ac_exeext conftest.$ac_ext
21839 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21840 $as_echo "$have_res_init" >&6; }
21841 if test "$have_res_init" = yes ; then
21842 resolv=yes
21844 LIBS="$OLIBS"
21847 if test "$have_res_init" = yes; then
21849 cat >>confdefs.h <<\_ACEOF
21850 #define HAVE_RES_INIT 1
21851 _ACEOF
21855 # Do we need the Hesiod library to provide the support routines?
21856 LIBHESIOD=
21857 if test "$with_hesiod" != no ; then
21858 # Don't set $LIBS here -- see comments above. FIXME which comments?
21859 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21860 $as_echo_n "checking for res_send... " >&6; }
21861 if test "${ac_cv_func_res_send+set}" = set; then
21862 $as_echo_n "(cached) " >&6
21863 else
21864 cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h. */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21872 #define res_send innocuous_res_send
21874 /* System header to define __stub macros and hopefully few prototypes,
21875 which can conflict with char res_send (); below.
21876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21877 <limits.h> exists even on freestanding compilers. */
21879 #ifdef __STDC__
21880 # include <limits.h>
21881 #else
21882 # include <assert.h>
21883 #endif
21885 #undef res_send
21887 /* Override any GCC internal prototype to avoid an error.
21888 Use char because int might match the return type of a GCC
21889 builtin and then its argument prototype would still apply. */
21890 #ifdef __cplusplus
21891 extern "C"
21892 #endif
21893 char res_send ();
21894 /* The GNU C library defines this for functions which it implements
21895 to always fail with ENOSYS. Some functions are actually named
21896 something starting with __ and the normal name is an alias. */
21897 #if defined __stub_res_send || defined __stub___res_send
21898 choke me
21899 #endif
21902 main ()
21904 return res_send ();
21906 return 0;
21908 _ACEOF
21909 rm -f conftest.$ac_objext conftest$ac_exeext
21910 if { (ac_try="$ac_link"
21911 case "(($ac_try" in
21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913 *) ac_try_echo=$ac_try;;
21914 esac
21915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21916 $as_echo "$ac_try_echo") >&5
21917 (eval "$ac_link") 2>conftest.er1
21918 ac_status=$?
21919 grep -v '^ *+' conftest.er1 >conftest.err
21920 rm -f conftest.er1
21921 cat conftest.err >&5
21922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && {
21924 test -z "$ac_c_werror_flag" ||
21925 test ! -s conftest.err
21926 } && test -s conftest$ac_exeext && {
21927 test "$cross_compiling" = yes ||
21928 $as_test_x conftest$ac_exeext
21929 }; then
21930 ac_cv_func_res_send=yes
21931 else
21932 $as_echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_cv_func_res_send=no
21938 rm -rf conftest.dSYM
21939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21940 conftest$ac_exeext conftest.$ac_ext
21942 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21943 $as_echo "$ac_cv_func_res_send" >&6; }
21944 if test $ac_cv_func_res_send = yes; then
21946 else
21947 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21948 $as_echo_n "checking for __res_send... " >&6; }
21949 if test "${ac_cv_func___res_send+set}" = set; then
21950 $as_echo_n "(cached) " >&6
21951 else
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21960 #define __res_send innocuous___res_send
21962 /* System header to define __stub macros and hopefully few prototypes,
21963 which can conflict with char __res_send (); below.
21964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21965 <limits.h> exists even on freestanding compilers. */
21967 #ifdef __STDC__
21968 # include <limits.h>
21969 #else
21970 # include <assert.h>
21971 #endif
21973 #undef __res_send
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21978 #ifdef __cplusplus
21979 extern "C"
21980 #endif
21981 char __res_send ();
21982 /* The GNU C library defines this for functions which it implements
21983 to always fail with ENOSYS. Some functions are actually named
21984 something starting with __ and the normal name is an alias. */
21985 #if defined __stub___res_send || defined __stub_____res_send
21986 choke me
21987 #endif
21990 main ()
21992 return __res_send ();
21994 return 0;
21996 _ACEOF
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22002 esac
22003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22004 $as_echo "$ac_try_echo") >&5
22005 (eval "$ac_link") 2>conftest.er1
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext && {
22015 test "$cross_compiling" = yes ||
22016 $as_test_x conftest$ac_exeext
22017 }; then
22018 ac_cv_func___res_send=yes
22019 else
22020 $as_echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_func___res_send=no
22026 rm -rf conftest.dSYM
22027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22028 conftest$ac_exeext conftest.$ac_ext
22030 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22031 $as_echo "$ac_cv_func___res_send" >&6; }
22032 if test $ac_cv_func___res_send = yes; then
22034 else
22035 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22036 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22037 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22038 $as_echo_n "(cached) " >&6
22039 else
22040 ac_check_lib_save_LIBS=$LIBS
22041 LIBS="-lresolv $LIBS"
22042 cat >conftest.$ac_ext <<_ACEOF
22043 /* confdefs.h. */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22049 /* Override any GCC internal prototype to avoid an error.
22050 Use char because int might match the return type of a GCC
22051 builtin and then its argument prototype would still apply. */
22052 #ifdef __cplusplus
22053 extern "C"
22054 #endif
22055 char res_send ();
22057 main ()
22059 return res_send ();
22061 return 0;
22063 _ACEOF
22064 rm -f conftest.$ac_objext conftest$ac_exeext
22065 if { (ac_try="$ac_link"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22069 esac
22070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22071 $as_echo "$ac_try_echo") >&5
22072 (eval "$ac_link") 2>conftest.er1
22073 ac_status=$?
22074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
22077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && {
22079 test -z "$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22081 } && test -s conftest$ac_exeext && {
22082 test "$cross_compiling" = yes ||
22083 $as_test_x conftest$ac_exeext
22084 }; then
22085 ac_cv_lib_resolv_res_send=yes
22086 else
22087 $as_echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ac_cv_lib_resolv_res_send=no
22093 rm -rf conftest.dSYM
22094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22095 conftest$ac_exeext conftest.$ac_ext
22096 LIBS=$ac_check_lib_save_LIBS
22098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22099 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22100 if test $ac_cv_lib_resolv_res_send = yes; then
22101 resolv=yes
22102 else
22103 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22104 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22105 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22106 $as_echo_n "(cached) " >&6
22107 else
22108 ac_check_lib_save_LIBS=$LIBS
22109 LIBS="-lresolv $LIBS"
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h. */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22117 /* Override any GCC internal prototype to avoid an error.
22118 Use char because int might match the return type of a GCC
22119 builtin and then its argument prototype would still apply. */
22120 #ifdef __cplusplus
22121 extern "C"
22122 #endif
22123 char __res_send ();
22125 main ()
22127 return __res_send ();
22129 return 0;
22131 _ACEOF
22132 rm -f conftest.$ac_objext conftest$ac_exeext
22133 if { (ac_try="$ac_link"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22137 esac
22138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22139 $as_echo "$ac_try_echo") >&5
22140 (eval "$ac_link") 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest$ac_exeext && {
22150 test "$cross_compiling" = yes ||
22151 $as_test_x conftest$ac_exeext
22152 }; then
22153 ac_cv_lib_resolv___res_send=yes
22154 else
22155 $as_echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ac_cv_lib_resolv___res_send=no
22161 rm -rf conftest.dSYM
22162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22163 conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22167 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22168 if test $ac_cv_lib_resolv___res_send = yes; then
22169 resolv=yes
22178 if test "$resolv" = yes ; then
22179 RESOLVLIB=-lresolv
22180 else
22181 RESOLVLIB=
22183 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22184 $as_echo_n "checking for hes_getmailhost... " >&6; }
22185 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22186 $as_echo_n "(cached) " >&6
22187 else
22188 cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h. */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22196 #define hes_getmailhost innocuous_hes_getmailhost
22198 /* System header to define __stub macros and hopefully few prototypes,
22199 which can conflict with char hes_getmailhost (); below.
22200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22201 <limits.h> exists even on freestanding compilers. */
22203 #ifdef __STDC__
22204 # include <limits.h>
22205 #else
22206 # include <assert.h>
22207 #endif
22209 #undef hes_getmailhost
22211 /* Override any GCC internal prototype to avoid an error.
22212 Use char because int might match the return type of a GCC
22213 builtin and then its argument prototype would still apply. */
22214 #ifdef __cplusplus
22215 extern "C"
22216 #endif
22217 char hes_getmailhost ();
22218 /* The GNU C library defines this for functions which it implements
22219 to always fail with ENOSYS. Some functions are actually named
22220 something starting with __ and the normal name is an alias. */
22221 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22222 choke me
22223 #endif
22226 main ()
22228 return hes_getmailhost ();
22230 return 0;
22232 _ACEOF
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (ac_try="$ac_link"
22235 case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22238 esac
22239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22240 $as_echo "$ac_try_echo") >&5
22241 (eval "$ac_link") 2>conftest.er1
22242 ac_status=$?
22243 grep -v '^ *+' conftest.er1 >conftest.err
22244 rm -f conftest.er1
22245 cat conftest.err >&5
22246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } && {
22248 test -z "$ac_c_werror_flag" ||
22249 test ! -s conftest.err
22250 } && test -s conftest$ac_exeext && {
22251 test "$cross_compiling" = yes ||
22252 $as_test_x conftest$ac_exeext
22253 }; then
22254 ac_cv_func_hes_getmailhost=yes
22255 else
22256 $as_echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_func_hes_getmailhost=no
22262 rm -rf conftest.dSYM
22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22264 conftest$ac_exeext conftest.$ac_ext
22266 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22267 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22268 if test $ac_cv_func_hes_getmailhost = yes; then
22270 else
22271 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22272 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22273 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22274 $as_echo_n "(cached) " >&6
22275 else
22276 ac_check_lib_save_LIBS=$LIBS
22277 LIBS="-lhesiod $RESOLVLIB $LIBS"
22278 cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h. */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22285 /* Override any GCC internal prototype to avoid an error.
22286 Use char because int might match the return type of a GCC
22287 builtin and then its argument prototype would still apply. */
22288 #ifdef __cplusplus
22289 extern "C"
22290 #endif
22291 char hes_getmailhost ();
22293 main ()
22295 return hes_getmailhost ();
22297 return 0;
22299 _ACEOF
22300 rm -f conftest.$ac_objext conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305 esac
22306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22307 $as_echo "$ac_try_echo") >&5
22308 (eval "$ac_link") 2>conftest.er1
22309 ac_status=$?
22310 grep -v '^ *+' conftest.er1 >conftest.err
22311 rm -f conftest.er1
22312 cat conftest.err >&5
22313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } && {
22315 test -z "$ac_c_werror_flag" ||
22316 test ! -s conftest.err
22317 } && test -s conftest$ac_exeext && {
22318 test "$cross_compiling" = yes ||
22319 $as_test_x conftest$ac_exeext
22320 }; then
22321 ac_cv_lib_hesiod_hes_getmailhost=yes
22322 else
22323 $as_echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ac_cv_lib_hesiod_hes_getmailhost=no
22329 rm -rf conftest.dSYM
22330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22331 conftest$ac_exeext conftest.$ac_ext
22332 LIBS=$ac_check_lib_save_LIBS
22334 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22335 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22336 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22337 hesiod=yes
22338 else
22345 if test x"$hesiod" = xyes; then
22347 cat >>confdefs.h <<\_ACEOF
22348 #define HAVE_LIBHESIOD 1
22349 _ACEOF
22351 LIBHESIOD=-lhesiod
22356 # Do we need libresolv (due to res_init or Hesiod)?
22357 if test "$resolv" = yes ; then
22359 cat >>confdefs.h <<\_ACEOF
22360 #define HAVE_LIBRESOLV 1
22361 _ACEOF
22363 LIBRESOLV=-lresolv
22364 else
22365 LIBRESOLV=
22369 # These tell us which Kerberos-related libraries to use.
22370 COM_ERRLIB=
22371 CRYPTOLIB=
22372 KRB5LIB=
22373 DESLIB=
22374 KRB4LIB=
22376 if test "${with_kerberos}" != no; then
22377 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22378 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22379 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22380 $as_echo_n "(cached) " >&6
22381 else
22382 ac_check_lib_save_LIBS=$LIBS
22383 LIBS="-lcom_err $LIBS"
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h. */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22391 /* Override any GCC internal prototype to avoid an error.
22392 Use char because int might match the return type of a GCC
22393 builtin and then its argument prototype would still apply. */
22394 #ifdef __cplusplus
22395 extern "C"
22396 #endif
22397 char com_err ();
22399 main ()
22401 return com_err ();
22403 return 0;
22405 _ACEOF
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (ac_try="$ac_link"
22408 case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22411 esac
22412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22413 $as_echo "$ac_try_echo") >&5
22414 (eval "$ac_link") 2>conftest.er1
22415 ac_status=$?
22416 grep -v '^ *+' conftest.er1 >conftest.err
22417 rm -f conftest.er1
22418 cat conftest.err >&5
22419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } && {
22421 test -z "$ac_c_werror_flag" ||
22422 test ! -s conftest.err
22423 } && test -s conftest$ac_exeext && {
22424 test "$cross_compiling" = yes ||
22425 $as_test_x conftest$ac_exeext
22426 }; then
22427 ac_cv_lib_com_err_com_err=yes
22428 else
22429 $as_echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 ac_cv_lib_com_err_com_err=no
22435 rm -rf conftest.dSYM
22436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22437 conftest$ac_exeext conftest.$ac_ext
22438 LIBS=$ac_check_lib_save_LIBS
22440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22441 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22442 if test $ac_cv_lib_com_err_com_err = yes; then
22443 have_com_err=yes
22444 else
22445 have_com_err=no
22448 if test $have_com_err = yes; then
22449 COM_ERRLIB=-lcom_err
22450 LIBS="$COM_ERRLIB $LIBS"
22452 cat >>confdefs.h <<\_ACEOF
22453 #define HAVE_LIBCOM_ERR 1
22454 _ACEOF
22457 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22458 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22459 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22460 $as_echo_n "(cached) " >&6
22461 else
22462 ac_check_lib_save_LIBS=$LIBS
22463 LIBS="-lcrypto $LIBS"
22464 cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h. */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22471 /* Override any GCC internal prototype to avoid an error.
22472 Use char because int might match the return type of a GCC
22473 builtin and then its argument prototype would still apply. */
22474 #ifdef __cplusplus
22475 extern "C"
22476 #endif
22477 char mit_des_cbc_encrypt ();
22479 main ()
22481 return mit_des_cbc_encrypt ();
22483 return 0;
22485 _ACEOF
22486 rm -f conftest.$ac_objext conftest$ac_exeext
22487 if { (ac_try="$ac_link"
22488 case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22491 esac
22492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22493 $as_echo "$ac_try_echo") >&5
22494 (eval "$ac_link") 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest$ac_exeext && {
22504 test "$cross_compiling" = yes ||
22505 $as_test_x conftest$ac_exeext
22506 }; then
22507 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22508 else
22509 $as_echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22512 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22515 rm -rf conftest.dSYM
22516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22517 conftest$ac_exeext conftest.$ac_ext
22518 LIBS=$ac_check_lib_save_LIBS
22520 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22521 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22522 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22523 have_crypto=yes
22524 else
22525 have_crypto=no
22528 if test $have_crypto = yes; then
22529 CRYPTOLIB=-lcrypto
22530 LIBS="$CRYPTOLIB $LIBS"
22532 cat >>confdefs.h <<\_ACEOF
22533 #define HAVE_LIBCRYPTO 1
22534 _ACEOF
22537 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22538 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22539 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22540 $as_echo_n "(cached) " >&6
22541 else
22542 ac_check_lib_save_LIBS=$LIBS
22543 LIBS="-lk5crypto $LIBS"
22544 cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h. */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22551 /* Override any GCC internal prototype to avoid an error.
22552 Use char because int might match the return type of a GCC
22553 builtin and then its argument prototype would still apply. */
22554 #ifdef __cplusplus
22555 extern "C"
22556 #endif
22557 char mit_des_cbc_encrypt ();
22559 main ()
22561 return mit_des_cbc_encrypt ();
22563 return 0;
22565 _ACEOF
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (ac_try="$ac_link"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22571 esac
22572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } && {
22581 test -z "$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 } && test -s conftest$ac_exeext && {
22584 test "$cross_compiling" = yes ||
22585 $as_test_x conftest$ac_exeext
22586 }; then
22587 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22588 else
22589 $as_echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22595 rm -rf conftest.dSYM
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597 conftest$ac_exeext conftest.$ac_ext
22598 LIBS=$ac_check_lib_save_LIBS
22600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22601 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22602 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22603 have_k5crypto=yes
22604 else
22605 have_k5crypto=no
22608 if test $have_k5crypto = yes; then
22609 CRYPTOLIB=-lk5crypto
22610 LIBS="$CRYPTOLIB $LIBS"
22612 cat >>confdefs.h <<\_ACEOF
22613 #define HAVE_LIBK5CRYPTO 1
22614 _ACEOF
22617 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22618 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22619 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22620 $as_echo_n "(cached) " >&6
22621 else
22622 ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-lkrb5 $LIBS"
22624 cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h. */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22631 /* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22634 #ifdef __cplusplus
22635 extern "C"
22636 #endif
22637 char krb5_init_context ();
22639 main ()
22641 return krb5_init_context ();
22643 return 0;
22645 _ACEOF
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22651 esac
22652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654 (eval "$ac_link") 2>conftest.er1
22655 ac_status=$?
22656 grep -v '^ *+' conftest.er1 >conftest.err
22657 rm -f conftest.er1
22658 cat conftest.err >&5
22659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest$ac_exeext && {
22664 test "$cross_compiling" = yes ||
22665 $as_test_x conftest$ac_exeext
22666 }; then
22667 ac_cv_lib_krb5_krb5_init_context=yes
22668 else
22669 $as_echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ac_cv_lib_krb5_krb5_init_context=no
22675 rm -rf conftest.dSYM
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677 conftest$ac_exeext conftest.$ac_ext
22678 LIBS=$ac_check_lib_save_LIBS
22680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22681 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22682 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22683 have_krb5=yes
22684 else
22685 have_krb5=no
22688 if test $have_krb5=yes; then
22689 KRB5LIB=-lkrb5
22690 LIBS="$KRB5LIB $LIBS"
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_LIBKRB5 1
22694 _ACEOF
22697 if test "${with_kerberos5}" = no; then
22698 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22699 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22700 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22701 $as_echo_n "(cached) " >&6
22702 else
22703 ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-ldes425 $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h. */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 /* Override any GCC internal prototype to avoid an error.
22713 Use char because int might match the return type of a GCC
22714 builtin and then its argument prototype would still apply. */
22715 #ifdef __cplusplus
22716 extern "C"
22717 #endif
22718 char des_cbc_encrypt ();
22720 main ()
22722 return des_cbc_encrypt ();
22724 return 0;
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732 esac
22733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22734 $as_echo "$ac_try_echo") >&5
22735 (eval "$ac_link") 2>conftest.er1
22736 ac_status=$?
22737 grep -v '^ *+' conftest.er1 >conftest.err
22738 rm -f conftest.er1
22739 cat conftest.err >&5
22740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest$ac_exeext && {
22745 test "$cross_compiling" = yes ||
22746 $as_test_x conftest$ac_exeext
22747 }; then
22748 ac_cv_lib_des425_des_cbc_encrypt=yes
22749 else
22750 $as_echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 ac_cv_lib_des425_des_cbc_encrypt=no
22756 rm -rf conftest.dSYM
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758 conftest$ac_exeext conftest.$ac_ext
22759 LIBS=$ac_check_lib_save_LIBS
22761 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22762 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22763 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22764 have_des425=yes
22765 else
22766 have_des425=no
22769 if test $have_des425 = yes; then
22770 DESLIB=-ldes425
22771 LIBS="$DESLIB $LIBS"
22773 cat >>confdefs.h <<\_ACEOF
22774 #define HAVE_LIBDES425 1
22775 _ACEOF
22777 else
22778 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22779 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22780 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22781 $as_echo_n "(cached) " >&6
22782 else
22783 ac_check_lib_save_LIBS=$LIBS
22784 LIBS="-ldes $LIBS"
22785 cat >conftest.$ac_ext <<_ACEOF
22786 /* confdefs.h. */
22787 _ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h. */
22792 /* Override any GCC internal prototype to avoid an error.
22793 Use char because int might match the return type of a GCC
22794 builtin and then its argument prototype would still apply. */
22795 #ifdef __cplusplus
22796 extern "C"
22797 #endif
22798 char des_cbc_encrypt ();
22800 main ()
22802 return des_cbc_encrypt ();
22804 return 0;
22806 _ACEOF
22807 rm -f conftest.$ac_objext conftest$ac_exeext
22808 if { (ac_try="$ac_link"
22809 case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22812 esac
22813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22814 $as_echo "$ac_try_echo") >&5
22815 (eval "$ac_link") 2>conftest.er1
22816 ac_status=$?
22817 grep -v '^ *+' conftest.er1 >conftest.err
22818 rm -f conftest.er1
22819 cat conftest.err >&5
22820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest$ac_exeext && {
22825 test "$cross_compiling" = yes ||
22826 $as_test_x conftest$ac_exeext
22827 }; then
22828 ac_cv_lib_des_des_cbc_encrypt=yes
22829 else
22830 $as_echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ac_cv_lib_des_des_cbc_encrypt=no
22836 rm -rf conftest.dSYM
22837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22838 conftest$ac_exeext conftest.$ac_ext
22839 LIBS=$ac_check_lib_save_LIBS
22841 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22842 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22843 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22844 have_des=yes
22845 else
22846 have_des=no
22849 if test $have_des = yes; then
22850 DESLIB=-ldes
22851 LIBS="$DESLIB $LIBS"
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_LIBDES 1
22855 _ACEOF
22859 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22860 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22861 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22862 $as_echo_n "(cached) " >&6
22863 else
22864 ac_check_lib_save_LIBS=$LIBS
22865 LIBS="-lkrb4 $LIBS"
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h. */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22873 /* Override any GCC internal prototype to avoid an error.
22874 Use char because int might match the return type of a GCC
22875 builtin and then its argument prototype would still apply. */
22876 #ifdef __cplusplus
22877 extern "C"
22878 #endif
22879 char krb_get_cred ();
22881 main ()
22883 return krb_get_cred ();
22885 return 0;
22887 _ACEOF
22888 rm -f conftest.$ac_objext conftest$ac_exeext
22889 if { (ac_try="$ac_link"
22890 case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22893 esac
22894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22895 $as_echo "$ac_try_echo") >&5
22896 (eval "$ac_link") 2>conftest.er1
22897 ac_status=$?
22898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
22901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } && {
22903 test -z "$ac_c_werror_flag" ||
22904 test ! -s conftest.err
22905 } && test -s conftest$ac_exeext && {
22906 test "$cross_compiling" = yes ||
22907 $as_test_x conftest$ac_exeext
22908 }; then
22909 ac_cv_lib_krb4_krb_get_cred=yes
22910 else
22911 $as_echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 ac_cv_lib_krb4_krb_get_cred=no
22917 rm -rf conftest.dSYM
22918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22919 conftest$ac_exeext conftest.$ac_ext
22920 LIBS=$ac_check_lib_save_LIBS
22922 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22923 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22924 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22925 have_krb4=yes
22926 else
22927 have_krb4=no
22930 if test $have_krb4 = yes; then
22931 KRB4LIB=-lkrb4
22932 LIBS="$KRB4LIB $LIBS"
22934 cat >>confdefs.h <<\_ACEOF
22935 #define HAVE_LIBKRB4 1
22936 _ACEOF
22938 else
22939 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22940 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22941 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22942 $as_echo_n "(cached) " >&6
22943 else
22944 ac_check_lib_save_LIBS=$LIBS
22945 LIBS="-lkrb $LIBS"
22946 cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h. */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22953 /* Override any GCC internal prototype to avoid an error.
22954 Use char because int might match the return type of a GCC
22955 builtin and then its argument prototype would still apply. */
22956 #ifdef __cplusplus
22957 extern "C"
22958 #endif
22959 char krb_get_cred ();
22961 main ()
22963 return krb_get_cred ();
22965 return 0;
22967 _ACEOF
22968 rm -f conftest.$ac_objext conftest$ac_exeext
22969 if { (ac_try="$ac_link"
22970 case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22973 esac
22974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22975 $as_echo "$ac_try_echo") >&5
22976 (eval "$ac_link") 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest$ac_exeext && {
22986 test "$cross_compiling" = yes ||
22987 $as_test_x conftest$ac_exeext
22988 }; then
22989 ac_cv_lib_krb_krb_get_cred=yes
22990 else
22991 $as_echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 ac_cv_lib_krb_krb_get_cred=no
22997 rm -rf conftest.dSYM
22998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22999 conftest$ac_exeext conftest.$ac_ext
23000 LIBS=$ac_check_lib_save_LIBS
23002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
23003 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23004 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23005 have_krb=yes
23006 else
23007 have_krb=no
23010 if test $have_krb = yes; then
23011 KRB4LIB=-lkrb
23012 LIBS="$KRB4LIB $LIBS"
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_LIBKRB 1
23016 _ACEOF
23022 if test "${with_kerberos5}" != no; then
23024 for ac_header in krb5.h
23026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23029 $as_echo_n "checking for $ac_header... " >&6; }
23030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23031 $as_echo_n "(cached) " >&6
23033 ac_res=`eval 'as_val=${'$as_ac_Header'}
23034 $as_echo "$as_val"'`
23035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23036 $as_echo "$ac_res" >&6; }
23037 else
23038 # Is the header compilable?
23039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23040 $as_echo_n "checking $ac_header usability... " >&6; }
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h. */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 $ac_includes_default
23048 #include <$ac_header>
23049 _ACEOF
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23055 esac
23056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23057 $as_echo "$ac_try_echo") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23059 ac_status=$?
23060 grep -v '^ *+' conftest.er1 >conftest.err
23061 rm -f conftest.er1
23062 cat conftest.err >&5
23063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.$ac_objext; then
23068 ac_header_compiler=yes
23069 else
23070 $as_echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 ac_header_compiler=no
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23078 $as_echo "$ac_header_compiler" >&6; }
23080 # Is the header present?
23081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23082 $as_echo_n "checking $ac_header presence... " >&6; }
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 #include <$ac_header>
23090 _ACEOF
23091 if { (ac_try="$ac_cpp conftest.$ac_ext"
23092 case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23095 esac
23096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23097 $as_echo "$ac_try_echo") >&5
23098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } >/dev/null && {
23105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 }; then
23108 ac_header_preproc=yes
23109 else
23110 $as_echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_header_preproc=no
23116 rm -f conftest.err conftest.$ac_ext
23117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23118 $as_echo "$ac_header_preproc" >&6; }
23120 # So? What about this header?
23121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23122 yes:no: )
23123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23127 ac_header_preproc=yes
23129 no:yes:* )
23130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23144 esac
23145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23146 $as_echo_n "checking for $ac_header... " >&6; }
23147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23148 $as_echo_n "(cached) " >&6
23149 else
23150 eval "$as_ac_Header=\$ac_header_preproc"
23152 ac_res=`eval 'as_val=${'$as_ac_Header'}
23153 $as_echo "$as_val"'`
23154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23155 $as_echo "$ac_res" >&6; }
23158 if test `eval 'as_val=${'$as_ac_Header'}
23159 $as_echo "$as_val"'` = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23162 _ACEOF
23163 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23164 $as_echo_n "checking for krb5_error.text... " >&6; }
23165 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23166 $as_echo_n "(cached) " >&6
23167 else
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h. */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 #include <krb5.h>
23177 main ()
23179 static krb5_error ac_aggr;
23180 if (ac_aggr.text)
23181 return 0;
23183 return 0;
23185 _ACEOF
23186 rm -f conftest.$ac_objext
23187 if { (ac_try="$ac_compile"
23188 case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23191 esac
23192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23193 $as_echo "$ac_try_echo") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest.$ac_objext; then
23204 ac_cv_member_krb5_error_text=yes
23205 else
23206 $as_echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23209 cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h. */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 #include <krb5.h>
23218 main ()
23220 static krb5_error ac_aggr;
23221 if (sizeof ac_aggr.text)
23222 return 0;
23224 return 0;
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23232 esac
23233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23234 $as_echo "$ac_try_echo") >&5
23235 (eval "$ac_compile") 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && {
23242 test -z "$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 } && test -s conftest.$ac_objext; then
23245 ac_cv_member_krb5_error_text=yes
23246 else
23247 $as_echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23250 ac_cv_member_krb5_error_text=no
23253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23259 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23260 if test $ac_cv_member_krb5_error_text = yes; then
23262 cat >>confdefs.h <<_ACEOF
23263 #define HAVE_KRB5_ERROR_TEXT 1
23264 _ACEOF
23268 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23269 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23270 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23271 $as_echo_n "(cached) " >&6
23272 else
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h. */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 #include <krb5.h>
23282 main ()
23284 static krb5_error ac_aggr;
23285 if (ac_aggr.e_text)
23286 return 0;
23288 return 0;
23290 _ACEOF
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23296 esac
23297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23298 $as_echo "$ac_try_echo") >&5
23299 (eval "$ac_compile") 2>conftest.er1
23300 ac_status=$?
23301 grep -v '^ *+' conftest.er1 >conftest.err
23302 rm -f conftest.er1
23303 cat conftest.err >&5
23304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } && {
23306 test -z "$ac_c_werror_flag" ||
23307 test ! -s conftest.err
23308 } && test -s conftest.$ac_objext; then
23309 ac_cv_member_krb5_error_e_text=yes
23310 else
23311 $as_echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 #include <krb5.h>
23323 main ()
23325 static krb5_error ac_aggr;
23326 if (sizeof ac_aggr.e_text)
23327 return 0;
23329 return 0;
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23337 esac
23338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23339 $as_echo "$ac_try_echo") >&5
23340 (eval "$ac_compile") 2>conftest.er1
23341 ac_status=$?
23342 grep -v '^ *+' conftest.er1 >conftest.err
23343 rm -f conftest.er1
23344 cat conftest.err >&5
23345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest.$ac_objext; then
23350 ac_cv_member_krb5_error_e_text=yes
23351 else
23352 $as_echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_cv_member_krb5_error_e_text=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23364 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23365 if test $ac_cv_member_krb5_error_e_text = yes; then
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_KRB5_ERROR_E_TEXT 1
23369 _ACEOF
23376 done
23378 else
23380 for ac_header in des.h
23382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23385 $as_echo_n "checking for $ac_header... " >&6; }
23386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23387 $as_echo_n "(cached) " >&6
23389 ac_res=`eval 'as_val=${'$as_ac_Header'}
23390 $as_echo "$as_val"'`
23391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23392 $as_echo "$ac_res" >&6; }
23393 else
23394 # Is the header compilable?
23395 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23396 $as_echo_n "checking $ac_header usability... " >&6; }
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h. */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 $ac_includes_default
23404 #include <$ac_header>
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23411 esac
23412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23413 $as_echo "$ac_try_echo") >&5
23414 (eval "$ac_compile") 2>conftest.er1
23415 ac_status=$?
23416 grep -v '^ *+' conftest.er1 >conftest.err
23417 rm -f conftest.er1
23418 cat conftest.err >&5
23419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && {
23421 test -z "$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 } && test -s conftest.$ac_objext; then
23424 ac_header_compiler=yes
23425 else
23426 $as_echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ac_header_compiler=no
23432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23433 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23434 $as_echo "$ac_header_compiler" >&6; }
23436 # Is the header present?
23437 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23438 $as_echo_n "checking $ac_header presence... " >&6; }
23439 cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h. */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 #include <$ac_header>
23446 _ACEOF
23447 if { (ac_try="$ac_cpp conftest.$ac_ext"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451 esac
23452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23453 $as_echo "$ac_try_echo") >&5
23454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } >/dev/null && {
23461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 }; then
23464 ac_header_preproc=yes
23465 else
23466 $as_echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 ac_header_preproc=no
23472 rm -f conftest.err conftest.$ac_ext
23473 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23474 $as_echo "$ac_header_preproc" >&6; }
23476 # So? What about this header?
23477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23478 yes:no: )
23479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23480 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23483 ac_header_preproc=yes
23485 no:yes:* )
23486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23487 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23489 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23491 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23493 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23497 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23500 esac
23501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23502 $as_echo_n "checking for $ac_header... " >&6; }
23503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23504 $as_echo_n "(cached) " >&6
23505 else
23506 eval "$as_ac_Header=\$ac_header_preproc"
23508 ac_res=`eval 'as_val=${'$as_ac_Header'}
23509 $as_echo "$as_val"'`
23510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23511 $as_echo "$ac_res" >&6; }
23514 if test `eval 'as_val=${'$as_ac_Header'}
23515 $as_echo "$as_val"'` = yes; then
23516 cat >>confdefs.h <<_ACEOF
23517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23518 _ACEOF
23520 else
23522 for ac_header in kerberosIV/des.h
23524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23526 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23527 $as_echo_n "checking for $ac_header... " >&6; }
23528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23529 $as_echo_n "(cached) " >&6
23531 ac_res=`eval 'as_val=${'$as_ac_Header'}
23532 $as_echo "$as_val"'`
23533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23534 $as_echo "$ac_res" >&6; }
23535 else
23536 # Is the header compilable?
23537 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23538 $as_echo_n "checking $ac_header usability... " >&6; }
23539 cat >conftest.$ac_ext <<_ACEOF
23540 /* confdefs.h. */
23541 _ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23545 $ac_includes_default
23546 #include <$ac_header>
23547 _ACEOF
23548 rm -f conftest.$ac_objext
23549 if { (ac_try="$ac_compile"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23553 esac
23554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23555 $as_echo "$ac_try_echo") >&5
23556 (eval "$ac_compile") 2>conftest.er1
23557 ac_status=$?
23558 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1
23560 cat conftest.err >&5
23561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } && {
23563 test -z "$ac_c_werror_flag" ||
23564 test ! -s conftest.err
23565 } && test -s conftest.$ac_objext; then
23566 ac_header_compiler=yes
23567 else
23568 $as_echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 ac_header_compiler=no
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23576 $as_echo "$ac_header_compiler" >&6; }
23578 # Is the header present?
23579 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23580 $as_echo_n "checking $ac_header presence... " >&6; }
23581 cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h. */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23587 #include <$ac_header>
23588 _ACEOF
23589 if { (ac_try="$ac_cpp conftest.$ac_ext"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23593 esac
23594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23595 $as_echo "$ac_try_echo") >&5
23596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23597 ac_status=$?
23598 grep -v '^ *+' conftest.er1 >conftest.err
23599 rm -f conftest.er1
23600 cat conftest.err >&5
23601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } >/dev/null && {
23603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23604 test ! -s conftest.err
23605 }; then
23606 ac_header_preproc=yes
23607 else
23608 $as_echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23611 ac_header_preproc=no
23614 rm -f conftest.err conftest.$ac_ext
23615 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23616 $as_echo "$ac_header_preproc" >&6; }
23618 # So? What about this header?
23619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23620 yes:no: )
23621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23622 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23624 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23625 ac_header_preproc=yes
23627 no:yes:* )
23628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23629 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23631 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23633 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23635 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23639 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23642 esac
23643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23644 $as_echo_n "checking for $ac_header... " >&6; }
23645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23646 $as_echo_n "(cached) " >&6
23647 else
23648 eval "$as_ac_Header=\$ac_header_preproc"
23650 ac_res=`eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'`
23652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23653 $as_echo "$ac_res" >&6; }
23656 if test `eval 'as_val=${'$as_ac_Header'}
23657 $as_echo "$as_val"'` = yes; then
23658 cat >>confdefs.h <<_ACEOF
23659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23660 _ACEOF
23662 else
23664 for ac_header in kerberos/des.h
23666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23669 $as_echo_n "checking for $ac_header... " >&6; }
23670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23671 $as_echo_n "(cached) " >&6
23673 ac_res=`eval 'as_val=${'$as_ac_Header'}
23674 $as_echo "$as_val"'`
23675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23676 $as_echo "$ac_res" >&6; }
23677 else
23678 # Is the header compilable?
23679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23680 $as_echo_n "checking $ac_header usability... " >&6; }
23681 cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h. */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 $ac_includes_default
23688 #include <$ac_header>
23689 _ACEOF
23690 rm -f conftest.$ac_objext
23691 if { (ac_try="$ac_compile"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695 esac
23696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23697 $as_echo "$ac_try_echo") >&5
23698 (eval "$ac_compile") 2>conftest.er1
23699 ac_status=$?
23700 grep -v '^ *+' conftest.er1 >conftest.err
23701 rm -f conftest.er1
23702 cat conftest.err >&5
23703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && {
23705 test -z "$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 } && test -s conftest.$ac_objext; then
23708 ac_header_compiler=yes
23709 else
23710 $as_echo "$as_me: failed program was:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23713 ac_header_compiler=no
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23718 $as_echo "$ac_header_compiler" >&6; }
23720 # Is the header present?
23721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23722 $as_echo_n "checking $ac_header presence... " >&6; }
23723 cat >conftest.$ac_ext <<_ACEOF
23724 /* confdefs.h. */
23725 _ACEOF
23726 cat confdefs.h >>conftest.$ac_ext
23727 cat >>conftest.$ac_ext <<_ACEOF
23728 /* end confdefs.h. */
23729 #include <$ac_header>
23730 _ACEOF
23731 if { (ac_try="$ac_cpp conftest.$ac_ext"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23735 esac
23736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23737 $as_echo "$ac_try_echo") >&5
23738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23739 ac_status=$?
23740 grep -v '^ *+' conftest.er1 >conftest.err
23741 rm -f conftest.er1
23742 cat conftest.err >&5
23743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } >/dev/null && {
23745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 }; then
23748 ac_header_preproc=yes
23749 else
23750 $as_echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 ac_header_preproc=no
23756 rm -f conftest.err conftest.$ac_ext
23757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23758 $as_echo "$ac_header_preproc" >&6; }
23760 # So? What about this header?
23761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23762 yes:no: )
23763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23767 ac_header_preproc=yes
23769 no:yes:* )
23770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23784 esac
23785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23786 $as_echo_n "checking for $ac_header... " >&6; }
23787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23788 $as_echo_n "(cached) " >&6
23789 else
23790 eval "$as_ac_Header=\$ac_header_preproc"
23792 ac_res=`eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'`
23794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23795 $as_echo "$ac_res" >&6; }
23798 if test `eval 'as_val=${'$as_ac_Header'}
23799 $as_echo "$as_val"'` = yes; then
23800 cat >>confdefs.h <<_ACEOF
23801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23802 _ACEOF
23806 done
23810 done
23814 done
23817 for ac_header in krb.h
23819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23822 $as_echo_n "checking for $ac_header... " >&6; }
23823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23824 $as_echo_n "(cached) " >&6
23826 ac_res=`eval 'as_val=${'$as_ac_Header'}
23827 $as_echo "$as_val"'`
23828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23829 $as_echo "$ac_res" >&6; }
23830 else
23831 # Is the header compilable?
23832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23833 $as_echo_n "checking $ac_header usability... " >&6; }
23834 cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h. */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23840 $ac_includes_default
23841 #include <$ac_header>
23842 _ACEOF
23843 rm -f conftest.$ac_objext
23844 if { (ac_try="$ac_compile"
23845 case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23848 esac
23849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23850 $as_echo "$ac_try_echo") >&5
23851 (eval "$ac_compile") 2>conftest.er1
23852 ac_status=$?
23853 grep -v '^ *+' conftest.er1 >conftest.err
23854 rm -f conftest.er1
23855 cat conftest.err >&5
23856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest.$ac_objext; then
23861 ac_header_compiler=yes
23862 else
23863 $as_echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 ac_header_compiler=no
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23871 $as_echo "$ac_header_compiler" >&6; }
23873 # Is the header present?
23874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23875 $as_echo_n "checking $ac_header presence... " >&6; }
23876 cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h. */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23882 #include <$ac_header>
23883 _ACEOF
23884 if { (ac_try="$ac_cpp conftest.$ac_ext"
23885 case "(($ac_try" in
23886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887 *) ac_try_echo=$ac_try;;
23888 esac
23889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23890 $as_echo "$ac_try_echo") >&5
23891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23892 ac_status=$?
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
23896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } >/dev/null && {
23898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23900 }; then
23901 ac_header_preproc=yes
23902 else
23903 $as_echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23906 ac_header_preproc=no
23909 rm -f conftest.err conftest.$ac_ext
23910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23911 $as_echo "$ac_header_preproc" >&6; }
23913 # So? What about this header?
23914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23915 yes:no: )
23916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23920 ac_header_preproc=yes
23922 no:yes:* )
23923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23926 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23930 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23937 esac
23938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23939 $as_echo_n "checking for $ac_header... " >&6; }
23940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23941 $as_echo_n "(cached) " >&6
23942 else
23943 eval "$as_ac_Header=\$ac_header_preproc"
23945 ac_res=`eval 'as_val=${'$as_ac_Header'}
23946 $as_echo "$as_val"'`
23947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23948 $as_echo "$ac_res" >&6; }
23951 if test `eval 'as_val=${'$as_ac_Header'}
23952 $as_echo "$as_val"'` = yes; then
23953 cat >>confdefs.h <<_ACEOF
23954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23955 _ACEOF
23957 else
23959 for ac_header in kerberosIV/krb.h
23961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23964 $as_echo_n "checking for $ac_header... " >&6; }
23965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23966 $as_echo_n "(cached) " >&6
23968 ac_res=`eval 'as_val=${'$as_ac_Header'}
23969 $as_echo "$as_val"'`
23970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23971 $as_echo "$ac_res" >&6; }
23972 else
23973 # Is the header compilable?
23974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23975 $as_echo_n "checking $ac_header usability... " >&6; }
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h. */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 $ac_includes_default
23983 #include <$ac_header>
23984 _ACEOF
23985 rm -f conftest.$ac_objext
23986 if { (ac_try="$ac_compile"
23987 case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23990 esac
23991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23992 $as_echo "$ac_try_echo") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 ac_header_compiler=yes
24004 else
24005 $as_echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24008 ac_header_compiler=no
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24013 $as_echo "$ac_header_compiler" >&6; }
24015 # Is the header present?
24016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24017 $as_echo_n "checking $ac_header presence... " >&6; }
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 #include <$ac_header>
24025 _ACEOF
24026 if { (ac_try="$ac_cpp conftest.$ac_ext"
24027 case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24030 esac
24031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24032 $as_echo "$ac_try_echo") >&5
24033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24034 ac_status=$?
24035 grep -v '^ *+' conftest.er1 >conftest.err
24036 rm -f conftest.er1
24037 cat conftest.err >&5
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } >/dev/null && {
24040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24042 }; then
24043 ac_header_preproc=yes
24044 else
24045 $as_echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ac_header_preproc=no
24051 rm -f conftest.err conftest.$ac_ext
24052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24053 $as_echo "$ac_header_preproc" >&6; }
24055 # So? What about this header?
24056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24057 yes:no: )
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24062 ac_header_preproc=yes
24064 no:yes:* )
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24079 esac
24080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24081 $as_echo_n "checking for $ac_header... " >&6; }
24082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24083 $as_echo_n "(cached) " >&6
24084 else
24085 eval "$as_ac_Header=\$ac_header_preproc"
24087 ac_res=`eval 'as_val=${'$as_ac_Header'}
24088 $as_echo "$as_val"'`
24089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24090 $as_echo "$ac_res" >&6; }
24093 if test `eval 'as_val=${'$as_ac_Header'}
24094 $as_echo "$as_val"'` = yes; then
24095 cat >>confdefs.h <<_ACEOF
24096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24097 _ACEOF
24099 else
24101 for ac_header in kerberos/krb.h
24103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24106 $as_echo_n "checking for $ac_header... " >&6; }
24107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24108 $as_echo_n "(cached) " >&6
24110 ac_res=`eval 'as_val=${'$as_ac_Header'}
24111 $as_echo "$as_val"'`
24112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24113 $as_echo "$ac_res" >&6; }
24114 else
24115 # Is the header compilable?
24116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24117 $as_echo_n "checking $ac_header usability... " >&6; }
24118 cat >conftest.$ac_ext <<_ACEOF
24119 /* confdefs.h. */
24120 _ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h. */
24124 $ac_includes_default
24125 #include <$ac_header>
24126 _ACEOF
24127 rm -f conftest.$ac_objext
24128 if { (ac_try="$ac_compile"
24129 case "(($ac_try" in
24130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131 *) ac_try_echo=$ac_try;;
24132 esac
24133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24134 $as_echo "$ac_try_echo") >&5
24135 (eval "$ac_compile") 2>conftest.er1
24136 ac_status=$?
24137 grep -v '^ *+' conftest.er1 >conftest.err
24138 rm -f conftest.er1
24139 cat conftest.err >&5
24140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } && {
24142 test -z "$ac_c_werror_flag" ||
24143 test ! -s conftest.err
24144 } && test -s conftest.$ac_objext; then
24145 ac_header_compiler=yes
24146 else
24147 $as_echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ac_header_compiler=no
24153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24155 $as_echo "$ac_header_compiler" >&6; }
24157 # Is the header present?
24158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24159 $as_echo_n "checking $ac_header presence... " >&6; }
24160 cat >conftest.$ac_ext <<_ACEOF
24161 /* confdefs.h. */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h. */
24166 #include <$ac_header>
24167 _ACEOF
24168 if { (ac_try="$ac_cpp conftest.$ac_ext"
24169 case "(($ac_try" in
24170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24171 *) ac_try_echo=$ac_try;;
24172 esac
24173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24174 $as_echo "$ac_try_echo") >&5
24175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24176 ac_status=$?
24177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
24180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } >/dev/null && {
24182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 }; then
24185 ac_header_preproc=yes
24186 else
24187 $as_echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ac_header_preproc=no
24193 rm -f conftest.err conftest.$ac_ext
24194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24195 $as_echo "$ac_header_preproc" >&6; }
24197 # So? What about this header?
24198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24199 yes:no: )
24200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24204 ac_header_preproc=yes
24206 no:yes:* )
24207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24221 esac
24222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24223 $as_echo_n "checking for $ac_header... " >&6; }
24224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24225 $as_echo_n "(cached) " >&6
24226 else
24227 eval "$as_ac_Header=\$ac_header_preproc"
24229 ac_res=`eval 'as_val=${'$as_ac_Header'}
24230 $as_echo "$as_val"'`
24231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24232 $as_echo "$ac_res" >&6; }
24235 if test `eval 'as_val=${'$as_ac_Header'}
24236 $as_echo "$as_val"'` = yes; then
24237 cat >>confdefs.h <<_ACEOF
24238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24239 _ACEOF
24243 done
24247 done
24251 done
24255 for ac_header in com_err.h
24257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24260 $as_echo_n "checking for $ac_header... " >&6; }
24261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24262 $as_echo_n "(cached) " >&6
24264 ac_res=`eval 'as_val=${'$as_ac_Header'}
24265 $as_echo "$as_val"'`
24266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24267 $as_echo "$ac_res" >&6; }
24268 else
24269 # Is the header compilable?
24270 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24271 $as_echo_n "checking $ac_header usability... " >&6; }
24272 cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h. */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 $ac_includes_default
24279 #include <$ac_header>
24280 _ACEOF
24281 rm -f conftest.$ac_objext
24282 if { (ac_try="$ac_compile"
24283 case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24286 esac
24287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24288 $as_echo "$ac_try_echo") >&5
24289 (eval "$ac_compile") 2>conftest.er1
24290 ac_status=$?
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
24294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest.$ac_objext; then
24299 ac_header_compiler=yes
24300 else
24301 $as_echo "$as_me: failed program was:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24304 ac_header_compiler=no
24307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24308 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24309 $as_echo "$ac_header_compiler" >&6; }
24311 # Is the header present?
24312 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24313 $as_echo_n "checking $ac_header presence... " >&6; }
24314 cat >conftest.$ac_ext <<_ACEOF
24315 /* confdefs.h. */
24316 _ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 #include <$ac_header>
24321 _ACEOF
24322 if { (ac_try="$ac_cpp conftest.$ac_ext"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24326 esac
24327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24328 $as_echo "$ac_try_echo") >&5
24329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24330 ac_status=$?
24331 grep -v '^ *+' conftest.er1 >conftest.err
24332 rm -f conftest.er1
24333 cat conftest.err >&5
24334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } >/dev/null && {
24336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24337 test ! -s conftest.err
24338 }; then
24339 ac_header_preproc=yes
24340 else
24341 $as_echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24344 ac_header_preproc=no
24347 rm -f conftest.err conftest.$ac_ext
24348 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24349 $as_echo "$ac_header_preproc" >&6; }
24351 # So? What about this header?
24352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24353 yes:no: )
24354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24355 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24358 ac_header_preproc=yes
24360 no:yes:* )
24361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24362 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24364 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24366 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24368 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24372 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24375 esac
24376 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24377 $as_echo_n "checking for $ac_header... " >&6; }
24378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24379 $as_echo_n "(cached) " >&6
24380 else
24381 eval "$as_ac_Header=\$ac_header_preproc"
24383 ac_res=`eval 'as_val=${'$as_ac_Header'}
24384 $as_echo "$as_val"'`
24385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24386 $as_echo "$ac_res" >&6; }
24389 if test `eval 'as_val=${'$as_ac_Header'}
24390 $as_echo "$as_val"'` = yes; then
24391 cat >>confdefs.h <<_ACEOF
24392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24393 _ACEOF
24397 done
24407 # Solaris requires -lintl if you want strerror (which calls dgettext)
24408 # to return localized messages.
24410 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24411 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24412 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24413 $as_echo_n "(cached) " >&6
24414 else
24415 ac_check_lib_save_LIBS=$LIBS
24416 LIBS="-lintl $LIBS"
24417 cat >conftest.$ac_ext <<_ACEOF
24418 /* confdefs.h. */
24419 _ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h. */
24424 /* Override any GCC internal prototype to avoid an error.
24425 Use char because int might match the return type of a GCC
24426 builtin and then its argument prototype would still apply. */
24427 #ifdef __cplusplus
24428 extern "C"
24429 #endif
24430 char dgettext ();
24432 main ()
24434 return dgettext ();
24436 return 0;
24438 _ACEOF
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24444 esac
24445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24446 $as_echo "$ac_try_echo") >&5
24447 (eval "$ac_link") 2>conftest.er1
24448 ac_status=$?
24449 grep -v '^ *+' conftest.er1 >conftest.err
24450 rm -f conftest.er1
24451 cat conftest.err >&5
24452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest$ac_exeext && {
24457 test "$cross_compiling" = yes ||
24458 $as_test_x conftest$ac_exeext
24459 }; then
24460 ac_cv_lib_intl_dgettext=yes
24461 else
24462 $as_echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24465 ac_cv_lib_intl_dgettext=no
24468 rm -rf conftest.dSYM
24469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24470 conftest$ac_exeext conftest.$ac_ext
24471 LIBS=$ac_check_lib_save_LIBS
24473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24474 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24475 if test $ac_cv_lib_intl_dgettext = yes; then
24476 cat >>confdefs.h <<_ACEOF
24477 #define HAVE_LIBINTL 1
24478 _ACEOF
24480 LIBS="-lintl $LIBS"
24485 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24486 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24487 if test "${emacs_cv_localtime_cache+set}" = set; then
24488 $as_echo_n "(cached) " >&6
24489 else
24490 if test x$ac_cv_func_tzset = xyes; then
24491 if test "$cross_compiling" = yes; then
24492 # If we have tzset, assume the worst when cross-compiling.
24493 emacs_cv_localtime_cache=yes
24494 else
24495 cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h. */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 #include <time.h>
24502 extern char **environ;
24503 unset_TZ ()
24505 char **from, **to;
24506 for (to = from = environ; (*to = *from); from++)
24507 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24508 to++;
24510 char TZ_GMT0[] = "TZ=GMT0";
24511 char TZ_PST8[] = "TZ=PST8";
24512 main()
24514 time_t now = time ((time_t *) 0);
24515 int hour_GMT0, hour_unset;
24516 if (putenv (TZ_GMT0) != 0)
24517 exit (1);
24518 hour_GMT0 = localtime (&now)->tm_hour;
24519 unset_TZ ();
24520 hour_unset = localtime (&now)->tm_hour;
24521 if (putenv (TZ_PST8) != 0)
24522 exit (1);
24523 if (localtime (&now)->tm_hour == hour_GMT0)
24524 exit (1);
24525 unset_TZ ();
24526 if (localtime (&now)->tm_hour != hour_unset)
24527 exit (1);
24528 exit (0);
24530 _ACEOF
24531 rm -f conftest$ac_exeext
24532 if { (ac_try="$ac_link"
24533 case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24536 esac
24537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24538 $as_echo "$ac_try_echo") >&5
24539 (eval "$ac_link") 2>&5
24540 ac_status=$?
24541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24543 { (case "(($ac_try" in
24544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545 *) ac_try_echo=$ac_try;;
24546 esac
24547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24548 $as_echo "$ac_try_echo") >&5
24549 (eval "$ac_try") 2>&5
24550 ac_status=$?
24551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 emacs_cv_localtime_cache=no
24554 else
24555 $as_echo "$as_me: program exited with status $ac_status" >&5
24556 $as_echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24559 ( exit $ac_status )
24560 emacs_cv_localtime_cache=yes
24562 rm -rf conftest.dSYM
24563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24567 else
24568 # If we lack tzset, report that localtime does not cache TZ,
24569 # since we can't invalidate the cache if we don't have tzset.
24570 emacs_cv_localtime_cache=no
24573 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24574 $as_echo "$emacs_cv_localtime_cache" >&6; }
24575 if test $emacs_cv_localtime_cache = yes; then
24577 cat >>confdefs.h <<\_ACEOF
24578 #define LOCALTIME_CACHE 1
24579 _ACEOF
24583 if test "x$HAVE_TIMEVAL" = xyes; then
24585 for ac_func in gettimeofday
24587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24589 $as_echo_n "checking for $ac_func... " >&6; }
24590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24591 $as_echo_n "(cached) " >&6
24592 else
24593 cat >conftest.$ac_ext <<_ACEOF
24594 /* confdefs.h. */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h. */
24599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24601 #define $ac_func innocuous_$ac_func
24603 /* System header to define __stub macros and hopefully few prototypes,
24604 which can conflict with char $ac_func (); below.
24605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24606 <limits.h> exists even on freestanding compilers. */
24608 #ifdef __STDC__
24609 # include <limits.h>
24610 #else
24611 # include <assert.h>
24612 #endif
24614 #undef $ac_func
24616 /* Override any GCC internal prototype to avoid an error.
24617 Use char because int might match the return type of a GCC
24618 builtin and then its argument prototype would still apply. */
24619 #ifdef __cplusplus
24620 extern "C"
24621 #endif
24622 char $ac_func ();
24623 /* The GNU C library defines this for functions which it implements
24624 to always fail with ENOSYS. Some functions are actually named
24625 something starting with __ and the normal name is an alias. */
24626 #if defined __stub_$ac_func || defined __stub___$ac_func
24627 choke me
24628 #endif
24631 main ()
24633 return $ac_func ();
24635 return 0;
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24643 esac
24644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24645 $as_echo "$ac_try_echo") >&5
24646 (eval "$ac_link") 2>conftest.er1
24647 ac_status=$?
24648 grep -v '^ *+' conftest.er1 >conftest.err
24649 rm -f conftest.er1
24650 cat conftest.err >&5
24651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest$ac_exeext && {
24656 test "$cross_compiling" = yes ||
24657 $as_test_x conftest$ac_exeext
24658 }; then
24659 eval "$as_ac_var=yes"
24660 else
24661 $as_echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24664 eval "$as_ac_var=no"
24667 rm -rf conftest.dSYM
24668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24669 conftest$ac_exeext conftest.$ac_ext
24671 ac_res=`eval 'as_val=${'$as_ac_var'}
24672 $as_echo "$as_val"'`
24673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24674 $as_echo "$ac_res" >&6; }
24675 if test `eval 'as_val=${'$as_ac_var'}
24676 $as_echo "$as_val"'` = yes; then
24677 cat >>confdefs.h <<_ACEOF
24678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24679 _ACEOF
24682 done
24684 if test $ac_cv_func_gettimeofday = yes; then
24685 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24686 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24687 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24688 $as_echo_n "(cached) " >&6
24689 else
24690 cat >conftest.$ac_ext <<_ACEOF
24691 /* confdefs.h. */
24692 _ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24697 #ifdef TIME_WITH_SYS_TIME
24698 #include <sys/time.h>
24699 #include <time.h>
24700 #else
24701 #ifdef HAVE_SYS_TIME_H
24702 #include <sys/time.h>
24703 #else
24704 #include <time.h>
24705 #endif
24706 #endif
24708 main ()
24710 struct timeval time;
24711 gettimeofday (&time, 0);
24713 return 0;
24715 _ACEOF
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24721 esac
24722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24723 $as_echo "$ac_try_echo") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24725 ac_status=$?
24726 grep -v '^ *+' conftest.er1 >conftest.err
24727 rm -f conftest.er1
24728 cat conftest.err >&5
24729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24734 emacs_cv_gettimeofday_two_arguments=yes
24735 else
24736 $as_echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 emacs_cv_gettimeofday_two_arguments=no
24742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24744 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24745 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24746 if test $emacs_cv_gettimeofday_two_arguments = no; then
24748 cat >>confdefs.h <<\_ACEOF
24749 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24750 _ACEOF
24756 ok_so_far=yes
24757 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24758 $as_echo_n "checking for socket... " >&6; }
24759 if test "${ac_cv_func_socket+set}" = set; then
24760 $as_echo_n "(cached) " >&6
24761 else
24762 cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h. */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24770 #define socket innocuous_socket
24772 /* System header to define __stub macros and hopefully few prototypes,
24773 which can conflict with char socket (); below.
24774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24775 <limits.h> exists even on freestanding compilers. */
24777 #ifdef __STDC__
24778 # include <limits.h>
24779 #else
24780 # include <assert.h>
24781 #endif
24783 #undef socket
24785 /* Override any GCC internal prototype to avoid an error.
24786 Use char because int might match the return type of a GCC
24787 builtin and then its argument prototype would still apply. */
24788 #ifdef __cplusplus
24789 extern "C"
24790 #endif
24791 char socket ();
24792 /* The GNU C library defines this for functions which it implements
24793 to always fail with ENOSYS. Some functions are actually named
24794 something starting with __ and the normal name is an alias. */
24795 #if defined __stub_socket || defined __stub___socket
24796 choke me
24797 #endif
24800 main ()
24802 return socket ();
24804 return 0;
24806 _ACEOF
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (ac_try="$ac_link"
24809 case "(($ac_try" in
24810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24812 esac
24813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24814 $as_echo "$ac_try_echo") >&5
24815 (eval "$ac_link") 2>conftest.er1
24816 ac_status=$?
24817 grep -v '^ *+' conftest.er1 >conftest.err
24818 rm -f conftest.er1
24819 cat conftest.err >&5
24820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && {
24822 test -z "$ac_c_werror_flag" ||
24823 test ! -s conftest.err
24824 } && test -s conftest$ac_exeext && {
24825 test "$cross_compiling" = yes ||
24826 $as_test_x conftest$ac_exeext
24827 }; then
24828 ac_cv_func_socket=yes
24829 else
24830 $as_echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ac_cv_func_socket=no
24836 rm -rf conftest.dSYM
24837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24838 conftest$ac_exeext conftest.$ac_ext
24840 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24841 $as_echo "$ac_cv_func_socket" >&6; }
24842 if test $ac_cv_func_socket = yes; then
24844 else
24845 ok_so_far=no
24848 if test $ok_so_far = yes; then
24849 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24850 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24851 $as_echo_n "checking for netinet/in.h... " >&6; }
24852 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24853 $as_echo_n "(cached) " >&6
24855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24856 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24857 else
24858 # Is the header compilable?
24859 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24860 $as_echo_n "checking netinet/in.h usability... " >&6; }
24861 cat >conftest.$ac_ext <<_ACEOF
24862 /* confdefs.h. */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24867 $ac_includes_default
24868 #include <netinet/in.h>
24869 _ACEOF
24870 rm -f conftest.$ac_objext
24871 if { (ac_try="$ac_compile"
24872 case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24875 esac
24876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24877 $as_echo "$ac_try_echo") >&5
24878 (eval "$ac_compile") 2>conftest.er1
24879 ac_status=$?
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
24883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } && {
24885 test -z "$ac_c_werror_flag" ||
24886 test ! -s conftest.err
24887 } && test -s conftest.$ac_objext; then
24888 ac_header_compiler=yes
24889 else
24890 $as_echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24893 ac_header_compiler=no
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24898 $as_echo "$ac_header_compiler" >&6; }
24900 # Is the header present?
24901 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24902 $as_echo_n "checking netinet/in.h presence... " >&6; }
24903 cat >conftest.$ac_ext <<_ACEOF
24904 /* confdefs.h. */
24905 _ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h. */
24909 #include <netinet/in.h>
24910 _ACEOF
24911 if { (ac_try="$ac_cpp conftest.$ac_ext"
24912 case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24915 esac
24916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24917 $as_echo "$ac_try_echo") >&5
24918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24919 ac_status=$?
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
24923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } >/dev/null && {
24925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24926 test ! -s conftest.err
24927 }; then
24928 ac_header_preproc=yes
24929 else
24930 $as_echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24933 ac_header_preproc=no
24936 rm -f conftest.err conftest.$ac_ext
24937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24938 $as_echo "$ac_header_preproc" >&6; }
24940 # So? What about this header?
24941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24942 yes:no: )
24943 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24944 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24945 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24946 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24947 ac_header_preproc=yes
24949 no:yes:* )
24950 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24951 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24952 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24953 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24954 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24955 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24956 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24957 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24958 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24959 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24960 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24961 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24964 esac
24965 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24966 $as_echo_n "checking for netinet/in.h... " >&6; }
24967 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24968 $as_echo_n "(cached) " >&6
24969 else
24970 ac_cv_header_netinet_in_h=$ac_header_preproc
24972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24973 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24976 if test $ac_cv_header_netinet_in_h = yes; then
24978 else
24979 ok_so_far=no
24984 if test $ok_so_far = yes; then
24985 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24986 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24987 $as_echo_n "checking for arpa/inet.h... " >&6; }
24988 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24989 $as_echo_n "(cached) " >&6
24991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24992 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24993 else
24994 # Is the header compilable?
24995 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24996 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24997 cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h. */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 $ac_includes_default
25004 #include <arpa/inet.h>
25005 _ACEOF
25006 rm -f conftest.$ac_objext
25007 if { (ac_try="$ac_compile"
25008 case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25011 esac
25012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25013 $as_echo "$ac_try_echo") >&5
25014 (eval "$ac_compile") 2>conftest.er1
25015 ac_status=$?
25016 grep -v '^ *+' conftest.er1 >conftest.err
25017 rm -f conftest.er1
25018 cat conftest.err >&5
25019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } && {
25021 test -z "$ac_c_werror_flag" ||
25022 test ! -s conftest.err
25023 } && test -s conftest.$ac_objext; then
25024 ac_header_compiler=yes
25025 else
25026 $as_echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25029 ac_header_compiler=no
25032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25034 $as_echo "$ac_header_compiler" >&6; }
25036 # Is the header present?
25037 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25038 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25039 cat >conftest.$ac_ext <<_ACEOF
25040 /* confdefs.h. */
25041 _ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25045 #include <arpa/inet.h>
25046 _ACEOF
25047 if { (ac_try="$ac_cpp conftest.$ac_ext"
25048 case "(($ac_try" in
25049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050 *) ac_try_echo=$ac_try;;
25051 esac
25052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25053 $as_echo "$ac_try_echo") >&5
25054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25055 ac_status=$?
25056 grep -v '^ *+' conftest.er1 >conftest.err
25057 rm -f conftest.er1
25058 cat conftest.err >&5
25059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } >/dev/null && {
25061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25062 test ! -s conftest.err
25063 }; then
25064 ac_header_preproc=yes
25065 else
25066 $as_echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25069 ac_header_preproc=no
25072 rm -f conftest.err conftest.$ac_ext
25073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25074 $as_echo "$ac_header_preproc" >&6; }
25076 # So? What about this header?
25077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25078 yes:no: )
25079 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25080 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25081 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25082 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25083 ac_header_preproc=yes
25085 no:yes:* )
25086 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25087 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25088 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25089 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25090 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25091 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25092 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25093 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25094 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25095 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25096 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25097 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25100 esac
25101 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25102 $as_echo_n "checking for arpa/inet.h... " >&6; }
25103 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25104 $as_echo_n "(cached) " >&6
25105 else
25106 ac_cv_header_arpa_inet_h=$ac_header_preproc
25108 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25109 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25112 if test $ac_cv_header_arpa_inet_h = yes; then
25114 else
25115 ok_so_far=no
25120 if test $ok_so_far = yes; then
25122 cat >>confdefs.h <<\_ACEOF
25123 #define HAVE_INET_SOCKETS 1
25124 _ACEOF
25129 for ac_header in sys/ioctl.h
25131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25134 $as_echo_n "checking for $ac_header... " >&6; }
25135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25136 $as_echo_n "(cached) " >&6
25138 ac_res=`eval 'as_val=${'$as_ac_Header'}
25139 $as_echo "$as_val"'`
25140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25141 $as_echo "$ac_res" >&6; }
25142 else
25143 # Is the header compilable?
25144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25145 $as_echo_n "checking $ac_header usability... " >&6; }
25146 cat >conftest.$ac_ext <<_ACEOF
25147 /* confdefs.h. */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h. */
25152 $ac_includes_default
25153 #include <$ac_header>
25154 _ACEOF
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159 *) ac_try_echo=$ac_try;;
25160 esac
25161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25162 $as_echo "$ac_try_echo") >&5
25163 (eval "$ac_compile") 2>conftest.er1
25164 ac_status=$?
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
25168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } && {
25170 test -z "$ac_c_werror_flag" ||
25171 test ! -s conftest.err
25172 } && test -s conftest.$ac_objext; then
25173 ac_header_compiler=yes
25174 else
25175 $as_echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ac_header_compiler=no
25181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25183 $as_echo "$ac_header_compiler" >&6; }
25185 # Is the header present?
25186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25187 $as_echo_n "checking $ac_header presence... " >&6; }
25188 cat >conftest.$ac_ext <<_ACEOF
25189 /* confdefs.h. */
25190 _ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h. */
25194 #include <$ac_header>
25195 _ACEOF
25196 if { (ac_try="$ac_cpp conftest.$ac_ext"
25197 case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25200 esac
25201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25202 $as_echo "$ac_try_echo") >&5
25203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } >/dev/null && {
25210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 }; then
25213 ac_header_preproc=yes
25214 else
25215 $as_echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_header_preproc=no
25221 rm -f conftest.err conftest.$ac_ext
25222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25223 $as_echo "$ac_header_preproc" >&6; }
25225 # So? What about this header?
25226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25227 yes:no: )
25228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25232 ac_header_preproc=yes
25234 no:yes:* )
25235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25238 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25242 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25249 esac
25250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25251 $as_echo_n "checking for $ac_header... " >&6; }
25252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25253 $as_echo_n "(cached) " >&6
25254 else
25255 eval "$as_ac_Header=\$ac_header_preproc"
25257 ac_res=`eval 'as_val=${'$as_ac_Header'}
25258 $as_echo "$as_val"'`
25259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25260 $as_echo "$ac_res" >&6; }
25263 if test `eval 'as_val=${'$as_ac_Header'}
25264 $as_echo "$as_val"'` = yes; then
25265 cat >>confdefs.h <<_ACEOF
25266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25267 _ACEOF
25271 done
25274 if test -f /usr/lpp/X11/bin/smt.exp; then
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_AIX_SMT_EXP 1
25278 _ACEOF
25282 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25283 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25284 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25285 { $as_echo "$as_me:$LINENO: result: yes" >&5
25286 $as_echo "yes" >&6; }
25288 cat >>confdefs.h <<\_ACEOF
25289 #define HAVE_DEV_PTMX 1
25290 _ACEOF
25292 else
25293 { $as_echo "$as_me:$LINENO: result: no" >&5
25294 $as_echo "no" >&6; }
25297 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25298 $as_echo_n "checking for pid_t... " >&6; }
25299 if test "${ac_cv_type_pid_t+set}" = set; then
25300 $as_echo_n "(cached) " >&6
25301 else
25302 ac_cv_type_pid_t=no
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h. */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 $ac_includes_default
25311 main ()
25313 if (sizeof (pid_t))
25314 return 0;
25316 return 0;
25318 _ACEOF
25319 rm -f conftest.$ac_objext
25320 if { (ac_try="$ac_compile"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25324 esac
25325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_compile") 2>conftest.er1
25328 ac_status=$?
25329 grep -v '^ *+' conftest.er1 >conftest.err
25330 rm -f conftest.er1
25331 cat conftest.err >&5
25332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } && {
25334 test -z "$ac_c_werror_flag" ||
25335 test ! -s conftest.err
25336 } && test -s conftest.$ac_objext; then
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h. */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 $ac_includes_default
25345 main ()
25347 if (sizeof ((pid_t)))
25348 return 0;
25350 return 0;
25352 _ACEOF
25353 rm -f conftest.$ac_objext
25354 if { (ac_try="$ac_compile"
25355 case "(($ac_try" in
25356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25358 esac
25359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25360 $as_echo "$ac_try_echo") >&5
25361 (eval "$ac_compile") 2>conftest.er1
25362 ac_status=$?
25363 grep -v '^ *+' conftest.er1 >conftest.err
25364 rm -f conftest.er1
25365 cat conftest.err >&5
25366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); } && {
25368 test -z "$ac_c_werror_flag" ||
25369 test ! -s conftest.err
25370 } && test -s conftest.$ac_objext; then
25372 else
25373 $as_echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25376 ac_cv_type_pid_t=yes
25379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25380 else
25381 $as_echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25390 $as_echo "$ac_cv_type_pid_t" >&6; }
25391 if test $ac_cv_type_pid_t = yes; then
25393 else
25395 cat >>confdefs.h <<_ACEOF
25396 #define pid_t int
25397 _ACEOF
25402 for ac_header in vfork.h
25404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25406 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25407 $as_echo_n "checking for $ac_header... " >&6; }
25408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25409 $as_echo_n "(cached) " >&6
25411 ac_res=`eval 'as_val=${'$as_ac_Header'}
25412 $as_echo "$as_val"'`
25413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25414 $as_echo "$ac_res" >&6; }
25415 else
25416 # Is the header compilable?
25417 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25418 $as_echo_n "checking $ac_header usability... " >&6; }
25419 cat >conftest.$ac_ext <<_ACEOF
25420 /* confdefs.h. */
25421 _ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25425 $ac_includes_default
25426 #include <$ac_header>
25427 _ACEOF
25428 rm -f conftest.$ac_objext
25429 if { (ac_try="$ac_compile"
25430 case "(($ac_try" in
25431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432 *) ac_try_echo=$ac_try;;
25433 esac
25434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25435 $as_echo "$ac_try_echo") >&5
25436 (eval "$ac_compile") 2>conftest.er1
25437 ac_status=$?
25438 grep -v '^ *+' conftest.er1 >conftest.err
25439 rm -f conftest.er1
25440 cat conftest.err >&5
25441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } && {
25443 test -z "$ac_c_werror_flag" ||
25444 test ! -s conftest.err
25445 } && test -s conftest.$ac_objext; then
25446 ac_header_compiler=yes
25447 else
25448 $as_echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_header_compiler=no
25454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25455 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25456 $as_echo "$ac_header_compiler" >&6; }
25458 # Is the header present?
25459 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25460 $as_echo_n "checking $ac_header presence... " >&6; }
25461 cat >conftest.$ac_ext <<_ACEOF
25462 /* confdefs.h. */
25463 _ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25467 #include <$ac_header>
25468 _ACEOF
25469 if { (ac_try="$ac_cpp conftest.$ac_ext"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25473 esac
25474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25475 $as_echo "$ac_try_echo") >&5
25476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25477 ac_status=$?
25478 grep -v '^ *+' conftest.er1 >conftest.err
25479 rm -f conftest.er1
25480 cat conftest.err >&5
25481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } >/dev/null && {
25483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25484 test ! -s conftest.err
25485 }; then
25486 ac_header_preproc=yes
25487 else
25488 $as_echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25491 ac_header_preproc=no
25494 rm -f conftest.err conftest.$ac_ext
25495 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25496 $as_echo "$ac_header_preproc" >&6; }
25498 # So? What about this header?
25499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25500 yes:no: )
25501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25502 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25504 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25505 ac_header_preproc=yes
25507 no:yes:* )
25508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25509 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25511 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25513 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25515 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25519 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25522 esac
25523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25524 $as_echo_n "checking for $ac_header... " >&6; }
25525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25526 $as_echo_n "(cached) " >&6
25527 else
25528 eval "$as_ac_Header=\$ac_header_preproc"
25530 ac_res=`eval 'as_val=${'$as_ac_Header'}
25531 $as_echo "$as_val"'`
25532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25533 $as_echo "$ac_res" >&6; }
25536 if test `eval 'as_val=${'$as_ac_Header'}
25537 $as_echo "$as_val"'` = yes; then
25538 cat >>confdefs.h <<_ACEOF
25539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25540 _ACEOF
25544 done
25548 for ac_func in fork vfork
25550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25551 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25552 $as_echo_n "checking for $ac_func... " >&6; }
25553 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25554 $as_echo_n "(cached) " >&6
25555 else
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h. */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25564 #define $ac_func innocuous_$ac_func
25566 /* System header to define __stub macros and hopefully few prototypes,
25567 which can conflict with char $ac_func (); below.
25568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25569 <limits.h> exists even on freestanding compilers. */
25571 #ifdef __STDC__
25572 # include <limits.h>
25573 #else
25574 # include <assert.h>
25575 #endif
25577 #undef $ac_func
25579 /* Override any GCC internal prototype to avoid an error.
25580 Use char because int might match the return type of a GCC
25581 builtin and then its argument prototype would still apply. */
25582 #ifdef __cplusplus
25583 extern "C"
25584 #endif
25585 char $ac_func ();
25586 /* The GNU C library defines this for functions which it implements
25587 to always fail with ENOSYS. Some functions are actually named
25588 something starting with __ and the normal name is an alias. */
25589 #if defined __stub_$ac_func || defined __stub___$ac_func
25590 choke me
25591 #endif
25594 main ()
25596 return $ac_func ();
25598 return 0;
25600 _ACEOF
25601 rm -f conftest.$ac_objext conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25606 esac
25607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25608 $as_echo "$ac_try_echo") >&5
25609 (eval "$ac_link") 2>conftest.er1
25610 ac_status=$?
25611 grep -v '^ *+' conftest.er1 >conftest.err
25612 rm -f conftest.er1
25613 cat conftest.err >&5
25614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } && {
25616 test -z "$ac_c_werror_flag" ||
25617 test ! -s conftest.err
25618 } && test -s conftest$ac_exeext && {
25619 test "$cross_compiling" = yes ||
25620 $as_test_x conftest$ac_exeext
25621 }; then
25622 eval "$as_ac_var=yes"
25623 else
25624 $as_echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25627 eval "$as_ac_var=no"
25630 rm -rf conftest.dSYM
25631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25632 conftest$ac_exeext conftest.$ac_ext
25634 ac_res=`eval 'as_val=${'$as_ac_var'}
25635 $as_echo "$as_val"'`
25636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25637 $as_echo "$ac_res" >&6; }
25638 if test `eval 'as_val=${'$as_ac_var'}
25639 $as_echo "$as_val"'` = yes; then
25640 cat >>confdefs.h <<_ACEOF
25641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25642 _ACEOF
25645 done
25647 if test "x$ac_cv_func_fork" = xyes; then
25648 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25649 $as_echo_n "checking for working fork... " >&6; }
25650 if test "${ac_cv_func_fork_works+set}" = set; then
25651 $as_echo_n "(cached) " >&6
25652 else
25653 if test "$cross_compiling" = yes; then
25654 ac_cv_func_fork_works=cross
25655 else
25656 cat >conftest.$ac_ext <<_ACEOF
25657 /* confdefs.h. */
25658 _ACEOF
25659 cat confdefs.h >>conftest.$ac_ext
25660 cat >>conftest.$ac_ext <<_ACEOF
25661 /* end confdefs.h. */
25662 $ac_includes_default
25664 main ()
25667 /* By Ruediger Kuhlmann. */
25668 return fork () < 0;
25671 return 0;
25673 _ACEOF
25674 rm -f conftest$ac_exeext
25675 if { (ac_try="$ac_link"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25679 esac
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_link") 2>&5
25683 ac_status=$?
25684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25686 { (case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25689 esac
25690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25691 $as_echo "$ac_try_echo") >&5
25692 (eval "$ac_try") 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 ac_cv_func_fork_works=yes
25697 else
25698 $as_echo "$as_me: program exited with status $ac_status" >&5
25699 $as_echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25702 ( exit $ac_status )
25703 ac_cv_func_fork_works=no
25705 rm -rf conftest.dSYM
25706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25711 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25712 $as_echo "$ac_cv_func_fork_works" >&6; }
25714 else
25715 ac_cv_func_fork_works=$ac_cv_func_fork
25717 if test "x$ac_cv_func_fork_works" = xcross; then
25718 case $host in
25719 *-*-amigaos* | *-*-msdosdjgpp*)
25720 # Override, as these systems have only a dummy fork() stub
25721 ac_cv_func_fork_works=no
25724 ac_cv_func_fork_works=yes
25726 esac
25727 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25728 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25730 ac_cv_func_vfork_works=$ac_cv_func_vfork
25731 if test "x$ac_cv_func_vfork" = xyes; then
25732 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25733 $as_echo_n "checking for working vfork... " >&6; }
25734 if test "${ac_cv_func_vfork_works+set}" = set; then
25735 $as_echo_n "(cached) " >&6
25736 else
25737 if test "$cross_compiling" = yes; then
25738 ac_cv_func_vfork_works=cross
25739 else
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h. */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 /* Thanks to Paul Eggert for this test. */
25747 $ac_includes_default
25748 #include <sys/wait.h>
25749 #ifdef HAVE_VFORK_H
25750 # include <vfork.h>
25751 #endif
25752 /* On some sparc systems, changes by the child to local and incoming
25753 argument registers are propagated back to the parent. The compiler
25754 is told about this with #include <vfork.h>, but some compilers
25755 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25756 static variable whose address is put into a register that is
25757 clobbered by the vfork. */
25758 static void
25759 #ifdef __cplusplus
25760 sparc_address_test (int arg)
25761 # else
25762 sparc_address_test (arg) int arg;
25763 #endif
25765 static pid_t child;
25766 if (!child) {
25767 child = vfork ();
25768 if (child < 0) {
25769 perror ("vfork");
25770 _exit(2);
25772 if (!child) {
25773 arg = getpid();
25774 write(-1, "", 0);
25775 _exit (arg);
25781 main ()
25783 pid_t parent = getpid ();
25784 pid_t child;
25786 sparc_address_test (0);
25788 child = vfork ();
25790 if (child == 0) {
25791 /* Here is another test for sparc vfork register problems. This
25792 test uses lots of local variables, at least as many local
25793 variables as main has allocated so far including compiler
25794 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25795 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25796 reuse the register of parent for one of the local variables,
25797 since it will think that parent can't possibly be used any more
25798 in this routine. Assigning to the local variable will thus
25799 munge parent in the parent process. */
25800 pid_t
25801 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25802 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25803 /* Convince the compiler that p..p7 are live; otherwise, it might
25804 use the same hardware register for all 8 local variables. */
25805 if (p != p1 || p != p2 || p != p3 || p != p4
25806 || p != p5 || p != p6 || p != p7)
25807 _exit(1);
25809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25810 from child file descriptors. If the child closes a descriptor
25811 before it execs or exits, this munges the parent's descriptor
25812 as well. Test for this by closing stdout in the child. */
25813 _exit(close(fileno(stdout)) != 0);
25814 } else {
25815 int status;
25816 struct stat st;
25818 while (wait(&status) != child)
25820 return (
25821 /* Was there some problem with vforking? */
25822 child < 0
25824 /* Did the child fail? (This shouldn't happen.) */
25825 || status
25827 /* Did the vfork/compiler bug occur? */
25828 || parent != getpid()
25830 /* Did the file descriptor bug occur? */
25831 || fstat(fileno(stdout), &st) != 0
25835 _ACEOF
25836 rm -f conftest$ac_exeext
25837 if { (ac_try="$ac_link"
25838 case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25841 esac
25842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25843 $as_echo "$ac_try_echo") >&5
25844 (eval "$ac_link") 2>&5
25845 ac_status=$?
25846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25848 { (case "(($ac_try" in
25849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850 *) ac_try_echo=$ac_try;;
25851 esac
25852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25853 $as_echo "$ac_try_echo") >&5
25854 (eval "$ac_try") 2>&5
25855 ac_status=$?
25856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
25858 ac_cv_func_vfork_works=yes
25859 else
25860 $as_echo "$as_me: program exited with status $ac_status" >&5
25861 $as_echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 ( exit $ac_status )
25865 ac_cv_func_vfork_works=no
25867 rm -rf conftest.dSYM
25868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25873 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25874 $as_echo "$ac_cv_func_vfork_works" >&6; }
25877 if test "x$ac_cv_func_fork_works" = xcross; then
25878 ac_cv_func_vfork_works=$ac_cv_func_vfork
25879 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25880 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25883 if test "x$ac_cv_func_vfork_works" = xyes; then
25885 cat >>confdefs.h <<\_ACEOF
25886 #define HAVE_WORKING_VFORK 1
25887 _ACEOF
25889 else
25891 cat >>confdefs.h <<\_ACEOF
25892 #define vfork fork
25893 _ACEOF
25896 if test "x$ac_cv_func_fork_works" = xyes; then
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_WORKING_FORK 1
25900 _ACEOF
25905 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25906 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25907 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25908 $as_echo_n "(cached) " >&6
25909 else
25910 cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h. */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25916 #include <langinfo.h>
25918 main ()
25920 char* cs = nl_langinfo(CODESET);
25922 return 0;
25924 _ACEOF
25925 rm -f conftest.$ac_objext conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929 *) ac_try_echo=$ac_try;;
25930 esac
25931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25932 $as_echo "$ac_try_echo") >&5
25933 (eval "$ac_link") 2>conftest.er1
25934 ac_status=$?
25935 grep -v '^ *+' conftest.er1 >conftest.err
25936 rm -f conftest.er1
25937 cat conftest.err >&5
25938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); } && {
25940 test -z "$ac_c_werror_flag" ||
25941 test ! -s conftest.err
25942 } && test -s conftest$ac_exeext && {
25943 test "$cross_compiling" = yes ||
25944 $as_test_x conftest$ac_exeext
25945 }; then
25946 emacs_cv_langinfo_codeset=yes
25947 else
25948 $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 emacs_cv_langinfo_codeset=no
25954 rm -rf conftest.dSYM
25955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25956 conftest$ac_exeext conftest.$ac_ext
25959 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25960 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25961 if test $emacs_cv_langinfo_codeset = yes; then
25963 cat >>confdefs.h <<\_ACEOF
25964 #define HAVE_LANGINFO_CODESET 1
25965 _ACEOF
25969 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25970 $as_echo_n "checking for size_t... " >&6; }
25971 if test "${ac_cv_type_size_t+set}" = set; then
25972 $as_echo_n "(cached) " >&6
25973 else
25974 ac_cv_type_size_t=no
25975 cat >conftest.$ac_ext <<_ACEOF
25976 /* confdefs.h. */
25977 _ACEOF
25978 cat confdefs.h >>conftest.$ac_ext
25979 cat >>conftest.$ac_ext <<_ACEOF
25980 /* end confdefs.h. */
25981 $ac_includes_default
25983 main ()
25985 if (sizeof (size_t))
25986 return 0;
25988 return 0;
25990 _ACEOF
25991 rm -f conftest.$ac_objext
25992 if { (ac_try="$ac_compile"
25993 case "(($ac_try" in
25994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25996 esac
25997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25998 $as_echo "$ac_try_echo") >&5
25999 (eval "$ac_compile") 2>conftest.er1
26000 ac_status=$?
26001 grep -v '^ *+' conftest.er1 >conftest.err
26002 rm -f conftest.er1
26003 cat conftest.err >&5
26004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } && {
26006 test -z "$ac_c_werror_flag" ||
26007 test ! -s conftest.err
26008 } && test -s conftest.$ac_objext; then
26009 cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h. */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 $ac_includes_default
26017 main ()
26019 if (sizeof ((size_t)))
26020 return 0;
26022 return 0;
26024 _ACEOF
26025 rm -f conftest.$ac_objext
26026 if { (ac_try="$ac_compile"
26027 case "(($ac_try" in
26028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029 *) ac_try_echo=$ac_try;;
26030 esac
26031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26032 $as_echo "$ac_try_echo") >&5
26033 (eval "$ac_compile") 2>conftest.er1
26034 ac_status=$?
26035 grep -v '^ *+' conftest.er1 >conftest.err
26036 rm -f conftest.er1
26037 cat conftest.err >&5
26038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } && {
26040 test -z "$ac_c_werror_flag" ||
26041 test ! -s conftest.err
26042 } && test -s conftest.$ac_objext; then
26044 else
26045 $as_echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26048 ac_cv_type_size_t=yes
26051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26052 else
26053 $as_echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26062 $as_echo "$ac_cv_type_size_t" >&6; }
26063 if test $ac_cv_type_size_t = yes; then
26065 cat >>confdefs.h <<_ACEOF
26066 #define HAVE_SIZE_T 1
26067 _ACEOF
26073 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26074 $as_echo_n "checking for mbstate_t... " >&6; }
26075 if test "${ac_cv_type_mbstate_t+set}" = set; then
26076 $as_echo_n "(cached) " >&6
26077 else
26078 cat >conftest.$ac_ext <<_ACEOF
26079 /* confdefs.h. */
26080 _ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h. */
26084 $ac_includes_default
26085 # include <wchar.h>
26087 main ()
26089 mbstate_t x; return sizeof x;
26091 return 0;
26093 _ACEOF
26094 rm -f conftest.$ac_objext
26095 if { (ac_try="$ac_compile"
26096 case "(($ac_try" in
26097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098 *) ac_try_echo=$ac_try;;
26099 esac
26100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26101 $as_echo "$ac_try_echo") >&5
26102 (eval "$ac_compile") 2>conftest.er1
26103 ac_status=$?
26104 grep -v '^ *+' conftest.er1 >conftest.err
26105 rm -f conftest.er1
26106 cat conftest.err >&5
26107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && {
26109 test -z "$ac_c_werror_flag" ||
26110 test ! -s conftest.err
26111 } && test -s conftest.$ac_objext; then
26112 ac_cv_type_mbstate_t=yes
26113 else
26114 $as_echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26117 ac_cv_type_mbstate_t=no
26120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26122 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26123 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26124 if test $ac_cv_type_mbstate_t = yes; then
26126 cat >>confdefs.h <<\_ACEOF
26127 #define HAVE_MBSTATE_T 1
26128 _ACEOF
26130 else
26132 cat >>confdefs.h <<\_ACEOF
26133 #define mbstate_t int
26134 _ACEOF
26138 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26139 $as_echo_n "checking for C restrict keyword... " >&6; }
26140 if test "${emacs_cv_c_restrict+set}" = set; then
26141 $as_echo_n "(cached) " >&6
26142 else
26143 cat >conftest.$ac_ext <<_ACEOF
26144 /* confdefs.h. */
26145 _ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 void fred (int *restrict x);
26151 main ()
26155 return 0;
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26163 esac
26164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26165 $as_echo "$ac_try_echo") >&5
26166 (eval "$ac_compile") 2>conftest.er1
26167 ac_status=$?
26168 grep -v '^ *+' conftest.er1 >conftest.err
26169 rm -f conftest.er1
26170 cat conftest.err >&5
26171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); } && {
26173 test -z "$ac_c_werror_flag" ||
26174 test ! -s conftest.err
26175 } && test -s conftest.$ac_objext; then
26176 emacs_cv_c_restrict=yes
26177 else
26178 $as_echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26181 cat >conftest.$ac_ext <<_ACEOF
26182 /* confdefs.h. */
26183 _ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 void fred (int *__restrict x);
26189 main ()
26193 return 0;
26195 _ACEOF
26196 rm -f conftest.$ac_objext
26197 if { (ac_try="$ac_compile"
26198 case "(($ac_try" in
26199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26200 *) ac_try_echo=$ac_try;;
26201 esac
26202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26203 $as_echo "$ac_try_echo") >&5
26204 (eval "$ac_compile") 2>conftest.er1
26205 ac_status=$?
26206 grep -v '^ *+' conftest.er1 >conftest.err
26207 rm -f conftest.er1
26208 cat conftest.err >&5
26209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } && {
26211 test -z "$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 } && test -s conftest.$ac_objext; then
26214 emacs_cv_c_restrict=__restrict
26215 else
26216 $as_echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 emacs_cv_c_restrict=no
26222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26227 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26228 $as_echo "$emacs_cv_c_restrict" >&6; }
26229 case "$emacs_cv_c_restrict" in
26230 yes) emacs_restrict=restrict;;
26231 no) emacs_restrict="";;
26232 *) emacs_restrict="$emacs_cv_c_restrict";;
26233 esac
26234 if test "$emacs_restrict" != __restrict; then
26236 cat >>confdefs.h <<_ACEOF
26237 #define __restrict $emacs_restrict
26238 _ACEOF
26242 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26243 $as_echo_n "checking for C restricted array declarations... " >&6; }
26244 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26245 $as_echo_n "(cached) " >&6
26246 else
26247 cat >conftest.$ac_ext <<_ACEOF
26248 /* confdefs.h. */
26249 _ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h. */
26253 void fred (int x[__restrict]);
26255 main ()
26259 return 0;
26261 _ACEOF
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266 *) ac_try_echo=$ac_try;;
26267 esac
26268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270 (eval "$ac_compile") 2>conftest.er1
26271 ac_status=$?
26272 grep -v '^ *+' conftest.er1 >conftest.err
26273 rm -f conftest.er1
26274 cat conftest.err >&5
26275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } && {
26277 test -z "$ac_c_werror_flag" ||
26278 test ! -s conftest.err
26279 } && test -s conftest.$ac_objext; then
26280 emacs_cv_c_restrict_arr=yes
26281 else
26282 $as_echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26285 emacs_cv_c_restrict_arr=no
26288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26291 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26292 if test "$emacs_cv_c_restrict_arr" = yes; then
26294 cat >>confdefs.h <<\_ACEOF
26295 #define __restrict_arr __restrict
26296 _ACEOF
26302 # Set up the CFLAGS for real compilation, so we can substitute it.
26303 CFLAGS="$REAL_CFLAGS"
26304 CPPFLAGS="$REAL_CPPFLAGS"
26306 ## Hack to detect a buggy GCC version.
26307 if test "x$GCC" = xyes \
26308 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26309 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26310 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26311 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26312 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26313 { (exit 1); exit 1; }; }
26316 #### Find out which version of Emacs this is.
26317 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26318 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26319 if test x"${version}" = x; then
26320 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26321 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26322 { (exit 1); exit 1; }; }
26324 if test x"${version}" != x"$PACKAGE_VERSION"; then
26325 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
26326 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26329 ### Specify what sort of things we'll be editing into Makefile and config.h.
26330 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26333 ## Unused?
26355 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26356 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26357 ## end of LIBX_BASE, but nothing ever set it.
26362 ## Used in lwlib/Makefile.in.
26375 cat >>confdefs.h <<_ACEOF
26376 #define EMACS_CONFIGURATION "${canonical}"
26377 _ACEOF
26380 cat >>confdefs.h <<_ACEOF
26381 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26382 _ACEOF
26385 cat >>confdefs.h <<_ACEOF
26386 #define config_machfile "${machfile}"
26387 _ACEOF
26390 cat >>confdefs.h <<_ACEOF
26391 #define config_opsysfile "${opsysfile}"
26392 _ACEOF
26395 XMENU_OBJ=
26396 XOBJ=
26397 FONT_OBJ=
26398 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26400 cat >>confdefs.h <<\_ACEOF
26401 #define HAVE_X_WINDOWS 1
26402 _ACEOF
26404 XMENU_OBJ=xmenu.o
26405 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26406 FONT_OBJ=xfont.o
26407 if test "$HAVE_XFT" = "yes"; then
26408 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26409 elif test "$HAVE_FREETYPE" = "yes"; then
26410 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26418 WIDGET_OBJ=
26419 MOTIF_LIBW=
26420 if test "${USE_X_TOOLKIT}" != "none" ; then
26421 WIDGET_OBJ=widget.o
26423 cat >>confdefs.h <<\_ACEOF
26424 #define USE_X_TOOLKIT 1
26425 _ACEOF
26427 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26429 cat >>confdefs.h <<\_ACEOF
26430 #define USE_LUCID 1
26431 _ACEOF
26433 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26435 cat >>confdefs.h <<\_ACEOF
26436 #define USE_MOTIF 1
26437 _ACEOF
26439 MOTIF_LIBW=-lXm
26440 case "$opsys" in
26441 gnu-linux)
26442 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26443 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26446 unixware)
26447 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26448 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26449 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26452 aix4-2)
26453 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26454 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26456 esac
26457 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26462 TOOLKIT_LIBW=
26463 case "$USE_X_TOOLKIT" in
26464 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26465 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26466 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26467 esac
26470 if test "$USE_X_TOOLKIT" = "none"; then
26471 LIBXT_OTHER="\$(LIBXSM)"
26472 OLDXMENU_TARGET="really-oldXMenu"
26473 else
26474 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26475 OLDXMENU_TARGET="really-lwlib"
26480 ## The X Menu stuff is present in the X10 distribution, but missing
26481 ## from X11. If we have X10, just use the installed library;
26482 ## otherwise, use our own copy.
26483 if test "${HAVE_X11}" = "yes" ; then
26485 cat >>confdefs.h <<\_ACEOF
26486 #define HAVE_X11 1
26487 _ACEOF
26490 if test "$USE_X_TOOLKIT" = "none"; then
26491 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26492 else
26493 OLDXMENU="\${lwlibdir}liblw.a"
26495 LIBXMENU="\$(OLDXMENU)"
26496 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26497 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
26498 else
26499 OLDXMENU=
26500 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26501 if test "${HAVE_X_WINDOWS}" = "yes"; then
26502 LIBXMENU="-lXMenu"
26503 else
26504 LIBXMENU=
26506 LIBX_OTHER=
26507 OLDXMENU_DEPS=
26510 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26511 OLDXMENU=
26512 LIBXMENU=
26513 OLDXMENU_DEPS=
26521 if test "${HAVE_MENUS}" = "yes" ; then
26523 cat >>confdefs.h <<\_ACEOF
26524 #define HAVE_MENUS 1
26525 _ACEOF
26529 if test "${GNU_MALLOC}" = "yes" ; then
26531 cat >>confdefs.h <<\_ACEOF
26532 #define GNU_MALLOC 1
26533 _ACEOF
26537 RALLOC_OBJ=
26538 if test "${REL_ALLOC}" = "yes" ; then
26540 cat >>confdefs.h <<\_ACEOF
26541 #define REL_ALLOC 1
26542 _ACEOF
26545 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
26549 if test "$opsys" = "cygwin"; then
26550 CYGWIN_OBJ="sheap.o"
26551 ## Cygwin differs because of its unexec().
26552 PRE_ALLOC_OBJ=
26553 POST_ALLOC_OBJ=lastfile.o
26554 else
26555 CYGWIN_OBJ=
26556 PRE_ALLOC_OBJ=lastfile.o
26557 POST_ALLOC_OBJ=
26564 case "$opsys" in
26565 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26567 darwin)
26568 ## The -headerpad option tells ld (see man page) to leave room at the
26569 ## end of the header for adding load commands. Needed for dumping.
26570 ## 0x690 is the total size of 30 segment load commands (at 56
26571 ## each); under Cocoa 31 commands are required.
26572 if test "$HAVE_NS" = "yes"; then
26573 libs_nsgui="-framework AppKit"
26574 headerpad_extra=6C8
26575 else
26576 libs_nsgui=
26577 headerpad_extra=690
26579 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26582 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26583 esac
26587 ## This exists because src/Makefile.in did some extra fiddling around
26588 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26589 ## #ifndef LD_SWITCH_SYSTEM
26590 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26591 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26592 ## not using gcc, darwin system not on an alpha (ie darwin, since
26593 ## darwin + alpha does not occur).
26594 ## Note that unlike L_S_S, this is not used in ac_link.
26595 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26596 test "$opsys" = "darwin"; then
26597 LD_SWITCH_SYSTEM_EXTRA="-X"
26598 else
26599 LD_SWITCH_SYSTEM_EXTRA=
26604 LINKER=
26605 ORDINARY_LINK=
26606 case "$opsys" in
26607 ## gnu: GNU needs its own crt0.
26608 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26610 cygwin) LINKER="\$(CC)" ;;
26612 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26613 ## library search parth, i.e. it won't search /usr/lib for libc and
26614 ## friends. Using -nostartfiles instead avoids this problem, and
26615 ## will also work on earlier NetBSD releases.
26616 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
26618 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26619 ## MkLinux/LinuxPPC needs this.
26620 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26621 gnu-*)
26622 case "$machine" in
26623 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
26624 esac
26626 esac
26628 ## A macro which other sections of Makefile can redefine to munge the
26629 ## flags before they are passed to LD. This is helpful if you have
26630 ## redefined LD to something odd, like "gcc".
26631 ## (The YMF prefix is a holdover from the old name "ymakefile".)
26632 YMF_PASS_LDFLAGS=flags
26633 if test "x$ORDINARY_LINK" = "xyes"; then
26635 LINKER="\$(CC)"
26637 cat >>confdefs.h <<\_ACEOF
26638 #define ORDINARY_LINK 1
26639 _ACEOF
26642 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26643 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26644 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26646 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26647 ## places that are difficult to figure out at make time. Fortunately,
26648 ## these same versions allow you to pass arbitrary flags on to the
26649 ## linker, so there is no reason not to use it as a linker.
26651 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26652 ## searching for libraries in its internal directories, so we have to
26653 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26654 LINKER="\$(CC) -nostdlib"
26655 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26656 ## See prefix-args.c for an explanation of why we do not do this with the
26657 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26658 ## their paths, so we must use ./prefix-args.
26659 ## TODO either make prefix-args check ORDINARY_LINK internally,
26660 ## or remove it altogether (bug#6184), removing the need for this macro.
26661 YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`'
26665 test "x$LINKER" = "x" && LINKER=ld
26666 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26667 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
26672 ## FIXME? The logic here is not precisely the same as that above
26673 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined
26674 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib?
26675 LIB_GCC=
26676 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26678 case "$opsys" in
26679 ## cygwin: don't link against static libgcc.
26680 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26682 gnu-*)
26683 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26684 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26685 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26686 if test "$machine" = "arm"; then
26687 LIB_GCC="-lgcc_s"
26688 else
26689 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26690 ## immediately undefine it again and redefine it to empty.
26691 ## Was the C_SWITCH_X_SITE part really necessary?
26692 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26693 LIB_GCC=
26697 ## Ask GCC where to find libgcc.a.
26698 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26699 esac
26703 TOOLTIP_SUPPORT=
26704 WINDOW_SUPPORT=
26705 ## If we're using X11/GNUstep, define some consequences.
26706 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26708 cat >>confdefs.h <<\_ACEOF
26709 #define HAVE_WINDOW_SYSTEM 1
26710 _ACEOF
26713 cat >>confdefs.h <<\_ACEOF
26714 #define HAVE_MOUSE 1
26715 _ACEOF
26717 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26718 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26720 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26721 test "$HAVE_X_WINDOWS" = "yes" && \
26722 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26734 #### Report on what we decided to do.
26735 #### Report GTK as a toolkit, even if it doesn't use Xt.
26736 #### It makes printing result more understandable as using GTK sets
26737 #### toolkit_scroll_bars to yes by default.
26738 if test "${HAVE_GTK}" = "yes"; then
26739 USE_X_TOOLKIT=GTK
26742 echo "
26743 Configured for \`${canonical}'.
26745 Where should the build process find the source code? ${srcdir}
26746 What operating system and machine description files should Emacs use?
26747 \`${opsysfile}' and \`${machfile}'
26748 What compiler should emacs be built with? ${CC} ${CFLAGS}
26749 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26750 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26751 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26752 What window system should Emacs use? ${window_system}
26753 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26755 if test -n "${x_includes}"; then
26756 echo " Where do we find X Windows header files? ${x_includes}"
26757 else
26758 echo " Where do we find X Windows header files? Standard dirs"
26760 if test -n "${x_libraries}"; then
26761 echo " Where do we find X Windows libraries? ${x_libraries}"
26762 else
26763 echo " Where do we find X Windows libraries? Standard dirs"
26766 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26767 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26768 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26769 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26770 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26771 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26772 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26773 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26774 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26775 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26776 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26778 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26779 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26780 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26781 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26783 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26784 echo
26786 if test $USE_XASSERTS = yes; then
26787 echo " Compiling with asserts turned on."
26788 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26791 echo
26793 if test "$HAVE_NS" = "yes"; then
26794 echo
26795 echo "You must run \"make install\" in order to test the built application.
26796 The installed application will go to nextstep/Emacs.app and can be
26797 run or moved from there."
26798 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26799 echo "The application will be fully self-contained."
26800 else
26801 echo "The lisp resources for the application will be installed under ${prefix}.
26802 You may need to run \"make install\" with sudo. The application will fail
26803 to run if these resources are not installed."
26805 echo
26808 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26809 echo "D-Bus integration has been tested for GNU/Linux only."
26810 echo
26814 # Remove any trailing slashes in these variables.
26815 test "${prefix}" != NONE &&
26816 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26817 test "${exec_prefix}" != NONE &&
26818 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26820 # Now get this: Some word that is part of the ${srcdir} directory name
26821 # or the ${configuration} value might, just might, happen to be an
26822 # identifier like `sun4' or `i386' or something, and be predefined by
26823 # the C preprocessor to some helpful value like 1, or maybe the empty
26824 # string. Needless to say consequent macro substitutions are less
26825 # than conducive to the makefile finding the correct directory.
26826 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26827 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26828 # so that cannot have been doing anything.
26829 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26830 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26831 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26833 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26834 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26835 ## from Makefile.c can correctly provide the arg `-traditional' to the
26836 ## C preprocessor.
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h. */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 yes..yes
26845 _ACEOF
26846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26847 $EGREP "yes..yes" >/dev/null 2>&1; then
26848 CPP_NEED_TRADITIONAL=no
26849 else
26850 CPP_NEED_TRADITIONAL=yes
26852 rm -f conftest*
26855 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26857 ac_config_commands="$ac_config_commands default"
26859 cat >confcache <<\_ACEOF
26860 # This file is a shell script that caches the results of configure
26861 # tests run on this system so they can be shared between configure
26862 # scripts and configure runs, see configure's option --config-cache.
26863 # It is not useful on other systems. If it contains results you don't
26864 # want to keep, you may remove or edit it.
26866 # config.status only pays attention to the cache file if you give it
26867 # the --recheck option to rerun configure.
26869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26871 # following values.
26873 _ACEOF
26875 # The following way of writing the cache mishandles newlines in values,
26876 # but we know of no workaround that is simple, portable, and efficient.
26877 # So, we kill variables containing newlines.
26878 # Ultrix sh set writes to stderr and can't be redirected directly,
26879 # and sets the high bit in the cache file unless we assign to the vars.
26881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26882 eval ac_val=\$$ac_var
26883 case $ac_val in #(
26884 *${as_nl}*)
26885 case $ac_var in #(
26886 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26887 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26888 esac
26889 case $ac_var in #(
26890 _ | IFS | as_nl) ;; #(
26891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26892 *) $as_unset $ac_var ;;
26893 esac ;;
26894 esac
26895 done
26897 (set) 2>&1 |
26898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26899 *${as_nl}ac_space=\ *)
26900 # `set' does not quote correctly, so add quotes (double-quote
26901 # substitution turns \\\\ into \\, and sed turns \\ into \).
26902 sed -n \
26903 "s/'/'\\\\''/g;
26904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26905 ;; #(
26907 # `set' quotes correctly as required by POSIX, so do not add quotes.
26908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26910 esac |
26911 sort
26913 sed '
26914 /^ac_cv_env_/b end
26915 t clear
26916 :clear
26917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26918 t end
26919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26920 :end' >>confcache
26921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26922 if test -w "$cache_file"; then
26923 test "x$cache_file" != "x/dev/null" &&
26924 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26925 $as_echo "$as_me: updating cache $cache_file" >&6;}
26926 cat confcache >$cache_file
26927 else
26928 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26932 rm -f confcache
26934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26935 # Let make expand exec_prefix.
26936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26938 DEFS=-DHAVE_CONFIG_H
26940 ac_libobjs=
26941 ac_ltlibobjs=
26942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26943 # 1. Remove the extension, and $U if already installed.
26944 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26945 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26947 # will be set to the directory where LIBOBJS objects are built.
26948 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26949 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26950 done
26951 LIBOBJS=$ac_libobjs
26953 LTLIBOBJS=$ac_ltlibobjs
26957 : ${CONFIG_STATUS=./config.status}
26958 ac_write_fail=0
26959 ac_clean_files_save=$ac_clean_files
26960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26961 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26963 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26964 #! $SHELL
26965 # Generated by $as_me.
26966 # Run this file to recreate the current configuration.
26967 # Compiler output produced by configure, useful for debugging
26968 # configure, is in config.log if it exists.
26970 debug=false
26971 ac_cs_recheck=false
26972 ac_cs_silent=false
26973 SHELL=\${CONFIG_SHELL-$SHELL}
26974 _ACEOF
26976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26977 ## --------------------- ##
26978 ## M4sh Initialization. ##
26979 ## --------------------- ##
26981 # Be more Bourne compatible
26982 DUALCASE=1; export DUALCASE # for MKS sh
26983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26984 emulate sh
26985 NULLCMD=:
26986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26987 # is contrary to our usage. Disable this feature.
26988 alias -g '${1+"$@"}'='"$@"'
26989 setopt NO_GLOB_SUBST
26990 else
26991 case `(set -o) 2>/dev/null` in
26992 *posix*) set -o posix ;;
26993 esac
27000 # PATH needs CR
27001 # Avoid depending upon Character Ranges.
27002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27005 as_cr_digits='0123456789'
27006 as_cr_alnum=$as_cr_Letters$as_cr_digits
27008 as_nl='
27010 export as_nl
27011 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27012 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27015 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27016 as_echo='printf %s\n'
27017 as_echo_n='printf %s'
27018 else
27019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27020 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27021 as_echo_n='/usr/ucb/echo -n'
27022 else
27023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27024 as_echo_n_body='eval
27025 arg=$1;
27026 case $arg in
27027 *"$as_nl"*)
27028 expr "X$arg" : "X\\(.*\\)$as_nl";
27029 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27030 esac;
27031 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27033 export as_echo_n_body
27034 as_echo_n='sh -c $as_echo_n_body as_echo'
27036 export as_echo_body
27037 as_echo='sh -c $as_echo_body as_echo'
27040 # The user is always right.
27041 if test "${PATH_SEPARATOR+set}" != set; then
27042 PATH_SEPARATOR=:
27043 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27044 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27045 PATH_SEPARATOR=';'
27049 # Support unset when possible.
27050 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27051 as_unset=unset
27052 else
27053 as_unset=false
27057 # IFS
27058 # We need space, tab and new line, in precisely that order. Quoting is
27059 # there to prevent editors from complaining about space-tab.
27060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27061 # splitting by setting IFS to empty value.)
27062 IFS=" "" $as_nl"
27064 # Find who we are. Look in the path if we contain no directory separator.
27065 case $0 in
27066 *[\\/]* ) as_myself=$0 ;;
27067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27068 for as_dir in $PATH
27070 IFS=$as_save_IFS
27071 test -z "$as_dir" && as_dir=.
27072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27073 done
27074 IFS=$as_save_IFS
27077 esac
27078 # We did not find ourselves, most probably we were run as `sh COMMAND'
27079 # in which case we are not to be found in the path.
27080 if test "x$as_myself" = x; then
27081 as_myself=$0
27083 if test ! -f "$as_myself"; then
27084 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27085 { (exit 1); exit 1; }
27088 # Work around bugs in pre-3.0 UWIN ksh.
27089 for as_var in ENV MAIL MAILPATH
27090 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27091 done
27092 PS1='$ '
27093 PS2='> '
27094 PS4='+ '
27096 # NLS nuisances.
27097 LC_ALL=C
27098 export LC_ALL
27099 LANGUAGE=C
27100 export LANGUAGE
27102 # Required to use basename.
27103 if expr a : '\(a\)' >/dev/null 2>&1 &&
27104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27105 as_expr=expr
27106 else
27107 as_expr=false
27110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27111 as_basename=basename
27112 else
27113 as_basename=false
27117 # Name of the executable.
27118 as_me=`$as_basename -- "$0" ||
27119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27120 X"$0" : 'X\(//\)$' \| \
27121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27122 $as_echo X/"$0" |
27123 sed '/^.*\/\([^/][^/]*\)\/*$/{
27124 s//\1/
27127 /^X\/\(\/\/\)$/{
27128 s//\1/
27131 /^X\/\(\/\).*/{
27132 s//\1/
27135 s/.*/./; q'`
27137 # CDPATH.
27138 $as_unset CDPATH
27142 as_lineno_1=$LINENO
27143 as_lineno_2=$LINENO
27144 test "x$as_lineno_1" != "x$as_lineno_2" &&
27145 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27148 # uniformly replaced by the line number. The first 'sed' inserts a
27149 # line-number line after each line using $LINENO; the second 'sed'
27150 # does the real work. The second script uses 'N' to pair each
27151 # line-number line with the line containing $LINENO, and appends
27152 # trailing '-' during substitution so that $LINENO is not a special
27153 # case at line end.
27154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27155 # scripts with optimization help from Paolo Bonzini. Blame Lee
27156 # E. McMahon (1931-1989) for sed's syntax. :-)
27157 sed -n '
27159 /[$]LINENO/=
27160 ' <$as_myself |
27161 sed '
27162 s/[$]LINENO.*/&-/
27163 t lineno
27165 :lineno
27167 :loop
27168 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27169 t loop
27170 s/-\n.*//
27171 ' >$as_me.lineno &&
27172 chmod +x "$as_me.lineno" ||
27173 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27174 { (exit 1); exit 1; }; }
27176 # Don't try to exec as it changes $[0], causing all sort of problems
27177 # (the dirname of $[0] is not the place where we might find the
27178 # original and so on. Autoconf is especially sensitive to this).
27179 . "./$as_me.lineno"
27180 # Exit status is that of the last command.
27181 exit
27185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27186 as_dirname=dirname
27187 else
27188 as_dirname=false
27191 ECHO_C= ECHO_N= ECHO_T=
27192 case `echo -n x` in
27193 -n*)
27194 case `echo 'x\c'` in
27195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27196 *) ECHO_C='\c';;
27197 esac;;
27199 ECHO_N='-n';;
27200 esac
27201 if expr a : '\(a\)' >/dev/null 2>&1 &&
27202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27203 as_expr=expr
27204 else
27205 as_expr=false
27208 rm -f conf$$ conf$$.exe conf$$.file
27209 if test -d conf$$.dir; then
27210 rm -f conf$$.dir/conf$$.file
27211 else
27212 rm -f conf$$.dir
27213 mkdir conf$$.dir 2>/dev/null
27215 if (echo >conf$$.file) 2>/dev/null; then
27216 if ln -s conf$$.file conf$$ 2>/dev/null; then
27217 as_ln_s='ln -s'
27218 # ... but there are two gotchas:
27219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27221 # In both cases, we have to default to `cp -p'.
27222 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27223 as_ln_s='cp -p'
27224 elif ln conf$$.file conf$$ 2>/dev/null; then
27225 as_ln_s=ln
27226 else
27227 as_ln_s='cp -p'
27229 else
27230 as_ln_s='cp -p'
27232 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27233 rmdir conf$$.dir 2>/dev/null
27235 if mkdir -p . 2>/dev/null; then
27236 as_mkdir_p=:
27237 else
27238 test -d ./-p && rmdir ./-p
27239 as_mkdir_p=false
27242 if test -x / >/dev/null 2>&1; then
27243 as_test_x='test -x'
27244 else
27245 if ls -dL / >/dev/null 2>&1; then
27246 as_ls_L_option=L
27247 else
27248 as_ls_L_option=
27250 as_test_x='
27251 eval sh -c '\''
27252 if test -d "$1"; then
27253 test -d "$1/.";
27254 else
27255 case $1 in
27256 -*)set "./$1";;
27257 esac;
27258 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27259 ???[sx]*):;;*)false;;esac;fi
27260 '\'' sh
27263 as_executable_p=$as_test_x
27265 # Sed expression to map a string onto a valid CPP name.
27266 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27268 # Sed expression to map a string onto a valid variable name.
27269 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27272 exec 6>&1
27274 # Save the log message, to keep $[0] and so on meaningful, and to
27275 # report actual input values of CONFIG_FILES etc. instead of their
27276 # values after options handling.
27277 ac_log="
27278 This file was extended by emacs $as_me 24.0.50, which was
27279 generated by GNU Autoconf 2.62. Invocation command line was
27281 CONFIG_FILES = $CONFIG_FILES
27282 CONFIG_HEADERS = $CONFIG_HEADERS
27283 CONFIG_LINKS = $CONFIG_LINKS
27284 CONFIG_COMMANDS = $CONFIG_COMMANDS
27285 $ $0 $@
27287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27290 _ACEOF
27292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27293 # Files that config.status was made for.
27294 config_files="$ac_config_files"
27295 config_headers="$ac_config_headers"
27296 config_commands="$ac_config_commands"
27298 _ACEOF
27300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27301 ac_cs_usage="\
27302 \`$as_me' instantiates files from templates according to the
27303 current configuration.
27305 Usage: $0 [OPTIONS] [FILE]...
27307 -h, --help print this help, then exit
27308 -V, --version print version number and configuration settings, then exit
27309 -q, --quiet do not print progress messages
27310 -d, --debug don't remove temporary files
27311 --recheck update $as_me by reconfiguring in the same conditions
27312 --file=FILE[:TEMPLATE]
27313 instantiate the configuration file FILE
27314 --header=FILE[:TEMPLATE]
27315 instantiate the configuration header FILE
27317 Configuration files:
27318 $config_files
27320 Configuration headers:
27321 $config_headers
27323 Configuration commands:
27324 $config_commands
27326 Report bugs to <bug-autoconf@gnu.org>."
27328 _ACEOF
27329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27330 ac_cs_version="\\
27331 emacs config.status 24.0.50
27332 configured by $0, generated by GNU Autoconf 2.62,
27333 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27335 Copyright (C) 2008 Free Software Foundation, Inc.
27336 This config.status script is free software; the Free Software Foundation
27337 gives unlimited permission to copy, distribute and modify it."
27339 ac_pwd='$ac_pwd'
27340 srcdir='$srcdir'
27341 INSTALL='$INSTALL'
27342 test -n "\$AWK" || AWK=awk
27343 _ACEOF
27345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27346 # The default lists apply if the user does not specify any file.
27347 ac_need_defaults=:
27348 while test $# != 0
27350 case $1 in
27351 --*=*)
27352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27354 ac_shift=:
27357 ac_option=$1
27358 ac_optarg=$2
27359 ac_shift=shift
27361 esac
27363 case $ac_option in
27364 # Handling of the options.
27365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27366 ac_cs_recheck=: ;;
27367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27368 $as_echo "$ac_cs_version"; exit ;;
27369 --debug | --debu | --deb | --de | --d | -d )
27370 debug=: ;;
27371 --file | --fil | --fi | --f )
27372 $ac_shift
27373 case $ac_optarg in
27374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27375 esac
27376 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27377 ac_need_defaults=false;;
27378 --header | --heade | --head | --hea )
27379 $ac_shift
27380 case $ac_optarg in
27381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27382 esac
27383 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27384 ac_need_defaults=false;;
27385 --he | --h)
27386 # Conflict between --help and --header
27387 { $as_echo "$as_me: error: ambiguous option: $1
27388 Try \`$0 --help' for more information." >&2
27389 { (exit 1); exit 1; }; };;
27390 --help | --hel | -h )
27391 $as_echo "$ac_cs_usage"; exit ;;
27392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27394 ac_cs_silent=: ;;
27396 # This is an error.
27397 -*) { $as_echo "$as_me: error: unrecognized option: $1
27398 Try \`$0 --help' for more information." >&2
27399 { (exit 1); exit 1; }; } ;;
27401 *) ac_config_targets="$ac_config_targets $1"
27402 ac_need_defaults=false ;;
27404 esac
27405 shift
27406 done
27408 ac_configure_extra_args=
27410 if $ac_cs_silent; then
27411 exec 6>/dev/null
27412 ac_configure_extra_args="$ac_configure_extra_args --silent"
27415 _ACEOF
27416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27417 if \$ac_cs_recheck; then
27418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27419 shift
27420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27421 CONFIG_SHELL='$SHELL'
27422 export CONFIG_SHELL
27423 exec "\$@"
27426 _ACEOF
27427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27428 exec 5>>config.log
27430 echo
27431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27432 ## Running $as_me. ##
27433 _ASBOX
27434 $as_echo "$ac_log"
27435 } >&5
27437 _ACEOF
27438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27440 # INIT-COMMANDS
27442 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27444 _ACEOF
27446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27448 # Handling of arguments.
27449 for ac_config_target in $ac_config_targets
27451 case $ac_config_target in
27452 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27453 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27454 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27455 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27456 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27457 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27458 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27459 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27460 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27461 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27462 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27463 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27464 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27466 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27467 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27468 { (exit 1); exit 1; }; };;
27469 esac
27470 done
27473 # If the user did not use the arguments to specify the items to instantiate,
27474 # then the envvar interface is used. Set only those that are not.
27475 # We use the long form for the default assignment because of an extremely
27476 # bizarre bug on SunOS 4.1.3.
27477 if $ac_need_defaults; then
27478 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27479 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27483 # Have a temporary directory for convenience. Make it in the build tree
27484 # simply because there is no reason against having it here, and in addition,
27485 # creating and moving files from /tmp can sometimes cause problems.
27486 # Hook for its removal unless debugging.
27487 # Note that there is a small window in which the directory will not be cleaned:
27488 # after its creation but before its name has been assigned to `$tmp'.
27489 $debug ||
27491 tmp=
27492 trap 'exit_status=$?
27493 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27495 trap '{ (exit 1); exit 1; }' 1 2 13 15
27497 # Create a (secure) tmp directory for tmp files.
27500 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27501 test -n "$tmp" && test -d "$tmp"
27502 } ||
27504 tmp=./conf$$-$RANDOM
27505 (umask 077 && mkdir "$tmp")
27506 } ||
27508 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27509 { (exit 1); exit 1; }
27512 # Set up the scripts for CONFIG_FILES section.
27513 # No need to generate them if there are no CONFIG_FILES.
27514 # This happens for instance with `./config.status config.h'.
27515 if test -n "$CONFIG_FILES"; then
27517 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27518 ac_cs_awk_getline=:
27519 ac_cs_awk_pipe_init=
27520 ac_cs_awk_read_file='
27521 while ((getline aline < (F[key])) > 0)
27522 print(aline)
27523 close(F[key])'
27524 ac_cs_awk_pipe_fini=
27525 else
27526 ac_cs_awk_getline=false
27527 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27528 ac_cs_awk_read_file='
27529 print "|#_!!_#|"
27530 print "cat " F[key] " &&"
27531 '$ac_cs_awk_pipe_init
27532 # The final `:' finishes the AND list.
27533 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27535 ac_cr=' '
27536 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27537 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27538 ac_cs_awk_cr='\\r'
27539 else
27540 ac_cs_awk_cr=$ac_cr
27543 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27544 _ACEOF
27546 # Create commands to substitute file output variables.
27548 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27549 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27550 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27551 echo "_ACAWK" &&
27552 echo "_ACEOF"
27553 } >conf$$files.sh &&
27554 . ./conf$$files.sh ||
27555 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27556 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27557 { (exit 1); exit 1; }; }
27558 rm -f conf$$files.sh
27561 echo "cat >conf$$subs.awk <<_ACEOF" &&
27562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27563 echo "_ACEOF"
27564 } >conf$$subs.sh ||
27565 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27566 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27567 { (exit 1); exit 1; }; }
27568 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27569 ac_delim='%!_!# '
27570 for ac_last_try in false false false false false :; do
27571 . ./conf$$subs.sh ||
27572 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27573 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27574 { (exit 1); exit 1; }; }
27576 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27577 break
27578 elif $ac_last_try; then
27579 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27580 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27581 { (exit 1); exit 1; }; }
27582 else
27583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27585 done
27586 rm -f conf$$subs.sh
27588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27589 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27590 _ACEOF
27591 sed -n '
27593 s/^/S["/; s/!.*/"]=/
27596 s/^[^!]*!//
27597 :repl
27598 t repl
27599 s/'"$ac_delim"'$//
27600 t delim
27603 s/\(.\{148\}\).*/\1/
27604 t more1
27605 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27608 b repl
27609 :more1
27610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27613 s/.\{148\}//
27614 t nl
27615 :delim
27617 s/\(.\{148\}\).*/\1/
27618 t more2
27619 s/["\\]/\\&/g; s/^/"/; s/$/"/
27622 :more2
27623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27626 s/.\{148\}//
27627 t delim
27628 ' <conf$$subs.awk | sed '
27629 /^[^""]/{
27631 s/\n//
27633 ' >>$CONFIG_STATUS || ac_write_fail=1
27634 rm -f conf$$subs.awk
27635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27636 _ACAWK
27637 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27638 for (key in S) S_is_set[key] = 1
27639 FS = "\a"
27640 \$ac_cs_awk_pipe_init
27643 line = $ 0
27644 nfields = split(line, field, "@")
27645 substed = 0
27646 len = length(field[1])
27647 for (i = 2; i < nfields; i++) {
27648 key = field[i]
27649 keylen = length(key)
27650 if (S_is_set[key]) {
27651 value = S[key]
27652 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27653 len += length(value) + length(field[++i])
27654 substed = 1
27655 } else
27656 len += 1 + keylen
27658 if (nfields == 3 && !substed) {
27659 key = field[2]
27660 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27661 \$ac_cs_awk_read_file
27662 next
27665 print line
27667 \$ac_cs_awk_pipe_fini
27668 _ACAWK
27669 _ACEOF
27670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27673 else
27675 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27676 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27677 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27678 { (exit 1); exit 1; }; }
27679 _ACEOF
27681 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27682 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27683 # trailing colons and then remove the whole line if VPATH becomes empty
27684 # (actually we leave an empty line to preserve line numbers).
27685 if test "x$srcdir" = x.; then
27686 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27687 s/:*\$(srcdir):*/:/
27688 s/:*\${srcdir}:*/:/
27689 s/:*@srcdir@:*/:/
27690 s/^\([^=]*=[ ]*\):*/\1/
27691 s/:*$//
27692 s/^[^=]*=[ ]*$//
27696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27697 fi # test -n "$CONFIG_FILES"
27699 # Set up the scripts for CONFIG_HEADERS section.
27700 # No need to generate them if there are no CONFIG_HEADERS.
27701 # This happens for instance with `./config.status Makefile'.
27702 if test -n "$CONFIG_HEADERS"; then
27703 cat >"$tmp/defines.awk" <<\_ACAWK ||
27704 BEGIN {
27705 _ACEOF
27707 # Transform confdefs.h into an awk script `defines.awk', embedded as
27708 # here-document in config.status, that substitutes the proper values into
27709 # config.h.in to produce config.h.
27711 # Create a delimiter string that does not exist in confdefs.h, to ease
27712 # handling of long lines.
27713 ac_delim='%!_!# '
27714 for ac_last_try in false false :; do
27715 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27716 if test -z "$ac_t"; then
27717 break
27718 elif $ac_last_try; then
27719 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27720 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27721 { (exit 1); exit 1; }; }
27722 else
27723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27725 done
27727 # For the awk script, D is an array of macro values keyed by name,
27728 # likewise P contains macro parameters if any. Preserve backslash
27729 # newline sequences.
27731 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27732 sed -n '
27733 s/.\{148\}/&'"$ac_delim"'/g
27734 t rset
27735 :rset
27736 s/^[ ]*#[ ]*define[ ][ ]*/ /
27737 t def
27739 :def
27740 s/\\$//
27741 t bsnl
27742 s/["\\]/\\&/g
27743 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27744 D["\1"]=" \3"/p
27745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27747 :bsnl
27748 s/["\\]/\\&/g
27749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27750 D["\1"]=" \3\\\\\\n"\\/p
27751 t cont
27752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27753 t cont
27755 :cont
27757 s/.\{148\}/&'"$ac_delim"'/g
27758 t clear
27759 :clear
27760 s/\\$//
27761 t bsnlc
27762 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27764 :bsnlc
27765 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27766 b cont
27767 ' <confdefs.h | sed '
27768 s/'"$ac_delim"'/"\\\
27769 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27772 for (key in D) D_is_set[key] = 1
27773 FS = "\a"
27775 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27776 line = \$ 0
27777 split(line, arg, " ")
27778 if (arg[1] == "#") {
27779 defundef = arg[2]
27780 mac1 = arg[3]
27781 } else {
27782 defundef = substr(arg[1], 2)
27783 mac1 = arg[2]
27785 split(mac1, mac2, "(") #)
27786 macro = mac2[1]
27787 if (D_is_set[macro]) {
27788 # Preserve the white space surrounding the "#".
27789 prefix = substr(line, 1, index(line, defundef) - 1)
27790 print prefix "define", macro P[macro] D[macro]
27791 next
27792 } else {
27793 # Replace #undef with comments. This is necessary, for example,
27794 # in the case of _POSIX_SOURCE, which is predefined and required
27795 # on some systems where configure will not decide to define it.
27796 if (defundef == "undef") {
27797 print "/*", line, "*/"
27798 next
27802 { print }
27803 _ACAWK
27804 _ACEOF
27805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27806 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27807 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27808 { (exit 1); exit 1; }; }
27809 fi # test -n "$CONFIG_HEADERS"
27812 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27813 shift
27814 for ac_tag
27816 case $ac_tag in
27817 :[FHLC]) ac_mode=$ac_tag; continue;;
27818 esac
27819 case $ac_mode$ac_tag in
27820 :[FHL]*:*);;
27821 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27822 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27823 { (exit 1); exit 1; }; };;
27824 :[FH]-) ac_tag=-:-;;
27825 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27826 esac
27827 ac_save_IFS=$IFS
27828 IFS=:
27829 set x $ac_tag
27830 IFS=$ac_save_IFS
27831 shift
27832 ac_file=$1
27833 shift
27835 case $ac_mode in
27836 :L) ac_source=$1;;
27837 :[FH])
27838 ac_file_inputs=
27839 for ac_f
27841 case $ac_f in
27842 -) ac_f="$tmp/stdin";;
27843 *) # Look for the file first in the build tree, then in the source tree
27844 # (if the path is not absolute). The absolute path cannot be DOS-style,
27845 # because $ac_f cannot contain `:'.
27846 test -f "$ac_f" ||
27847 case $ac_f in
27848 [\\/$]*) false;;
27849 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27850 esac ||
27851 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27852 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27853 { (exit 1); exit 1; }; };;
27854 esac
27855 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27856 ac_file_inputs="$ac_file_inputs '$ac_f'"
27857 done
27859 # Let's still pretend it is `configure' which instantiates (i.e., don't
27860 # use $as_me), people would be surprised to read:
27861 # /* config.h. Generated by config.status. */
27862 configure_input='Generated from '`
27863 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27864 `' by configure.'
27865 if test x"$ac_file" != x-; then
27866 configure_input="$ac_file. $configure_input"
27867 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27868 $as_echo "$as_me: creating $ac_file" >&6;}
27870 # Neutralize special characters interpreted by sed in replacement strings.
27871 case $configure_input in #(
27872 *\&* | *\|* | *\\* )
27873 ac_sed_conf_input=`$as_echo "$configure_input" |
27874 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27875 *) ac_sed_conf_input=$configure_input;;
27876 esac
27878 case $ac_tag in
27879 *:-:* | *:-) cat >"$tmp/stdin" \
27880 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27881 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27882 { (exit 1); exit 1; }; } ;;
27883 esac
27885 esac
27887 ac_dir=`$as_dirname -- "$ac_file" ||
27888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889 X"$ac_file" : 'X\(//\)[^/]' \| \
27890 X"$ac_file" : 'X\(//\)$' \| \
27891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27892 $as_echo X"$ac_file" |
27893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27894 s//\1/
27897 /^X\(\/\/\)[^/].*/{
27898 s//\1/
27901 /^X\(\/\/\)$/{
27902 s//\1/
27905 /^X\(\/\).*/{
27906 s//\1/
27909 s/.*/./; q'`
27910 { as_dir="$ac_dir"
27911 case $as_dir in #(
27912 -*) as_dir=./$as_dir;;
27913 esac
27914 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27915 as_dirs=
27916 while :; do
27917 case $as_dir in #(
27918 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27919 *) as_qdir=$as_dir;;
27920 esac
27921 as_dirs="'$as_qdir' $as_dirs"
27922 as_dir=`$as_dirname -- "$as_dir" ||
27923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27924 X"$as_dir" : 'X\(//\)[^/]' \| \
27925 X"$as_dir" : 'X\(//\)$' \| \
27926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27927 $as_echo X"$as_dir" |
27928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27929 s//\1/
27932 /^X\(\/\/\)[^/].*/{
27933 s//\1/
27936 /^X\(\/\/\)$/{
27937 s//\1/
27940 /^X\(\/\).*/{
27941 s//\1/
27944 s/.*/./; q'`
27945 test -d "$as_dir" && break
27946 done
27947 test -z "$as_dirs" || eval "mkdir $as_dirs"
27948 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27949 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27950 { (exit 1); exit 1; }; }; }
27951 ac_builddir=.
27953 case "$ac_dir" in
27954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27957 # A ".." for each directory in $ac_dir_suffix.
27958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27959 case $ac_top_builddir_sub in
27960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27962 esac ;;
27963 esac
27964 ac_abs_top_builddir=$ac_pwd
27965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27966 # for backward compatibility:
27967 ac_top_builddir=$ac_top_build_prefix
27969 case $srcdir in
27970 .) # We are building in place.
27971 ac_srcdir=.
27972 ac_top_srcdir=$ac_top_builddir_sub
27973 ac_abs_top_srcdir=$ac_pwd ;;
27974 [\\/]* | ?:[\\/]* ) # Absolute name.
27975 ac_srcdir=$srcdir$ac_dir_suffix;
27976 ac_top_srcdir=$srcdir
27977 ac_abs_top_srcdir=$srcdir ;;
27978 *) # Relative name.
27979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27980 ac_top_srcdir=$ac_top_build_prefix$srcdir
27981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27982 esac
27983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27986 case $ac_mode in
27989 # CONFIG_FILE
27992 case $INSTALL in
27993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27995 esac
27996 _ACEOF
27998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27999 # If the template does not know about datarootdir, expand it.
28000 # FIXME: This hack should be removed a few years after 2.60.
28001 ac_datarootdir_hack=; ac_datarootdir_seen=
28003 ac_sed_dataroot='
28004 /datarootdir/ {
28008 /@datadir@/p
28009 /@docdir@/p
28010 /@infodir@/p
28011 /@localedir@/p
28012 /@mandir@/p
28014 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28015 *datarootdir*) ac_datarootdir_seen=yes;;
28016 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28017 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28018 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28019 _ACEOF
28020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28021 ac_datarootdir_hack='
28022 s&@datadir@&$datadir&g
28023 s&@docdir@&$docdir&g
28024 s&@infodir@&$infodir&g
28025 s&@localedir@&$localedir&g
28026 s&@mandir@&$mandir&g
28027 s&\\\${datarootdir}&$datarootdir&g' ;;
28028 esac
28029 _ACEOF
28031 # Neutralize VPATH when `$srcdir' = `.'.
28032 # Shell code in configure.ac might set extrasub.
28033 # FIXME: do we really want to maintain this feature?
28034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28035 ac_sed_extra="$ac_vpsub
28036 $extrasub
28037 _ACEOF
28038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28041 s|@configure_input@|$ac_sed_conf_input|;t t
28042 s&@top_builddir@&$ac_top_builddir_sub&;t t
28043 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28044 s&@srcdir@&$ac_srcdir&;t t
28045 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28046 s&@top_srcdir@&$ac_top_srcdir&;t t
28047 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28048 s&@builddir@&$ac_builddir&;t t
28049 s&@abs_builddir@&$ac_abs_builddir&;t t
28050 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28051 s&@INSTALL@&$ac_INSTALL&;t t
28052 $ac_datarootdir_hack
28054 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28055 if $ac_cs_awk_getline; then
28056 $AWK -f "$tmp/subs.awk"
28057 else
28058 $AWK -f "$tmp/subs.awk" | $SHELL
28059 fi >$tmp/out \
28060 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28061 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28062 { (exit 1); exit 1; }; }
28064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28067 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28068 which seems to be undefined. Please make sure it is defined." >&5
28069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28070 which seems to be undefined. Please make sure it is defined." >&2;}
28072 rm -f "$tmp/stdin"
28073 case $ac_file in
28074 -) cat "$tmp/out" && rm -f "$tmp/out";;
28075 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28076 esac \
28077 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28078 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28079 { (exit 1); exit 1; }; }
28083 # CONFIG_HEADER
28085 if test x"$ac_file" != x-; then
28087 $as_echo "/* $configure_input */" \
28088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28089 } >"$tmp/config.h" \
28090 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28091 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28092 { (exit 1); exit 1; }; }
28093 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28094 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28095 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28096 else
28097 rm -f "$ac_file"
28098 mv "$tmp/config.h" "$ac_file" \
28099 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28100 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28101 { (exit 1); exit 1; }; }
28103 else
28104 $as_echo "/* $configure_input */" \
28105 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28106 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28107 $as_echo "$as_me: error: could not create -" >&2;}
28108 { (exit 1); exit 1; }; }
28112 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28113 $as_echo "$as_me: executing $ac_file commands" >&6;}
28115 esac
28118 case $ac_file$ac_mode in
28119 "default":C)
28121 ### Make the necessary directories, if they don't exist.
28122 for dir in etc lisp ; do
28123 test -d ${dir} || mkdir ${dir}
28124 done
28126 # Build src/Makefile from ${srcdir}/src/Makefile.c
28127 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28128 # This must be done after src/config.h is built, since we rely on that file.
28130 echo creating src/epaths.h
28131 ${MAKE-make} epaths-force
28133 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28134 # `..' to `. .' unless invoked with -traditional
28136 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28137 CPPFLAGS="$CPPFLAGS -traditional"
28140 echo creating src/Makefile
28141 ( cd src
28142 rm -f junk.c junk1.c junk2.c
28143 sed -e '/start of cpp stuff/q' \
28144 < Makefile.c > junk1.c
28145 sed -e '1,/start of cpp stuff/d'\
28146 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28147 < Makefile.c > junk.c
28148 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28149 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28150 cat junk1.c junk2.c > Makefile.new
28151 rm -f junk.c junk1.c junk2.c
28152 chmod 444 Makefile.new
28153 mv -f Makefile.new Makefile
28156 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28157 echo creating src/.gdbinit
28158 echo source $srcdir/src/.gdbinit > src/.gdbinit
28163 esac
28164 done # for ac_tag
28167 { (exit 0); exit 0; }
28168 _ACEOF
28169 chmod +x $CONFIG_STATUS
28170 ac_clean_files=$ac_clean_files_save
28172 test $ac_write_fail = 0 ||
28173 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28174 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28175 { (exit 1); exit 1; }; }
28178 # configure is writing to config.log, and then calls config.status.
28179 # config.status does its own redirection, appending to config.log.
28180 # Unfortunately, on DOS this fails, as config.log is still kept open
28181 # by configure, so config.status won't be able to write to it; its
28182 # output is simply discarded. So we exec the FD to /dev/null,
28183 # effectively closing config.log, so it can be properly (re)opened and
28184 # appended to by config.status. When coming back to configure, we
28185 # need to make the FD available again.
28186 if test "$no_create" != yes; then
28187 ac_cs_success=:
28188 ac_config_status_args=
28189 test "$silent" = yes &&
28190 ac_config_status_args="$ac_config_status_args --quiet"
28191 exec 5>/dev/null
28192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28193 exec 5>>config.log
28194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28195 # would make configure fail if this is the last instruction.
28196 $ac_cs_success || { (exit 1); exit 1; }
28198 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28199 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28200 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}