(cc-imenu-java-generic-expression): A new, more accurate version of the
[emacs.git] / configure
blob3f1b2bcde6948c47ce6d0f45572e0c39486dd97e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.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='23.1.50'
598 PACKAGE_STRING='emacs 23.1.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 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 GCONF_CFLAGS
720 GCONF_LIBS
721 FONTCONFIG_CFLAGS
722 FONTCONFIG_LIBS
723 XFT_CFLAGS
724 XFT_LIBS
725 LIBOTF_CFLAGS
726 LIBOTF_LIBS
727 M17N_FLT_CFLAGS
728 M17N_FLT_LIBS
729 FREETYPE_CFLAGS
730 FREETYPE_LIBS
731 ALLOCA
732 liblockfile
733 LIBOBJS
734 NEED_SETGID
735 KMEM_GROUP
736 GETLOADAVG_LIBS
737 GETOPT_H
738 GETOPTOBJS
739 version
740 configuration
741 canonical
742 srcdir
743 lispdir
744 locallisppath
745 lisppath
746 x_default_search_path
747 etcdir
748 archlibdir
749 bitmapdir
750 gamedir
751 gameuser
752 c_switch_system
753 c_switch_machine
754 LD_SWITCH_X_SITE
755 LD_SWITCH_X_SITE_AUX
756 C_SWITCH_X_SITE
757 X_TOOLKIT_TYPE
758 machfile
759 opsysfile
760 ns_appdir
761 ns_appbindir
762 ns_appresdir
763 ns_appsrc
764 GNUSTEP_MAKEFILES
765 GNUSTEP_SYSTEM_HEADERS
766 GNUSTEP_SYSTEM_LIBRARIES
767 GNU_OBJC_CFLAGS
768 LIB_SRC_EXTRA_INSTALLABLES
769 OTHER_FILES
770 LTLIBOBJS'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 with_pop
775 with_kerberos
776 with_kerberos5
777 with_hesiod
778 with_sound
779 with_sync_input
780 with_x_toolkit
781 with_xpm
782 with_jpeg
783 with_tiff
784 with_gif
785 with_png
786 with_rsvg
787 with_xft
788 with_libotf
789 with_m17n_flt
790 with_toolkit_scroll_bars
791 with_xaw3d
792 with_xim
793 with_ns
794 with_gpm
795 with_dbus
796 with_gconf
797 with_makeinfo
798 with_gtk
799 with_gcc
800 with_pkg_config_prog
801 with_gnustep_conf
802 enable_ns_self_contained
803 enable_asserts
804 enable_maintainer_mode
805 enable_locallisppath
806 enable_checking
807 enable_profiling
808 enable_autodepend
809 enable_largefile
810 with_x
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
821 XMKMF'
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
872 ac_prev=
873 ac_dashdash=
874 for ac_option
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
883 case $ac_option in
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *) ac_optarg=yes ;;
886 esac
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
892 ac_dashdash=yes ;;
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
911 --config-cache | -C)
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
931 { (exit 1); exit 1; }; }
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
958 { (exit 1); exit 1; }; }
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1210 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 esac
1233 done
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1245 { (exit 1); exit 1; }; } ;;
1246 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1324 /^X\(\/\/\)$/{
1325 s//\1/
1328 /^X\(\/\).*/{
1329 s//\1/
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1337 else
1338 ac_srcdir_defaulted=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1429 cat <<\_ACEOF
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 X features:
1437 --x-includes=DIR X include files are in DIR
1438 --x-libraries=DIR X library files are in DIR
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1449 esac
1450 cat <<\_ACEOF
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --disable-ns-self-contained
1457 disable self contained build under NeXTstep
1458 --enable-asserts compile code with asserts enabled
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful (and
1461 sometimes confusing) to the casual installer
1462 --enable-locallisppath=PATH
1463 directories Emacs should search for lisp files
1464 specific to this site
1465 --enable-checking[=LIST]
1466 enable expensive run-time checks. With LIST, enable
1467 only specific categories of checks. Categories are:
1468 all,yes,no. Flags are: stringbytes, stringoverrun,
1469 stringfreelist, xmallocoverrun, conslist
1470 --enable-profiling build emacs with profiling support. This might not
1471 work on all platforms
1472 --enable-autodepend automatically generate dependencies to .h-files.
1473 Requires GNU Make and Gcc. Enabled if GNU Make and
1474 Gcc is found
1475 --disable-largefile omit support for large files
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --without-pop don't support POP mail retrieval with movemail
1481 --with-kerberos support Kerberos-authenticated POP
1482 --with-kerberos5 support Kerberos version 5 authenticated POP
1483 --with-hesiod support Hesiod to get the POP server host
1484 --without-sound don't compile with sound support
1485 --without-sync-input process async input synchronously
1486 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1487 motif, gtk, no)
1488 --without-xpm don't compile with XPM image support
1489 --without-jpeg don't compile with JPEG image support
1490 --without-tiff don't compile with TIFF image support
1491 --without-gif don't compile with GIF image support
1492 --without-png don't compile with PNG image support
1493 --without-rsvg don't compile with SVG image support
1494 --without-xft don't use XFT for anti aliased fonts
1495 --without-libotf don't use libotf for OpenType font support
1496 --without-m17n-flt don't use m17n-flt for text shaping
1497 --without-toolkit-scroll-bars
1498 don't use Motif or Xaw3d scroll bars
1499 --without-xaw3d don't use Xaw3d
1500 --without-xim don't use X11 XIM
1501 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1502 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1503 console
1504 --without-dbus don't compile with D-Bus support
1505 --without-gconf don't compile with GConf support
1506 --without-makeinfo don't require makeinfo for building manuals
1508 --with-pkg-config-prog=PATH
1509 path to pkg-config for finding GTK and librsvg
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1512 or /etc/GNUstep/GNUstep.conf
1513 --with-x use the X Window System
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 XMKMF Path to xmkmf, Makefile generator for X Window System
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1529 _ACEOF
1530 ac_status=$?
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 emacs configure 23.1.50
1592 generated by GNU Autoconf 2.62
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by emacs $as_me 23.1.50, which was
1606 generated by GNU Autoconf 2.62. Invocation command line was
1608 $ $0 $@
1610 _ACEOF
1611 exec 5>>config.log
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1635 _ASUNAME
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1646 } >&5
1648 cat >&5 <<_ACEOF
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1655 _ACEOF
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1669 for ac_arg
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
1676 *\'*)
1677 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1685 else
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1695 -* ) ac_must_keep_next=true ;;
1696 esac
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 esac
1701 done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1714 echo
1716 cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1736 esac ;;
1737 esac
1738 done
1739 (set) 2>&1 |
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1742 sed -n \
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 ;; #(
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 esac |
1750 sort
1752 echo
1754 cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 $as_echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1770 if test -n "$ac_subst_files"; then
1771 cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 $as_echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1788 if test -s confdefs.h; then
1789 cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794 echo
1795 cat confdefs.h
1796 echo
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1801 } >&5
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 exit $exit_status
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1843 ac_site_file1=NONE
1844 ac_site_file2=NONE
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1850 else
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1861 . "$ac_site_file"
1863 done
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1871 case $cache_file in
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1874 esac
1876 else
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1879 >$cache_file
1882 ac_header_list="$ac_header_list sys/time.h"
1883 ac_header_list="$ac_header_list unistd.h"
1884 ac_func_list="$ac_func_list alarm"
1885 # Check that the precious variables saved in the cache have kept the same
1886 # value.
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1894 set,)
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1896 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,set)
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1900 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,);;
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 # differences in whitespace do not lead to failure.
1906 ac_old_val_w=`echo x $ac_old_val`
1907 ac_new_val_w=`echo x $ac_new_val`
1908 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1909 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 ac_cache_corrupted=:
1912 else
1913 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1914 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1915 eval $ac_var=\$ac_old_val
1917 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1918 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1919 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1920 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1921 fi;;
1922 esac
1923 # Pass precious variables to config.status.
1924 if test "$ac_new_set" = set; then
1925 case $ac_new_val in
1926 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 *) ac_arg=$ac_var=$ac_new_val ;;
1928 esac
1929 case " $ac_configure_args " in
1930 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1931 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932 esac
1934 done
1935 if $ac_cache_corrupted; then
1936 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1940 { (exit 1); exit 1; }; }
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1978 test "$program_prefix" != NONE &&
1979 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1980 # Use a double $ so make ignores it.
1981 test "$program_suffix" != NONE &&
1982 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1983 # Double any \ or $.
1984 # By default was `s,x,x', remove it if useless.
1985 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1986 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1989 lispdir='${datadir}/emacs/${version}/lisp'
1990 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1991 '${datadir}/emacs/site-lisp'
1992 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1993 etcdir='${datadir}/emacs/${version}/etc'
1994 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1995 docdir='${datadir}/emacs/${version}/etc'
1996 gamedir='${localstatedir}/games/emacs'
1998 gameuser=games
2003 # Check whether --with-pop was given.
2004 if test "${with_pop+set}" = set; then
2005 withval=$with_pop;
2006 else
2007 with_pop=yes
2010 if test "$with_pop" = yes; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define MAIL_USE_POP 1
2013 _ACEOF
2019 # Check whether --with-kerberos was given.
2020 if test "${with_kerberos+set}" = set; then
2021 withval=$with_kerberos;
2022 else
2023 with_kerberos=no
2026 if test "$with_kerberos" != no; then
2027 cat >>confdefs.h <<\_ACEOF
2028 #define KERBEROS 1
2029 _ACEOF
2035 # Check whether --with-kerberos5 was given.
2036 if test "${with_kerberos5+set}" = set; then
2037 withval=$with_kerberos5;
2038 else
2039 with_kerberos5=no
2042 if test "${with_kerberos5}" != no; then
2043 if test "${with_kerberos}" = no; then
2044 with_kerberos=yes
2045 cat >>confdefs.h <<\_ACEOF
2046 #define KERBEROS 1
2047 _ACEOF
2051 cat >>confdefs.h <<\_ACEOF
2052 #define KERBEROS5 1
2053 _ACEOF
2058 # Check whether --with-hesiod was given.
2059 if test "${with_hesiod+set}" = set; then
2060 withval=$with_hesiod;
2061 else
2062 with_hesiod=no
2065 if test "$with_hesiod" != no; then
2067 cat >>confdefs.h <<\_ACEOF
2068 #define HESIOD 1
2069 _ACEOF
2074 # Check whether --with-sound was given.
2075 if test "${with_sound+set}" = set; then
2076 withval=$with_sound;
2077 else
2078 with_sound=yes
2083 # Check whether --with-sync-input was given.
2084 if test "${with_sync_input+set}" = set; then
2085 withval=$with_sync_input;
2086 else
2087 with_sync_input=yes
2090 if test "$with_sync_input" = yes; then
2092 cat >>confdefs.h <<\_ACEOF
2093 #define SYNC_INPUT 1
2094 _ACEOF
2099 # Check whether --with-x-toolkit was given.
2100 if test "${with_x_toolkit+set}" = set; then
2101 withval=$with_x_toolkit; case "${withval}" in
2102 y | ye | yes ) val=gtk ;;
2103 n | no ) val=no ;;
2104 l | lu | luc | luci | lucid ) val=lucid ;;
2105 a | at | ath | athe | athen | athena ) val=athena ;;
2106 m | mo | mot | moti | motif ) val=motif ;;
2107 g | gt | gtk ) val=gtk ;;
2109 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2110 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2111 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2112 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2113 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2114 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2115 { (exit 1); exit 1; }; }
2117 esac
2118 with_x_toolkit=$val
2124 # Check whether --with-xpm was given.
2125 if test "${with_xpm+set}" = set; then
2126 withval=$with_xpm;
2127 else
2128 with_xpm=yes
2132 # Check whether --with-jpeg was given.
2133 if test "${with_jpeg+set}" = set; then
2134 withval=$with_jpeg;
2135 else
2136 with_jpeg=yes
2140 # Check whether --with-tiff was given.
2141 if test "${with_tiff+set}" = set; then
2142 withval=$with_tiff;
2143 else
2144 with_tiff=yes
2148 # Check whether --with-gif was given.
2149 if test "${with_gif+set}" = set; then
2150 withval=$with_gif;
2151 else
2152 with_gif=yes
2156 # Check whether --with-png was given.
2157 if test "${with_png+set}" = set; then
2158 withval=$with_png;
2159 else
2160 with_png=yes
2164 # Check whether --with-rsvg was given.
2165 if test "${with_rsvg+set}" = set; then
2166 withval=$with_rsvg;
2167 else
2168 with_rsvg=yes
2173 # Check whether --with-xft was given.
2174 if test "${with_xft+set}" = set; then
2175 withval=$with_xft;
2176 else
2177 with_xft=yes
2181 # Check whether --with-libotf was given.
2182 if test "${with_libotf+set}" = set; then
2183 withval=$with_libotf;
2184 else
2185 with_libotf=yes
2189 # Check whether --with-m17n-flt was given.
2190 if test "${with_m17n_flt+set}" = set; then
2191 withval=$with_m17n_flt;
2192 else
2193 with_m17n_flt=yes
2198 # Check whether --with-toolkit-scroll-bars was given.
2199 if test "${with_toolkit_scroll_bars+set}" = set; then
2200 withval=$with_toolkit_scroll_bars;
2201 else
2202 with_toolkit_scroll_bars=yes
2206 # Check whether --with-xaw3d was given.
2207 if test "${with_xaw3d+set}" = set; then
2208 withval=$with_xaw3d;
2209 else
2210 with_xaw3d=yes
2214 # Check whether --with-xim was given.
2215 if test "${with_xim+set}" = set; then
2216 withval=$with_xim;
2217 else
2218 with_xim=yes
2222 # Check whether --with-ns was given.
2223 if test "${with_ns+set}" = set; then
2224 withval=$with_ns;
2225 else
2226 with_ns=no
2231 # Check whether --with-gpm was given.
2232 if test "${with_gpm+set}" = set; then
2233 withval=$with_gpm;
2234 else
2235 with_gpm=yes
2239 # Check whether --with-dbus was given.
2240 if test "${with_dbus+set}" = set; then
2241 withval=$with_dbus;
2242 else
2243 with_dbus=yes
2247 # Check whether --with-gconf was given.
2248 if test "${with_gconf+set}" = set; then
2249 withval=$with_gconf;
2250 else
2251 with_gconf=yes
2255 ## For the times when you want to build Emacs but don't have
2256 ## a suitable makeinfo, and can live without the manuals.
2258 # Check whether --with-makeinfo was given.
2259 if test "${with_makeinfo+set}" = set; then
2260 withval=$with_makeinfo;
2261 else
2262 with_makeinfo=yes
2267 # Check whether --with-gtk was given.
2268 if test "${with_gtk+set}" = set; then
2269 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2270 specify a toolkit." >&5
2271 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2272 specify a toolkit." >&2;}
2273 { (exit 1); exit 1; }; }
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2280 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2281 variable to specify a compiler." >&5
2282 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2283 variable to specify a compiler." >&2;}
2284 { (exit 1); exit 1; }; }
2289 # Check whether --with-pkg-config-prog was given.
2290 if test "${with_pkg_config_prog+set}" = set; then
2291 withval=$with_pkg_config_prog;
2294 if test "X${with_pkg_config_prog}" != X; then
2295 if test "${with_pkg_config_prog}" != yes; then
2296 PKG_CONFIG="${with_pkg_config_prog}"
2301 # Check whether --with-gnustep-conf was given.
2302 if test "${with_gnustep_conf+set}" = set; then
2303 withval=$with_gnustep_conf;
2306 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2307 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2308 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2309 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2311 # Check whether --enable-ns-self-contained was given.
2312 if test "${enable_ns_self_contained+set}" = set; then
2313 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2314 else
2315 EN_NS_SELF_CONTAINED=yes
2319 # Check whether --enable-asserts was given.
2320 if test "${enable_asserts+set}" = set; then
2321 enableval=$enable_asserts; USE_XASSERTS=$enableval
2322 else
2323 USE_XASSERTS=no
2327 # Check whether --enable-maintainer-mode was given.
2328 if test "${enable_maintainer_mode+set}" = set; then
2329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2330 else
2331 USE_MAINTAINER_MODE=no
2334 if test $USE_MAINTAINER_MODE = yes; then
2335 MAINT=
2336 else
2337 MAINT=#
2341 # Check whether --enable-locallisppath was given.
2342 if test "${enable_locallisppath+set}" = set; then
2343 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2344 locallisppath=
2345 elif test "${enableval}" != "yes"; then
2346 locallisppath=${enableval}
2351 # Check whether --enable-checking was given.
2352 if test "${enable_checking+set}" = set; then
2353 enableval=$enable_checking; ac_checking_flags="${enableval}"
2356 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2357 for check in $ac_checking_flags
2359 case $check in
2360 # these set all the flags to specific states
2361 yes) ac_enable_checking=1 ;;
2362 no) ac_enable_checking= ;
2363 ac_gc_check_stringbytes= ;
2364 ac_gc_check_string_overrun= ;
2365 ac_gc_check_string_free_list= ;
2366 ac_xmalloc_overrun= ;
2367 ac_gc_check_cons_list= ;;
2368 all) ac_enable_checking=1 ;
2369 ac_gc_check_stringbytes=1 ;
2370 ac_gc_check_string_overrun=1 ;
2371 ac_gc_check_string_free_list=1 ;
2372 ac_xmalloc_overrun=1 ;
2373 ac_gc_check_cons_list=1 ;;
2374 # these enable particular checks
2375 stringbytes) ac_gc_check_stringbytes=1 ;;
2376 stringoverrun) ac_gc_check_string_overrun=1 ;;
2377 stringfreelist) ac_gc_check_string_free_list=1 ;;
2378 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2379 conslist) ac_gc_check_cons_list=1 ;;
2380 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2381 $as_echo "$as_me: error: unknown check category $check" >&2;}
2382 { (exit 1); exit 1; }; } ;;
2383 esac
2384 done
2385 IFS="$ac_save_IFS"
2387 if test x$ac_enable_checking != x ; then
2389 cat >>confdefs.h <<\_ACEOF
2390 #define ENABLE_CHECKING 1
2391 _ACEOF
2394 if test x$ac_gc_check_stringbytes != x ; then
2396 cat >>confdefs.h <<\_ACEOF
2397 #define GC_CHECK_STRING_BYTES 1
2398 _ACEOF
2401 if test x$ac_gc_check_stringoverrun != x ; then
2403 cat >>confdefs.h <<\_ACEOF
2404 #define GC_CHECK_STRING_OVERRUN 1
2405 _ACEOF
2408 if test x$ac_gc_check_string_free_list != x ; then
2410 cat >>confdefs.h <<\_ACEOF
2411 #define GC_CHECK_STRING_FREE_LIST 1
2412 _ACEOF
2415 if test x$ac_xmalloc_overrun != x ; then
2417 cat >>confdefs.h <<\_ACEOF
2418 #define XMALLOC_OVERRUN_CHECK 1
2419 _ACEOF
2422 if test x$ac_gc_check_cons_list != x ; then
2424 cat >>confdefs.h <<\_ACEOF
2425 #define GC_CHECK_CONS_LIST 1
2426 _ACEOF
2430 # Check whether --enable-profiling was given.
2431 if test "${enable_profiling+set}" = set; then
2432 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2435 if test x$ac_enable_profiling != x ; then
2436 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2437 PROFILING_LDFLAGS="-pg"
2438 else
2439 PROFILING_CFLAGS=
2440 PROFILING_LDFLAGS=
2443 # Check whether --enable-autodepend was given.
2444 if test "${enable_autodepend+set}" = set; then
2445 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2446 else
2447 ac_enable_autodepend=yes
2451 #### Make srcdir absolute, if it isn't already. It's important to
2452 #### avoid running the path through pwd unnecessarily, since pwd can
2453 #### give you automounter prefixes, which can go away. We do all this
2454 #### so Emacs can find its files when run uninstalled.
2455 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2456 unset CDPATH
2457 case "${srcdir}" in
2458 /* ) ;;
2460 ## We may be able to use the $PWD environment variable to make this
2461 ## absolute. But sometimes PWD is inaccurate.
2462 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2463 ## but that tested only for a well-formed and valid PWD,
2464 ## it did not object when PWD was well-formed and valid but just wrong.
2465 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2466 then
2467 srcdir="$PWD"
2468 else
2469 srcdir="`(cd ${srcdir}; pwd)`"
2472 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2473 esac
2475 #### Check if the source directory already has a configured system in it.
2476 if test `pwd` != `(cd ${srcdir} && pwd)` \
2477 && test -f "${srcdir}/src/config.h" ; then
2478 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2479 as a build directory right now; it has been configured in its own
2480 right. To configure in another directory as well, you MUST
2481 use GNU make. If you do not have GNU make, then you must
2482 now do \`make distclean' in ${srcdir},
2483 and then run $0 again." >&5
2484 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2485 as a build directory right now; it has been configured in its own
2486 right. To configure in another directory as well, you MUST
2487 use GNU make. If you do not have GNU make, then you must
2488 now do \`make distclean' in ${srcdir},
2489 and then run $0 again." >&2;}
2492 #### Given the configuration name, set machfile and opsysfile to the
2493 #### names of the m/*.h and s/*.h files we should use.
2495 ### Canonicalize the configuration name.
2497 ac_aux_dir=
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 break
2503 elif test -f "$ac_dir/install.sh"; then
2504 ac_aux_dir=$ac_dir
2505 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 break
2507 elif test -f "$ac_dir/shtool"; then
2508 ac_aux_dir=$ac_dir
2509 ac_install_sh="$ac_aux_dir/shtool install -c"
2510 break
2512 done
2513 if test -z "$ac_aux_dir"; then
2514 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2515 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2516 { (exit 1); exit 1; }; }
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2528 # Make sure we can run config.sub.
2529 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2530 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2532 { (exit 1); exit 1; }; }
2534 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if test "${ac_cv_build+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2538 else
2539 ac_build_alias=$build_alias
2540 test "x$ac_build_alias" = x &&
2541 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x &&
2543 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2544 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2548 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2549 { (exit 1); exit 1; }; }
2552 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2555 *-*-*) ;;
2556 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2557 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2558 { (exit 1); exit 1; }; };;
2559 esac
2560 build=$ac_cv_build
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_build
2563 shift
2564 build_cpu=$1
2565 build_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 build_os=$*
2570 IFS=$ac_save_IFS
2571 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2581 else
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2584 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2585 { (exit 1); exit 1; }; }
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2591 case $ac_cv_host in
2592 *-*-*) ;;
2593 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2594 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2595 { (exit 1); exit 1; }; };;
2596 esac
2597 host=$ac_cv_host
2598 ac_save_IFS=$IFS; IFS='-'
2599 set x $ac_cv_host
2600 shift
2601 host_cpu=$1
2602 host_vendor=$2
2603 shift; shift
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2606 host_os=$*
2607 IFS=$ac_save_IFS
2608 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2611 canonical=$host
2612 configuration=${host_alias-${build_alias-$host}}
2616 ### If you add support for a new configuration, add code to this
2617 ### switch statement to recognize your configuration name and select
2618 ### the appropriate operating system and machine description files.
2620 ### You would hope that you could choose an m/*.h file pretty much
2621 ### based on the machine portion of the configuration name, and an s-
2622 ### file based on the operating system portion. However, it turns out
2623 ### that each m/*.h file is pretty manufacturer-specific - for
2624 ### example mips.h is MIPS
2625 ### So we basically have to have a special case for each
2626 ### configuration name.
2628 ### As far as handling version numbers on operating systems is
2629 ### concerned, make sure things will fail in a fixable way. If
2630 ### /etc/MACHINES doesn't say anything about version numbers, be
2631 ### prepared to handle anything reasonably. If version numbers
2632 ### matter, be sure /etc/MACHINES says something about it.
2634 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2635 ### "System V Release 4"; he writes, "The old convention encouraged
2636 ### confusion between `system' and `release' levels'."
2638 machine='' opsys='' unported=no
2639 case "${canonical}" in
2641 ## FreeBSD ports
2642 *-*-freebsd* )
2643 opsys=freebsd
2644 case "${canonical}" in
2645 alpha*-*-freebsd*) machine=alpha ;;
2646 arm*-*-freebsd*) machine=arm ;;
2647 ia64-*-freebsd*) machine=ia64 ;;
2648 sparc-*-freebsd*) machine=sparc ;;
2649 sparc64-*-freebsd*) machine=sparc ;;
2650 powerpc-*-freebsd*) machine=macppc ;;
2651 i[3456]86-*-freebsd*) machine=intel386 ;;
2652 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2653 esac
2656 ## FreeBSD kernel + glibc based userland
2657 *-*-kfreebsd*gnu* )
2658 opsys=gnu-kfreebsd
2659 case "${canonical}" in
2660 alpha*-*-kfreebsd*) machine=alpha ;;
2661 ia64-*-kfreebsd*) machine=ia64 ;;
2662 sparc-*-kfreebsd*) machine=sparc ;;
2663 sparc64-*-kfreebsd*) machine=sparc ;;
2664 powerpc-*-kfreebsd*) machine=macppc ;;
2665 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2666 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2667 esac
2670 ## NetBSD ports
2671 *-*-netbsd* )
2672 opsys=netbsd
2673 if test -f /usr/lib/crti.o; then
2675 cat >>confdefs.h <<\_ACEOF
2676 #define HAVE_CRTIN /**/
2677 _ACEOF
2681 case "${canonical}" in
2682 alpha*-*-netbsd*) machine=alpha ;;
2683 i[3456]86-*-netbsd*) machine=intel386 ;;
2684 mips-*-netbsd*) machine=mips ;;
2685 mipsel-*-netbsd*) machine=mips ;;
2686 mipseb-*-netbsd*) machine=mips ;;
2687 powerpc-*-netbsd*) machine=macppc ;;
2688 sparc*-*-netbsd*) machine=sparc ;;
2689 vax-*-netbsd*) machine=vax ;;
2690 arm-*-netbsd*) machine=arm ;;
2691 x86_64-*-netbsd*) machine=amdx86-64 ;;
2692 hppa-*-netbsd*) machine=hp800 ;;
2693 m68k-*-netbsd*) machine=m68k ;;
2694 esac
2697 ## OpenBSD ports
2698 *-*-openbsd* )
2699 opsys=openbsd
2700 case "${canonical}" in
2701 alpha*-*-openbsd*) machine=alpha ;;
2702 arm-*-openbsd*) machine=arm ;;
2703 i386-*-openbsd*) machine=intel386 ;;
2704 powerpc-*-openbsd*) machine=macppc ;;
2705 sparc*-*-openbsd*) machine=sparc ;;
2706 vax-*-openbsd*) machine=vax ;;
2707 x86_64-*-openbsd*) machine=amdx86-64 ;;
2708 hppa-*-openbsd*) machine=hp800 ;;
2709 esac
2712 ## LynxOS ports
2713 *-*-lynxos* )
2714 opsys=lynxos
2715 case "${canonical}" in
2716 i[3456]86-*-lynxos*) machine=intel386 ;;
2717 powerpc-*-lynxos*) machine=powerpc ;;
2718 esac
2721 alpha*-*-linux-gnu* )
2722 machine=alpha opsys=gnu-linux
2725 arm*-*-linux-gnu* )
2726 machine=arm opsys=gnu-linux
2729 ## Apple Darwin / Mac OS X
2730 *-apple-darwin* )
2731 case "${canonical}" in
2732 i[3456]86-* ) machine=intel386 ;;
2733 powerpc-* ) machine=macppc ;;
2734 x86_64-* ) machine=amdx86-64 ;;
2735 * ) unported=yes ;;
2736 esac
2737 opsys=darwin
2738 # Define CPP as follows to make autoconf work correctly.
2739 CPP="${CC-cc} -E -no-cpp-precomp"
2740 # Use fink packages if available.
2741 if test -d /sw/include && test -d /sw/lib; then
2742 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2743 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2744 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2748 ## HP 9000 series 700 and 800, running HP/UX
2749 hppa*-hp-hpux10.2* )
2750 machine=hp800 opsys=hpux10-20
2752 hppa*-hp-hpux1[1-9]* )
2753 machine=hp800 opsys=hpux11
2754 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2757 hppa*-*-linux-gnu* )
2758 machine=hp800 opsys=gnu-linux
2761 ## IBM machines
2762 s390-*-linux-gnu* )
2763 machine=ibms390 opsys=gnu-linux
2765 s390x-*-linux-gnu* )
2766 machine=ibms390x opsys=gnu-linux
2768 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2769 machine=ibmrs6000 opsys=aix4-2
2771 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2772 machine=ibmrs6000 opsys=aix4-2
2774 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2775 machine=ibmrs6000 opsys=aix4-2
2777 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2778 machine=ibmrs6000 opsys=aix4-2
2781 ## Macintosh PowerPC
2782 powerpc*-*-linux-gnu* )
2783 machine=macppc opsys=gnu-linux
2786 ## Silicon Graphics machines
2787 ## Iris 4D
2788 mips-sgi-irix6.5 )
2789 machine=iris4d opsys=irix6-5
2790 # Without defining _LANGUAGE_C, things get masked out in the headers
2791 # so that, for instance, grepping for `free' in stdlib.h fails and
2792 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2793 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2794 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2797 ## Suns
2798 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2799 machine=sparc opsys=gnu-linux
2802 *-sun-solaris* \
2803 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2804 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2805 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2806 case "${canonical}" in
2807 i[3456]86-*-* ) machine=intel386 ;;
2808 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2809 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2810 sparc* ) machine=sparc ;;
2811 * ) unported=yes ;;
2812 esac
2813 case "${canonical}" in
2814 *-sunos5.3* | *-solaris2.3* )
2815 opsys=sol2-3
2816 NON_GNU_CPP=/usr/ccs/lib/cpp
2818 *-sunos5.4* | *-solaris2.4* )
2819 opsys=sol2-4
2820 NON_GNU_CPP=/usr/ccs/lib/cpp
2821 RANLIB="ar -ts"
2823 *-sunos5.5* | *-solaris2.5* )
2824 opsys=sol2-5
2825 NON_GNU_CPP=/usr/ccs/lib/cpp
2826 RANLIB="ar -ts"
2828 *-sunos5.6* | *-solaris2.6* )
2829 opsys=sol2-6
2830 NON_GNU_CPP=/usr/ccs/lib/cpp
2831 RANLIB="ar -ts"
2833 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2834 opsys=sol2-6
2835 emacs_check_sunpro_c=yes
2836 NON_GNU_CPP=/usr/ccs/lib/cpp
2838 *-sunos5* | *-solaris* )
2839 opsys=sol2-10
2840 emacs_check_sunpro_c=yes
2841 NON_GNU_CPP=/usr/ccs/lib/cpp
2843 esac
2844 ## Watch out for a compiler that we know will not work.
2845 case "${canonical}" in
2846 *-solaris* | *-sunos5* )
2847 if [ "x$CC" = x/usr/ucb/cc ]; then
2848 ## /usr/ucb/cc doesn't work;
2849 ## we should find some other compiler that does work.
2850 unset CC
2853 *) ;;
2854 esac
2857 ## IA-64
2858 ia64*-*-linux* )
2859 machine=ia64 opsys=gnu-linux
2862 ## Intel 386 machines where we don't care about the manufacturer
2863 i[3456]86-*-* )
2864 machine=intel386
2865 case "${canonical}" in
2866 *-cygwin ) opsys=cygwin ;;
2867 *-darwin* ) opsys=darwin
2868 CPP="${CC-cc} -E -no-cpp-precomp"
2870 *-linux-gnu* ) opsys=gnu-linux ;;
2871 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2872 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2873 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2874 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2875 esac
2878 ## m68k Linux-based GNU system
2879 m68k-*-linux-gnu* )
2880 machine=m68k opsys=gnu-linux
2883 ## Mips Linux-based GNU system
2884 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2885 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2886 machine=mips opsys=gnu-linux
2889 ## AMD x86-64 Linux-based GNU system
2890 x86_64-*-linux-gnu* )
2891 machine=amdx86-64 opsys=gnu-linux
2894 ## Tensilica Xtensa Linux-based GNU system
2895 xtensa*-*-linux-gnu* )
2896 machine=xtensa opsys=gnu-linux
2899 ## SuperH Linux-based GNU system
2900 sh[34]*-*-linux-gnu* )
2901 machine=sh3 opsys=gnu-linux
2905 unported=yes
2907 esac
2909 ### If the code above didn't choose an operating system, just choose
2910 ### an operating system based on the configuration name. You really
2911 ### only want to use this when you have no idea what the right
2912 ### operating system is; if you know what operating systems a machine
2913 ### runs, it's cleaner to make it explicit in the case statement
2914 ### above.
2915 if test x"${opsys}" = x; then
2916 case "${canonical}" in
2917 *-gnu* ) opsys=gnu ;;
2918 *-sysv4.2uw* ) opsys=unixware ;;
2919 *-sysv5uw* ) opsys=unixware ;;
2920 *-sysv5OpenUNIX* ) opsys=unixware ;;
2921 *-sysv4.1* | *-sysvr4.1* )
2922 NON_GNU_CPP=/usr/lib/cpp
2923 opsys=usg5-4 ;;
2924 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2925 if [ x$NON_GNU_CPP = x ]; then
2926 if [ -f /usr/ccs/lib/cpp ]; then
2927 NON_GNU_CPP=/usr/ccs/lib/cpp
2928 else
2929 NON_GNU_CPP=/lib/cpp
2932 opsys=usg5-4-2 ;;
2933 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2935 unported=yes
2937 esac
2942 if test $unported = yes; then
2943 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2944 Check \`etc/MACHINES' for recognized configuration names." >&5
2945 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2946 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2947 { (exit 1); exit 1; }; }
2950 machfile="m/${machine}.h"
2951 opsysfile="s/${opsys}.h"
2954 #### Choose a compiler.
2955 test -n "$CC" && cc_specified=yes
2957 # Save the value of CFLAGS that the user specified.
2958 SPECIFIED_CFLAGS="$CFLAGS"
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2987 done
2988 done
2989 IFS=$as_save_IFS
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999 $as_echo "no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3037 else
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned=yes ;;
3054 esac
3055 CC=$ac_ct_CC
3057 else
3058 CC="$ac_cv_prog_CC"
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3094 else
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 ac_prog_rejected=no
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3123 continue
3125 ac_cv_prog_CC="cc"
3126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3129 done
3130 done
3131 IFS=$as_save_IFS
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy $ac_cv_prog_CC
3136 shift
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3141 shift
3142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3192 $as_echo "$CC" >&6; }
3193 else
3194 { $as_echo "$as_me:$LINENO: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$CC" && break
3200 done
3202 if test -z "$CC"; then
3203 ac_ct_CC=$CC
3204 for ac_prog in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="$ac_prog"
3224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3227 done
3228 done
3229 IFS=$as_save_IFS
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3237 else
3238 { $as_echo "$as_me:$LINENO: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$ac_ct_CC" && break
3244 done
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned=yes ;;
3258 esac
3259 CC=$ac_ct_CC
3266 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3274 set X $ac_compile
3275 ac_compiler=$2
3276 { (ac_try="$ac_compiler --version >&5"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compiler --version >&5") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287 { (ac_try="$ac_compiler -v >&5"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compiler -v >&5") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try="$ac_compiler -V >&5"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compiler -V >&5") 2>&5
3306 ac_status=$?
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 ac_clean_files_save=$ac_clean_files
3326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3327 # Try to create an executable without -o first, disregard a.out.
3328 # It will help us diagnose broken compilers, and finding out an intuition
3329 # of exeext.
3330 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3334 # The possible output files:
3335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3337 ac_rmfiles=
3338 for ac_file in $ac_files
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3343 esac
3344 done
3345 rm -f $ac_rmfiles
3347 if { (ac_try="$ac_link_default"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_link_default") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3362 # Autoconf.
3363 for ac_file in $ac_files ''
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3369 [ab].out )
3370 # We found the default executable, but exeext='' is most
3371 # certainly right.
3372 break;;
3373 *.* )
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375 then :; else
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3382 # actually working.
3383 break;;
3385 break;;
3386 esac
3387 done
3388 test "$ac_cv_exeext" = no && ac_cv_exeext=
3390 else
3391 ac_file=''
3394 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 if test -z "$ac_file"; then
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: C compiler cannot create executables
3403 See \`config.log' for more details." >&2;}
3404 { (exit 77); exit 77; }; }
3407 ac_exeext=$ac_cv_exeext
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3412 $as_echo_n "checking whether the C compiler works... " >&6; }
3413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3414 # If not cross compiling, check that we can run a simple program.
3415 if test "$cross_compiling" != yes; then
3416 if { ac_try='./$ac_file'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_try") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 cross_compiling=no
3428 else
3429 if test "$cross_compiling" = maybe; then
3430 cross_compiling=yes
3431 else
3432 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details." >&5
3435 $as_echo "$as_me: error: cannot run C compiled programs.
3436 If you meant to cross compile, use \`--host'.
3437 See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3442 { $as_echo "$as_me:$LINENO: result: yes" >&5
3443 $as_echo "yes" >&6; }
3445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3446 ac_clean_files=$ac_clean_files_save
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3452 $as_echo "$cross_compiling" >&6; }
3454 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3455 $as_echo_n "checking for suffix of executables... " >&6; }
3456 if { (ac_try="$ac_link"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_link") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
3467 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3468 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3469 # work properly (i.e., refer to `conftest.exe'), while it won't with
3470 # `rm'.
3471 for ac_file in conftest.exe conftest conftest.*; do
3472 test -f "$ac_file" || continue
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 break;;
3477 * ) break;;
3478 esac
3479 done
3480 else
3481 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3488 rm -f conftest$ac_cv_exeext
3489 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3492 rm -f conftest.$ac_ext
3493 EXEEXT=$ac_cv_exeext
3494 ac_exeext=$EXEEXT
3495 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if test "${ac_cv_objext+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.o conftest.obj
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 break;;
3533 esac
3534 done
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3540 See \`config.log' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3551 ac_objext=$OBJEXT
3552 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3554 if test "${ac_cv_c_compiler_gnu+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 ()
3567 #ifndef __GNUC__
3568 choke me
3569 #endif
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_compiler_gnu=yes
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 ac_compiler_gnu=no
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3608 GCC=yes
3609 else
3610 GCC=
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3615 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3616 if test "${ac_cv_prog_cc_g+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3621 ac_cv_prog_cc_g=no
3622 CFLAGS="-g"
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3631 main ()
3635 return 0;
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 ac_cv_prog_cc_g=yes
3657 else
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 CFLAGS=""
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 main ()
3674 return 0;
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701 CFLAGS="-g"
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3710 main ()
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3735 ac_cv_prog_cc_g=yes
3736 else
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3758 CFLAGS="-g -O2"
3759 else
3760 CFLAGS="-g"
3762 else
3763 if test "$GCC" = yes; then
3764 CFLAGS="-O2"
3765 else
3766 CFLAGS=
3769 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_cv_prog_cc_c89=no
3775 ac_save_CC=$CC
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 #include <stdarg.h>
3783 #include <stdio.h>
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3790 char **p;
3791 int i;
3793 return p[i];
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3797 char *s;
3798 va_list v;
3799 va_start (v,p);
3800 s = g (p, va_arg (v,int));
3801 va_end (v);
3802 return s;
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3816 #define FOO(x) 'x'
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823 int argc;
3824 char **argv;
3826 main ()
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3830 return 0;
3832 _ACEOF
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3844 $as_echo "$ac_try_echo") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_prog_cc_c89=$ac_arg
3856 else
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3863 rm -f core conftest.err conftest.$ac_objext
3864 test "x$ac_cv_prog_cc_c89" != "xno" && break
3865 done
3866 rm -f conftest.$ac_ext
3867 CC=$ac_save_CC
3870 # AC_CACHE_VAL
3871 case "x$ac_cv_prog_cc_c89" in
3873 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3874 $as_echo "none needed" >&6; } ;;
3875 xno)
3876 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3877 $as_echo "unsupported" >&6; } ;;
3879 CC="$CC $ac_cv_prog_cc_c89"
3880 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3881 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3882 esac
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3894 CPP=
3897 ## If not using gcc, and on Solaris, and no CPP specified, see if
3898 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3899 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3900 test x"$CPP" = x; then
3901 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3902 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3904 if test "${emacs_cv_sunpro_c+set}" = set; then
3905 $as_echo_n "(cached) " >&6
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3915 main ()
3917 #ifndef __SUNPRO_C
3918 fail;
3919 #endif
3922 return 0;
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_link") 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest$ac_exeext && {
3943 test "$cross_compiling" = yes ||
3944 $as_test_x conftest$ac_exeext
3945 }; then
3946 emacs_cv_sunpro_c=yes
3947 else
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 emacs_cv_sunpro_c=no
3954 rm -rf conftest.dSYM
3955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 conftest$ac_exeext conftest.$ac_ext
3959 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3960 $as_echo "$emacs_cv_sunpro_c" >&6; }
3962 if test x"$emacs_cv_sunpro_c" = xyes; then
3963 NON_GNU_CPP="$CC -E -Xs"
3967 #### Some systems specify a CPP to use unless we are using GCC.
3968 #### Now that we know whether we are using GCC, we can decide whether
3969 #### to use that one.
3970 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3971 then
3972 CPP="$NON_GNU_CPP"
3975 #### Some systems specify a CC to use unless we are using GCC.
3976 #### Now that we know whether we are using GCC, we can decide whether
3977 #### to use that one.
3978 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3979 test x$cc_specified != xyes
3980 then
3981 CC="$NON_GNU_CC"
3984 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3985 then
3986 CC="$CC $GCC_TEST_OPTIONS"
3989 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3990 then
3991 CC="$CC $NON_GCC_TEST_OPTIONS"
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4000 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4001 # On Suns, sometimes $CPP names a directory.
4002 if test -n "$CPP" && test -d "$CPP"; then
4003 CPP=
4005 if test -z "$CPP"; then
4006 if test "${ac_cv_prog_CPP+set}" = set; then
4007 $as_echo_n "(cached) " >&6
4008 else
4009 # Double quotes because CPP needs to be expanded
4010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4012 ac_preproc_ok=false
4013 for ac_c_preproc_warn_flag in '' yes
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error" is here to catch this case.
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 #ifdef __STDC__
4028 # include <limits.h>
4029 #else
4030 # include <assert.h>
4031 #endif
4032 Syntax error
4033 _ACEOF
4034 if { (ac_try="$ac_cpp conftest.$ac_ext"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 }; then
4052 else
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Broken: fails on valid input.
4057 continue
4060 rm -f conftest.err conftest.$ac_ext
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4071 _ACEOF
4072 if { (ac_try="$ac_cpp conftest.$ac_ext"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } >/dev/null && {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 }; then
4089 # Broken: success on invalid input.
4090 continue
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Passes both tests.
4096 ac_preproc_ok=:
4097 break
4100 rm -f conftest.err conftest.$ac_ext
4102 done
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4106 break
4109 done
4110 ac_cv_prog_CPP=$CPP
4113 CPP=$ac_cv_prog_CPP
4114 else
4115 ac_cv_prog_CPP=$CPP
4117 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4118 $as_echo "$CPP" >&6; }
4119 ac_preproc_ok=false
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #ifdef __STDC__
4135 # include <limits.h>
4136 #else
4137 # include <assert.h>
4138 #endif
4139 Syntax error
4140 _ACEOF
4141 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } >/dev/null && {
4155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 }; then
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 # Broken: fails on valid input.
4164 continue
4167 rm -f conftest.err conftest.$ac_ext
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4178 _ACEOF
4179 if { (ac_try="$ac_cpp conftest.$ac_ext"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 }; then
4196 # Broken: success on invalid input.
4197 continue
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Passes both tests.
4203 ac_preproc_ok=:
4204 break
4207 rm -f conftest.err conftest.$ac_ext
4209 done
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4214 else
4215 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4216 See \`config.log' for more details." >&5
4217 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log' for more details." >&2;}
4219 { (exit 1); exit 1; }; }
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in grep ggrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4249 *GNU*)
4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 ac_count=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP="$ac_path_GREP"
4266 ac_path_GREP_max=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 esac
4274 $ac_path_GREP_found && break 3
4275 done
4276 done
4277 done
4278 IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_GREP"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4284 else
4285 ac_cv_path_GREP=$GREP
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 ac_count=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4352 else
4353 ac_cv_path_EGREP=$EGREP
4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP="$ac_cv_path_EGREP"
4363 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4364 $as_echo_n "checking for ANSI C header files... " >&6; }
4365 if test "${ac_cv_header_stdc+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <stdlib.h>
4375 #include <stdarg.h>
4376 #include <string.h>
4377 #include <float.h>
4380 main ()
4384 return 0;
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest.$ac_objext; then
4405 ac_cv_header_stdc=yes
4406 else
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_cv_header_stdc=no
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <string.h>
4425 _ACEOF
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "memchr" >/dev/null 2>&1; then
4429 else
4430 ac_cv_header_stdc=no
4432 rm -f conftest*
4436 if test $ac_cv_header_stdc = yes; then
4437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <stdlib.h>
4446 _ACEOF
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "free" >/dev/null 2>&1; then
4450 else
4451 ac_cv_header_stdc=no
4453 rm -f conftest*
4457 if test $ac_cv_header_stdc = yes; then
4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4459 if test "$cross_compiling" = yes; then
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <ctype.h>
4469 #include <stdlib.h>
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473 #else
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4479 #endif
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4483 main ()
4485 int i;
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4489 return 2;
4490 return 0;
4492 _ACEOF
4493 rm -f conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4505 { (case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4516 else
4517 $as_echo "$as_me: program exited with status $ac_status" >&5
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ( exit $ac_status )
4522 ac_cv_header_stdc=no
4524 rm -rf conftest.dSYM
4525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4532 $as_echo "$ac_cv_header_stdc" >&6; }
4533 if test $ac_cv_header_stdc = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define STDC_HEADERS 1
4537 _ACEOF
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4552 inttypes.h stdint.h unistd.h
4554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 $as_echo_n "checking for $ac_header... " >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558 $as_echo_n "(cached) " >&6
4559 else
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4568 #include <$ac_header>
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4572 case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577 $as_echo "$ac_try_echo") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.$ac_objext; then
4588 eval "$as_ac_Header=yes"
4589 else
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 eval "$as_ac_Header=no"
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 ac_res=`eval 'as_val=${'$as_ac_Header'}
4599 $as_echo "$as_val"'`
4600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4601 $as_echo "$ac_res" >&6; }
4602 if test `eval 'as_val=${'$as_ac_Header'}
4603 $as_echo "$as_val"'` = yes; then
4604 cat >>confdefs.h <<_ACEOF
4605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606 _ACEOF
4610 done
4614 if test "${ac_cv_header_minix_config_h+set}" = set; then
4615 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4616 $as_echo_n "checking for minix/config.h... " >&6; }
4617 if test "${ac_cv_header_minix_config_h+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4621 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4622 else
4623 # Is the header compilable?
4624 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4625 $as_echo_n "checking minix/config.h usability... " >&6; }
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <minix/config.h>
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_header_compiler=yes
4654 else
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_header_compiler=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663 $as_echo "$ac_header_compiler" >&6; }
4665 # Is the header present?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4667 $as_echo_n "checking minix/config.h presence... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <minix/config.h>
4675 _ACEOF
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 }; then
4693 ac_header_preproc=yes
4694 else
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 ac_header_preproc=no
4701 rm -f conftest.err conftest.$ac_ext
4702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 $as_echo "$ac_header_preproc" >&6; }
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4707 yes:no: )
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4711 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc=yes
4714 no:yes:* )
4715 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4716 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4717 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4718 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4720 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4722 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4724 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4726 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4729 esac
4730 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4731 $as_echo_n "checking for minix/config.h... " >&6; }
4732 if test "${ac_cv_header_minix_config_h+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_cv_header_minix_config_h=$ac_header_preproc
4737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4738 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4741 if test $ac_cv_header_minix_config_h = yes; then
4742 MINIX=yes
4743 else
4744 MINIX=
4748 if test "$MINIX" = yes; then
4750 cat >>confdefs.h <<\_ACEOF
4751 #define _POSIX_SOURCE 1
4752 _ACEOF
4755 cat >>confdefs.h <<\_ACEOF
4756 #define _POSIX_1_SOURCE 2
4757 _ACEOF
4760 cat >>confdefs.h <<\_ACEOF
4761 #define _MINIX 1
4762 _ACEOF
4768 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4769 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4770 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 # define __EXTENSIONS__ 1
4781 $ac_includes_default
4783 main ()
4787 return 0;
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_safe_to_define___extensions__=yes
4809 else
4810 $as_echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_safe_to_define___extensions__=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4819 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4820 test $ac_cv_safe_to_define___extensions__ = yes &&
4821 cat >>confdefs.h <<\_ACEOF
4822 #define __EXTENSIONS__ 1
4823 _ACEOF
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _ALL_SOURCE 1
4827 _ACEOF
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _GNU_SOURCE 1
4831 _ACEOF
4833 cat >>confdefs.h <<\_ACEOF
4834 #define _POSIX_PTHREAD_SEMANTICS 1
4835 _ACEOF
4837 cat >>confdefs.h <<\_ACEOF
4838 #define _TANDEM_SOURCE 1
4839 _ACEOF
4843 ### Use -Wno-pointer-sign if the compiler supports it
4844 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4845 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -Wno-pointer-sign"
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4856 main ()
4860 return 0;
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (ac_try="$ac_compile"
4865 case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868 esac
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.$ac_objext; then
4881 has_option=yes
4882 else
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 has_option=no
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 if test $has_option = yes; then
4891 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4893 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4894 $as_echo "$has_option" >&6; }
4895 CFLAGS="$SAVE_CFLAGS"
4896 unset has_option
4897 unset SAVE_CFLAGS
4899 #### Some other nice autoconf tests.
4901 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4902 $as_echo_n "checking whether ln -s works... " >&6; }
4903 LN_S=$as_ln_s
4904 if test "$LN_S" = "ln -s"; then
4905 { $as_echo "$as_me:$LINENO: result: yes" >&5
4906 $as_echo "yes" >&6; }
4907 else
4908 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4909 $as_echo "no, using $LN_S" >&6; }
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4919 # On Suns, sometimes $CPP names a directory.
4920 if test -n "$CPP" && test -d "$CPP"; then
4921 CPP=
4923 if test -z "$CPP"; then
4924 if test "${ac_cv_prog_CPP+set}" = set; then
4925 $as_echo_n "(cached) " >&6
4926 else
4927 # Double quotes because CPP needs to be expanded
4928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930 ac_preproc_ok=false
4931 for ac_c_preproc_warn_flag in '' yes
4933 # Use a header file that comes with gcc, so configuring glibc
4934 # with a fresh cross-compiler works.
4935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936 # <limits.h> exists even on freestanding compilers.
4937 # On the NeXT, cc -E runs the code through the compiler's parser,
4938 # not just through cpp. "Syntax error" is here to catch this case.
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 #ifdef __STDC__
4946 # include <limits.h>
4947 #else
4948 # include <assert.h>
4949 #endif
4950 Syntax error
4951 _ACEOF
4952 if { (ac_try="$ac_cpp conftest.$ac_ext"
4953 case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4958 $as_echo "$ac_try_echo") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null && {
4966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4968 }; then
4970 else
4971 $as_echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 # Broken: fails on valid input.
4975 continue
4978 rm -f conftest.err conftest.$ac_ext
4980 # OK, works on sane cases. Now check whether nonexistent headers
4981 # can be detected and how.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if { (ac_try="$ac_cpp conftest.$ac_ext"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null && {
5004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 }; then
5007 # Broken: success on invalid input.
5008 continue
5009 else
5010 $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 # Passes both tests.
5014 ac_preproc_ok=:
5015 break
5018 rm -f conftest.err conftest.$ac_ext
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then
5024 break
5027 done
5028 ac_cv_prog_CPP=$CPP
5031 CPP=$ac_cv_prog_CPP
5032 else
5033 ac_cv_prog_CPP=$CPP
5035 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5036 $as_echo "$CPP" >&6; }
5037 ac_preproc_ok=false
5038 for ac_c_preproc_warn_flag in '' yes
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057 Syntax error
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065 $as_echo "$ac_try_echo") >&5
5066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } >/dev/null && {
5073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 }; then
5077 else
5078 $as_echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Broken: fails on valid input.
5082 continue
5085 rm -f conftest.err conftest.$ac_ext
5087 # OK, works on sane cases. Now check whether nonexistent headers
5088 # can be detected and how.
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #include <ac_nonexistent.h>
5096 _ACEOF
5097 if { (ac_try="$ac_cpp conftest.$ac_ext"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5103 $as_echo "$ac_try_echo") >&5
5104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null && {
5111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 }; then
5114 # Broken: success on invalid input.
5115 continue
5116 else
5117 $as_echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 # Passes both tests.
5121 ac_preproc_ok=:
5122 break
5125 rm -f conftest.err conftest.$ac_ext
5127 done
5128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5129 rm -f conftest.err conftest.$ac_ext
5130 if $ac_preproc_ok; then
5132 else
5133 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5134 See \`config.log' for more details." >&5
5135 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; }
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 # Find a good install program. We prefer a C program (faster),
5147 # so one script is as good as another. But avoid the broken or
5148 # incompatible versions:
5149 # SysV /etc/install, /usr/sbin/install
5150 # SunOS /usr/etc/install
5151 # IRIX /sbin/install
5152 # AIX /bin/install
5153 # AmigaOS /C/install, which installs bootblocks on floppy discs
5154 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5155 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5156 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5157 # OS/2's system install, which has a completely different semantic
5158 # ./install, which can be erroneously created by make from ./install.sh.
5159 # Reject install programs that cannot install multiple files.
5160 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5161 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5162 if test -z "$INSTALL"; then
5163 if test "${ac_cv_path_install+set}" = set; then
5164 $as_echo_n "(cached) " >&6
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 # Account for people who put trailing slashes in PATH elements.
5172 case $as_dir/ in
5173 ./ | .// | /cC/* | \
5174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5175 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5176 /usr/ucb/* ) ;;
5178 # OSF1 and SCO ODT 3.0 have their own names for install.
5179 # Don't use installbsd from OSF since it installs stuff as root
5180 # by default.
5181 for ac_prog in ginstall scoinst install; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5184 if test $ac_prog = install &&
5185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5186 # AIX install. It has an incompatible calling convention.
5188 elif test $ac_prog = install &&
5189 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5190 # program-specific install script used by HP pwplus--don't use.
5192 else
5193 rm -rf conftest.one conftest.two conftest.dir
5194 echo one > conftest.one
5195 echo two > conftest.two
5196 mkdir conftest.dir
5197 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5198 test -s conftest.one && test -s conftest.two &&
5199 test -s conftest.dir/conftest.one &&
5200 test -s conftest.dir/conftest.two
5201 then
5202 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5203 break 3
5207 done
5208 done
5210 esac
5212 done
5213 IFS=$as_save_IFS
5215 rm -rf conftest.one conftest.two conftest.dir
5218 if test "${ac_cv_path_install+set}" = set; then
5219 INSTALL=$ac_cv_path_install
5220 else
5221 # As a last resort, use the slow shell script. Don't cache a
5222 # value for INSTALL within a source directory, because that will
5223 # break other packages using the cache if that directory is
5224 # removed, or if the value is a relative name.
5225 INSTALL=$ac_install_sh
5228 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5229 $as_echo "$INSTALL" >&6; }
5231 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5232 # It thinks the first close brace ends the variable substitution.
5233 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5235 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5237 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5239 if test "x$RANLIB" = x; then
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_RANLIB+set}" = set; then
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$RANLIB"; then
5249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 RANLIB=$ac_cv_prog_RANLIB
5269 if test -n "$RANLIB"; then
5270 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5271 $as_echo "$RANLIB" >&6; }
5272 else
5273 { $as_echo "$as_me:$LINENO: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$ac_cv_prog_RANLIB"; then
5280 ac_ct_RANLIB=$RANLIB
5281 # Extract the first word of "ranlib", so it can be a program name with args.
5282 set dummy ranlib; ac_word=$2
5283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$ac_ct_RANLIB"; then
5289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_RANLIB="ranlib"
5299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5309 if test -n "$ac_ct_RANLIB"; then
5310 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5311 $as_echo "$ac_ct_RANLIB" >&6; }
5312 else
5313 { $as_echo "$as_me:$LINENO: result: no" >&5
5314 $as_echo "no" >&6; }
5317 if test "x$ac_ct_RANLIB" = x; then
5318 RANLIB=":"
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5323 whose name does not start with the host triplet. If you think this
5324 configuration is useful to you, please write to autoconf@gnu.org." >&5
5325 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5326 whose name does not start with the host triplet. If you think this
5327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330 RANLIB=$ac_ct_RANLIB
5332 else
5333 RANLIB="$ac_cv_prog_RANLIB"
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info; ac_word=$2
5339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5343 else
5344 case $INSTALL_INFO in
5345 [\\/]* | ?:[\\/]*)
5346 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5362 IFS=$as_save_IFS
5365 esac
5367 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 $as_echo "$INSTALL_INFO" >&6; }
5371 else
5372 { $as_echo "$as_me:$LINENO: result: no" >&5
5373 $as_echo "no" >&6; }
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info; ac_word=$2
5379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 $as_echo_n "(cached) " >&6
5383 else
5384 case $INSTALL_INFO in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in /usr/sbin
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5405 esac
5407 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5408 if test -n "$INSTALL_INFO"; then
5409 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5410 $as_echo "$INSTALL_INFO" >&6; }
5411 else
5412 { $as_echo "$as_me:$LINENO: result: no" >&5
5413 $as_echo "no" >&6; }
5417 # Extract the first word of "install-info", so it can be a program name with args.
5418 set dummy install-info; ac_word=$2
5419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5422 $as_echo_n "(cached) " >&6
5423 else
5424 case $INSTALL_INFO in
5425 [\\/]* | ?:[\\/]*)
5426 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in /sbin
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5440 done
5441 done
5442 IFS=$as_save_IFS
5444 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5446 esac
5448 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5449 if test -n "$INSTALL_INFO"; then
5450 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5451 $as_echo "$INSTALL_INFO" >&6; }
5452 else
5453 { $as_echo "$as_me:$LINENO: result: no" >&5
5454 $as_echo "no" >&6; }
5458 # Extract the first word of "gzip", so it can be a program name with args.
5459 set dummy gzip; ac_word=$2
5460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5463 $as_echo_n "(cached) " >&6
5464 else
5465 case $GZIP_PROG in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5486 esac
5488 GZIP_PROG=$ac_cv_path_GZIP_PROG
5489 if test -n "$GZIP_PROG"; then
5490 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5491 $as_echo "$GZIP_PROG" >&6; }
5492 else
5493 { $as_echo "$as_me:$LINENO: result: no" >&5
5494 $as_echo "no" >&6; }
5500 ## Need makeinfo >= 4.6 (?) to build the manuals.
5501 # Extract the first word of "makeinfo", so it can be a program name with args.
5502 set dummy makeinfo; ac_word=$2
5503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5507 else
5508 case $MAKEINFO in
5509 [\\/]* | ?:[\\/]*)
5510 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5524 done
5525 done
5526 IFS=$as_save_IFS
5528 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5530 esac
5532 MAKEINFO=$ac_cv_path_MAKEINFO
5533 if test -n "$MAKEINFO"; then
5534 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5535 $as_echo "$MAKEINFO" >&6; }
5536 else
5537 { $as_echo "$as_me:$LINENO: result: no" >&5
5538 $as_echo "no" >&6; }
5542 if test "$MAKEINFO" != "no" && \
5543 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
5544 MAKEINFO=no
5547 ## Makeinfo is unusual. For a released Emacs, the manuals are
5548 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5549 ## therefore in the category of "special tools" not normally required, which
5550 ## configure does not have to check for (eg autoconf itself).
5551 ## In a CVS checkout on the other hand, the manuals are not included.
5552 ## So makeinfo is a requirement to build from CVS, and configure
5553 ## should test for it as it does for any other build requirement.
5554 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5555 ## with pre-built manuals, from a CVS checkout.
5556 if test "$MAKEINFO" = "no"; then
5557 if test "x${with_makeinfo}" = "xno"; then
5558 MAKEINFO=off
5559 elif ! test -e $srcdir/info/emacs; then
5560 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5561 source tree does not seem to have pre-built manuals in the \`info' directory.
5562 Either install a suitable version of makeinfo, or re-run configure
5563 with the \`--without-makeinfo' option to build without the manuals. " >&5
5564 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5565 source tree does not seem to have pre-built manuals in the \`info' directory.
5566 Either install a suitable version of makeinfo, or re-run configure
5567 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5568 { (exit 1); exit 1; }; }
5573 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5574 then
5575 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5578 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5579 then
5580 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5584 late_LDFLAGS=$LDFLAGS
5585 if test "$GCC" = yes; then
5586 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5587 else
5588 LDFLAGS="$LDFLAGS -znocombreloc"
5591 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5592 $as_echo_n "checking for -znocombreloc... " >&6; }
5593 cat >conftest.$ac_ext <<_ACEOF
5594 main(){return 0;}
5595 _ACEOF
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (ac_try="$ac_link"
5598 case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603 $as_echo "$ac_try_echo") >&5
5604 (eval "$ac_link") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest$ac_exeext && {
5614 test "$cross_compiling" = yes ||
5615 $as_test_x conftest$ac_exeext
5616 }; then
5617 { $as_echo "$as_me:$LINENO: result: yes" >&5
5618 $as_echo "yes" >&6; }
5619 else
5620 $as_echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 LDFLAGS=$late_LDFLAGS
5624 { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5628 rm -rf conftest.dSYM
5629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5630 conftest$ac_exeext conftest.$ac_ext
5632 #### Extract some information from the operating system and machine files.
5634 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5635 - which libraries the lib-src programs will want, and
5636 - whether the GNU malloc routines are usable..." >&5
5637 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5638 - which libraries the lib-src programs will want, and
5639 - whether the GNU malloc routines are usable..." >&6;}
5641 ### First figure out CFLAGS (which we use for running the compiler here)
5642 ### and REAL_CFLAGS (which we use for real compilation).
5643 ### The two are the same except on a few systems, where they are made
5644 ### different to work around various lossages. For example,
5645 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5646 ### as implying static linking.
5648 ### If the CFLAGS env var is specified, we use that value
5649 ### instead of the default.
5651 ### It's not important that this name contain the PID; you can't run
5652 ### two configures in the same directory and have anything work
5653 ### anyway.
5654 tempcname="conftest.c"
5656 echo '
5657 #include "'${srcdir}'/src/'${opsysfile}'"
5658 #include "'${srcdir}'/src/'${machfile}'"
5659 #ifndef LIBS_MACHINE
5660 #define LIBS_MACHINE
5661 #endif
5662 #ifndef LIBS_SYSTEM
5663 #define LIBS_SYSTEM
5664 #endif
5665 #ifndef C_SWITCH_SYSTEM
5666 #define C_SWITCH_SYSTEM
5667 #endif
5668 #ifndef C_SWITCH_MACHINE
5669 #define C_SWITCH_MACHINE
5670 #endif
5671 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5672 configure___ c_switch_system=C_SWITCH_SYSTEM
5673 configure___ c_switch_machine=C_SWITCH_MACHINE
5675 #ifndef LIB_X11_LIB
5676 #define LIB_X11_LIB -lX11
5677 #endif
5679 #ifndef LIBX11_SYSTEM
5680 #define LIBX11_SYSTEM
5681 #endif
5682 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5684 #ifdef UNEXEC
5685 configure___ unexec=UNEXEC
5686 #else
5687 configure___ unexec=unexec.o
5688 #endif
5690 #ifdef SYSTEM_MALLOC
5691 configure___ system_malloc=yes
5692 #else
5693 configure___ system_malloc=no
5694 #endif
5696 #ifdef USE_MMAP_FOR_BUFFERS
5697 configure___ use_mmap_for_buffers=yes
5698 #else
5699 configure___ use_mmap_for_buffers=no
5700 #endif
5702 #ifndef C_DEBUG_SWITCH
5703 #define C_DEBUG_SWITCH -g
5704 #endif
5706 #ifndef C_OPTIMIZE_SWITCH
5707 #ifdef __GNUC__
5708 #define C_OPTIMIZE_SWITCH -O2
5709 #else
5710 #define C_OPTIMIZE_SWITCH -O
5711 #endif
5712 #endif
5714 #ifndef C_WARNINGS_SWITCH
5715 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5716 #endif
5718 #ifndef LD_SWITCH_MACHINE
5719 #define LD_SWITCH_MACHINE
5720 #endif
5722 #ifndef LD_SWITCH_SYSTEM
5723 #define LD_SWITCH_SYSTEM
5724 #endif
5726 #ifndef LD_SWITCH_X_SITE_AUX
5727 #define LD_SWITCH_X_SITE_AUX
5728 #endif
5730 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5731 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5733 #ifdef THIS_IS_CONFIGURE
5735 /* Get the CFLAGS for tests in configure. */
5736 #ifdef __GNUC__
5737 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5738 #else
5739 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5740 #endif
5742 #else /* not THIS_IS_CONFIGURE */
5744 /* Get the CFLAGS for real compilation. */
5745 #ifdef __GNUC__
5746 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5747 #else
5748 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5749 #endif
5751 #endif /* not THIS_IS_CONFIGURE */
5752 ' > ${tempcname}
5754 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5756 # The value of CPP is a quoted variable reference, so we need to do this
5757 # to get its actual value...
5758 CPP=`eval "echo $CPP"`
5759 eval `${CPP} -Isrc ${tempcname} \
5760 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5761 if test "x$SPECIFIED_CFLAGS" = x; then
5762 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5763 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5764 else
5765 REAL_CFLAGS="$CFLAGS"
5767 rm ${tempcname}
5769 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5771 ### Make sure subsequent tests use flags consistent with the build flags.
5773 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5774 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5775 else
5776 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5781 # Check whether --enable-largefile was given.
5782 if test "${enable_largefile+set}" = set; then
5783 enableval=$enable_largefile;
5786 if test "$enable_largefile" != no; then
5788 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5789 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5790 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5791 $as_echo_n "(cached) " >&6
5792 else
5793 ac_cv_sys_largefile_CC=no
5794 if test "$GCC" != yes; then
5795 ac_save_CC=$CC
5796 while :; do
5797 # IRIX 6.2 and later do not support large files by default,
5798 # so use the C compiler's -n32 option if that helps.
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <sys/types.h>
5806 /* Check that off_t can represent 2**63 - 1 correctly.
5807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5808 since some C++ compilers masquerading as C compilers
5809 incorrectly reject 9223372036854775807. */
5810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5812 && LARGE_OFF_T % 2147483647 == 1)
5813 ? 1 : -1];
5815 main ()
5819 return 0;
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5829 $as_echo "$ac_try_echo") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } && {
5837 test -z "$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 } && test -s conftest.$ac_objext; then
5840 break
5841 else
5842 $as_echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5848 rm -f core conftest.err conftest.$ac_objext
5849 CC="$CC -n32"
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5852 case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5857 $as_echo "$ac_try_echo") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest.$ac_objext; then
5868 ac_cv_sys_largefile_CC=' -n32'; break
5869 else
5870 $as_echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5876 rm -f core conftest.err conftest.$ac_objext
5877 break
5878 done
5879 CC=$ac_save_CC
5880 rm -f conftest.$ac_ext
5883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5884 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5885 if test "$ac_cv_sys_largefile_CC" != no; then
5886 CC=$CC$ac_cv_sys_largefile_CC
5889 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5890 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5891 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5893 else
5894 while :; do
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <sys/types.h>
5902 /* Check that off_t can represent 2**63 - 1 correctly.
5903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5904 since some C++ compilers masquerading as C compilers
5905 incorrectly reject 9223372036854775807. */
5906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5908 && LARGE_OFF_T % 2147483647 == 1)
5909 ? 1 : -1];
5911 main ()
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (ac_try="$ac_compile"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5925 $as_echo "$ac_try_echo") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5936 ac_cv_sys_file_offset_bits=no; break
5937 else
5938 $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _FILE_OFFSET_BITS 64
5952 #include <sys/types.h>
5953 /* Check that off_t can represent 2**63 - 1 correctly.
5954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5955 since some C++ compilers masquerading as C compilers
5956 incorrectly reject 9223372036854775807. */
5957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5959 && LARGE_OFF_T % 2147483647 == 1)
5960 ? 1 : -1];
5962 main ()
5966 return 0;
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5971 case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974 esac
5975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976 $as_echo "$ac_try_echo") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
5987 ac_cv_sys_file_offset_bits=64; break
5988 else
5989 $as_echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 ac_cv_sys_file_offset_bits=unknown
5997 break
5998 done
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6001 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6002 case $ac_cv_sys_file_offset_bits in #(
6003 no | unknown) ;;
6005 cat >>confdefs.h <<_ACEOF
6006 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6007 _ACEOF
6009 esac
6010 rm -rf conftest*
6011 if test $ac_cv_sys_file_offset_bits = unknown; then
6012 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6013 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6014 if test "${ac_cv_sys_large_files+set}" = set; then
6015 $as_echo_n "(cached) " >&6
6016 else
6017 while :; do
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6025 /* Check that off_t can represent 2**63 - 1 correctly.
6026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6027 since some C++ compilers masquerading as C compilers
6028 incorrectly reject 9223372036854775807. */
6029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6031 && LARGE_OFF_T % 2147483647 == 1)
6032 ? 1 : -1];
6034 main ()
6038 return 0;
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046 esac
6047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6048 $as_echo "$ac_try_echo") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest.$ac_objext; then
6059 ac_cv_sys_large_files=no; break
6060 else
6061 $as_echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _LARGE_FILES 1
6075 #include <sys/types.h>
6076 /* Check that off_t can represent 2**63 - 1 correctly.
6077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6078 since some C++ compilers masquerading as C compilers
6079 incorrectly reject 9223372036854775807. */
6080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6082 && LARGE_OFF_T % 2147483647 == 1)
6083 ? 1 : -1];
6085 main ()
6089 return 0;
6091 _ACEOF
6092 rm -f conftest.$ac_objext
6093 if { (ac_try="$ac_compile"
6094 case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6099 $as_echo "$ac_try_echo") >&5
6100 (eval "$ac_compile") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest.$ac_objext; then
6110 ac_cv_sys_large_files=1; break
6111 else
6112 $as_echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 ac_cv_sys_large_files=unknown
6120 break
6121 done
6123 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6124 $as_echo "$ac_cv_sys_large_files" >&6; }
6125 case $ac_cv_sys_large_files in #(
6126 no | unknown) ;;
6128 cat >>confdefs.h <<_ACEOF
6129 #define _LARGE_FILES $ac_cv_sys_large_files
6130 _ACEOF
6132 esac
6133 rm -rf conftest*
6139 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6140 ### be located in either /usr/lib64 or /usr/lib.
6141 ### In some rare cases, /usr/lib64 exists but does not contain the
6142 ### relevant files (bug#1287). Hence test for crtn.o.
6143 case "${canonical}" in
6144 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6145 if test -e /usr/lib64/crtn.o; then
6147 cat >>confdefs.h <<\_ACEOF
6148 #define HAVE_LIB64_DIR 1
6149 _ACEOF
6152 esac
6157 if test "${with_sound}" != "no"; then
6158 # Sound support for GNU/Linux and the free BSDs.
6162 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6167 $as_echo_n "checking for $ac_header... " >&6; }
6168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6169 $as_echo_n "(cached) " >&6
6171 ac_res=`eval 'as_val=${'$as_ac_Header'}
6172 $as_echo "$as_val"'`
6173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6174 $as_echo "$ac_res" >&6; }
6175 else
6176 # Is the header compilable?
6177 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6178 $as_echo_n "checking $ac_header usability... " >&6; }
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 $ac_includes_default
6186 #include <$ac_header>
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6190 case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193 esac
6194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195 $as_echo "$ac_try_echo") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
6206 ac_header_compiler=yes
6207 else
6208 $as_echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 ac_header_compiler=no
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6216 $as_echo "$ac_header_compiler" >&6; }
6218 # Is the header present?
6219 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6220 $as_echo_n "checking $ac_header presence... " >&6; }
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <$ac_header>
6228 _ACEOF
6229 if { (ac_try="$ac_cpp conftest.$ac_ext"
6230 case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } >/dev/null && {
6243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 }; then
6246 ac_header_preproc=yes
6247 else
6248 $as_echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_header_preproc=no
6254 rm -f conftest.err conftest.$ac_ext
6255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6256 $as_echo "$ac_header_preproc" >&6; }
6258 # So? What about this header?
6259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6260 yes:no: )
6261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6262 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6264 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6265 ac_header_preproc=yes
6267 no:yes:* )
6268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6269 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6271 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6273 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6275 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6279 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6282 esac
6283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 $as_echo_n "checking for $ac_header... " >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 $as_echo_n "(cached) " >&6
6287 else
6288 eval "$as_ac_Header=\$ac_header_preproc"
6290 ac_res=`eval 'as_val=${'$as_ac_Header'}
6291 $as_echo "$as_val"'`
6292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6293 $as_echo "$ac_res" >&6; }
6296 if test `eval 'as_val=${'$as_ac_Header'}
6297 $as_echo "$as_val"'` = yes; then
6298 cat >>confdefs.h <<_ACEOF
6299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6300 _ACEOF
6304 done
6306 # Emulation library used on NetBSD.
6307 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6308 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6309 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6310 $as_echo_n "(cached) " >&6
6311 else
6312 ac_check_lib_save_LIBS=$LIBS
6313 LIBS="-lossaudio $LIBS"
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6321 /* Override any GCC internal prototype to avoid an error.
6322 Use char because int might match the return type of a GCC
6323 builtin and then its argument prototype would still apply. */
6324 #ifdef __cplusplus
6325 extern "C"
6326 #endif
6327 char _oss_ioctl ();
6329 main ()
6331 return _oss_ioctl ();
6333 return 0;
6335 _ACEOF
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (ac_try="$ac_link"
6338 case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341 esac
6342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6343 $as_echo "$ac_try_echo") >&5
6344 (eval "$ac_link") 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest$ac_exeext && {
6354 test "$cross_compiling" = yes ||
6355 $as_test_x conftest$ac_exeext
6356 }; then
6357 ac_cv_lib_ossaudio__oss_ioctl=yes
6358 else
6359 $as_echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_cv_lib_ossaudio__oss_ioctl=no
6365 rm -rf conftest.dSYM
6366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6367 conftest$ac_exeext conftest.$ac_ext
6368 LIBS=$ac_check_lib_save_LIBS
6370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6371 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6372 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6373 LIBSOUND=-lossaudio
6374 else
6375 LIBSOUND=
6380 ALSA_REQUIRED=1.0.0
6381 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6383 succeeded=no
6385 # Extract the first word of "pkg-config", so it can be a program name with args.
6386 set dummy pkg-config; ac_word=$2
6387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6390 $as_echo_n "(cached) " >&6
6391 else
6392 case $PKG_CONFIG in
6393 [\\/]* | ?:[\\/]*)
6394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6408 done
6409 done
6410 IFS=$as_save_IFS
6412 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6414 esac
6416 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6417 if test -n "$PKG_CONFIG"; then
6418 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6419 $as_echo "$PKG_CONFIG" >&6; }
6420 else
6421 { $as_echo "$as_me:$LINENO: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test "$PKG_CONFIG" = "no" ; then
6428 HAVE_ALSA=no
6429 else
6430 PKG_CONFIG_MIN_VERSION=0.9.0
6431 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6432 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6433 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6435 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6436 { $as_echo "$as_me:$LINENO: result: yes" >&5
6437 $as_echo "yes" >&6; }
6438 succeeded=yes
6440 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6441 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6442 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6443 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6444 $as_echo "$ALSA_CFLAGS" >&6; }
6446 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6447 $as_echo_n "checking ALSA_LIBS... " >&6; }
6448 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6449 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6450 $as_echo "$ALSA_LIBS" >&6; }
6451 else
6452 { $as_echo "$as_me:$LINENO: result: no" >&5
6453 $as_echo "no" >&6; }
6454 ALSA_CFLAGS=""
6455 ALSA_LIBS=""
6456 ## If we have a custom action on failure, don't print errors, but
6457 ## do set a variable so people can do so.
6458 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6464 else
6465 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6466 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6470 if test $succeeded = yes; then
6471 HAVE_ALSA=yes
6472 else
6473 HAVE_ALSA=no
6476 if test $HAVE_ALSA = yes; then
6477 SAVE_CFLAGS="$CFLAGS"
6478 SAVE_LDFLAGS="$LDFLAGS"
6479 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6480 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <asoundlib.h>
6489 main ()
6491 snd_lib_error_set_handler (0);
6493 return 0;
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (ac_try="$ac_compile"
6498 case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501 esac
6502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6503 $as_echo "$ac_try_echo") >&5
6504 (eval "$ac_compile") 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest.$ac_objext; then
6514 emacs_alsa_normal=yes
6515 else
6516 $as_echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 emacs_alsa_normal=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 if test "$emacs_alsa_normal" != yes; then
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <alsa/asoundlib.h>
6532 main ()
6534 snd_lib_error_set_handler (0);
6536 return 0;
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6546 $as_echo "$ac_try_echo") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
6557 emacs_alsa_subdir=yes
6558 else
6559 $as_echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 emacs_alsa_subdir=no
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 if test "$emacs_alsa_subdir" != yes; then
6567 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6568 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6569 { (exit 1); exit 1; }; }
6571 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6574 CFLAGS="$SAVE_CFLAGS"
6575 LDFLAGS="$SAVE_LDFLAGS"
6576 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6577 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6579 cat >>confdefs.h <<\_ACEOF
6580 #define HAVE_ALSA 1
6581 _ACEOF
6612 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6613 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6614 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6615 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6616 sys/utsname.h pwd.h
6618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 $as_echo_n "checking for $ac_header... " >&6; }
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623 $as_echo_n "(cached) " >&6
6625 ac_res=`eval 'as_val=${'$as_ac_Header'}
6626 $as_echo "$as_val"'`
6627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6628 $as_echo "$ac_res" >&6; }
6629 else
6630 # Is the header compilable?
6631 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6632 $as_echo_n "checking $ac_header usability... " >&6; }
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 #include <$ac_header>
6641 _ACEOF
6642 rm -f conftest.$ac_objext
6643 if { (ac_try="$ac_compile"
6644 case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647 esac
6648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649 $as_echo "$ac_try_echo") >&5
6650 (eval "$ac_compile") 2>conftest.er1
6651 ac_status=$?
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
6654 cat conftest.err >&5
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && {
6657 test -z "$ac_c_werror_flag" ||
6658 test ! -s conftest.err
6659 } && test -s conftest.$ac_objext; then
6660 ac_header_compiler=yes
6661 else
6662 $as_echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6665 ac_header_compiler=no
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6670 $as_echo "$ac_header_compiler" >&6; }
6672 # Is the header present?
6673 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6674 $as_echo_n "checking $ac_header presence... " >&6; }
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <$ac_header>
6682 _ACEOF
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6684 case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687 esac
6688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6689 $as_echo "$ac_try_echo") >&5
6690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } >/dev/null && {
6697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 }; then
6700 ac_header_preproc=yes
6701 else
6702 $as_echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 ac_header_preproc=no
6708 rm -f conftest.err conftest.$ac_ext
6709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6710 $as_echo "$ac_header_preproc" >&6; }
6712 # So? What about this header?
6713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6714 yes:no: )
6715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6716 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6719 ac_header_preproc=yes
6721 no:yes:* )
6722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6723 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6725 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6727 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6729 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6733 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6736 esac
6737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 $as_echo_n "checking for $ac_header... " >&6; }
6739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6740 $as_echo_n "(cached) " >&6
6741 else
6742 eval "$as_ac_Header=\$ac_header_preproc"
6744 ac_res=`eval 'as_val=${'$as_ac_Header'}
6745 $as_echo "$as_val"'`
6746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6747 $as_echo "$ac_res" >&6; }
6750 if test `eval 'as_val=${'$as_ac_Header'}
6751 $as_echo "$as_val"'` = yes; then
6752 cat >>confdefs.h <<_ACEOF
6753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6754 _ACEOF
6758 done
6761 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6762 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <sys/personality.h>
6771 main ()
6773 personality (PER_LINUX32)
6775 return 0;
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (ac_try="$ac_compile"
6780 case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783 esac
6784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785 $as_echo "$ac_try_echo") >&5
6786 (eval "$ac_compile") 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && {
6793 test -z "$ac_c_werror_flag" ||
6794 test ! -s conftest.err
6795 } && test -s conftest.$ac_objext; then
6796 emacs_cv_personality_linux32=yes
6797 else
6798 $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 emacs_cv_personality_linux32=no
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6806 $as_echo "$emacs_cv_personality_linux32" >&6; }
6808 if test $emacs_cv_personality_linux32 = yes; then
6810 cat >>confdefs.h <<\_ACEOF
6811 #define HAVE_PERSONALITY_LINUX32 1
6812 _ACEOF
6817 for ac_header in term.h
6819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6821 $as_echo_n "checking for $ac_header... " >&6; }
6822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6823 $as_echo_n "(cached) " >&6
6824 else
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 #include <$ac_header>
6832 _ACEOF
6833 if { (ac_try="$ac_cpp conftest.$ac_ext"
6834 case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837 esac
6838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6839 $as_echo "$ac_try_echo") >&5
6840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } >/dev/null && {
6847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 }; then
6850 eval "$as_ac_Header=yes"
6851 else
6852 $as_echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 eval "$as_ac_Header=no"
6858 rm -f conftest.err conftest.$ac_ext
6860 ac_res=`eval 'as_val=${'$as_ac_Header'}
6861 $as_echo "$as_val"'`
6862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6863 $as_echo "$ac_res" >&6; }
6864 if test `eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'` = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 _ACEOF
6872 done
6874 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6875 $as_echo_n "checking for ANSI C header files... " >&6; }
6876 if test "${ac_cv_header_stdc+set}" = set; then
6877 $as_echo_n "(cached) " >&6
6878 else
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <stdlib.h>
6886 #include <stdarg.h>
6887 #include <string.h>
6888 #include <float.h>
6891 main ()
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 ac_cv_header_stdc=yes
6917 else
6918 $as_echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_cv_header_stdc=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 if test $ac_cv_header_stdc = yes; then
6927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 #include <string.h>
6936 _ACEOF
6937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6938 $EGREP "memchr" >/dev/null 2>&1; then
6940 else
6941 ac_cv_header_stdc=no
6943 rm -f conftest*
6947 if test $ac_cv_header_stdc = yes; then
6948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <stdlib.h>
6957 _ACEOF
6958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959 $EGREP "free" >/dev/null 2>&1; then
6961 else
6962 ac_cv_header_stdc=no
6964 rm -f conftest*
6968 if test $ac_cv_header_stdc = yes; then
6969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6970 if test "$cross_compiling" = yes; then
6972 else
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 #include <ctype.h>
6980 #include <stdlib.h>
6981 #if ((' ' & 0x0FF) == 0x020)
6982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6984 #else
6985 # define ISLOWER(c) \
6986 (('a' <= (c) && (c) <= 'i') \
6987 || ('j' <= (c) && (c) <= 'r') \
6988 || ('s' <= (c) && (c) <= 'z'))
6989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6990 #endif
6992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6994 main ()
6996 int i;
6997 for (i = 0; i < 256; i++)
6998 if (XOR (islower (i), ISLOWER (i))
6999 || toupper (i) != TOUPPER (i))
7000 return 2;
7001 return 0;
7003 _ACEOF
7004 rm -f conftest$ac_exeext
7005 if { (ac_try="$ac_link"
7006 case "(($ac_try" in
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7009 esac
7010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7011 $as_echo "$ac_try_echo") >&5
7012 (eval "$ac_link") 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
7023 ac_status=$?
7024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7027 else
7028 $as_echo "$as_me: program exited with status $ac_status" >&5
7029 $as_echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ( exit $ac_status )
7033 ac_cv_header_stdc=no
7035 rm -rf conftest.dSYM
7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7042 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7043 $as_echo "$ac_cv_header_stdc" >&6; }
7044 if test $ac_cv_header_stdc = yes; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define STDC_HEADERS 1
7048 _ACEOF
7052 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7053 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7054 if test "${ac_cv_header_time+set}" = set; then
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 #include <sys/types.h>
7064 #include <sys/time.h>
7065 #include <time.h>
7068 main ()
7070 if ((struct tm *) 0)
7071 return 0;
7073 return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7083 $as_echo "$ac_try_echo") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
7094 ac_cv_header_time=yes
7095 else
7096 $as_echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_header_time=no
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7105 $as_echo "$ac_cv_header_time" >&6; }
7106 if test $ac_cv_header_time = yes; then
7108 cat >>confdefs.h <<\_ACEOF
7109 #define TIME_WITH_SYS_TIME 1
7110 _ACEOF
7114 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7115 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7116 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7117 $as_echo_n "(cached) " >&6
7118 else
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7127 main ()
7129 #ifndef sys_siglist
7130 (void) sys_siglist;
7131 #endif
7134 return 0;
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7139 case "(($ac_try" in
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7142 esac
7143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7144 $as_echo "$ac_try_echo") >&5
7145 (eval "$ac_compile") 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
7155 ac_cv_have_decl_sys_siglist=yes
7156 else
7157 $as_echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7160 ac_cv_have_decl_sys_siglist=no
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7166 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7167 if test $ac_cv_have_decl_sys_siglist = yes; then
7169 cat >>confdefs.h <<_ACEOF
7170 #define HAVE_DECL_SYS_SIGLIST 1
7171 _ACEOF
7174 else
7175 cat >>confdefs.h <<_ACEOF
7176 #define HAVE_DECL_SYS_SIGLIST 0
7177 _ACEOF
7183 if test $ac_cv_have_decl_sys_siglist != yes; then
7184 # For Tru64, at least:
7185 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7186 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7187 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7188 $as_echo_n "(cached) " >&6
7189 else
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h. */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 $ac_includes_default
7198 main ()
7200 #ifndef __sys_siglist
7201 (void) __sys_siglist;
7202 #endif
7205 return 0;
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7210 case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213 esac
7214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7215 $as_echo "$ac_try_echo") >&5
7216 (eval "$ac_compile") 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && {
7223 test -z "$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 } && test -s conftest.$ac_objext; then
7226 ac_cv_have_decl___sys_siglist=yes
7227 else
7228 $as_echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_cv_have_decl___sys_siglist=no
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7237 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7238 if test $ac_cv_have_decl___sys_siglist = yes; then
7240 cat >>confdefs.h <<_ACEOF
7241 #define HAVE_DECL___SYS_SIGLIST 1
7242 _ACEOF
7245 else
7246 cat >>confdefs.h <<_ACEOF
7247 #define HAVE_DECL___SYS_SIGLIST 0
7248 _ACEOF
7254 if test $ac_cv_have_decl___sys_siglist = yes; then
7256 cat >>confdefs.h <<\_ACEOF
7257 #define sys_siglist __sys_siglist
7258 _ACEOF
7262 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7263 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7264 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7265 $as_echo_n "(cached) " >&6
7266 else
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #include <sys/types.h>
7274 #include <sys/wait.h>
7275 #ifndef WEXITSTATUS
7276 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7277 #endif
7278 #ifndef WIFEXITED
7279 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7280 #endif
7283 main ()
7285 int s;
7286 wait (&s);
7287 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7289 return 0;
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7294 case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297 esac
7298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299 $as_echo "$ac_try_echo") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 ac_cv_header_sys_wait_h=yes
7311 else
7312 $as_echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_cv_header_sys_wait_h=no
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7321 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7322 if test $ac_cv_header_sys_wait_h = yes; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define HAVE_SYS_WAIT_H 1
7326 _ACEOF
7331 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7332 $as_echo_n "checking for struct utimbuf... " >&6; }
7333 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7334 $as_echo_n "(cached) " >&6
7335 else
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #ifdef TIME_WITH_SYS_TIME
7343 #include <sys/time.h>
7344 #include <time.h>
7345 #else
7346 #ifdef HAVE_SYS_TIME_H
7347 #include <sys/time.h>
7348 #else
7349 #include <time.h>
7350 #endif
7351 #endif
7352 #ifdef HAVE_UTIME_H
7353 #include <utime.h>
7354 #endif
7356 main ()
7358 static struct utimbuf x; x.actime = x.modtime;
7360 return 0;
7362 _ACEOF
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7365 case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
7381 emacs_cv_struct_utimbuf=yes
7382 else
7383 $as_echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 emacs_cv_struct_utimbuf=no
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7392 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7393 if test $emacs_cv_struct_utimbuf = yes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define HAVE_STRUCT_UTIMBUF 1
7397 _ACEOF
7401 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7402 $as_echo_n "checking return type of signal handlers... " >&6; }
7403 if test "${ac_cv_type_signal+set}" = set; then
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <sys/types.h>
7413 #include <signal.h>
7416 main ()
7418 return *(signal (0, 0)) (0) == 1;
7420 return 0;
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (ac_try="$ac_compile"
7425 case "(($ac_try" in
7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7428 esac
7429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7430 $as_echo "$ac_try_echo") >&5
7431 (eval "$ac_compile") 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && {
7438 test -z "$ac_c_werror_flag" ||
7439 test ! -s conftest.err
7440 } && test -s conftest.$ac_objext; then
7441 ac_cv_type_signal=int
7442 else
7443 $as_echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 ac_cv_type_signal=void
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7452 $as_echo "$ac_cv_type_signal" >&6; }
7454 cat >>confdefs.h <<_ACEOF
7455 #define RETSIGTYPE $ac_cv_type_signal
7456 _ACEOF
7460 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7461 $as_echo_n "checking for speed_t... " >&6; }
7462 if test "${emacs_cv_speed_t+set}" = set; then
7463 $as_echo_n "(cached) " >&6
7464 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 #include <termios.h>
7473 main ()
7475 speed_t x = 1;
7477 return 0;
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7498 emacs_cv_speed_t=yes
7499 else
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 emacs_cv_speed_t=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7509 $as_echo "$emacs_cv_speed_t" >&6; }
7510 if test $emacs_cv_speed_t = yes; then
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_SPEED_T 1
7514 _ACEOF
7518 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7519 $as_echo_n "checking for struct timeval... " >&6; }
7520 if test "${emacs_cv_struct_timeval+set}" = set; then
7521 $as_echo_n "(cached) " >&6
7522 else
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #ifdef TIME_WITH_SYS_TIME
7530 #include <sys/time.h>
7531 #include <time.h>
7532 #else
7533 #ifdef HAVE_SYS_TIME_H
7534 #include <sys/time.h>
7535 #else
7536 #include <time.h>
7537 #endif
7538 #endif
7540 main ()
7542 static struct timeval x; x.tv_sec = x.tv_usec;
7544 return 0;
7546 _ACEOF
7547 rm -f conftest.$ac_objext
7548 if { (ac_try="$ac_compile"
7549 case "(($ac_try" in
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7552 esac
7553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554 $as_echo "$ac_try_echo") >&5
7555 (eval "$ac_compile") 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest.$ac_objext; then
7565 emacs_cv_struct_timeval=yes
7566 else
7567 $as_echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 emacs_cv_struct_timeval=no
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7576 $as_echo "$emacs_cv_struct_timeval" >&6; }
7577 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7578 if test $emacs_cv_struct_timeval = yes; then
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_TIMEVAL 1
7582 _ACEOF
7586 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7587 $as_echo_n "checking for struct exception... " >&6; }
7588 if test "${emacs_cv_struct_exception+set}" = set; then
7589 $as_echo_n "(cached) " >&6
7590 else
7591 cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h. */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 #include <math.h>
7599 main ()
7601 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7603 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7608 case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611 esac
7612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7613 $as_echo "$ac_try_echo") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7624 emacs_cv_struct_exception=yes
7625 else
7626 $as_echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 emacs_cv_struct_exception=no
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7635 $as_echo "$emacs_cv_struct_exception" >&6; }
7636 HAVE_EXCEPTION=$emacs_cv_struct_exception
7637 if test $emacs_cv_struct_exception != yes; then
7639 cat >>confdefs.h <<\_ACEOF
7640 #define NO_MATHERR 1
7641 _ACEOF
7646 for ac_header in sys/socket.h
7648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7651 $as_echo_n "checking for $ac_header... " >&6; }
7652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7653 $as_echo_n "(cached) " >&6
7655 ac_res=`eval 'as_val=${'$as_ac_Header'}
7656 $as_echo "$as_val"'`
7657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7658 $as_echo "$ac_res" >&6; }
7659 else
7660 # Is the header compilable?
7661 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662 $as_echo_n "checking $ac_header usability... " >&6; }
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7670 #include <$ac_header>
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (ac_try="$ac_compile"
7674 case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677 esac
7678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7679 $as_echo "$ac_try_echo") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7690 ac_header_compiler=yes
7691 else
7692 $as_echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_header_compiler=no
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7700 $as_echo "$ac_header_compiler" >&6; }
7702 # Is the header present?
7703 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7704 $as_echo_n "checking $ac_header presence... " >&6; }
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 #include <$ac_header>
7712 _ACEOF
7713 if { (ac_try="$ac_cpp conftest.$ac_ext"
7714 case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717 esac
7718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } >/dev/null && {
7727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 }; then
7730 ac_header_preproc=yes
7731 else
7732 $as_echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_header_preproc=no
7738 rm -f conftest.err conftest.$ac_ext
7739 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7740 $as_echo "$ac_header_preproc" >&6; }
7742 # So? What about this header?
7743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7744 yes:no: )
7745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7746 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7748 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7749 ac_header_preproc=yes
7751 no:yes:* )
7752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7753 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7755 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7757 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7759 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7763 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7766 esac
7767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7768 $as_echo_n "checking for $ac_header... " >&6; }
7769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 $as_echo_n "(cached) " >&6
7771 else
7772 eval "$as_ac_Header=\$ac_header_preproc"
7774 ac_res=`eval 'as_val=${'$as_ac_Header'}
7775 $as_echo "$as_val"'`
7776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7777 $as_echo "$ac_res" >&6; }
7780 if test `eval 'as_val=${'$as_ac_Header'}
7781 $as_echo "$as_val"'` = yes; then
7782 cat >>confdefs.h <<_ACEOF
7783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7784 _ACEOF
7788 done
7791 for ac_header in net/if.h
7793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7795 $as_echo_n "checking for $ac_header... " >&6; }
7796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7797 $as_echo_n "(cached) " >&6
7798 else
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7806 #if HAVE_SYS_SOCKET_H
7807 #include <sys/socket.h>
7808 #endif
7810 #include <$ac_header>
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 eval "$as_ac_Header=yes"
7831 else
7832 $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 eval "$as_ac_Header=no"
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 ac_res=`eval 'as_val=${'$as_ac_Header'}
7841 $as_echo "$as_val"'`
7842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7843 $as_echo "$ac_res" >&6; }
7844 if test `eval 'as_val=${'$as_ac_Header'}
7845 $as_echo "$as_val"'` = yes; then
7846 cat >>confdefs.h <<_ACEOF
7847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7848 _ACEOF
7852 done
7855 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7856 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7857 if test "${ac_cv_struct_tm+set}" = set; then
7858 $as_echo_n "(cached) " >&6
7859 else
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <sys/types.h>
7867 #include <time.h>
7870 main ()
7872 struct tm tm;
7873 int *p = &tm.tm_sec;
7874 return !p;
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 ac_cv_struct_tm=time.h
7898 else
7899 $as_echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_struct_tm=sys/time.h
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7908 $as_echo "$ac_cv_struct_tm" >&6; }
7909 if test $ac_cv_struct_tm = sys/time.h; then
7911 cat >>confdefs.h <<\_ACEOF
7912 #define TM_IN_SYS_TIME 1
7913 _ACEOF
7917 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7918 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7919 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <sys/types.h>
7929 #include <$ac_cv_struct_tm>
7933 main ()
7935 static struct tm ac_aggr;
7936 if (ac_aggr.tm_zone)
7937 return 0;
7939 return 0;
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (ac_try="$ac_compile"
7944 case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_cv_member_struct_tm_tm_zone=yes
7961 else
7962 $as_echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 #include <sys/types.h>
7972 #include <$ac_cv_struct_tm>
7976 main ()
7978 static struct tm ac_aggr;
7979 if (sizeof ac_aggr.tm_zone)
7980 return 0;
7982 return 0;
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7987 case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990 esac
7991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7992 $as_echo "$ac_try_echo") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest.$ac_objext; then
8003 ac_cv_member_struct_tm_tm_zone=yes
8004 else
8005 $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_cv_member_struct_tm_tm_zone=no
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8017 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8018 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8020 cat >>confdefs.h <<_ACEOF
8021 #define HAVE_STRUCT_TM_TM_ZONE 1
8022 _ACEOF
8027 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8029 cat >>confdefs.h <<\_ACEOF
8030 #define HAVE_TM_ZONE 1
8031 _ACEOF
8033 else
8034 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8035 $as_echo_n "checking whether tzname is declared... " >&6; }
8036 if test "${ac_cv_have_decl_tzname+set}" = set; then
8037 $as_echo_n "(cached) " >&6
8038 else
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 #include <time.h>
8048 main ()
8050 #ifndef tzname
8051 (void) tzname;
8052 #endif
8055 return 0;
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8060 case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063 esac
8064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8065 $as_echo "$ac_try_echo") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest.$ac_objext; then
8076 ac_cv_have_decl_tzname=yes
8077 else
8078 $as_echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_have_decl_tzname=no
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8087 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8088 if test $ac_cv_have_decl_tzname = yes; then
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_DECL_TZNAME 1
8092 _ACEOF
8095 else
8096 cat >>confdefs.h <<_ACEOF
8097 #define HAVE_DECL_TZNAME 0
8098 _ACEOF
8104 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8105 $as_echo_n "checking for tzname... " >&6; }
8106 if test "${ac_cv_var_tzname+set}" = set; then
8107 $as_echo_n "(cached) " >&6
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 #include <time.h>
8116 #if !HAVE_DECL_TZNAME
8117 extern char *tzname[];
8118 #endif
8121 main ()
8123 return tzname[0][0];
8125 return 0;
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8130 case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133 esac
8134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8135 $as_echo "$ac_try_echo") >&5
8136 (eval "$ac_link") 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest$ac_exeext && {
8146 test "$cross_compiling" = yes ||
8147 $as_test_x conftest$ac_exeext
8148 }; then
8149 ac_cv_var_tzname=yes
8150 else
8151 $as_echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 ac_cv_var_tzname=no
8157 rm -rf conftest.dSYM
8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159 conftest$ac_exeext conftest.$ac_ext
8161 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8162 $as_echo "$ac_cv_var_tzname" >&6; }
8163 if test $ac_cv_var_tzname = yes; then
8165 cat >>confdefs.h <<\_ACEOF
8166 #define HAVE_TZNAME 1
8167 _ACEOF
8172 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8173 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8174 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8175 $as_echo_n "(cached) " >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 #include <time.h>
8186 main ()
8188 static struct tm ac_aggr;
8189 if (ac_aggr.tm_gmtoff)
8190 return 0;
8192 return 0;
8194 _ACEOF
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8202 $as_echo "$ac_try_echo") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_c_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.$ac_objext; then
8213 ac_cv_member_struct_tm_tm_gmtoff=yes
8214 else
8215 $as_echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224 #include <time.h>
8227 main ()
8229 static struct tm ac_aggr;
8230 if (sizeof ac_aggr.tm_gmtoff)
8231 return 0;
8233 return 0;
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (ac_try="$ac_compile"
8238 case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241 esac
8242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8243 $as_echo "$ac_try_echo") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.$ac_objext; then
8254 ac_cv_member_struct_tm_tm_gmtoff=yes
8255 else
8256 $as_echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_cv_member_struct_tm_tm_gmtoff=no
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8268 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8269 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8271 cat >>confdefs.h <<\_ACEOF
8272 #define HAVE_TM_GMTOFF 1
8273 _ACEOF
8277 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8278 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8279 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8280 $as_echo_n "(cached) " >&6
8281 else
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 #if HAVE_SYS_SOCKET_H
8290 #include <sys/socket.h>
8291 #endif
8292 #if HAVE_NET_IF_H
8293 #include <net/if.h>
8294 #endif
8297 main ()
8299 static struct ifreq ac_aggr;
8300 if (ac_aggr.ifr_flags)
8301 return 0;
8303 return 0;
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (ac_try="$ac_compile"
8308 case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311 esac
8312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8313 $as_echo "$ac_try_echo") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 ac_cv_member_struct_ifreq_ifr_flags=yes
8325 else
8326 $as_echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 cat >conftest.$ac_ext <<_ACEOF
8330 /* confdefs.h. */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8335 $ac_includes_default
8336 #if HAVE_SYS_SOCKET_H
8337 #include <sys/socket.h>
8338 #endif
8339 #if HAVE_NET_IF_H
8340 #include <net/if.h>
8341 #endif
8344 main ()
8346 static struct ifreq ac_aggr;
8347 if (sizeof ac_aggr.ifr_flags)
8348 return 0;
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.$ac_objext; then
8371 ac_cv_member_struct_ifreq_ifr_flags=yes
8372 else
8373 $as_echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_member_struct_ifreq_ifr_flags=no
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8385 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8386 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8388 cat >>confdefs.h <<_ACEOF
8389 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8390 _ACEOF
8394 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8395 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8396 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #if HAVE_SYS_SOCKET_H
8407 #include <sys/socket.h>
8408 #endif
8409 #if HAVE_NET_IF_H
8410 #include <net/if.h>
8411 #endif
8414 main ()
8416 static struct ifreq ac_aggr;
8417 if (ac_aggr.ifr_hwaddr)
8418 return 0;
8420 return 0;
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8425 case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.$ac_objext; then
8441 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8442 else
8443 $as_echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8453 #if HAVE_SYS_SOCKET_H
8454 #include <sys/socket.h>
8455 #endif
8456 #if HAVE_NET_IF_H
8457 #include <net/if.h>
8458 #endif
8461 main ()
8463 static struct ifreq ac_aggr;
8464 if (sizeof ac_aggr.ifr_hwaddr)
8465 return 0;
8467 return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8472 case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475 esac
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_compile") 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest.$ac_objext; then
8488 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8489 else
8490 $as_echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8502 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8503 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8507 _ACEOF
8511 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8512 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8513 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8514 $as_echo_n "(cached) " >&6
8515 else
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8525 #endif
8526 #if HAVE_NET_IF_H
8527 #include <net/if.h>
8528 #endif
8531 main ()
8533 static struct ifreq ac_aggr;
8534 if (ac_aggr.ifr_netmask)
8535 return 0;
8537 return 0;
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547 $as_echo "$ac_try_echo") >&5
8548 (eval "$ac_compile") 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest.$ac_objext; then
8558 ac_cv_member_struct_ifreq_ifr_netmask=yes
8559 else
8560 $as_echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #if HAVE_SYS_SOCKET_H
8571 #include <sys/socket.h>
8572 #endif
8573 #if HAVE_NET_IF_H
8574 #include <net/if.h>
8575 #endif
8578 main ()
8580 static struct ifreq ac_aggr;
8581 if (sizeof ac_aggr.ifr_netmask)
8582 return 0;
8584 return 0;
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8589 case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592 esac
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_netmask=yes
8606 else
8607 $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_cv_member_struct_ifreq_ifr_netmask=no
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8619 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8620 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8624 _ACEOF
8628 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8629 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8630 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8631 $as_echo_n "(cached) " >&6
8632 else
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8640 #if HAVE_SYS_SOCKET_H
8641 #include <sys/socket.h>
8642 #endif
8643 #if HAVE_NET_IF_H
8644 #include <net/if.h>
8645 #endif
8648 main ()
8650 static struct ifreq ac_aggr;
8651 if (ac_aggr.ifr_broadaddr)
8652 return 0;
8654 return 0;
8656 _ACEOF
8657 rm -f conftest.$ac_objext
8658 if { (ac_try="$ac_compile"
8659 case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_compile") 2>conftest.er1
8666 ac_status=$?
8667 grep -v '^ *+' conftest.er1 >conftest.err
8668 rm -f conftest.er1
8669 cat conftest.err >&5
8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && {
8672 test -z "$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8674 } && test -s conftest.$ac_objext; then
8675 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8676 else
8677 $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #if HAVE_SYS_SOCKET_H
8688 #include <sys/socket.h>
8689 #endif
8690 #if HAVE_NET_IF_H
8691 #include <net/if.h>
8692 #endif
8695 main ()
8697 static struct ifreq ac_aggr;
8698 if (sizeof ac_aggr.ifr_broadaddr)
8699 return 0;
8701 return 0;
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709 esac
8710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8711 $as_echo "$ac_try_echo") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.$ac_objext; then
8722 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8723 else
8724 $as_echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8736 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8737 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8741 _ACEOF
8745 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8746 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8747 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 #if HAVE_SYS_SOCKET_H
8758 #include <sys/socket.h>
8759 #endif
8760 #if HAVE_NET_IF_H
8761 #include <net/if.h>
8762 #endif
8765 main ()
8767 static struct ifreq ac_aggr;
8768 if (ac_aggr.ifr_addr)
8769 return 0;
8771 return 0;
8773 _ACEOF
8774 rm -f conftest.$ac_objext
8775 if { (ac_try="$ac_compile"
8776 case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779 esac
8780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782 (eval "$ac_compile") 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest.$ac_objext; then
8792 ac_cv_member_struct_ifreq_ifr_addr=yes
8793 else
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #if HAVE_SYS_SOCKET_H
8805 #include <sys/socket.h>
8806 #endif
8807 #if HAVE_NET_IF_H
8808 #include <net/if.h>
8809 #endif
8812 main ()
8814 static struct ifreq ac_aggr;
8815 if (sizeof ac_aggr.ifr_addr)
8816 return 0;
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8823 case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826 esac
8827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8828 $as_echo "$ac_try_echo") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_cv_member_struct_ifreq_ifr_addr=yes
8840 else
8841 $as_echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_member_struct_ifreq_ifr_addr=no
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8853 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8854 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8858 _ACEOF
8865 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8866 $as_echo_n "checking for function prototypes... " >&6; }
8867 if test "$ac_cv_prog_cc_c89" != no; then
8868 { $as_echo "$as_me:$LINENO: result: yes" >&5
8869 $as_echo "yes" >&6; }
8871 cat >>confdefs.h <<\_ACEOF
8872 #define PROTOTYPES 1
8873 _ACEOF
8876 cat >>confdefs.h <<\_ACEOF
8877 #define __PROTOTYPES 1
8878 _ACEOF
8880 else
8881 { $as_echo "$as_me:$LINENO: result: no" >&5
8882 $as_echo "no" >&6; }
8885 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8886 $as_echo_n "checking for working volatile... " >&6; }
8887 if test "${ac_cv_c_volatile+set}" = set; then
8888 $as_echo_n "(cached) " >&6
8889 else
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8898 main ()
8901 volatile int x;
8902 int * volatile y = (int *) 0;
8903 return !x && !y;
8905 return 0;
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (ac_try="$ac_compile"
8910 case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_c_volatile=yes
8927 else
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_c_volatile=no
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8937 $as_echo "$ac_cv_c_volatile" >&6; }
8938 if test $ac_cv_c_volatile = no; then
8940 cat >>confdefs.h <<\_ACEOF
8941 #define volatile /**/
8942 _ACEOF
8946 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8947 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8948 if test "${ac_cv_c_const+set}" = set; then
8949 $as_echo_n "(cached) " >&6
8950 else
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8959 main ()
8961 /* FIXME: Include the comments suggested by Paul. */
8962 #ifndef __cplusplus
8963 /* Ultrix mips cc rejects this. */
8964 typedef int charset[2];
8965 const charset cs;
8966 /* SunOS 4.1.1 cc rejects this. */
8967 char const *const *pcpcc;
8968 char **ppc;
8969 /* NEC SVR4.0.2 mips cc rejects this. */
8970 struct point {int x, y;};
8971 static struct point const zero = {0,0};
8972 /* AIX XL C 1.02.0.0 rejects this.
8973 It does not let you subtract one const X* pointer from another in
8974 an arm of an if-expression whose if-part is not a constant
8975 expression */
8976 const char *g = "string";
8977 pcpcc = &g + (g ? g-g : 0);
8978 /* HPUX 7.0 cc rejects these. */
8979 ++pcpcc;
8980 ppc = (char**) pcpcc;
8981 pcpcc = (char const *const *) ppc;
8982 { /* SCO 3.2v4 cc rejects this. */
8983 char *t;
8984 char const *s = 0 ? (char *) 0 : (char const *) 0;
8986 *t++ = 0;
8987 if (s) return 0;
8989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8990 int x[] = {25, 17};
8991 const int *foo = &x[0];
8992 ++foo;
8994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8995 typedef const int *iptr;
8996 iptr p = 0;
8997 ++p;
8999 { /* AIX XL C 1.02.0.0 rejects this saying
9000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9001 struct s { int j; const int *ap[3]; };
9002 struct s *b; b->j = 5;
9004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9005 const int foo = 10;
9006 if (!foo) return 0;
9008 return !cs[0] && !zero.x;
9009 #endif
9012 return 0;
9014 _ACEOF
9015 rm -f conftest.$ac_objext
9016 if { (ac_try="$ac_compile"
9017 case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020 esac
9021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9022 $as_echo "$ac_try_echo") >&5
9023 (eval "$ac_compile") 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && {
9030 test -z "$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9032 } && test -s conftest.$ac_objext; then
9033 ac_cv_c_const=yes
9034 else
9035 $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_cv_c_const=no
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9044 $as_echo "$ac_cv_c_const" >&6; }
9045 if test $ac_cv_c_const = no; then
9047 cat >>confdefs.h <<\_ACEOF
9048 #define const /**/
9049 _ACEOF
9053 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9054 $as_echo_n "checking for void * support... " >&6; }
9055 if test "${emacs_cv_void_star+set}" = set; then
9056 $as_echo_n "(cached) " >&6
9057 else
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9066 main ()
9068 void * foo;
9070 return 0;
9072 _ACEOF
9073 rm -f conftest.$ac_objext
9074 if { (ac_try="$ac_compile"
9075 case "(($ac_try" in
9076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9078 esac
9079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9080 $as_echo "$ac_try_echo") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 emacs_cv_void_star=yes
9092 else
9093 $as_echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 emacs_cv_void_star=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9102 $as_echo "$emacs_cv_void_star" >&6; }
9103 if test $emacs_cv_void_star = yes; then
9104 cat >>confdefs.h <<\_ACEOF
9105 #define POINTER_TYPE void
9106 _ACEOF
9108 else
9109 cat >>confdefs.h <<\_ACEOF
9110 #define POINTER_TYPE char
9111 _ACEOF
9119 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9120 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9121 set x ${MAKE-make}
9122 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9123 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat >conftest.make <<\_ACEOF
9127 SHELL = /bin/sh
9128 all:
9129 @echo '@@@%%%=$(MAKE)=@@@%%%'
9130 _ACEOF
9131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9132 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9133 *@@@%%%=?*=@@@%%%*)
9134 eval ac_cv_prog_make_${ac_make}_set=yes;;
9136 eval ac_cv_prog_make_${ac_make}_set=no;;
9137 esac
9138 rm -f conftest.make
9140 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9141 { $as_echo "$as_me:$LINENO: result: yes" >&5
9142 $as_echo "yes" >&6; }
9143 SET_MAKE=
9144 else
9145 { $as_echo "$as_me:$LINENO: result: no" >&5
9146 $as_echo "no" >&6; }
9147 SET_MAKE="MAKE=${MAKE-make}"
9151 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9152 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9153 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9154 HAVE_GNU_MAKE=no
9155 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9156 if test "x$testval" != x; then
9157 HAVE_GNU_MAKE=yes
9158 else
9159 ac_enable_autodepend=no
9161 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9162 $as_echo "$HAVE_GNU_MAKE" >&6; }
9163 if test $HAVE_GNU_MAKE = yes; then
9164 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9165 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9166 SAVE_CFLAGS="$CFLAGS"
9167 CFLAGS="$CFLAGS -MMD -MF deps.d"
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9176 main ()
9180 return 0;
9182 _ACEOF
9183 rm -f conftest.$ac_objext
9184 if { (ac_try="$ac_compile"
9185 case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188 esac
9189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9190 $as_echo "$ac_try_echo") >&5
9191 (eval "$ac_compile") 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest.$ac_objext; then
9202 else
9203 $as_echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9206 ac_enable_autodepend=no
9209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 CFLAGS="$SAVE_CFLAGS"
9211 test -f deps.d || ac_enable_autodepend=no
9212 rm -rf deps.d
9213 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9214 $as_echo "$ac_enable_autodepend" >&6; }
9216 if test $ac_enable_autodepend = yes; then
9218 cat >>confdefs.h <<\_ACEOF
9219 #define AUTO_DEPEND 1
9220 _ACEOF
9225 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9226 $as_echo_n "checking for long file names... " >&6; }
9227 if test "${ac_cv_sys_long_file_names+set}" = set; then
9228 $as_echo_n "(cached) " >&6
9229 else
9230 ac_cv_sys_long_file_names=yes
9231 # Test for long file names in all the places we know might matter:
9232 # . the current directory, where building will happen
9233 # $prefix/lib where we will be installing things
9234 # $exec_prefix/lib likewise
9235 # $TMPDIR if set, where it might want to write temporary files
9236 # /tmp where it might want to write temporary files
9237 # /var/tmp likewise
9238 # /usr/tmp likewise
9239 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9240 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9241 # in the usual case where exec_prefix is '${prefix}'.
9242 case $ac_dir in #(
9243 . | /* | ?:[\\/]*) ;; #(
9244 *) continue;;
9245 esac
9246 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9247 ac_xdir=$ac_dir/cf$$
9248 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9249 ac_tf1=$ac_xdir/conftest9012345
9250 ac_tf2=$ac_xdir/conftest9012346
9251 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9252 ac_cv_sys_long_file_names=no
9253 rm -f -r "$ac_xdir" 2>/dev/null
9254 test $ac_cv_sys_long_file_names = no && break
9255 done
9257 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9258 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9259 if test $ac_cv_sys_long_file_names = yes; then
9261 cat >>confdefs.h <<\_ACEOF
9262 #define HAVE_LONG_FILE_NAMES 1
9263 _ACEOF
9268 #### Choose a window system.
9270 { $as_echo "$as_me:$LINENO: checking for X" >&5
9271 $as_echo_n "checking for X... " >&6; }
9274 # Check whether --with-x was given.
9275 if test "${with_x+set}" = set; then
9276 withval=$with_x;
9279 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9280 if test "x$with_x" = xno; then
9281 # The user explicitly disabled X.
9282 have_x=disabled
9283 else
9284 case $x_includes,$x_libraries in #(
9285 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9286 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9287 { (exit 1); exit 1; }; };; #(
9288 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9289 $as_echo_n "(cached) " >&6
9290 else
9291 # One or both of the vars are not set, and there is no cached value.
9292 ac_x_includes=no ac_x_libraries=no
9293 rm -f -r conftest.dir
9294 if mkdir conftest.dir; then
9295 cd conftest.dir
9296 cat >Imakefile <<'_ACEOF'
9297 incroot:
9298 @echo incroot='${INCROOT}'
9299 usrlibdir:
9300 @echo usrlibdir='${USRLIBDIR}'
9301 libdir:
9302 @echo libdir='${LIBDIR}'
9303 _ACEOF
9304 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9306 for ac_var in incroot usrlibdir libdir; do
9307 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9308 done
9309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9310 for ac_extension in a so sl dylib la dll; do
9311 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9312 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9313 ac_im_usrlibdir=$ac_im_libdir; break
9315 done
9316 # Screen out bogus values from the imake configuration. They are
9317 # bogus both because they are the default anyway, and because
9318 # using them would break gcc on systems where it needs fixed includes.
9319 case $ac_im_incroot in
9320 /usr/include) ac_x_includes= ;;
9321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9322 esac
9323 case $ac_im_usrlibdir in
9324 /usr/lib | /lib) ;;
9325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9326 esac
9328 cd ..
9329 rm -f -r conftest.dir
9332 # Standard set of common directories for X headers.
9333 # Check X11 before X11Rn because it is often a symlink to the current release.
9334 ac_x_header_dirs='
9335 /usr/X11/include
9336 /usr/X11R6/include
9337 /usr/X11R5/include
9338 /usr/X11R4/include
9340 /usr/include/X11
9341 /usr/include/X11R6
9342 /usr/include/X11R5
9343 /usr/include/X11R4
9345 /usr/local/X11/include
9346 /usr/local/X11R6/include
9347 /usr/local/X11R5/include
9348 /usr/local/X11R4/include
9350 /usr/local/include/X11
9351 /usr/local/include/X11R6
9352 /usr/local/include/X11R5
9353 /usr/local/include/X11R4
9355 /usr/X386/include
9356 /usr/x386/include
9357 /usr/XFree86/include/X11
9359 /usr/include
9360 /usr/local/include
9361 /usr/unsupported/include
9362 /usr/athena/include
9363 /usr/local/x11r5/include
9364 /usr/lpp/Xamples/include
9366 /usr/openwin/include
9367 /usr/openwin/share/include'
9369 if test "$ac_x_includes" = no; then
9370 # Guess where to find include files, by looking for Xlib.h.
9371 # First, try using that file with no special directory specified.
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <X11/Xlib.h>
9379 _ACEOF
9380 if { (ac_try="$ac_cpp conftest.$ac_ext"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9386 $as_echo "$ac_try_echo") >&5
9387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } >/dev/null && {
9394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 }; then
9397 # We can compile using X headers with no special include directory.
9398 ac_x_includes=
9399 else
9400 $as_echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 for ac_dir in $ac_x_header_dirs; do
9404 if test -r "$ac_dir/X11/Xlib.h"; then
9405 ac_x_includes=$ac_dir
9406 break
9408 done
9411 rm -f conftest.err conftest.$ac_ext
9412 fi # $ac_x_includes = no
9414 if test "$ac_x_libraries" = no; then
9415 # Check for the libraries.
9416 # See if we find them without any special options.
9417 # Don't add to $LIBS permanently.
9418 ac_save_LIBS=$LIBS
9419 LIBS="-lX11 $LIBS"
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 #include <X11/Xlib.h>
9428 main ()
9430 XrmInitialize ()
9432 return 0;
9434 _ACEOF
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9437 case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440 esac
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_link") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest$ac_exeext && {
9453 test "$cross_compiling" = yes ||
9454 $as_test_x conftest$ac_exeext
9455 }; then
9456 LIBS=$ac_save_LIBS
9457 # We can link X programs with no special library path.
9458 ac_x_libraries=
9459 else
9460 $as_echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 LIBS=$ac_save_LIBS
9464 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9466 # Don't even attempt the hair of trying to link an X program!
9467 for ac_extension in a so sl dylib la dll; do
9468 if test -r "$ac_dir/libX11.$ac_extension"; then
9469 ac_x_libraries=$ac_dir
9470 break 2
9472 done
9473 done
9476 rm -rf conftest.dSYM
9477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9478 conftest$ac_exeext conftest.$ac_ext
9479 fi # $ac_x_libraries = no
9481 case $ac_x_includes,$ac_x_libraries in #(
9482 no,* | *,no | *\'*)
9483 # Didn't find X, or a directory has "'" in its name.
9484 ac_cv_have_x="have_x=no";; #(
9486 # Record where we found X for the cache.
9487 ac_cv_have_x="have_x=yes\
9488 ac_x_includes='$ac_x_includes'\
9489 ac_x_libraries='$ac_x_libraries'"
9490 esac
9492 ;; #(
9493 *) have_x=yes;;
9494 esac
9495 eval "$ac_cv_have_x"
9496 fi # $with_x != no
9498 if test "$have_x" != yes; then
9499 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9500 $as_echo "$have_x" >&6; }
9501 no_x=yes
9502 else
9503 # If each of the values was on the command line, it overrides each guess.
9504 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9505 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9506 # Update the cache value to reflect the command line values.
9507 ac_cv_have_x="have_x=yes\
9508 ac_x_includes='$x_includes'\
9509 ac_x_libraries='$x_libraries'"
9510 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9511 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9514 if test "$no_x" = yes; then
9515 window_system=none
9516 else
9517 window_system=x11
9520 ## Workaround for bug in autoconf <= 2.62.
9521 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9522 ## No need to do anything special for these standard directories.
9523 ## This is an experiment, take it out if it causes problems.
9524 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9526 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9530 if test "${x_libraries}" != NONE; then
9531 if test -n "${x_libraries}"; then
9532 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9533 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9535 x_default_search_path=""
9536 x_search_path=${x_libraries}
9537 if test -z "${x_search_path}"; then
9538 x_search_path=/usr/lib
9540 for x_library in `echo ${x_search_path}: | \
9541 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9542 x_search_path="\
9543 ${x_library}/X11/%L/%T/%N%C%S:\
9544 ${x_library}/X11/%l/%T/%N%C%S:\
9545 ${x_library}/X11/%T/%N%C%S:\
9546 ${x_library}/X11/%L/%T/%N%S:\
9547 ${x_library}/X11/%l/%T/%N%S:\
9548 ${x_library}/X11/%T/%N%S"
9549 if test x"${x_default_search_path}" = x; then
9550 x_default_search_path=${x_search_path}
9551 else
9552 x_default_search_path="${x_search_path}:${x_default_search_path}"
9554 done
9556 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9557 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9560 if test x"${x_includes}" = x; then
9561 bitmapdir=/usr/include/X11/bitmaps
9562 else
9563 # accumulate include directories that have X11 bitmap subdirectories
9564 bmd_acc="dummyval"
9565 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9566 if test -d "${bmd}/X11/bitmaps"; then
9567 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9569 if test -d "${bmd}/bitmaps"; then
9570 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9572 done
9573 if test ${bmd_acc} != "dummyval"; then
9574 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9578 HAVE_NS=no
9579 NS_IMPL_COCOA=no
9580 NS_IMPL_GNUSTEP=no
9581 tmp_CPPFLAGS="$CPPFLAGS"
9582 tmp_CFLAGS="$CFLAGS"
9583 CPPFLAGS="$CPPFLAGS -x objective-c"
9584 CFLAGS="$CFLAGS -x objective-c"
9585 if test "${with_ns}" != no; then
9586 if test "${opsys}" = darwin; then
9587 NS_IMPL_COCOA=yes
9588 ns_appdir=`pwd`/nextstep/Emacs.app
9589 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9590 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9591 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9592 elif test -f $GNUSTEP_CONFIG_FILE; then
9593 NS_IMPL_GNUSTEP=yes
9594 ns_appdir=`pwd`/nextstep/Emacs.app
9595 ns_appbindir=`pwd`/nextstep/Emacs.app
9596 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9597 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9598 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9599 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9600 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9601 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9602 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9603 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9604 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9606 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9607 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9608 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9609 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9610 $as_echo_n "(cached) " >&6
9612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9613 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9614 else
9615 # Is the header compilable?
9616 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9617 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 #include <AppKit/AppKit.h>
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (ac_try="$ac_compile"
9629 case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632 esac
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_header_compiler=yes
9646 else
9647 $as_echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_header_compiler=no
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655 $as_echo "$ac_header_compiler" >&6; }
9657 # Is the header present?
9658 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9659 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 #include <AppKit/AppKit.h>
9667 _ACEOF
9668 if { (ac_try="$ac_cpp conftest.$ac_ext"
9669 case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672 esac
9673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674 $as_echo "$ac_try_echo") >&5
9675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } >/dev/null && {
9682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 }; then
9685 ac_header_preproc=yes
9686 else
9687 $as_echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 ac_header_preproc=no
9693 rm -f conftest.err conftest.$ac_ext
9694 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 $as_echo "$ac_header_preproc" >&6; }
9697 # So? What about this header?
9698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9699 yes:no: )
9700 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9701 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9703 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc=yes
9706 no:yes:* )
9707 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9708 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9709 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9710 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9711 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9712 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9713 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9714 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9716 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9717 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9718 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9721 esac
9722 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9723 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9724 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9725 $as_echo_n "(cached) " >&6
9726 else
9727 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9730 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9733 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9734 HAVE_NS=yes
9735 else
9736 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9737 files are missing or cannot be compiled." >&5
9738 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9739 files are missing or cannot be compiled." >&2;}
9740 { (exit 1); exit 1; }; }
9744 NS_HAVE_NSINTEGER=yes
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 #include <Foundation/NSObjCRuntime.h>
9753 main ()
9755 NSInteger i;
9757 return 0;
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (ac_try="$ac_compile"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768 (eval "$ac_compile") 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest.$ac_objext; then
9778 ns_have_nsinteger=yes
9779 else
9780 $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ns_have_nsinteger=no
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 if test $ns_have_nsinteger = no; then
9788 NS_HAVE_NSINTEGER=no
9791 if test "${HAVE_NS}" = yes; then
9792 window_system=nextstep
9793 with_xft=no
9794 # set up packaging dirs
9795 exec_prefix=${ns_appbindir}
9796 libexecdir=${ns_appbindir}/libexec
9797 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9798 prefix=${ns_appresdir}
9801 CFLAGS="$tmp_CFLAGS"
9802 CPPFLAGS="$tmp_CPPFLAGS"
9804 case "${window_system}" in
9805 x11 )
9806 HAVE_X_WINDOWS=yes
9807 HAVE_X11=yes
9808 case "${with_x_toolkit}" in
9809 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9810 motif ) USE_X_TOOLKIT=MOTIF ;;
9811 gtk ) with_gtk=yes
9812 USE_X_TOOLKIT=none ;;
9813 no ) USE_X_TOOLKIT=none ;;
9814 * ) USE_X_TOOLKIT=maybe ;;
9815 esac
9817 nextstep | none )
9818 HAVE_X_WINDOWS=no
9819 HAVE_X11=no
9820 USE_X_TOOLKIT=none
9822 esac
9824 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9825 # Extract the first word of "X", so it can be a program name with args.
9826 set dummy X; ac_word=$2
9827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9830 $as_echo_n "(cached) " >&6
9831 else
9832 if test -n "$HAVE_XSERVER"; then
9833 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9834 else
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in $PATH
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842 ac_cv_prog_HAVE_XSERVER="true"
9843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9846 done
9847 done
9848 IFS=$as_save_IFS
9850 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9853 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9854 if test -n "$HAVE_XSERVER"; then
9855 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9856 $as_echo "$HAVE_XSERVER" >&6; }
9857 else
9858 { $as_echo "$as_me:$LINENO: result: no" >&5
9859 $as_echo "no" >&6; }
9863 if test "$HAVE_XSERVER" = true ||
9864 test -n "$DISPLAY" ||
9865 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9866 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9867 were found. You should install the relevant development files for X
9868 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9869 sure you have development files for image handling, i.e.
9870 tiff, gif, jpeg, png and xpm.
9871 If you are sure you want Emacs compiled without X window support, pass
9872 --without-x
9873 to configure." >&5
9874 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9875 were found. You should install the relevant development files for X
9876 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9877 sure you have development files for image handling, i.e.
9878 tiff, gif, jpeg, png and xpm.
9879 If you are sure you want Emacs compiled without X window support, pass
9880 --without-x
9881 to configure." >&2;}
9882 { (exit 1); exit 1; }; }
9886 ### If we're using X11, we should use the X menu package.
9887 HAVE_MENUS=no
9888 case ${HAVE_X11} in
9889 yes ) HAVE_MENUS=yes ;;
9890 esac
9892 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9893 # Assume not, until told otherwise.
9894 GNU_MALLOC=yes
9895 doug_lea_malloc=yes
9896 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9897 $as_echo_n "checking for malloc_get_state... " >&6; }
9898 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9899 $as_echo_n "(cached) " >&6
9900 else
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define malloc_get_state innocuous_malloc_get_state
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char malloc_get_state (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9916 #ifdef __STDC__
9917 # include <limits.h>
9918 #else
9919 # include <assert.h>
9920 #endif
9922 #undef malloc_get_state
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char malloc_get_state ();
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9935 choke me
9936 #endif
9939 main ()
9941 return malloc_get_state ();
9943 return 0;
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_link") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest$ac_exeext && {
9964 test "$cross_compiling" = yes ||
9965 $as_test_x conftest$ac_exeext
9966 }; then
9967 ac_cv_func_malloc_get_state=yes
9968 else
9969 $as_echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_cv_func_malloc_get_state=no
9975 rm -rf conftest.dSYM
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9979 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9980 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9981 if test $ac_cv_func_malloc_get_state = yes; then
9983 else
9984 doug_lea_malloc=no
9987 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9988 $as_echo_n "checking for malloc_set_state... " >&6; }
9989 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9990 $as_echo_n "(cached) " >&6
9991 else
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000 #define malloc_set_state innocuous_malloc_set_state
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char malloc_set_state (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10007 #ifdef __STDC__
10008 # include <limits.h>
10009 #else
10010 # include <assert.h>
10011 #endif
10013 #undef malloc_set_state
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 char malloc_set_state ();
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10026 choke me
10027 #endif
10030 main ()
10032 return malloc_set_state ();
10034 return 0;
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10044 $as_echo "$ac_try_echo") >&5
10045 (eval "$ac_link") 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && {
10052 test -z "$ac_c_werror_flag" ||
10053 test ! -s conftest.err
10054 } && test -s conftest$ac_exeext && {
10055 test "$cross_compiling" = yes ||
10056 $as_test_x conftest$ac_exeext
10057 }; then
10058 ac_cv_func_malloc_set_state=yes
10059 else
10060 $as_echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_cv_func_malloc_set_state=no
10066 rm -rf conftest.dSYM
10067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10068 conftest$ac_exeext conftest.$ac_ext
10070 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10071 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10072 if test $ac_cv_func_malloc_set_state = yes; then
10074 else
10075 doug_lea_malloc=no
10078 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10079 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10080 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10081 $as_echo_n "(cached) " >&6
10082 else
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 extern void (* __after_morecore_hook)();
10091 main ()
10093 __after_morecore_hook = 0
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103 esac
10104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10105 $as_echo "$ac_try_echo") >&5
10106 (eval "$ac_link") 2>conftest.er1
10107 ac_status=$?
10108 grep -v '^ *+' conftest.er1 >conftest.err
10109 rm -f conftest.er1
10110 cat conftest.err >&5
10111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } && {
10113 test -z "$ac_c_werror_flag" ||
10114 test ! -s conftest.err
10115 } && test -s conftest$ac_exeext && {
10116 test "$cross_compiling" = yes ||
10117 $as_test_x conftest$ac_exeext
10118 }; then
10119 emacs_cv_var___after_morecore_hook=yes
10120 else
10121 $as_echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 emacs_cv_var___after_morecore_hook=no
10127 rm -rf conftest.dSYM
10128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10129 conftest$ac_exeext conftest.$ac_ext
10131 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10132 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10133 if test $emacs_cv_var___after_morecore_hook = no; then
10134 doug_lea_malloc=no
10136 if test "${system_malloc}" = "yes"; then
10137 GNU_MALLOC=no
10138 GNU_MALLOC_reason="
10139 (The GNU allocators don't work with this system configuration.)"
10141 if test "$doug_lea_malloc" = "yes" ; then
10142 if test "$GNU_MALLOC" = yes ; then
10143 GNU_MALLOC_reason="
10144 (Using Doug Lea's new malloc from the GNU C Library.)"
10147 cat >>confdefs.h <<\_ACEOF
10148 #define DOUG_LEA_MALLOC 1
10149 _ACEOF
10153 if test x"${REL_ALLOC}" = x; then
10154 REL_ALLOC=${GNU_MALLOC}
10160 for ac_header in stdlib.h unistd.h
10162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10165 $as_echo_n "checking for $ac_header... " >&6; }
10166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10167 $as_echo_n "(cached) " >&6
10169 ac_res=`eval 'as_val=${'$as_ac_Header'}
10170 $as_echo "$as_val"'`
10171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10172 $as_echo "$ac_res" >&6; }
10173 else
10174 # Is the header compilable?
10175 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10176 $as_echo_n "checking $ac_header usability... " >&6; }
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10184 #include <$ac_header>
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (ac_try="$ac_compile"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_compile") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest.$ac_objext; then
10204 ac_header_compiler=yes
10205 else
10206 $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_header_compiler=no
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10214 $as_echo "$ac_header_compiler" >&6; }
10216 # Is the header present?
10217 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10218 $as_echo_n "checking $ac_header presence... " >&6; }
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <$ac_header>
10226 _ACEOF
10227 if { (ac_try="$ac_cpp conftest.$ac_ext"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231 esac
10232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10233 $as_echo "$ac_try_echo") >&5
10234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev/null && {
10241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 }; then
10244 ac_header_preproc=yes
10245 else
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_header_preproc=no
10252 rm -f conftest.err conftest.$ac_ext
10253 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10254 $as_echo "$ac_header_preproc" >&6; }
10256 # So? What about this header?
10257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10258 yes:no: )
10259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10260 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10263 ac_header_preproc=yes
10265 no:yes:* )
10266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10267 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10269 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10271 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10277 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10280 esac
10281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10282 $as_echo_n "checking for $ac_header... " >&6; }
10283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10284 $as_echo_n "(cached) " >&6
10285 else
10286 eval "$as_ac_Header=\$ac_header_preproc"
10288 ac_res=`eval 'as_val=${'$as_ac_Header'}
10289 $as_echo "$as_val"'`
10290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10291 $as_echo "$ac_res" >&6; }
10294 if test `eval 'as_val=${'$as_ac_Header'}
10295 $as_echo "$as_val"'` = yes; then
10296 cat >>confdefs.h <<_ACEOF
10297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10298 _ACEOF
10302 done
10305 for ac_func in getpagesize
10307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10309 $as_echo_n "checking for $ac_func... " >&6; }
10310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10311 $as_echo_n "(cached) " >&6
10312 else
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10321 #define $ac_func innocuous_$ac_func
10323 /* System header to define __stub macros and hopefully few prototypes,
10324 which can conflict with char $ac_func (); below.
10325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10326 <limits.h> exists even on freestanding compilers. */
10328 #ifdef __STDC__
10329 # include <limits.h>
10330 #else
10331 # include <assert.h>
10332 #endif
10334 #undef $ac_func
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char $ac_func ();
10343 /* The GNU C library defines this for functions which it implements
10344 to always fail with ENOSYS. Some functions are actually named
10345 something starting with __ and the normal name is an alias. */
10346 #if defined __stub_$ac_func || defined __stub___$ac_func
10347 choke me
10348 #endif
10351 main ()
10353 return $ac_func ();
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10365 $as_echo "$ac_try_echo") >&5
10366 (eval "$ac_link") 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && {
10373 test -z "$ac_c_werror_flag" ||
10374 test ! -s conftest.err
10375 } && test -s conftest$ac_exeext && {
10376 test "$cross_compiling" = yes ||
10377 $as_test_x conftest$ac_exeext
10378 }; then
10379 eval "$as_ac_var=yes"
10380 else
10381 $as_echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 eval "$as_ac_var=no"
10387 rm -rf conftest.dSYM
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389 conftest$ac_exeext conftest.$ac_ext
10391 ac_res=`eval 'as_val=${'$as_ac_var'}
10392 $as_echo "$as_val"'`
10393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10394 $as_echo "$ac_res" >&6; }
10395 if test `eval 'as_val=${'$as_ac_var'}
10396 $as_echo "$as_val"'` = yes; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10399 _ACEOF
10402 done
10404 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10405 $as_echo_n "checking for working mmap... " >&6; }
10406 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10407 $as_echo_n "(cached) " >&6
10408 else
10409 if test "$cross_compiling" = yes; then
10410 ac_cv_func_mmap_fixed_mapped=no
10411 else
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10419 /* malloc might have been renamed as rpl_malloc. */
10420 #undef malloc
10422 /* Thanks to Mike Haertel and Jim Avera for this test.
10423 Here is a matrix of mmap possibilities:
10424 mmap private not fixed
10425 mmap private fixed at somewhere currently unmapped
10426 mmap private fixed at somewhere already mapped
10427 mmap shared not fixed
10428 mmap shared fixed at somewhere currently unmapped
10429 mmap shared fixed at somewhere already mapped
10430 For private mappings, we should verify that changes cannot be read()
10431 back from the file, nor mmap's back from the file at a different
10432 address. (There have been systems where private was not correctly
10433 implemented like the infamous i386 svr4.0, and systems where the
10434 VM page cache was not coherent with the file system buffer cache
10435 like early versions of FreeBSD and possibly contemporary NetBSD.)
10436 For shared mappings, we should conversely verify that changes get
10437 propagated back to all the places they're supposed to be.
10439 Grep wants private fixed already mapped.
10440 The main things grep needs to know about mmap are:
10441 * does it exist and is it safe to write into the mmap'd area
10442 * how to use it (BSD variants) */
10444 #include <fcntl.h>
10445 #include <sys/mman.h>
10447 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10448 char *malloc ();
10449 #endif
10451 /* This mess was copied from the GNU getpagesize.h. */
10452 #ifndef HAVE_GETPAGESIZE
10453 /* Assume that all systems that can run configure have sys/param.h. */
10454 # ifndef HAVE_SYS_PARAM_H
10455 # define HAVE_SYS_PARAM_H 1
10456 # endif
10458 # ifdef _SC_PAGESIZE
10459 # define getpagesize() sysconf(_SC_PAGESIZE)
10460 # else /* no _SC_PAGESIZE */
10461 # ifdef HAVE_SYS_PARAM_H
10462 # include <sys/param.h>
10463 # ifdef EXEC_PAGESIZE
10464 # define getpagesize() EXEC_PAGESIZE
10465 # else /* no EXEC_PAGESIZE */
10466 # ifdef NBPG
10467 # define getpagesize() NBPG * CLSIZE
10468 # ifndef CLSIZE
10469 # define CLSIZE 1
10470 # endif /* no CLSIZE */
10471 # else /* no NBPG */
10472 # ifdef NBPC
10473 # define getpagesize() NBPC
10474 # else /* no NBPC */
10475 # ifdef PAGESIZE
10476 # define getpagesize() PAGESIZE
10477 # endif /* PAGESIZE */
10478 # endif /* no NBPC */
10479 # endif /* no NBPG */
10480 # endif /* no EXEC_PAGESIZE */
10481 # else /* no HAVE_SYS_PARAM_H */
10482 # define getpagesize() 8192 /* punt totally */
10483 # endif /* no HAVE_SYS_PARAM_H */
10484 # endif /* no _SC_PAGESIZE */
10486 #endif /* no HAVE_GETPAGESIZE */
10489 main ()
10491 char *data, *data2, *data3;
10492 int i, pagesize;
10493 int fd;
10495 pagesize = getpagesize ();
10497 /* First, make a file with some known garbage in it. */
10498 data = (char *) malloc (pagesize);
10499 if (!data)
10500 return 1;
10501 for (i = 0; i < pagesize; ++i)
10502 *(data + i) = rand ();
10503 umask (0);
10504 fd = creat ("conftest.mmap", 0600);
10505 if (fd < 0)
10506 return 1;
10507 if (write (fd, data, pagesize) != pagesize)
10508 return 1;
10509 close (fd);
10511 /* Next, try to mmap the file at a fixed address which already has
10512 something else allocated at it. If we can, also make sure that
10513 we see the same garbage. */
10514 fd = open ("conftest.mmap", O_RDWR);
10515 if (fd < 0)
10516 return 1;
10517 data2 = (char *) malloc (2 * pagesize);
10518 if (!data2)
10519 return 1;
10520 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10521 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10522 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10523 return 1;
10524 for (i = 0; i < pagesize; ++i)
10525 if (*(data + i) != *(data2 + i))
10526 return 1;
10528 /* Finally, make sure that changes to the mapped area do not
10529 percolate back to the file as seen by read(). (This is a bug on
10530 some variants of i386 svr4.0.) */
10531 for (i = 0; i < pagesize; ++i)
10532 *(data2 + i) = *(data2 + i) + 1;
10533 data3 = (char *) malloc (pagesize);
10534 if (!data3)
10535 return 1;
10536 if (read (fd, data3, pagesize) != pagesize)
10537 return 1;
10538 for (i = 0; i < pagesize; ++i)
10539 if (*(data + i) != *(data3 + i))
10540 return 1;
10541 close (fd);
10542 return 0;
10544 _ACEOF
10545 rm -f conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10552 $as_echo "$ac_try_echo") >&5
10553 (eval "$ac_link") 2>&5
10554 ac_status=$?
10555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10557 { (case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10560 esac
10561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10562 $as_echo "$ac_try_echo") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_func_mmap_fixed_mapped=yes
10568 else
10569 $as_echo "$as_me: program exited with status $ac_status" >&5
10570 $as_echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ( exit $ac_status )
10574 ac_cv_func_mmap_fixed_mapped=no
10576 rm -rf conftest.dSYM
10577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10582 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10583 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_MMAP 1
10588 _ACEOF
10591 rm -f conftest.mmap
10593 if test $use_mmap_for_buffers = yes; then
10594 REL_ALLOC=no
10597 LIBS="$libsrc_libs $LIBS"
10600 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10601 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10602 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-ldnet $LIBS"
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10614 /* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 char dnet_ntoa ();
10622 main ()
10624 return dnet_ntoa ();
10626 return 0;
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10636 $as_echo "$ac_try_echo") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext && {
10647 test "$cross_compiling" = yes ||
10648 $as_test_x conftest$ac_exeext
10649 }; then
10650 ac_cv_lib_dnet_dnet_ntoa=yes
10651 else
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_lib_dnet_dnet_ntoa=no
10658 rm -rf conftest.dSYM
10659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10664 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10665 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define HAVE_LIBDNET 1
10668 _ACEOF
10670 LIBS="-ldnet $LIBS"
10675 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10676 $as_echo_n "checking for main in -lXbsd... " >&6; }
10677 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-lXbsd $LIBS"
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10691 main ()
10693 return main ();
10695 return 0;
10697 _ACEOF
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (ac_try="$ac_link"
10700 case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703 esac
10704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10705 $as_echo "$ac_try_echo") >&5
10706 (eval "$ac_link") 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } && {
10713 test -z "$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 } && test -s conftest$ac_exeext && {
10716 test "$cross_compiling" = yes ||
10717 $as_test_x conftest$ac_exeext
10718 }; then
10719 ac_cv_lib_Xbsd_main=yes
10720 else
10721 $as_echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_cv_lib_Xbsd_main=no
10727 rm -rf conftest.dSYM
10728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10733 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10734 if test $ac_cv_lib_Xbsd_main = yes; then
10735 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10740 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10741 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10742 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lpthreads $LIBS"
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char cma_open ();
10762 main ()
10764 return cma_open ();
10766 return 0;
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest$ac_exeext
10789 }; then
10790 ac_cv_lib_pthreads_cma_open=yes
10791 else
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_lib_pthreads_cma_open=no
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10804 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10805 if test $ac_cv_lib_pthreads_cma_open = yes; then
10806 cat >>confdefs.h <<_ACEOF
10807 #define HAVE_LIBPTHREADS 1
10808 _ACEOF
10810 LIBS="-lpthreads $LIBS"
10816 case ${host_os} in
10817 aix*)
10818 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10819 $as_echo_n "checking for -bbigtoc option... " >&6; }
10820 if test "${gdb_cv_bigtoc+set}" = set; then
10821 $as_echo_n "(cached) " >&6
10822 else
10824 case $GCC in
10825 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10826 *) gdb_cv_bigtoc=-bbigtoc ;;
10827 esac
10829 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10838 main ()
10840 int i;
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext conftest$ac_exeext
10846 if { (ac_try="$ac_link"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10852 $as_echo "$ac_try_echo") >&5
10853 (eval "$ac_link") 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest$ac_exeext && {
10863 test "$cross_compiling" = yes ||
10864 $as_test_x conftest$ac_exeext
10865 }; then
10867 else
10868 $as_echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 gdb_cv_bigtoc=
10874 rm -rf conftest.dSYM
10875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10876 conftest$ac_exeext conftest.$ac_ext
10879 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10880 $as_echo "$gdb_cv_bigtoc" >&6; }
10882 esac
10884 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10885 # used for the tests that follow. We set them back to REAL_CFLAGS and
10886 # REAL_CPPFLAGS later on.
10888 REAL_CPPFLAGS="$CPPFLAGS"
10890 if test "${HAVE_X11}" = "yes"; then
10891 DEFS="$C_SWITCH_X_SITE $DEFS"
10892 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10893 LIBS="$LIBX $LIBS"
10894 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10895 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10897 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10898 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10899 # but it's more convenient here to set LD_RUN_PATH
10900 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10901 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10902 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10903 export LD_RUN_PATH
10906 if test "${opsys}" = "gnu-linux"; then
10907 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10908 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10917 main ()
10919 XOpenDisplay ("foo");
10921 return 0;
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929 esac
10930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932 (eval "$ac_link") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest$ac_exeext && {
10942 test "$cross_compiling" = yes ||
10943 $as_test_x conftest$ac_exeext
10944 }; then
10945 xlinux_first_failure=no
10946 else
10947 $as_echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 xlinux_first_failure=yes
10953 rm -rf conftest.dSYM
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955 conftest$ac_exeext conftest.$ac_ext
10956 if test "${xlinux_first_failure}" = "yes"; then
10957 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10958 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10959 OLD_CPPFLAGS="$CPPFLAGS"
10960 OLD_LIBS="$LIBS"
10961 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10962 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10963 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10964 LIBS="$LIBS -b i486-linuxaout"
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10973 main ()
10975 XOpenDisplay ("foo");
10977 return 0;
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10987 $as_echo "$ac_try_echo") >&5
10988 (eval "$ac_link") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest$ac_exeext && {
10998 test "$cross_compiling" = yes ||
10999 $as_test_x conftest$ac_exeext
11000 }; then
11001 xlinux_second_failure=no
11002 else
11003 $as_echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 xlinux_second_failure=yes
11009 rm -rf conftest.dSYM
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
11012 if test "${xlinux_second_failure}" = "yes"; then
11013 # If we get the same failure with -b, there is no use adding -b.
11014 # So take it out. This plays safe.
11015 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11016 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11017 CPPFLAGS="$OLD_CPPFLAGS"
11018 LIBS="$OLD_LIBS"
11019 { $as_echo "$as_me:$LINENO: result: no" >&5
11020 $as_echo "no" >&6; }
11021 else
11022 { $as_echo "$as_me:$LINENO: result: yes" >&5
11023 $as_echo "yes" >&6; }
11025 else
11026 { $as_echo "$as_me:$LINENO: result: no" >&5
11027 $as_echo "no" >&6; }
11031 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11032 # header files included from there.
11033 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11034 $as_echo_n "checking for Xkb... " >&6; }
11035 cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h. */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #include <X11/Xlib.h>
11042 #include <X11/XKBlib.h>
11044 main ()
11046 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11048 return 0;
11050 _ACEOF
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11058 $as_echo "$ac_try_echo") >&5
11059 (eval "$ac_link") 2>conftest.er1
11060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
11064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest$ac_exeext && {
11069 test "$cross_compiling" = yes ||
11070 $as_test_x conftest$ac_exeext
11071 }; then
11072 emacs_xkb=yes
11073 else
11074 $as_echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 emacs_xkb=no
11080 rm -rf conftest.dSYM
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11083 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11084 $as_echo "$emacs_xkb" >&6; }
11085 if test $emacs_xkb = yes; then
11087 cat >>confdefs.h <<\_ACEOF
11088 #define HAVE_XKBGETKEYBOARD 1
11089 _ACEOF
11097 for ac_func in XrmSetDatabase XScreenResourceString \
11098 XScreenNumberOfScreen XSetWMProtocols
11100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11102 $as_echo_n "checking for $ac_func... " >&6; }
11103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11104 $as_echo_n "(cached) " >&6
11105 else
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h. */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11114 #define $ac_func innocuous_$ac_func
11116 /* System header to define __stub macros and hopefully few prototypes,
11117 which can conflict with char $ac_func (); below.
11118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119 <limits.h> exists even on freestanding compilers. */
11121 #ifdef __STDC__
11122 # include <limits.h>
11123 #else
11124 # include <assert.h>
11125 #endif
11127 #undef $ac_func
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 char $ac_func ();
11136 /* The GNU C library defines this for functions which it implements
11137 to always fail with ENOSYS. Some functions are actually named
11138 something starting with __ and the normal name is an alias. */
11139 #if defined __stub_$ac_func || defined __stub___$ac_func
11140 choke me
11141 #endif
11144 main ()
11146 return $ac_func ();
11148 return 0;
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156 esac
11157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158 $as_echo "$ac_try_echo") >&5
11159 (eval "$ac_link") 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest$ac_exeext && {
11169 test "$cross_compiling" = yes ||
11170 $as_test_x conftest$ac_exeext
11171 }; then
11172 eval "$as_ac_var=yes"
11173 else
11174 $as_echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 eval "$as_ac_var=no"
11180 rm -rf conftest.dSYM
11181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11182 conftest$ac_exeext conftest.$ac_ext
11184 ac_res=`eval 'as_val=${'$as_ac_var'}
11185 $as_echo "$as_val"'`
11186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11187 $as_echo "$ac_res" >&6; }
11188 if test `eval 'as_val=${'$as_ac_var'}
11189 $as_echo "$as_val"'` = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11192 _ACEOF
11195 done
11199 if test "${window_system}" = "x11"; then
11200 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11201 $as_echo_n "checking X11 version 6... " >&6; }
11202 if test "${emacs_cv_x11_version_6+set}" = set; then
11203 $as_echo_n "(cached) " >&6
11204 else
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <X11/Xlib.h>
11213 main ()
11215 #if XlibSpecificationRelease < 6
11216 fail;
11217 #endif
11220 return 0;
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (ac_try="$ac_link"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228 esac
11229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11230 $as_echo "$ac_try_echo") >&5
11231 (eval "$ac_link") 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest$ac_exeext && {
11241 test "$cross_compiling" = yes ||
11242 $as_test_x conftest$ac_exeext
11243 }; then
11244 emacs_cv_x11_version_6=yes
11245 else
11246 $as_echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 emacs_cv_x11_version_6=no
11252 rm -rf conftest.dSYM
11253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11254 conftest$ac_exeext conftest.$ac_ext
11257 if test $emacs_cv_x11_version_6 = yes; then
11258 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11259 $as_echo "6 or newer" >&6; }
11261 cat >>confdefs.h <<\_ACEOF
11262 #define HAVE_X11R6 1
11263 _ACEOF
11265 else
11266 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11267 $as_echo "before 6" >&6; }
11272 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11273 HAVE_RSVG=no
11274 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11275 if test "${with_rsvg}" != "no"; then
11276 RSVG_REQUIRED=2.11.0
11277 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11280 succeeded=no
11282 # Extract the first word of "pkg-config", so it can be a program name with args.
11283 set dummy pkg-config; ac_word=$2
11284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11287 $as_echo_n "(cached) " >&6
11288 else
11289 case $PKG_CONFIG in
11290 [\\/]* | ?:[\\/]*)
11291 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11301 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11305 done
11306 done
11307 IFS=$as_save_IFS
11309 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11311 esac
11313 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11314 if test -n "$PKG_CONFIG"; then
11315 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11316 $as_echo "$PKG_CONFIG" >&6; }
11317 else
11318 { $as_echo "$as_me:$LINENO: result: no" >&5
11319 $as_echo "no" >&6; }
11324 if test "$PKG_CONFIG" = "no" ; then
11326 else
11327 PKG_CONFIG_MIN_VERSION=0.9.0
11328 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11329 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11330 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11332 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11333 { $as_echo "$as_me:$LINENO: result: yes" >&5
11334 $as_echo "yes" >&6; }
11335 succeeded=yes
11337 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11338 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11339 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11340 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11341 $as_echo "$RSVG_CFLAGS" >&6; }
11343 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11344 $as_echo_n "checking RSVG_LIBS... " >&6; }
11345 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11346 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11347 $as_echo "$RSVG_LIBS" >&6; }
11348 else
11349 { $as_echo "$as_me:$LINENO: result: no" >&5
11350 $as_echo "no" >&6; }
11351 RSVG_CFLAGS=""
11352 RSVG_LIBS=""
11353 ## If we have a custom action on failure, don't print errors, but
11354 ## do set a variable so people can do so.
11355 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11361 else
11362 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11363 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11367 if test $succeeded = yes; then
11369 else
11376 if test ".${RSVG_CFLAGS}" != "."; then
11377 HAVE_RSVG=yes
11379 cat >>confdefs.h <<\_ACEOF
11380 #define HAVE_RSVG 1
11381 _ACEOF
11383 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11384 LIBS="$RSVG_LIBS $LIBS"
11390 HAVE_GTK=no
11391 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11392 GLIB_REQUIRED=2.6
11393 GTK_REQUIRED=2.6
11394 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11397 succeeded=no
11399 # Extract the first word of "pkg-config", so it can be a program name with args.
11400 set dummy pkg-config; ac_word=$2
11401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11405 else
11406 case $PKG_CONFIG in
11407 [\\/]* | ?:[\\/]*)
11408 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11422 done
11423 done
11424 IFS=$as_save_IFS
11426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11428 esac
11430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11431 if test -n "$PKG_CONFIG"; then
11432 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11433 $as_echo "$PKG_CONFIG" >&6; }
11434 else
11435 { $as_echo "$as_me:$LINENO: result: no" >&5
11436 $as_echo "no" >&6; }
11441 if test "$PKG_CONFIG" = "no" ; then
11442 pkg_check_gtk=no
11443 else
11444 PKG_CONFIG_MIN_VERSION=0.9.0
11445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11446 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11447 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11449 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11450 { $as_echo "$as_me:$LINENO: result: yes" >&5
11451 $as_echo "yes" >&6; }
11452 succeeded=yes
11454 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11455 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11456 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11457 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11458 $as_echo "$GTK_CFLAGS" >&6; }
11460 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11461 $as_echo_n "checking GTK_LIBS... " >&6; }
11462 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11463 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11464 $as_echo "$GTK_LIBS" >&6; }
11465 else
11466 { $as_echo "$as_me:$LINENO: result: no" >&5
11467 $as_echo "no" >&6; }
11468 GTK_CFLAGS=""
11469 GTK_LIBS=""
11470 ## If we have a custom action on failure, don't print errors, but
11471 ## do set a variable so people can do so.
11472 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11478 else
11479 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11480 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11484 if test $succeeded = yes; then
11485 pkg_check_gtk=yes
11486 else
11487 pkg_check_gtk=no
11490 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11491 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11492 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11493 { (exit 1); exit 1; }; }
11498 if test x"$pkg_check_gtk" = xyes; then
11502 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11503 CFLAGS="$CFLAGS $GTK_CFLAGS"
11504 LIBS="$GTK_LIBS $LIBS"
11505 GTK_COMPILES=no
11507 for ac_func in gtk_main
11509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11510 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11511 $as_echo_n "checking for $ac_func... " >&6; }
11512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11513 $as_echo_n "(cached) " >&6
11514 else
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523 #define $ac_func innocuous_$ac_func
11525 /* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char $ac_func (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11530 #ifdef __STDC__
11531 # include <limits.h>
11532 #else
11533 # include <assert.h>
11534 #endif
11536 #undef $ac_func
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char $ac_func ();
11545 /* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548 #if defined __stub_$ac_func || defined __stub___$ac_func
11549 choke me
11550 #endif
11553 main ()
11555 return $ac_func ();
11557 return 0;
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_link") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest$ac_exeext && {
11578 test "$cross_compiling" = yes ||
11579 $as_test_x conftest$ac_exeext
11580 }; then
11581 eval "$as_ac_var=yes"
11582 else
11583 $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 eval "$as_ac_var=no"
11589 rm -rf conftest.dSYM
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11593 ac_res=`eval 'as_val=${'$as_ac_var'}
11594 $as_echo "$as_val"'`
11595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11596 $as_echo "$ac_res" >&6; }
11597 if test `eval 'as_val=${'$as_ac_var'}
11598 $as_echo "$as_val"'` = yes; then
11599 cat >>confdefs.h <<_ACEOF
11600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601 _ACEOF
11602 GTK_COMPILES=yes
11604 done
11606 if test "${GTK_COMPILES}" != "yes"; then
11607 if test "$USE_X_TOOLKIT" != "maybe"; then
11608 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11609 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11610 { (exit 1); exit 1; }; };
11612 else
11613 HAVE_GTK=yes
11615 cat >>confdefs.h <<\_ACEOF
11616 #define USE_GTK 1
11617 _ACEOF
11619 USE_X_TOOLKIT=none
11620 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11622 else
11623 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11624 closing open displays. This is no problem if you just use
11625 one display, but if you use more than one and close one of them
11626 Emacs may crash." >&5
11627 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11628 closing open displays. This is no problem if you just use
11629 one display, but if you use more than one and close one of them
11630 Emacs may crash." >&2;}
11631 sleep 3
11638 if test "${HAVE_GTK}" = "yes"; then
11640 if test "$with_toolkit_scroll_bars" != no; then
11641 with_toolkit_scroll_bars=yes
11644 HAVE_GTK_MULTIDISPLAY=no
11646 for ac_func in gdk_display_open
11648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 $as_echo_n "checking for $ac_func... " >&6; }
11651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11652 $as_echo_n "(cached) " >&6
11653 else
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11662 #define $ac_func innocuous_$ac_func
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func (); below.
11666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 <limits.h> exists even on freestanding compilers. */
11669 #ifdef __STDC__
11670 # include <limits.h>
11671 #else
11672 # include <assert.h>
11673 #endif
11675 #undef $ac_func
11677 /* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
11680 #ifdef __cplusplus
11681 extern "C"
11682 #endif
11683 char $ac_func ();
11684 /* The GNU C library defines this for functions which it implements
11685 to always fail with ENOSYS. Some functions are actually named
11686 something starting with __ and the normal name is an alias. */
11687 #if defined __stub_$ac_func || defined __stub___$ac_func
11688 choke me
11689 #endif
11692 main ()
11694 return $ac_func ();
11696 return 0;
11698 _ACEOF
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (ac_try="$ac_link"
11701 case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704 esac
11705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11706 $as_echo "$ac_try_echo") >&5
11707 (eval "$ac_link") 2>conftest.er1
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && {
11714 test -z "$ac_c_werror_flag" ||
11715 test ! -s conftest.err
11716 } && test -s conftest$ac_exeext && {
11717 test "$cross_compiling" = yes ||
11718 $as_test_x conftest$ac_exeext
11719 }; then
11720 eval "$as_ac_var=yes"
11721 else
11722 $as_echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 eval "$as_ac_var=no"
11728 rm -rf conftest.dSYM
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730 conftest$ac_exeext conftest.$ac_ext
11732 ac_res=`eval 'as_val=${'$as_ac_var'}
11733 $as_echo "$as_val"'`
11734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11735 $as_echo "$ac_res" >&6; }
11736 if test `eval 'as_val=${'$as_ac_var'}
11737 $as_echo "$as_val"'` = yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740 _ACEOF
11741 HAVE_GTK_MULTIDISPLAY=yes
11743 done
11745 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11747 cat >>confdefs.h <<\_ACEOF
11748 #define HAVE_GTK_MULTIDISPLAY 1
11749 _ACEOF
11753 HAVE_GTK_FILE_SELECTION=no
11754 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11755 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11756 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11757 $as_echo_n "(cached) " >&6
11758 else
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11766 #include <gtk/gtk.h>
11769 main ()
11771 #ifndef GTK_TYPE_FILE_SELECTION
11772 (void) GTK_TYPE_FILE_SELECTION;
11773 #endif
11776 return 0;
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11797 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11798 else
11799 $as_echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11808 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11809 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11810 HAVE_GTK_FILE_SELECTION=yes
11811 else
11812 HAVE_GTK_FILE_SELECTION=no
11815 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11817 for ac_func in gtk_file_selection_new
11819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11820 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11821 $as_echo_n "checking for $ac_func... " >&6; }
11822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11823 $as_echo_n "(cached) " >&6
11824 else
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11833 #define $ac_func innocuous_$ac_func
11835 /* System header to define __stub macros and hopefully few prototypes,
11836 which can conflict with char $ac_func (); below.
11837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 <limits.h> exists even on freestanding compilers. */
11840 #ifdef __STDC__
11841 # include <limits.h>
11842 #else
11843 # include <assert.h>
11844 #endif
11846 #undef $ac_func
11848 /* Override any GCC internal prototype to avoid an error.
11849 Use char because int might match the return type of a GCC
11850 builtin and then its argument prototype would still apply. */
11851 #ifdef __cplusplus
11852 extern "C"
11853 #endif
11854 char $ac_func ();
11855 /* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858 #if defined __stub_$ac_func || defined __stub___$ac_func
11859 choke me
11860 #endif
11863 main ()
11865 return $ac_func ();
11867 return 0;
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878 (eval "$ac_link") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest$ac_exeext && {
11888 test "$cross_compiling" = yes ||
11889 $as_test_x conftest$ac_exeext
11890 }; then
11891 eval "$as_ac_var=yes"
11892 else
11893 $as_echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 eval "$as_ac_var=no"
11899 rm -rf conftest.dSYM
11900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11901 conftest$ac_exeext conftest.$ac_ext
11903 ac_res=`eval 'as_val=${'$as_ac_var'}
11904 $as_echo "$as_val"'`
11905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11906 $as_echo "$ac_res" >&6; }
11907 if test `eval 'as_val=${'$as_ac_var'}
11908 $as_echo "$as_val"'` = yes; then
11909 cat >>confdefs.h <<_ACEOF
11910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11911 _ACEOF
11912 HAVE_GTK_FILE_SELECTION=yes
11913 else
11914 HAVE_GTK_FILE_SELECTION=no
11916 done
11920 HAVE_GTK_FILE_CHOOSER=no
11921 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11922 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11923 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11924 $as_echo_n "(cached) " >&6
11925 else
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 $ac_includes_default
11933 #include <gtk/gtk.h>
11936 main ()
11938 #ifndef GTK_TYPE_FILE_CHOOSER
11939 (void) GTK_TYPE_FILE_CHOOSER;
11940 #endif
11943 return 0;
11945 _ACEOF
11946 rm -f conftest.$ac_objext
11947 if { (ac_try="$ac_compile"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951 esac
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11964 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11965 else
11966 $as_echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11975 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11976 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11977 HAVE_GTK_FILE_CHOOSER=yes
11978 else
11979 HAVE_GTK_FILE_CHOOSER=no
11982 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11984 for ac_func in gtk_file_chooser_dialog_new
11986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 $as_echo_n "checking for $ac_func... " >&6; }
11989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990 $as_echo_n "(cached) " >&6
11991 else
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000 #define $ac_func innocuous_$ac_func
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below.
12004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 <limits.h> exists even on freestanding compilers. */
12007 #ifdef __STDC__
12008 # include <limits.h>
12009 #else
12010 # include <assert.h>
12011 #endif
12013 #undef $ac_func
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char $ac_func ();
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined __stub_$ac_func || defined __stub___$ac_func
12026 choke me
12027 #endif
12030 main ()
12032 return $ac_func ();
12034 return 0;
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12044 $as_echo "$ac_try_echo") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest$ac_exeext && {
12055 test "$cross_compiling" = yes ||
12056 $as_test_x conftest$ac_exeext
12057 }; then
12058 eval "$as_ac_var=yes"
12059 else
12060 $as_echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 eval "$as_ac_var=no"
12066 rm -rf conftest.dSYM
12067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12068 conftest$ac_exeext conftest.$ac_ext
12070 ac_res=`eval 'as_val=${'$as_ac_var'}
12071 $as_echo "$as_val"'`
12072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12073 $as_echo "$ac_res" >&6; }
12074 if test `eval 'as_val=${'$as_ac_var'}
12075 $as_echo "$as_val"'` = yes; then
12076 cat >>confdefs.h <<_ACEOF
12077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078 _ACEOF
12079 HAVE_GTK_FILE_CHOOSER=yes
12080 else
12081 HAVE_GTK_FILE_CHOOSER=no
12083 done
12087 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12088 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_GTK_FILE_BOTH 1
12092 _ACEOF
12096 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12097 HAVE_GTK_AND_PTHREAD=no
12099 for ac_header in pthread.h
12101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12104 $as_echo_n "checking for $ac_header... " >&6; }
12105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 $as_echo_n "(cached) " >&6
12108 ac_res=`eval 'as_val=${'$as_ac_Header'}
12109 $as_echo "$as_val"'`
12110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12111 $as_echo "$ac_res" >&6; }
12112 else
12113 # Is the header compilable?
12114 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12115 $as_echo_n "checking $ac_header usability... " >&6; }
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h. */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 $ac_includes_default
12123 #include <$ac_header>
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (ac_try="$ac_compile"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12132 $as_echo "$ac_try_echo") >&5
12133 (eval "$ac_compile") 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } && {
12140 test -z "$ac_c_werror_flag" ||
12141 test ! -s conftest.err
12142 } && test -s conftest.$ac_objext; then
12143 ac_header_compiler=yes
12144 else
12145 $as_echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_header_compiler=no
12151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12153 $as_echo "$ac_header_compiler" >&6; }
12155 # Is the header present?
12156 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12157 $as_echo_n "checking $ac_header presence... " >&6; }
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 #include <$ac_header>
12165 _ACEOF
12166 if { (ac_try="$ac_cpp conftest.$ac_ext"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170 esac
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null && {
12180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 }; then
12183 ac_header_preproc=yes
12184 else
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_preproc=no
12191 rm -f conftest.err conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 $as_echo "$ac_header_preproc" >&6; }
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12197 yes:no: )
12198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12199 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12204 no:yes:* )
12205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12210 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12212 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12216 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12219 esac
12220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 $as_echo_n "checking for $ac_header... " >&6; }
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12224 else
12225 eval "$as_ac_Header=\$ac_header_preproc"
12227 ac_res=`eval 'as_val=${'$as_ac_Header'}
12228 $as_echo "$as_val"'`
12229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12230 $as_echo "$ac_res" >&6; }
12233 if test `eval 'as_val=${'$as_ac_Header'}
12234 $as_echo "$as_val"'` = yes; then
12235 cat >>confdefs.h <<_ACEOF
12236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12237 _ACEOF
12241 done
12243 if test "$ac_cv_header_pthread_h"; then
12244 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12245 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12246 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-lpthread $LIBS"
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char pthread_self ();
12266 main ()
12268 return pthread_self ();
12270 return 0;
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278 esac
12279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12280 $as_echo "$ac_try_echo") >&5
12281 (eval "$ac_link") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext && {
12291 test "$cross_compiling" = yes ||
12292 $as_test_x conftest$ac_exeext
12293 }; then
12294 ac_cv_lib_pthread_pthread_self=yes
12295 else
12296 $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_pthread_pthread_self=no
12302 rm -rf conftest.dSYM
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12308 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12309 if test $ac_cv_lib_pthread_pthread_self = yes; then
12310 HAVE_GTK_AND_PTHREAD=yes
12314 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12315 case "${canonical}" in
12316 *-hpux*) ;;
12317 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12318 esac
12320 cat >>confdefs.h <<\_ACEOF
12321 #define HAVE_GTK_AND_PTHREAD 1
12322 _ACEOF
12328 HAVE_DBUS=no
12329 if test "${with_dbus}" = "yes"; then
12331 succeeded=no
12333 # Extract the first word of "pkg-config", so it can be a program name with args.
12334 set dummy pkg-config; ac_word=$2
12335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12338 $as_echo_n "(cached) " >&6
12339 else
12340 case $PKG_CONFIG in
12341 [\\/]* | ?:[\\/]*)
12342 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12352 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12354 break 2
12356 done
12357 done
12358 IFS=$as_save_IFS
12360 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12362 esac
12364 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12365 if test -n "$PKG_CONFIG"; then
12366 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12367 $as_echo "$PKG_CONFIG" >&6; }
12368 else
12369 { $as_echo "$as_me:$LINENO: result: no" >&5
12370 $as_echo "no" >&6; }
12375 if test "$PKG_CONFIG" = "no" ; then
12376 HAVE_DBUS=no
12377 else
12378 PKG_CONFIG_MIN_VERSION=0.9.0
12379 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12380 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12381 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12383 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12384 { $as_echo "$as_me:$LINENO: result: yes" >&5
12385 $as_echo "yes" >&6; }
12386 succeeded=yes
12388 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12389 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12390 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12391 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12392 $as_echo "$DBUS_CFLAGS" >&6; }
12394 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12395 $as_echo_n "checking DBUS_LIBS... " >&6; }
12396 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12397 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12398 $as_echo "$DBUS_LIBS" >&6; }
12399 else
12400 { $as_echo "$as_me:$LINENO: result: no" >&5
12401 $as_echo "no" >&6; }
12402 DBUS_CFLAGS=""
12403 DBUS_LIBS=""
12404 ## If we have a custom action on failure, don't print errors, but
12405 ## do set a variable so people can do so.
12406 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12412 else
12413 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12414 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12418 if test $succeeded = yes; then
12419 HAVE_DBUS=yes
12420 else
12421 HAVE_DBUS=no
12424 if test "$HAVE_DBUS" = yes; then
12425 LIBS="$LIBS $DBUS_LIBS"
12427 cat >>confdefs.h <<\_ACEOF
12428 #define HAVE_DBUS 1
12429 _ACEOF
12432 for ac_func in dbus_watch_get_unix_fd
12434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12435 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12436 $as_echo_n "checking for $ac_func... " >&6; }
12437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12448 #define $ac_func innocuous_$ac_func
12450 /* System header to define __stub macros and hopefully few prototypes,
12451 which can conflict with char $ac_func (); below.
12452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12453 <limits.h> exists even on freestanding compilers. */
12455 #ifdef __STDC__
12456 # include <limits.h>
12457 #else
12458 # include <assert.h>
12459 #endif
12461 #undef $ac_func
12463 /* Override any GCC internal prototype to avoid an error.
12464 Use char because int might match the return type of a GCC
12465 builtin and then its argument prototype would still apply. */
12466 #ifdef __cplusplus
12467 extern "C"
12468 #endif
12469 char $ac_func ();
12470 /* The GNU C library defines this for functions which it implements
12471 to always fail with ENOSYS. Some functions are actually named
12472 something starting with __ and the normal name is an alias. */
12473 #if defined __stub_$ac_func || defined __stub___$ac_func
12474 choke me
12475 #endif
12478 main ()
12480 return $ac_func ();
12482 return 0;
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12490 esac
12491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12492 $as_echo "$ac_try_echo") >&5
12493 (eval "$ac_link") 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && {
12500 test -z "$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12502 } && test -s conftest$ac_exeext && {
12503 test "$cross_compiling" = yes ||
12504 $as_test_x conftest$ac_exeext
12505 }; then
12506 eval "$as_ac_var=yes"
12507 else
12508 $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 eval "$as_ac_var=no"
12514 rm -rf conftest.dSYM
12515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12516 conftest$ac_exeext conftest.$ac_ext
12518 ac_res=`eval 'as_val=${'$as_ac_var'}
12519 $as_echo "$as_val"'`
12520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12521 $as_echo "$ac_res" >&6; }
12522 if test `eval 'as_val=${'$as_ac_var'}
12523 $as_echo "$as_val"'` = yes; then
12524 cat >>confdefs.h <<_ACEOF
12525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12526 _ACEOF
12529 done
12534 HAVE_GCONF=no
12535 if test "${with_gconf}" = "yes"; then
12537 succeeded=no
12539 # Extract the first word of "pkg-config", so it can be a program name with args.
12540 set dummy pkg-config; ac_word=$2
12541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12544 $as_echo_n "(cached) " >&6
12545 else
12546 case $PKG_CONFIG in
12547 [\\/]* | ?:[\\/]*)
12548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12562 done
12563 done
12564 IFS=$as_save_IFS
12566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12568 esac
12570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12571 if test -n "$PKG_CONFIG"; then
12572 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12573 $as_echo "$PKG_CONFIG" >&6; }
12574 else
12575 { $as_echo "$as_me:$LINENO: result: no" >&5
12576 $as_echo "no" >&6; }
12581 if test "$PKG_CONFIG" = "no" ; then
12582 HAVE_GCONF=no
12583 else
12584 PKG_CONFIG_MIN_VERSION=0.9.0
12585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12586 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12587 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12589 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12590 { $as_echo "$as_me:$LINENO: result: yes" >&5
12591 $as_echo "yes" >&6; }
12592 succeeded=yes
12594 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12595 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12596 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12597 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12598 $as_echo "$GCONF_CFLAGS" >&6; }
12600 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12601 $as_echo_n "checking GCONF_LIBS... " >&6; }
12602 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12603 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12604 $as_echo "$GCONF_LIBS" >&6; }
12605 else
12606 { $as_echo "$as_me:$LINENO: result: no" >&5
12607 $as_echo "no" >&6; }
12608 GCONF_CFLAGS=""
12609 GCONF_LIBS=""
12610 ## If we have a custom action on failure, don't print errors, but
12611 ## do set a variable so people can do so.
12612 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12618 else
12619 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12620 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12624 if test $succeeded = yes; then
12625 HAVE_GCONF=yes
12626 else
12627 HAVE_GCONF=no
12630 if test "$HAVE_GCONF" = yes; then
12632 cat >>confdefs.h <<\_ACEOF
12633 #define HAVE_GCONF 1
12634 _ACEOF
12639 HAVE_XAW3D=no
12640 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12641 if test "$with_xaw3d" != no; then
12642 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12643 $as_echo_n "checking for xaw3d... " >&6; }
12644 if test "${emacs_cv_xaw3d+set}" = set; then
12645 $as_echo_n "(cached) " >&6
12646 else
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 #include <X11/Intrinsic.h>
12655 #include <X11/Xaw3d/Simple.h>
12657 main ()
12661 return 0;
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (ac_try="$ac_link"
12666 case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669 esac
12670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12671 $as_echo "$ac_try_echo") >&5
12672 (eval "$ac_link") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest$ac_exeext && {
12682 test "$cross_compiling" = yes ||
12683 $as_test_x conftest$ac_exeext
12684 }; then
12685 emacs_cv_xaw3d=yes
12686 else
12687 $as_echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12690 emacs_cv_xaw3d=no
12693 rm -rf conftest.dSYM
12694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12695 conftest$ac_exeext conftest.$ac_ext
12698 else
12699 emacs_cv_xaw3d=no
12701 if test $emacs_cv_xaw3d = yes; then
12702 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12703 $as_echo "yes; using Lucid toolkit" >&6; }
12704 USE_X_TOOLKIT=LUCID
12705 HAVE_XAW3D=yes
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_XAW3D 1
12709 _ACEOF
12711 else
12712 { $as_echo "$as_me:$LINENO: result: no" >&5
12713 $as_echo "no" >&6; }
12714 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12715 $as_echo_n "checking for libXaw... " >&6; }
12716 if test "${emacs_cv_xaw+set}" = set; then
12717 $as_echo_n "(cached) " >&6
12718 else
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12726 #include <X11/Intrinsic.h>
12727 #include <X11/Xaw/Simple.h>
12729 main ()
12733 return 0;
12735 _ACEOF
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (ac_try="$ac_link"
12738 case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12741 esac
12742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12743 $as_echo "$ac_try_echo") >&5
12744 (eval "$ac_link") 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest$ac_exeext && {
12754 test "$cross_compiling" = yes ||
12755 $as_test_x conftest$ac_exeext
12756 }; then
12757 emacs_cv_xaw=yes
12758 else
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 emacs_cv_xaw=no
12765 rm -rf conftest.dSYM
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767 conftest$ac_exeext conftest.$ac_ext
12770 if test $emacs_cv_xaw = yes; then
12771 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12772 $as_echo "yes; using Lucid toolkit" >&6; }
12773 USE_X_TOOLKIT=LUCID
12774 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12775 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12776 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12777 { (exit 1); exit 1; }; }
12778 else
12779 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12780 $as_echo "no; do not use toolkit by default" >&6; }
12781 USE_X_TOOLKIT=none
12786 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12788 if test "${USE_X_TOOLKIT}" != "none"; then
12789 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12790 $as_echo_n "checking X11 toolkit version... " >&6; }
12791 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <X11/Intrinsic.h>
12802 main ()
12804 #if XtSpecificationRelease < 6
12805 fail;
12806 #endif
12809 return 0;
12811 _ACEOF
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817 esac
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820 (eval "$ac_link") 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest$ac_exeext && {
12830 test "$cross_compiling" = yes ||
12831 $as_test_x conftest$ac_exeext
12832 }; then
12833 emacs_cv_x11_toolkit_version_6=yes
12834 else
12835 $as_echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 emacs_cv_x11_toolkit_version_6=no
12841 rm -rf conftest.dSYM
12842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12843 conftest$ac_exeext conftest.$ac_ext
12846 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12847 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12848 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12849 $as_echo "6 or newer" >&6; }
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_X11XTR6 1
12853 _ACEOF
12855 else
12856 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12857 $as_echo "before 6" >&6; }
12860 OLDLIBS="$LIBS"
12861 if test x$HAVE_X11XTR6 = xyes; then
12862 LIBS="-lXt -lSM -lICE $LIBS"
12863 else
12864 LIBS="-lXt $LIBS"
12867 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12868 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12869 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12870 $as_echo_n "(cached) " >&6
12871 else
12872 ac_check_lib_save_LIBS=$LIBS
12873 LIBS="-lXmu $LIBS"
12874 cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h. */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12884 #ifdef __cplusplus
12885 extern "C"
12886 #endif
12887 char XmuConvertStandardSelection ();
12889 main ()
12891 return XmuConvertStandardSelection ();
12893 return 0;
12895 _ACEOF
12896 rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (ac_try="$ac_link"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901 esac
12902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12903 $as_echo "$ac_try_echo") >&5
12904 (eval "$ac_link") 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest$ac_exeext && {
12914 test "$cross_compiling" = yes ||
12915 $as_test_x conftest$ac_exeext
12916 }; then
12917 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12918 else
12919 $as_echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12925 rm -rf conftest.dSYM
12926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LIBS=$ac_check_lib_save_LIBS
12930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12931 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12932 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_LIBXMU 1
12935 _ACEOF
12937 LIBS="-lXmu $LIBS"
12941 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12944 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12945 if test "${HAVE_X11}" = "yes"; then
12946 if test "${USE_X_TOOLKIT}" != "none"; then
12948 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12949 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12950 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12951 $as_echo_n "(cached) " >&6
12952 else
12953 ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-lXext $LIBS"
12955 cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h. */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12962 /* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12965 #ifdef __cplusplus
12966 extern "C"
12967 #endif
12968 char XShapeQueryExtension ();
12970 main ()
12972 return XShapeQueryExtension ();
12974 return 0;
12976 _ACEOF
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (ac_try="$ac_link"
12979 case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982 esac
12983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12984 $as_echo "$ac_try_echo") >&5
12985 (eval "$ac_link") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest$ac_exeext && {
12995 test "$cross_compiling" = yes ||
12996 $as_test_x conftest$ac_exeext
12997 }; then
12998 ac_cv_lib_Xext_XShapeQueryExtension=yes
12999 else
13000 $as_echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_cv_lib_Xext_XShapeQueryExtension=no
13006 rm -rf conftest.dSYM
13007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13008 conftest$ac_exeext conftest.$ac_ext
13009 LIBS=$ac_check_lib_save_LIBS
13011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13012 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13013 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_LIBXEXT 1
13016 _ACEOF
13018 LIBS="-lXext $LIBS"
13025 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13026 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13027 $as_echo_n "checking for Motif version 2.1... " >&6; }
13028 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13029 $as_echo_n "(cached) " >&6
13030 else
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 #include <Xm/Xm.h>
13039 main ()
13041 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13042 int x = 5;
13043 #else
13044 Motif version prior to 2.1.
13045 #endif
13047 return 0;
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (ac_try="$ac_compile"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13055 esac
13056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13057 $as_echo "$ac_try_echo") >&5
13058 (eval "$ac_compile") 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } && {
13065 test -z "$ac_c_werror_flag" ||
13066 test ! -s conftest.err
13067 } && test -s conftest.$ac_objext; then
13068 emacs_cv_motif_version_2_1=yes
13069 else
13070 $as_echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 emacs_cv_motif_version_2_1=no
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13079 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13080 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13081 if test $emacs_cv_motif_version_2_1 = yes; then
13082 HAVE_LIBXP=no
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_MOTIF_2_1 1
13086 _ACEOF
13088 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13089 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13090 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13091 $as_echo_n "(cached) " >&6
13092 else
13093 ac_check_lib_save_LIBS=$LIBS
13094 LIBS="-lXp $LIBS"
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 char XpCreateContext ();
13110 main ()
13112 return XpCreateContext ();
13114 return 0;
13116 _ACEOF
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122 esac
13123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124 $as_echo "$ac_try_echo") >&5
13125 (eval "$ac_link") 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest$ac_exeext && {
13135 test "$cross_compiling" = yes ||
13136 $as_test_x conftest$ac_exeext
13137 }; then
13138 ac_cv_lib_Xp_XpCreateContext=yes
13139 else
13140 $as_echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_cv_lib_Xp_XpCreateContext=no
13146 rm -rf conftest.dSYM
13147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13148 conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13152 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13153 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13154 HAVE_LIBXP=yes
13157 if test ${HAVE_LIBXP} = yes; then
13159 cat >>confdefs.h <<\_ACEOF
13160 #define HAVE_LIBXP 1
13161 _ACEOF
13164 else
13165 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13166 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13167 if test "${emacs_cv_lesstif+set}" = set; then
13168 $as_echo_n "(cached) " >&6
13169 else
13170 # We put this in CFLAGS temporarily to precede other -I options
13171 # that might be in CFLAGS temporarily.
13172 # We put this in CPPFLAGS where it precedes the other -I options.
13173 OLD_CPPFLAGS=$CPPFLAGS
13174 OLD_CFLAGS=$CFLAGS
13175 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13176 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h. */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13185 main ()
13187 int x = 5;
13189 return 0;
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.$ac_objext; then
13210 emacs_cv_lesstif=yes
13211 else
13212 $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 emacs_cv_lesstif=no
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13221 $as_echo "$emacs_cv_lesstif" >&6; }
13222 if test $emacs_cv_lesstif = yes; then
13223 # Make sure this -I option remains in CPPFLAGS after it is set
13224 # back to REAL_CPPFLAGS.
13225 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13226 # have those other -I options anyway. Ultimately, having this
13227 # directory ultimately in CPPFLAGS will be enough.
13228 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13229 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13230 else
13231 CFLAGS=$OLD_CFLAGS
13232 CPPFLAGS=$OLD_CPPFLAGS
13239 USE_TOOLKIT_SCROLL_BARS=no
13240 if test "${with_toolkit_scroll_bars}" != "no"; then
13241 if test "${USE_X_TOOLKIT}" != "none"; then
13242 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13243 cat >>confdefs.h <<\_ACEOF
13244 #define USE_TOOLKIT_SCROLL_BARS 1
13245 _ACEOF
13247 HAVE_XAW3D=no
13248 USE_TOOLKIT_SCROLL_BARS=yes
13249 elif test "${HAVE_XAW3D}" = "yes"; then
13250 cat >>confdefs.h <<\_ACEOF
13251 #define USE_TOOLKIT_SCROLL_BARS 1
13252 _ACEOF
13254 USE_TOOLKIT_SCROLL_BARS=yes
13256 elif test "${HAVE_GTK}" = "yes"; then
13257 cat >>confdefs.h <<\_ACEOF
13258 #define USE_TOOLKIT_SCROLL_BARS 1
13259 _ACEOF
13261 USE_TOOLKIT_SCROLL_BARS=yes
13262 elif test "${HAVE_NS}" = "yes"; then
13263 cat >>confdefs.h <<\_ACEOF
13264 #define USE_TOOLKIT_SCROLL_BARS 1
13265 _ACEOF
13267 USE_TOOLKIT_SCROLL_BARS=yes
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 #include <X11/Xlib.h>
13279 #include <X11/Xresource.h>
13281 main ()
13283 XIMProc callback;
13285 return 0;
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (ac_try="$ac_compile"
13290 case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293 esac
13294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13295 $as_echo "$ac_try_echo") >&5
13296 (eval "$ac_compile") 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && {
13303 test -z "$ac_c_werror_flag" ||
13304 test ! -s conftest.err
13305 } && test -s conftest.$ac_objext; then
13306 HAVE_XIM=yes
13308 cat >>confdefs.h <<\_ACEOF
13309 #define HAVE_XIM 1
13310 _ACEOF
13312 else
13313 $as_echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 HAVE_XIM=no
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 if test "${with_xim}" != "no"; then
13324 cat >>confdefs.h <<\_ACEOF
13325 #define USE_XIM 1
13326 _ACEOF
13331 if test "${HAVE_XIM}" != "no"; then
13332 late_CFLAGS=$CFLAGS
13333 if test "$GCC" = yes; then
13334 CFLAGS="$CFLAGS --pedantic-errors"
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13343 #include <X11/Xlib.h>
13344 #include <X11/Xresource.h>
13346 main ()
13348 Display *display;
13349 XrmDatabase db;
13350 char *res_name;
13351 char *res_class;
13352 XIMProc callback;
13353 XPointer *client_data;
13354 #ifndef __GNUC__
13355 /* If we're not using GCC, it's probably not XFree86, and this is
13356 probably right, but we can't use something like --pedantic-errors. */
13357 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13358 char*, XIMProc, XPointer*);
13359 #endif
13360 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13361 client_data);
13363 return 0;
13365 _ACEOF
13366 rm -f conftest.$ac_objext
13367 if { (ac_try="$ac_compile"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371 esac
13372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13373 $as_echo "$ac_try_echo") >&5
13374 (eval "$ac_compile") 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } && {
13381 test -z "$ac_c_werror_flag" ||
13382 test ! -s conftest.err
13383 } && test -s conftest.$ac_objext; then
13384 emacs_cv_arg6_star=yes
13385 else
13386 $as_echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394 if test "$emacs_cv_arg6_star" = yes; then
13395 cat >>confdefs.h <<\_ACEOF
13396 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13397 _ACEOF
13399 else
13400 cat >>confdefs.h <<\_ACEOF
13401 #define XRegisterIMInstantiateCallback_arg6 XPointer
13402 _ACEOF
13405 CFLAGS=$late_CFLAGS
13408 ### Start of font-backend (under any platform) section.
13409 # (nothing here yet -- this is a placeholder)
13410 ### End of font-backend (under any platform) section.
13412 ### Start of font-backend (under X11) section.
13413 if test "${HAVE_X11}" = "yes"; then
13415 succeeded=no
13417 # Extract the first word of "pkg-config", so it can be a program name with args.
13418 set dummy pkg-config; ac_word=$2
13419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13420 $as_echo_n "checking for $ac_word... " >&6; }
13421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13422 $as_echo_n "(cached) " >&6
13423 else
13424 case $PKG_CONFIG in
13425 [\\/]* | ?:[\\/]*)
13426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13432 IFS=$as_save_IFS
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13436 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13438 break 2
13440 done
13441 done
13442 IFS=$as_save_IFS
13444 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13446 esac
13448 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13449 if test -n "$PKG_CONFIG"; then
13450 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13451 $as_echo "$PKG_CONFIG" >&6; }
13452 else
13453 { $as_echo "$as_me:$LINENO: result: no" >&5
13454 $as_echo "no" >&6; }
13459 if test "$PKG_CONFIG" = "no" ; then
13460 HAVE_FC=no
13461 else
13462 PKG_CONFIG_MIN_VERSION=0.9.0
13463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13464 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13465 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13467 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13468 { $as_echo "$as_me:$LINENO: result: yes" >&5
13469 $as_echo "yes" >&6; }
13470 succeeded=yes
13472 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13473 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13474 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13475 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13476 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13478 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13479 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13480 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13481 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13482 $as_echo "$FONTCONFIG_LIBS" >&6; }
13483 else
13484 { $as_echo "$as_me:$LINENO: result: no" >&5
13485 $as_echo "no" >&6; }
13486 FONTCONFIG_CFLAGS=""
13487 FONTCONFIG_LIBS=""
13488 ## If we have a custom action on failure, don't print errors, but
13489 ## do set a variable so people can do so.
13490 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13496 else
13497 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13498 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13502 if test $succeeded = yes; then
13503 HAVE_FC=yes
13504 else
13505 HAVE_FC=no
13509 ## Use -lXft if available, unless `--with-xft=no'.
13510 HAVE_XFT=maybe
13511 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13512 with_xft="no";
13514 if test "x${with_xft}" != "xno"; then
13517 succeeded=no
13519 # Extract the first word of "pkg-config", so it can be a program name with args.
13520 set dummy pkg-config; ac_word=$2
13521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13522 $as_echo_n "checking for $ac_word... " >&6; }
13523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13524 $as_echo_n "(cached) " >&6
13525 else
13526 case $PKG_CONFIG in
13527 [\\/]* | ?:[\\/]*)
13528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13540 break 2
13542 done
13543 done
13544 IFS=$as_save_IFS
13546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13548 esac
13550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13551 if test -n "$PKG_CONFIG"; then
13552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13553 $as_echo "$PKG_CONFIG" >&6; }
13554 else
13555 { $as_echo "$as_me:$LINENO: result: no" >&5
13556 $as_echo "no" >&6; }
13561 if test "$PKG_CONFIG" = "no" ; then
13562 HAVE_XFT=no
13563 else
13564 PKG_CONFIG_MIN_VERSION=0.9.0
13565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13566 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13567 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13569 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13570 { $as_echo "$as_me:$LINENO: result: yes" >&5
13571 $as_echo "yes" >&6; }
13572 succeeded=yes
13574 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13575 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13576 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13577 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13578 $as_echo "$XFT_CFLAGS" >&6; }
13580 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13581 $as_echo_n "checking XFT_LIBS... " >&6; }
13582 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13583 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13584 $as_echo "$XFT_LIBS" >&6; }
13585 else
13586 { $as_echo "$as_me:$LINENO: result: no" >&5
13587 $as_echo "no" >&6; }
13588 XFT_CFLAGS=""
13589 XFT_LIBS=""
13590 ## If we have a custom action on failure, don't print errors, but
13591 ## do set a variable so people can do so.
13592 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13598 else
13599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13604 if test $succeeded = yes; then
13606 else
13607 HAVE_XFT=no
13610 if test "$HAVE_XFT" != no; then
13611 OLD_CPPFLAGS="$CPPFLAGS"
13612 OLD_CFLAGS="$CFLAGS"
13613 OLD_LIBS="$LIBS"
13614 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13615 CFLAGS="$CFLAGS $XFT_CFLAGS"
13616 LIBS="$XFT_LIBS $LIBS"
13617 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13618 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13619 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13620 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13621 $as_echo_n "(cached) " >&6
13623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13624 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13625 else
13626 # Is the header compilable?
13627 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13628 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13636 #include <X11/Xft/Xft.h>
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (ac_try="$ac_compile"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643 esac
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_compile") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest.$ac_objext; then
13656 ac_header_compiler=yes
13657 else
13658 $as_echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 ac_header_compiler=no
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13666 $as_echo "$ac_header_compiler" >&6; }
13668 # Is the header present?
13669 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13670 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
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 <X11/Xft/Xft.h>
13678 _ACEOF
13679 if { (ac_try="$ac_cpp conftest.$ac_ext"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683 esac
13684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13685 $as_echo "$ac_try_echo") >&5
13686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev/null && {
13693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 }; then
13696 ac_header_preproc=yes
13697 else
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_header_preproc=no
13704 rm -f conftest.err conftest.$ac_ext
13705 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13706 $as_echo "$ac_header_preproc" >&6; }
13708 # So? What about this header?
13709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13710 yes:no: )
13711 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13712 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13713 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13714 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13715 ac_header_preproc=yes
13717 no:yes:* )
13718 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13719 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13720 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13721 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13722 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13723 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13724 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13725 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13726 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13727 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13728 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13729 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13732 esac
13733 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13734 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13735 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13736 $as_echo_n "(cached) " >&6
13737 else
13738 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13741 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13744 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13745 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13746 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13747 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13748 $as_echo_n "(cached) " >&6
13749 else
13750 ac_check_lib_save_LIBS=$LIBS
13751 LIBS="-lXft $XFT_LIBS $LIBS"
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13762 #ifdef __cplusplus
13763 extern "C"
13764 #endif
13765 char XftFontOpen ();
13767 main ()
13769 return XftFontOpen ();
13771 return 0;
13773 _ACEOF
13774 rm -f conftest.$ac_objext conftest$ac_exeext
13775 if { (ac_try="$ac_link"
13776 case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779 esac
13780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13781 $as_echo "$ac_try_echo") >&5
13782 (eval "$ac_link") 2>conftest.er1
13783 ac_status=$?
13784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
13787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && {
13789 test -z "$ac_c_werror_flag" ||
13790 test ! -s conftest.err
13791 } && test -s conftest$ac_exeext && {
13792 test "$cross_compiling" = yes ||
13793 $as_test_x conftest$ac_exeext
13794 }; then
13795 ac_cv_lib_Xft_XftFontOpen=yes
13796 else
13797 $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_cv_lib_Xft_XftFontOpen=no
13803 rm -rf conftest.dSYM
13804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13809 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13810 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13811 HAVE_XFT=yes
13818 if test "${HAVE_XFT}" = "yes"; then
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_XFT 1
13822 _ACEOF
13825 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13826 else
13827 CPPFLAGS="$OLD_CPPFLAGS"
13828 CFLAGS="$OLD_CFLAGS"
13829 LIBS="$OLD_LIBS"
13830 fi # "${HAVE_XFT}" = "yes"
13831 fi # "$HAVE_XFT" != no
13832 fi # "x${with_xft}" != "xno"
13834 if test "$HAVE_XFT" != "yes"; then
13835 HAVE_XFT=no
13839 HAVE_FREETYPE=no
13840 ## We used to allow building with FreeType and without Xft.
13841 ## However, the ftx font backend driver is not in good shape.
13842 if test "${HAVE_XFT}" = "yes"; then
13843 HAVE_FREETYPE=yes
13844 FONTCONFIG_CFLAGS=
13845 FONTCONFIG_LIBS=
13848 HAVE_LIBOTF=no
13849 if test "${HAVE_FREETYPE}" = "yes"; then
13851 cat >>confdefs.h <<\_ACEOF
13852 #define HAVE_FREETYPE 1
13853 _ACEOF
13855 if test "${with_libotf}" != "no"; then
13857 succeeded=no
13859 # Extract the first word of "pkg-config", so it can be a program name with args.
13860 set dummy pkg-config; ac_word=$2
13861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13864 $as_echo_n "(cached) " >&6
13865 else
13866 case $PKG_CONFIG in
13867 [\\/]* | ?:[\\/]*)
13868 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13874 IFS=$as_save_IFS
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13878 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13880 break 2
13882 done
13883 done
13884 IFS=$as_save_IFS
13886 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13888 esac
13890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13891 if test -n "$PKG_CONFIG"; then
13892 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13893 $as_echo "$PKG_CONFIG" >&6; }
13894 else
13895 { $as_echo "$as_me:$LINENO: result: no" >&5
13896 $as_echo "no" >&6; }
13901 if test "$PKG_CONFIG" = "no" ; then
13902 HAVE_LIBOTF=no
13903 else
13904 PKG_CONFIG_MIN_VERSION=0.9.0
13905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13906 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13907 $as_echo_n "checking for libotf... " >&6; }
13909 if $PKG_CONFIG --exists "libotf" 2>&5; then
13910 { $as_echo "$as_me:$LINENO: result: yes" >&5
13911 $as_echo "yes" >&6; }
13912 succeeded=yes
13914 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13915 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13916 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13917 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13918 $as_echo "$LIBOTF_CFLAGS" >&6; }
13920 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13921 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13922 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13923 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13924 $as_echo "$LIBOTF_LIBS" >&6; }
13925 else
13926 { $as_echo "$as_me:$LINENO: result: no" >&5
13927 $as_echo "no" >&6; }
13928 LIBOTF_CFLAGS=""
13929 LIBOTF_LIBS=""
13930 ## If we have a custom action on failure, don't print errors, but
13931 ## do set a variable so people can do so.
13932 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13938 else
13939 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13940 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13944 if test $succeeded = yes; then
13945 HAVE_LIBOTF=yes
13946 else
13947 HAVE_LIBOTF=no
13950 if test "$HAVE_LIBOTF" = "yes"; then
13952 cat >>confdefs.h <<\_ACEOF
13953 #define HAVE_LIBOTF 1
13954 _ACEOF
13956 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13957 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13958 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13959 $as_echo_n "(cached) " >&6
13960 else
13961 ac_check_lib_save_LIBS=$LIBS
13962 LIBS="-lotf $LIBS"
13963 cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h. */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13970 /* Override any GCC internal prototype to avoid an error.
13971 Use char because int might match the return type of a GCC
13972 builtin and then its argument prototype would still apply. */
13973 #ifdef __cplusplus
13974 extern "C"
13975 #endif
13976 char OTF_get_variation_glyphs ();
13978 main ()
13980 return OTF_get_variation_glyphs ();
13982 return 0;
13984 _ACEOF
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (ac_try="$ac_link"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992 $as_echo "$ac_try_echo") >&5
13993 (eval "$ac_link") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext && {
14003 test "$cross_compiling" = yes ||
14004 $as_test_x conftest$ac_exeext
14005 }; then
14006 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14007 else
14008 $as_echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14014 rm -rf conftest.dSYM
14015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14016 conftest$ac_exeext conftest.$ac_ext
14017 LIBS=$ac_check_lib_save_LIBS
14019 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14020 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14021 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14022 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14023 else
14024 HAVE_OTF_GET_VARIATION_GLYPHS=no
14027 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14031 _ACEOF
14038 HAVE_M17N_FLT=no
14039 if test "${HAVE_LIBOTF}" = yes; then
14040 if test "${with_m17n_flt}" != "no"; then
14042 succeeded=no
14044 # Extract the first word of "pkg-config", so it can be a program name with args.
14045 set dummy pkg-config; ac_word=$2
14046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14047 $as_echo_n "checking for $ac_word... " >&6; }
14048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14049 $as_echo_n "(cached) " >&6
14050 else
14051 case $PKG_CONFIG in
14052 [\\/]* | ?:[\\/]*)
14053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $PATH
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14063 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14065 break 2
14067 done
14068 done
14069 IFS=$as_save_IFS
14071 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14073 esac
14075 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14076 if test -n "$PKG_CONFIG"; then
14077 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14078 $as_echo "$PKG_CONFIG" >&6; }
14079 else
14080 { $as_echo "$as_me:$LINENO: result: no" >&5
14081 $as_echo "no" >&6; }
14086 if test "$PKG_CONFIG" = "no" ; then
14087 HAVE_M17N_FLT=no
14088 else
14089 PKG_CONFIG_MIN_VERSION=0.9.0
14090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14091 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14092 $as_echo_n "checking for m17n-flt... " >&6; }
14094 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14095 { $as_echo "$as_me:$LINENO: result: yes" >&5
14096 $as_echo "yes" >&6; }
14097 succeeded=yes
14099 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14100 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14101 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14102 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14103 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14105 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14106 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14107 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14108 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14109 $as_echo "$M17N_FLT_LIBS" >&6; }
14110 else
14111 { $as_echo "$as_me:$LINENO: result: no" >&5
14112 $as_echo "no" >&6; }
14113 M17N_FLT_CFLAGS=""
14114 M17N_FLT_LIBS=""
14115 ## If we have a custom action on failure, don't print errors, but
14116 ## do set a variable so people can do so.
14117 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14123 else
14124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14129 if test $succeeded = yes; then
14130 HAVE_M17N_FLT=yes
14131 else
14132 HAVE_M17N_FLT=no
14135 if test "$HAVE_M17N_FLT" = "yes"; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define HAVE_M17N_FLT 1
14139 _ACEOF
14144 else
14145 HAVE_XFT=no
14146 HAVE_FREETYPE=no
14147 HAVE_LIBOTF=no
14148 HAVE_M17N_FLT=no
14150 ### End of font-backend (under X11) section.
14161 ### Use -lXpm if available, unless `--with-xpm=no'.
14162 HAVE_XPM=no
14163 if test "${HAVE_X11}" = "yes"; then
14164 if test "${with_xpm}" != "no"; then
14165 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14166 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14167 $as_echo_n "checking for X11/xpm.h... " >&6; }
14168 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14169 $as_echo_n "(cached) " >&6
14171 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14172 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14173 else
14174 # Is the header compilable?
14175 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14176 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14177 cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h. */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 $ac_includes_default
14184 #include <X11/xpm.h>
14185 _ACEOF
14186 rm -f conftest.$ac_objext
14187 if { (ac_try="$ac_compile"
14188 case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191 esac
14192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14193 $as_echo "$ac_try_echo") >&5
14194 (eval "$ac_compile") 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } && {
14201 test -z "$ac_c_werror_flag" ||
14202 test ! -s conftest.err
14203 } && test -s conftest.$ac_objext; then
14204 ac_header_compiler=yes
14205 else
14206 $as_echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 ac_header_compiler=no
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14214 $as_echo "$ac_header_compiler" >&6; }
14216 # Is the header present?
14217 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14218 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 #include <X11/xpm.h>
14226 _ACEOF
14227 if { (ac_try="$ac_cpp conftest.$ac_ext"
14228 case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231 esac
14232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14233 $as_echo "$ac_try_echo") >&5
14234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14235 ac_status=$?
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
14239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } >/dev/null && {
14241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14242 test ! -s conftest.err
14243 }; then
14244 ac_header_preproc=yes
14245 else
14246 $as_echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_header_preproc=no
14252 rm -f conftest.err conftest.$ac_ext
14253 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14254 $as_echo "$ac_header_preproc" >&6; }
14256 # So? What about this header?
14257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14258 yes:no: )
14259 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14260 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14261 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14262 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14263 ac_header_preproc=yes
14265 no:yes:* )
14266 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14267 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14268 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14269 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14270 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14271 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14272 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14273 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14275 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14276 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14277 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14280 esac
14281 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14282 $as_echo_n "checking for X11/xpm.h... " >&6; }
14283 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14284 $as_echo_n "(cached) " >&6
14285 else
14286 ac_cv_header_X11_xpm_h=$ac_header_preproc
14288 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14289 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14292 if test $ac_cv_header_X11_xpm_h = yes; then
14293 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14294 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14295 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14296 $as_echo_n "(cached) " >&6
14297 else
14298 ac_check_lib_save_LIBS=$LIBS
14299 LIBS="-lXpm -lX11 $LIBS"
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14310 #ifdef __cplusplus
14311 extern "C"
14312 #endif
14313 char XpmReadFileToPixmap ();
14315 main ()
14317 return XpmReadFileToPixmap ();
14319 return 0;
14321 _ACEOF
14322 rm -f conftest.$ac_objext conftest$ac_exeext
14323 if { (ac_try="$ac_link"
14324 case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327 esac
14328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14329 $as_echo "$ac_try_echo") >&5
14330 (eval "$ac_link") 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } && {
14337 test -z "$ac_c_werror_flag" ||
14338 test ! -s conftest.err
14339 } && test -s conftest$ac_exeext && {
14340 test "$cross_compiling" = yes ||
14341 $as_test_x conftest$ac_exeext
14342 }; then
14343 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14344 else
14345 $as_echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14351 rm -rf conftest.dSYM
14352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 conftest$ac_exeext conftest.$ac_ext
14354 LIBS=$ac_check_lib_save_LIBS
14356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14357 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14358 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14359 HAVE_XPM=yes
14365 if test "${HAVE_XPM}" = "yes"; then
14366 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14367 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include "X11/xpm.h"
14375 #ifndef XpmReturnAllocPixels
14376 no_return_alloc_pixels
14377 #endif
14379 _ACEOF
14380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14381 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14382 HAVE_XPM=no
14383 else
14384 HAVE_XPM=yes
14386 rm -f conftest*
14389 if test "${HAVE_XPM}" = "yes"; then
14390 { $as_echo "$as_me:$LINENO: result: yes" >&5
14391 $as_echo "yes" >&6; }
14392 else
14393 { $as_echo "$as_me:$LINENO: result: no" >&5
14394 $as_echo "no" >&6; }
14399 if test "${HAVE_XPM}" = "yes"; then
14401 cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_XPM 1
14403 _ACEOF
14408 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14409 HAVE_JPEG=no
14410 if test "${HAVE_X11}" = "yes"; then
14411 if test "${with_jpeg}" != "no"; then
14412 if test "${ac_cv_header_jerror_h+set}" = set; then
14413 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14414 $as_echo_n "checking for jerror.h... " >&6; }
14415 if test "${ac_cv_header_jerror_h+set}" = set; then
14416 $as_echo_n "(cached) " >&6
14418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14419 $as_echo "$ac_cv_header_jerror_h" >&6; }
14420 else
14421 # Is the header compilable?
14422 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14423 $as_echo_n "checking jerror.h usability... " >&6; }
14424 cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h. */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 $ac_includes_default
14431 #include <jerror.h>
14432 _ACEOF
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438 esac
14439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14440 $as_echo "$ac_try_echo") >&5
14441 (eval "$ac_compile") 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && {
14448 test -z "$ac_c_werror_flag" ||
14449 test ! -s conftest.err
14450 } && test -s conftest.$ac_objext; then
14451 ac_header_compiler=yes
14452 else
14453 $as_echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_header_compiler=no
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14461 $as_echo "$ac_header_compiler" >&6; }
14463 # Is the header present?
14464 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14465 $as_echo_n "checking jerror.h presence... " >&6; }
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h. */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <jerror.h>
14473 _ACEOF
14474 if { (ac_try="$ac_cpp conftest.$ac_ext"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478 esac
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } >/dev/null && {
14488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 }; then
14491 ac_header_preproc=yes
14492 else
14493 $as_echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ac_header_preproc=no
14499 rm -f conftest.err conftest.$ac_ext
14500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14501 $as_echo "$ac_header_preproc" >&6; }
14503 # So? What about this header?
14504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14505 yes:no: )
14506 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14507 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14508 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14509 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14510 ac_header_preproc=yes
14512 no:yes:* )
14513 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14514 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14515 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14516 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14517 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14518 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14519 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14520 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14521 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14522 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14523 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14524 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14527 esac
14528 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14529 $as_echo_n "checking for jerror.h... " >&6; }
14530 if test "${ac_cv_header_jerror_h+set}" = set; then
14531 $as_echo_n "(cached) " >&6
14532 else
14533 ac_cv_header_jerror_h=$ac_header_preproc
14535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14536 $as_echo "$ac_cv_header_jerror_h" >&6; }
14539 if test $ac_cv_header_jerror_h = yes; then
14540 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14541 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14542 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14543 $as_echo_n "(cached) " >&6
14544 else
14545 ac_check_lib_save_LIBS=$LIBS
14546 LIBS="-ljpeg $LIBS"
14547 cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h. */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14557 #ifdef __cplusplus
14558 extern "C"
14559 #endif
14560 char jpeg_destroy_compress ();
14562 main ()
14564 return jpeg_destroy_compress ();
14566 return 0;
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574 esac
14575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577 (eval "$ac_link") 2>conftest.er1
14578 ac_status=$?
14579 grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest$ac_exeext && {
14587 test "$cross_compiling" = yes ||
14588 $as_test_x conftest$ac_exeext
14589 }; then
14590 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14591 else
14592 $as_echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14598 rm -rf conftest.dSYM
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 conftest$ac_exeext conftest.$ac_ext
14601 LIBS=$ac_check_lib_save_LIBS
14603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14604 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14605 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14606 HAVE_JPEG=yes
14615 if test "${HAVE_JPEG}" = "yes"; then
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_JPEG 1
14618 _ACEOF
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h. */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <jpeglib.h>
14627 version=JPEG_LIB_VERSION
14629 _ACEOF
14630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14631 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14632 cat >>confdefs.h <<\_ACEOF
14633 #define HAVE_JPEG 1
14634 _ACEOF
14636 else
14637 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14638 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14639 HAVE_JPEG=no
14641 rm -f conftest*
14646 ### Use -lpng if available, unless `--with-png=no'.
14647 HAVE_PNG=no
14648 if test "${HAVE_X11}" = "yes"; then
14649 if test "${with_png}" != "no"; then
14650 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14651 # in /usr/include/libpng.
14654 for ac_header in png.h libpng/png.h
14656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14659 $as_echo_n "checking for $ac_header... " >&6; }
14660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14661 $as_echo_n "(cached) " >&6
14663 ac_res=`eval 'as_val=${'$as_ac_Header'}
14664 $as_echo "$as_val"'`
14665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14666 $as_echo "$ac_res" >&6; }
14667 else
14668 # Is the header compilable?
14669 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14670 $as_echo_n "checking $ac_header usability... " >&6; }
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h. */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 $ac_includes_default
14678 #include <$ac_header>
14679 _ACEOF
14680 rm -f conftest.$ac_objext
14681 if { (ac_try="$ac_compile"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685 esac
14686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14687 $as_echo "$ac_try_echo") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest.$ac_objext; then
14698 ac_header_compiler=yes
14699 else
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_header_compiler=no
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14708 $as_echo "$ac_header_compiler" >&6; }
14710 # Is the header present?
14711 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14712 $as_echo_n "checking $ac_header presence... " >&6; }
14713 cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h. */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #include <$ac_header>
14720 _ACEOF
14721 if { (ac_try="$ac_cpp conftest.$ac_ext"
14722 case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14727 $as_echo "$ac_try_echo") >&5
14728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } >/dev/null && {
14735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14737 }; then
14738 ac_header_preproc=yes
14739 else
14740 $as_echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 ac_header_preproc=no
14746 rm -f conftest.err conftest.$ac_ext
14747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14748 $as_echo "$ac_header_preproc" >&6; }
14750 # So? What about this header?
14751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14752 yes:no: )
14753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14754 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14757 ac_header_preproc=yes
14759 no:yes:* )
14760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14761 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14763 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14765 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14767 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14771 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14774 esac
14775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14776 $as_echo_n "checking for $ac_header... " >&6; }
14777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14778 $as_echo_n "(cached) " >&6
14779 else
14780 eval "$as_ac_Header=\$ac_header_preproc"
14782 ac_res=`eval 'as_val=${'$as_ac_Header'}
14783 $as_echo "$as_val"'`
14784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14785 $as_echo "$ac_res" >&6; }
14788 if test `eval 'as_val=${'$as_ac_Header'}
14789 $as_echo "$as_val"'` = yes; then
14790 cat >>confdefs.h <<_ACEOF
14791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14792 _ACEOF
14796 done
14798 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14799 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14800 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14801 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14802 $as_echo_n "(cached) " >&6
14803 else
14804 ac_check_lib_save_LIBS=$LIBS
14805 LIBS="-lpng -lz -lm $LIBS"
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 char png_get_channels ();
14821 main ()
14823 return png_get_channels ();
14825 return 0;
14827 _ACEOF
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (ac_try="$ac_link"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833 esac
14834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835 $as_echo "$ac_try_echo") >&5
14836 (eval "$ac_link") 2>conftest.er1
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext && {
14846 test "$cross_compiling" = yes ||
14847 $as_test_x conftest$ac_exeext
14848 }; then
14849 ac_cv_lib_png_png_get_channels=yes
14850 else
14851 $as_echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_cv_lib_png_png_get_channels=no
14857 rm -rf conftest.dSYM
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14863 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14864 if test $ac_cv_lib_png_png_get_channels = yes; then
14865 HAVE_PNG=yes
14871 if test "${HAVE_PNG}" = "yes"; then
14873 cat >>confdefs.h <<\_ACEOF
14874 #define HAVE_PNG 1
14875 _ACEOF
14880 ### Use -ltiff if available, unless `--with-tiff=no'.
14881 HAVE_TIFF=no
14882 if test "${HAVE_X11}" = "yes"; then
14883 if test "${with_tiff}" != "no"; then
14884 if test "${ac_cv_header_tiffio_h+set}" = set; then
14885 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14886 $as_echo_n "checking for tiffio.h... " >&6; }
14887 if test "${ac_cv_header_tiffio_h+set}" = set; then
14888 $as_echo_n "(cached) " >&6
14890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14891 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14892 else
14893 # Is the header compilable?
14894 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14895 $as_echo_n "checking tiffio.h usability... " >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h. */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 #include <tiffio.h>
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910 esac
14911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14912 $as_echo "$ac_try_echo") >&5
14913 (eval "$ac_compile") 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } && {
14920 test -z "$ac_c_werror_flag" ||
14921 test ! -s conftest.err
14922 } && test -s conftest.$ac_objext; then
14923 ac_header_compiler=yes
14924 else
14925 $as_echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_header_compiler=no
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933 $as_echo "$ac_header_compiler" >&6; }
14935 # Is the header present?
14936 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14937 $as_echo_n "checking tiffio.h presence... " >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <tiffio.h>
14945 _ACEOF
14946 if { (ac_try="$ac_cpp conftest.$ac_ext"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952 $as_echo "$ac_try_echo") >&5
14953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } >/dev/null && {
14960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 }; then
14963 ac_header_preproc=yes
14964 else
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_header_preproc=no
14971 rm -f conftest.err conftest.$ac_ext
14972 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973 $as_echo "$ac_header_preproc" >&6; }
14975 # So? What about this header?
14976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 yes:no: )
14978 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14979 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14981 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc=yes
14984 no:yes:* )
14985 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14986 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14987 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14988 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14989 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14990 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14991 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14992 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14994 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14995 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14996 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14999 esac
15000 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15001 $as_echo_n "checking for tiffio.h... " >&6; }
15002 if test "${ac_cv_header_tiffio_h+set}" = set; then
15003 $as_echo_n "(cached) " >&6
15004 else
15005 ac_cv_header_tiffio_h=$ac_header_preproc
15007 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15008 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15011 if test $ac_cv_header_tiffio_h = yes; then
15012 tifflibs="-lz -lm"
15013 # At least one tiff package requires the jpeg library.
15014 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15015 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15016 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15017 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15018 $as_echo_n "(cached) " >&6
15019 else
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-ltiff $tifflibs $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h. */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 #ifdef __cplusplus
15033 extern "C"
15034 #endif
15035 char TIFFGetVersion ();
15037 main ()
15039 return TIFFGetVersion ();
15041 return 0;
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest$ac_exeext
15064 }; then
15065 ac_cv_lib_tiff_TIFFGetVersion=yes
15066 else
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_cv_lib_tiff_TIFFGetVersion=no
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15078 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15079 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15080 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15081 HAVE_TIFF=yes
15089 if test "${HAVE_TIFF}" = "yes"; then
15091 cat >>confdefs.h <<\_ACEOF
15092 #define HAVE_TIFF 1
15093 _ACEOF
15098 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15099 HAVE_GIF=no
15100 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15101 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15102 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15103 $as_echo_n "checking for gif_lib.h... " >&6; }
15104 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15105 $as_echo_n "(cached) " >&6
15107 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15108 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15109 else
15110 # Is the header compilable?
15111 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15112 $as_echo_n "checking gif_lib.h usability... " >&6; }
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119 $ac_includes_default
15120 #include <gif_lib.h>
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (ac_try="$ac_compile"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15129 $as_echo "$ac_try_echo") >&5
15130 (eval "$ac_compile") 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest.$ac_objext; then
15140 ac_header_compiler=yes
15141 else
15142 $as_echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_compiler=no
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15150 $as_echo "$ac_header_compiler" >&6; }
15152 # Is the header present?
15153 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15154 $as_echo_n "checking gif_lib.h presence... " >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h. */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 #include <gif_lib.h>
15162 _ACEOF
15163 if { (ac_try="$ac_cpp conftest.$ac_ext"
15164 case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15167 esac
15168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15169 $as_echo "$ac_try_echo") >&5
15170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } >/dev/null && {
15177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15178 test ! -s conftest.err
15179 }; then
15180 ac_header_preproc=yes
15181 else
15182 $as_echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 ac_header_preproc=no
15188 rm -f conftest.err conftest.$ac_ext
15189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15190 $as_echo "$ac_header_preproc" >&6; }
15192 # So? What about this header?
15193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15194 yes:no: )
15195 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15196 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15197 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15198 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15199 ac_header_preproc=yes
15201 no:yes:* )
15202 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15203 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15204 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15205 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15206 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15207 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15208 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15209 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15210 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15211 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15212 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15213 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15216 esac
15217 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15218 $as_echo_n "checking for gif_lib.h... " >&6; }
15219 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15220 $as_echo_n "(cached) " >&6
15221 else
15222 ac_cv_header_gif_lib_h=$ac_header_preproc
15224 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15225 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15228 if test $ac_cv_header_gif_lib_h = yes; then
15229 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15230 # Earlier versions can crash Emacs.
15231 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15232 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15233 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15234 $as_echo_n "(cached) " >&6
15235 else
15236 ac_check_lib_save_LIBS=$LIBS
15237 LIBS="-lgif $LIBS"
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any GCC internal prototype to avoid an error.
15246 Use char because int might match the return type of a GCC
15247 builtin and then its argument prototype would still apply. */
15248 #ifdef __cplusplus
15249 extern "C"
15250 #endif
15251 char EGifPutExtensionLast ();
15253 main ()
15255 return EGifPutExtensionLast ();
15257 return 0;
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (ac_try="$ac_link"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265 esac
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_link") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext && {
15278 test "$cross_compiling" = yes ||
15279 $as_test_x conftest$ac_exeext
15280 }; then
15281 ac_cv_lib_gif_EGifPutExtensionLast=yes
15282 else
15283 $as_echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_cv_lib_gif_EGifPutExtensionLast=no
15289 rm -rf conftest.dSYM
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_check_lib_save_LIBS
15294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15295 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15296 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15297 HAVE_GIF=yes
15298 else
15299 try_libungif=yes
15306 if test "$HAVE_GIF" = yes; then
15307 ac_gif_lib_name="-lgif"
15310 # If gif_lib.h but no libgif, try libungif.
15311 if test x"$try_libungif" = xyes; then
15312 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15313 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15314 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15315 $as_echo_n "(cached) " >&6
15316 else
15317 ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-lungif $LIBS"
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15326 /* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15329 #ifdef __cplusplus
15330 extern "C"
15331 #endif
15332 char EGifPutExtensionLast ();
15334 main ()
15336 return EGifPutExtensionLast ();
15338 return 0;
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346 esac
15347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15348 $as_echo "$ac_try_echo") >&5
15349 (eval "$ac_link") 2>conftest.er1
15350 ac_status=$?
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
15354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } && {
15356 test -z "$ac_c_werror_flag" ||
15357 test ! -s conftest.err
15358 } && test -s conftest$ac_exeext && {
15359 test "$cross_compiling" = yes ||
15360 $as_test_x conftest$ac_exeext
15361 }; then
15362 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15363 else
15364 $as_echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_cv_lib_ungif_EGifPutExtensionLast=no
15370 rm -rf conftest.dSYM
15371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15372 conftest$ac_exeext conftest.$ac_ext
15373 LIBS=$ac_check_lib_save_LIBS
15375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15376 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15377 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15378 HAVE_GIF=yes
15382 if test "$HAVE_GIF" = yes; then
15384 cat >>confdefs.h <<\_ACEOF
15385 #define LIBGIF -lungif
15386 _ACEOF
15388 ac_gif_lib_name="-lungif"
15392 if test "${HAVE_GIF}" = "yes"; then
15394 cat >>confdefs.h <<\_ACEOF
15395 #define HAVE_GIF 1
15396 _ACEOF
15401 if test "${HAVE_X11}" = "yes"; then
15402 MISSING=""
15403 WITH_NO=""
15404 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15405 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15406 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15407 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15408 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15409 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15410 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15411 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15412 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15413 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15415 if test "X${MISSING}" != X; then
15416 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15417 $MISSING
15418 Maybe some development libraries/packages are missing?
15419 If you don't want to link with them give
15420 $WITH_NO
15421 as options to configure" >&5
15422 $as_echo "$as_me: error: The following required libraries were not found:
15423 $MISSING
15424 Maybe some development libraries/packages are missing?
15425 If you don't want to link with them give
15426 $WITH_NO
15427 as options to configure" >&2;}
15428 { (exit 1); exit 1; }; }
15432 ### Use -lgpm if available, unless `--with-gpm=no'.
15433 HAVE_GPM=no
15434 if test "${with_gpm}" != "no"; then
15435 if test "${ac_cv_header_gpm_h+set}" = set; then
15436 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15437 $as_echo_n "checking for gpm.h... " >&6; }
15438 if test "${ac_cv_header_gpm_h+set}" = set; then
15439 $as_echo_n "(cached) " >&6
15441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15442 $as_echo "$ac_cv_header_gpm_h" >&6; }
15443 else
15444 # Is the header compilable?
15445 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15446 $as_echo_n "checking gpm.h usability... " >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 $ac_includes_default
15454 #include <gpm.h>
15455 _ACEOF
15456 rm -f conftest.$ac_objext
15457 if { (ac_try="$ac_compile"
15458 case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461 esac
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464 (eval "$ac_compile") 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest.$ac_objext; then
15474 ac_header_compiler=yes
15475 else
15476 $as_echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_header_compiler=no
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15484 $as_echo "$ac_header_compiler" >&6; }
15486 # Is the header present?
15487 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15488 $as_echo_n "checking gpm.h presence... " >&6; }
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h. */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495 #include <gpm.h>
15496 _ACEOF
15497 if { (ac_try="$ac_cpp conftest.$ac_ext"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15501 esac
15502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15503 $as_echo "$ac_try_echo") >&5
15504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } >/dev/null && {
15511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15512 test ! -s conftest.err
15513 }; then
15514 ac_header_preproc=yes
15515 else
15516 $as_echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 ac_header_preproc=no
15522 rm -f conftest.err conftest.$ac_ext
15523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15524 $as_echo "$ac_header_preproc" >&6; }
15526 # So? What about this header?
15527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15528 yes:no: )
15529 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15530 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15531 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15532 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15533 ac_header_preproc=yes
15535 no:yes:* )
15536 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15537 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15538 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15539 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15540 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15541 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15542 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15543 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15544 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15545 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15546 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15547 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15550 esac
15551 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15552 $as_echo_n "checking for gpm.h... " >&6; }
15553 if test "${ac_cv_header_gpm_h+set}" = set; then
15554 $as_echo_n "(cached) " >&6
15555 else
15556 ac_cv_header_gpm_h=$ac_header_preproc
15558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15559 $as_echo "$ac_cv_header_gpm_h" >&6; }
15562 if test $ac_cv_header_gpm_h = yes; then
15563 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15564 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15565 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15566 $as_echo_n "(cached) " >&6
15567 else
15568 ac_check_lib_save_LIBS=$LIBS
15569 LIBS="-lgpm $LIBS"
15570 cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h. */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15577 /* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15580 #ifdef __cplusplus
15581 extern "C"
15582 #endif
15583 char Gpm_Open ();
15585 main ()
15587 return Gpm_Open ();
15589 return 0;
15591 _ACEOF
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597 esac
15598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15599 $as_echo "$ac_try_echo") >&5
15600 (eval "$ac_link") 2>conftest.er1
15601 ac_status=$?
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
15605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } && {
15607 test -z "$ac_c_werror_flag" ||
15608 test ! -s conftest.err
15609 } && test -s conftest$ac_exeext && {
15610 test "$cross_compiling" = yes ||
15611 $as_test_x conftest$ac_exeext
15612 }; then
15613 ac_cv_lib_gpm_Gpm_Open=yes
15614 else
15615 $as_echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_cv_lib_gpm_Gpm_Open=no
15621 rm -rf conftest.dSYM
15622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15623 conftest$ac_exeext conftest.$ac_ext
15624 LIBS=$ac_check_lib_save_LIBS
15626 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15627 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15628 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15629 HAVE_GPM=yes
15637 if test "${HAVE_GPM}" = "yes"; then
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE_GPM 1
15641 _ACEOF
15645 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15646 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15647 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15648 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15649 $as_echo_n "(cached) " >&6
15651 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15652 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15653 else
15654 # Is the header compilable?
15655 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15656 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h. */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 #include <malloc/malloc.h>
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671 esac
15672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15673 $as_echo "$ac_try_echo") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest.$ac_objext; then
15684 ac_header_compiler=yes
15685 else
15686 $as_echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15689 ac_header_compiler=no
15692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15694 $as_echo "$ac_header_compiler" >&6; }
15696 # Is the header present?
15697 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15698 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <malloc/malloc.h>
15706 _ACEOF
15707 if { (ac_try="$ac_cpp conftest.$ac_ext"
15708 case "(($ac_try" in
15709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15711 esac
15712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15713 $as_echo "$ac_try_echo") >&5
15714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15715 ac_status=$?
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
15719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } >/dev/null && {
15721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15722 test ! -s conftest.err
15723 }; then
15724 ac_header_preproc=yes
15725 else
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ac_header_preproc=no
15732 rm -f conftest.err conftest.$ac_ext
15733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15734 $as_echo "$ac_header_preproc" >&6; }
15736 # So? What about this header?
15737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15738 yes:no: )
15739 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15740 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15741 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15742 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15743 ac_header_preproc=yes
15745 no:yes:* )
15746 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15747 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15748 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15749 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15750 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15751 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15752 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15753 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15754 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15755 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15756 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15757 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15760 esac
15761 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15762 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15763 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15764 $as_echo_n "(cached) " >&6
15765 else
15766 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15768 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15769 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15772 if test $ac_cv_header_malloc_malloc_h = yes; then
15774 cat >>confdefs.h <<\_ACEOF
15775 #define HAVE_MALLOC_MALLOC_H 1
15776 _ACEOF
15782 ### Use NeXTstep API to implement GUI.
15783 if test "${HAVE_NS}" = "yes"; then
15785 cat >>confdefs.h <<\_ACEOF
15786 #define HAVE_NS 1
15787 _ACEOF
15789 if test "${NS_IMPL_COCOA}" = "yes"; then
15791 cat >>confdefs.h <<\_ACEOF
15792 #define NS_IMPL_COCOA 1
15793 _ACEOF
15795 GNU_OBJC_CFLAGS=
15797 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define NS_IMPL_GNUSTEP 1
15801 _ACEOF
15803 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15805 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15807 cat >>confdefs.h <<\_ACEOF
15808 #define NS_HAVE_NSINTEGER 1
15809 _ACEOF
15812 # We also have mouse menus.
15813 HAVE_MENUS=yes
15814 OTHER_FILES=ns-app
15818 ### Use session management (-lSM -lICE) if available
15819 HAVE_X_SM=no
15820 if test "${HAVE_X11}" = "yes"; then
15821 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15822 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15823 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15824 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15825 $as_echo_n "(cached) " >&6
15827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15828 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15829 else
15830 # Is the header compilable?
15831 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15832 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15833 cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h. */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 $ac_includes_default
15840 #include <X11/SM/SMlib.h>
15841 _ACEOF
15842 rm -f conftest.$ac_objext
15843 if { (ac_try="$ac_compile"
15844 case "(($ac_try" in
15845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15847 esac
15848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15849 $as_echo "$ac_try_echo") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest.$ac_objext; then
15860 ac_header_compiler=yes
15861 else
15862 $as_echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_header_compiler=no
15868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15870 $as_echo "$ac_header_compiler" >&6; }
15872 # Is the header present?
15873 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15874 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15875 cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h. */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 #include <X11/SM/SMlib.h>
15882 _ACEOF
15883 if { (ac_try="$ac_cpp conftest.$ac_ext"
15884 case "(($ac_try" in
15885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15886 *) ac_try_echo=$ac_try;;
15887 esac
15888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15889 $as_echo "$ac_try_echo") >&5
15890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null && {
15897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 }; then
15900 ac_header_preproc=yes
15901 else
15902 $as_echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_header_preproc=no
15908 rm -f conftest.err conftest.$ac_ext
15909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15910 $as_echo "$ac_header_preproc" >&6; }
15912 # So? What about this header?
15913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15914 yes:no: )
15915 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15916 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15917 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15918 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15919 ac_header_preproc=yes
15921 no:yes:* )
15922 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15923 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15924 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15925 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15926 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15927 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15928 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15929 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15930 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15931 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15932 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15933 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15936 esac
15937 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15938 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15939 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15940 $as_echo_n "(cached) " >&6
15941 else
15942 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15944 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15945 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15948 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15949 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15950 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15951 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15952 $as_echo_n "(cached) " >&6
15953 else
15954 ac_check_lib_save_LIBS=$LIBS
15955 LIBS="-lSM -lICE $LIBS"
15956 cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h. */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h. */
15963 /* Override any GCC internal prototype to avoid an error.
15964 Use char because int might match the return type of a GCC
15965 builtin and then its argument prototype would still apply. */
15966 #ifdef __cplusplus
15967 extern "C"
15968 #endif
15969 char SmcOpenConnection ();
15971 main ()
15973 return SmcOpenConnection ();
15975 return 0;
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982 *) ac_try_echo=$ac_try;;
15983 esac
15984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15985 $as_echo "$ac_try_echo") >&5
15986 (eval "$ac_link") 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest$ac_exeext && {
15996 test "$cross_compiling" = yes ||
15997 $as_test_x conftest$ac_exeext
15998 }; then
15999 ac_cv_lib_SM_SmcOpenConnection=yes
16000 else
16001 $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 ac_cv_lib_SM_SmcOpenConnection=no
16007 rm -rf conftest.dSYM
16008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16009 conftest$ac_exeext conftest.$ac_ext
16010 LIBS=$ac_check_lib_save_LIBS
16012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16013 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16014 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16015 HAVE_X_SM=yes
16022 if test "${HAVE_X_SM}" = "yes"; then
16024 cat >>confdefs.h <<\_ACEOF
16025 #define HAVE_X_SM 1
16026 _ACEOF
16028 case "$LIBS" in
16029 *-lSM*) ;;
16030 *) LIBS="-lSM -lICE $LIBS" ;;
16031 esac
16035 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16036 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16037 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16038 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16039 $as_echo_n "(cached) " >&6
16040 else
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 #include <netdb.h>
16049 main ()
16051 return h_errno;
16053 return 0;
16055 _ACEOF
16056 rm -f conftest.$ac_objext conftest$ac_exeext
16057 if { (ac_try="$ac_link"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061 esac
16062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16063 $as_echo "$ac_try_echo") >&5
16064 (eval "$ac_link") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest$ac_exeext && {
16074 test "$cross_compiling" = yes ||
16075 $as_test_x conftest$ac_exeext
16076 }; then
16077 emacs_cv_netdb_declares_h_errno=yes
16078 else
16079 $as_echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 emacs_cv_netdb_declares_h_errno=no
16085 rm -rf conftest.dSYM
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16089 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16090 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16091 if test $emacs_cv_netdb_declares_h_errno = yes; then
16093 cat >>confdefs.h <<\_ACEOF
16094 #define HAVE_H_ERRNO 1
16095 _ACEOF
16099 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16100 # for constant arguments. Useless!
16101 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16102 $as_echo_n "checking for working alloca.h... " >&6; }
16103 if test "${ac_cv_working_alloca_h+set}" = set; then
16104 $as_echo_n "(cached) " >&6
16105 else
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <alloca.h>
16114 main ()
16116 char *p = (char *) alloca (2 * sizeof (int));
16117 if (p) return 0;
16119 return 0;
16121 _ACEOF
16122 rm -f conftest.$ac_objext conftest$ac_exeext
16123 if { (ac_try="$ac_link"
16124 case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16127 esac
16128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16129 $as_echo "$ac_try_echo") >&5
16130 (eval "$ac_link") 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } && {
16137 test -z "$ac_c_werror_flag" ||
16138 test ! -s conftest.err
16139 } && test -s conftest$ac_exeext && {
16140 test "$cross_compiling" = yes ||
16141 $as_test_x conftest$ac_exeext
16142 }; then
16143 ac_cv_working_alloca_h=yes
16144 else
16145 $as_echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16148 ac_cv_working_alloca_h=no
16151 rm -rf conftest.dSYM
16152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16153 conftest$ac_exeext conftest.$ac_ext
16155 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16156 $as_echo "$ac_cv_working_alloca_h" >&6; }
16157 if test $ac_cv_working_alloca_h = yes; then
16159 cat >>confdefs.h <<\_ACEOF
16160 #define HAVE_ALLOCA_H 1
16161 _ACEOF
16165 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16166 $as_echo_n "checking for alloca... " >&6; }
16167 if test "${ac_cv_func_alloca_works+set}" = set; then
16168 $as_echo_n "(cached) " >&6
16169 else
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h. */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 #ifdef __GNUC__
16177 # define alloca __builtin_alloca
16178 #else
16179 # ifdef _MSC_VER
16180 # include <malloc.h>
16181 # define alloca _alloca
16182 # else
16183 # ifdef HAVE_ALLOCA_H
16184 # include <alloca.h>
16185 # else
16186 # ifdef _AIX
16187 #pragma alloca
16188 # else
16189 # ifndef alloca /* predefined by HP cc +Olibcalls */
16190 char *alloca ();
16191 # endif
16192 # endif
16193 # endif
16194 # endif
16195 #endif
16198 main ()
16200 char *p = (char *) alloca (1);
16201 if (p) return 0;
16203 return 0;
16205 _ACEOF
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (ac_try="$ac_link"
16208 case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211 esac
16212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16213 $as_echo "$ac_try_echo") >&5
16214 (eval "$ac_link") 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } && {
16221 test -z "$ac_c_werror_flag" ||
16222 test ! -s conftest.err
16223 } && test -s conftest$ac_exeext && {
16224 test "$cross_compiling" = yes ||
16225 $as_test_x conftest$ac_exeext
16226 }; then
16227 ac_cv_func_alloca_works=yes
16228 else
16229 $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_cv_func_alloca_works=no
16235 rm -rf conftest.dSYM
16236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16237 conftest$ac_exeext conftest.$ac_ext
16239 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16240 $as_echo "$ac_cv_func_alloca_works" >&6; }
16242 if test $ac_cv_func_alloca_works = yes; then
16244 cat >>confdefs.h <<\_ACEOF
16245 #define HAVE_ALLOCA 1
16246 _ACEOF
16248 else
16249 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16250 # that cause trouble. Some versions do not even contain alloca or
16251 # contain a buggy version. If you still want to use their alloca,
16252 # use ar to extract alloca.o from them instead of compiling alloca.c.
16254 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16256 cat >>confdefs.h <<\_ACEOF
16257 #define C_ALLOCA 1
16258 _ACEOF
16261 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16262 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16263 if test "${ac_cv_os_cray+set}" = set; then
16264 $as_echo_n "(cached) " >&6
16265 else
16266 cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h. */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #if defined CRAY && ! defined CRAY2
16273 webecray
16274 #else
16275 wenotbecray
16276 #endif
16278 _ACEOF
16279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16280 $EGREP "webecray" >/dev/null 2>&1; then
16281 ac_cv_os_cray=yes
16282 else
16283 ac_cv_os_cray=no
16285 rm -f conftest*
16288 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16289 $as_echo "$ac_cv_os_cray" >&6; }
16290 if test $ac_cv_os_cray = yes; then
16291 for ac_func in _getb67 GETB67 getb67; do
16292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16293 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16294 $as_echo_n "checking for $ac_func... " >&6; }
16295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16296 $as_echo_n "(cached) " >&6
16297 else
16298 cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h. */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16306 #define $ac_func innocuous_$ac_func
16308 /* System header to define __stub macros and hopefully few prototypes,
16309 which can conflict with char $ac_func (); below.
16310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16311 <limits.h> exists even on freestanding compilers. */
16313 #ifdef __STDC__
16314 # include <limits.h>
16315 #else
16316 # include <assert.h>
16317 #endif
16319 #undef $ac_func
16321 /* Override any GCC internal prototype to avoid an error.
16322 Use char because int might match the return type of a GCC
16323 builtin and then its argument prototype would still apply. */
16324 #ifdef __cplusplus
16325 extern "C"
16326 #endif
16327 char $ac_func ();
16328 /* The GNU C library defines this for functions which it implements
16329 to always fail with ENOSYS. Some functions are actually named
16330 something starting with __ and the normal name is an alias. */
16331 #if defined __stub_$ac_func || defined __stub___$ac_func
16332 choke me
16333 #endif
16336 main ()
16338 return $ac_func ();
16340 return 0;
16342 _ACEOF
16343 rm -f conftest.$ac_objext conftest$ac_exeext
16344 if { (ac_try="$ac_link"
16345 case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348 esac
16349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16350 $as_echo "$ac_try_echo") >&5
16351 (eval "$ac_link") 2>conftest.er1
16352 ac_status=$?
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
16356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } && {
16358 test -z "$ac_c_werror_flag" ||
16359 test ! -s conftest.err
16360 } && test -s conftest$ac_exeext && {
16361 test "$cross_compiling" = yes ||
16362 $as_test_x conftest$ac_exeext
16363 }; then
16364 eval "$as_ac_var=yes"
16365 else
16366 $as_echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 eval "$as_ac_var=no"
16372 rm -rf conftest.dSYM
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374 conftest$ac_exeext conftest.$ac_ext
16376 ac_res=`eval 'as_val=${'$as_ac_var'}
16377 $as_echo "$as_val"'`
16378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16379 $as_echo "$ac_res" >&6; }
16380 if test `eval 'as_val=${'$as_ac_var'}
16381 $as_echo "$as_val"'` = yes; then
16383 cat >>confdefs.h <<_ACEOF
16384 #define CRAY_STACKSEG_END $ac_func
16385 _ACEOF
16387 break
16390 done
16393 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16394 $as_echo_n "checking stack direction for C alloca... " >&6; }
16395 if test "${ac_cv_c_stack_direction+set}" = set; then
16396 $as_echo_n "(cached) " >&6
16397 else
16398 if test "$cross_compiling" = yes; then
16399 ac_cv_c_stack_direction=0
16400 else
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 $ac_includes_default
16409 find_stack_direction ()
16411 static char *addr = 0;
16412 auto char dummy;
16413 if (addr == 0)
16415 addr = &dummy;
16416 return find_stack_direction ();
16418 else
16419 return (&dummy > addr) ? 1 : -1;
16423 main ()
16425 return find_stack_direction () < 0;
16427 _ACEOF
16428 rm -f conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433 esac
16434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16435 $as_echo "$ac_try_echo") >&5
16436 (eval "$ac_link") 2>&5
16437 ac_status=$?
16438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443 esac
16444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16445 $as_echo "$ac_try_echo") >&5
16446 (eval "$ac_try") 2>&5
16447 ac_status=$?
16448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_c_stack_direction=1
16451 else
16452 $as_echo "$as_me: program exited with status $ac_status" >&5
16453 $as_echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ( exit $ac_status )
16457 ac_cv_c_stack_direction=-1
16459 rm -rf conftest.dSYM
16460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16465 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16466 $as_echo "$ac_cv_c_stack_direction" >&6; }
16468 cat >>confdefs.h <<_ACEOF
16469 #define STACK_DIRECTION $ac_cv_c_stack_direction
16470 _ACEOF
16476 if test x"$ac_cv_func_alloca_works" != xyes; then
16477 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16478 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16479 { (exit 1); exit 1; }; }
16482 # fmod, logb, and frexp are found in -lm on most systems.
16483 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16485 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16486 $as_echo_n "checking for sqrt in -lm... " >&6; }
16487 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16488 $as_echo_n "(cached) " >&6
16489 else
16490 ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lm $LIBS"
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16499 /* Override any GCC internal prototype to avoid an error.
16500 Use char because int might match the return type of a GCC
16501 builtin and then its argument prototype would still apply. */
16502 #ifdef __cplusplus
16503 extern "C"
16504 #endif
16505 char sqrt ();
16507 main ()
16509 return sqrt ();
16511 return 0;
16513 _ACEOF
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (ac_try="$ac_link"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16521 $as_echo "$ac_try_echo") >&5
16522 (eval "$ac_link") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext && {
16532 test "$cross_compiling" = yes ||
16533 $as_test_x conftest$ac_exeext
16534 }; then
16535 ac_cv_lib_m_sqrt=yes
16536 else
16537 $as_echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 ac_cv_lib_m_sqrt=no
16543 rm -rf conftest.dSYM
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545 conftest$ac_exeext conftest.$ac_ext
16546 LIBS=$ac_check_lib_save_LIBS
16548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16549 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16550 if test $ac_cv_lib_m_sqrt = yes; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_LIBM 1
16553 _ACEOF
16555 LIBS="-lm $LIBS"
16560 # Check for mail-locking functions in a "mail" library. Probably this should
16561 # have the same check as for liblockfile below.
16563 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16564 $as_echo_n "checking for maillock in -lmail... " >&6; }
16565 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16566 $as_echo_n "(cached) " >&6
16567 else
16568 ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lmail $LIBS"
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h. */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 char maillock ();
16585 main ()
16587 return maillock ();
16589 return 0;
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597 esac
16598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16599 $as_echo "$ac_try_echo") >&5
16600 (eval "$ac_link") 2>conftest.er1
16601 ac_status=$?
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -f conftest.er1
16604 cat conftest.err >&5
16605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest$ac_exeext && {
16610 test "$cross_compiling" = yes ||
16611 $as_test_x conftest$ac_exeext
16612 }; then
16613 ac_cv_lib_mail_maillock=yes
16614 else
16615 $as_echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_cv_lib_mail_maillock=no
16621 rm -rf conftest.dSYM
16622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16623 conftest$ac_exeext conftest.$ac_ext
16624 LIBS=$ac_check_lib_save_LIBS
16626 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16627 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16628 if test $ac_cv_lib_mail_maillock = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630 #define HAVE_LIBMAIL 1
16631 _ACEOF
16633 LIBS="-lmail $LIBS"
16638 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16639 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16640 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16641 $as_echo_n "(cached) " >&6
16642 else
16643 ac_check_lib_save_LIBS=$LIBS
16644 LIBS="-llockfile $LIBS"
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 /* Override any GCC internal prototype to avoid an error.
16653 Use char because int might match the return type of a GCC
16654 builtin and then its argument prototype would still apply. */
16655 #ifdef __cplusplus
16656 extern "C"
16657 #endif
16658 char maillock ();
16660 main ()
16662 return maillock ();
16664 return 0;
16666 _ACEOF
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (ac_try="$ac_link"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672 esac
16673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16674 $as_echo "$ac_try_echo") >&5
16675 (eval "$ac_link") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest$ac_exeext && {
16685 test "$cross_compiling" = yes ||
16686 $as_test_x conftest$ac_exeext
16687 }; then
16688 ac_cv_lib_lockfile_maillock=yes
16689 else
16690 $as_echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 ac_cv_lib_lockfile_maillock=no
16696 rm -rf conftest.dSYM
16697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16698 conftest$ac_exeext conftest.$ac_ext
16699 LIBS=$ac_check_lib_save_LIBS
16701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16702 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16703 if test $ac_cv_lib_lockfile_maillock = yes; then
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_LIBLOCKFILE 1
16706 _ACEOF
16708 LIBS="-llockfile $LIBS"
16712 # If we have the shared liblockfile, assume we must use it for mail
16713 # locking (e.g. Debian). If we couldn't link against liblockfile
16714 # (no liblockfile.a installed), ensure that we don't need to.
16715 if test "$ac_cv_lib_lockfile_maillock" = no; then
16716 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16717 set dummy liblockfile.so; ac_word=$2
16718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16719 $as_echo_n "checking for $ac_word... " >&6; }
16720 if test "${ac_cv_prog_liblockfile+set}" = set; then
16721 $as_echo_n "(cached) " >&6
16722 else
16723 if test -n "$liblockfile"; then
16724 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16725 else
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16728 for as_dir in $as_dummy
16730 IFS=$as_save_IFS
16731 test -z "$as_dir" && as_dir=.
16732 for ac_exec_ext in '' $ac_executable_extensions; do
16733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16734 ac_cv_prog_liblockfile="yes"
16735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16736 break 2
16738 done
16739 done
16740 IFS=$as_save_IFS
16742 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16745 liblockfile=$ac_cv_prog_liblockfile
16746 if test -n "$liblockfile"; then
16747 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16748 $as_echo "$liblockfile" >&6; }
16749 else
16750 { $as_echo "$as_me:$LINENO: result: no" >&5
16751 $as_echo "no" >&6; }
16755 if test $ac_cv_prog_liblockfile = yes; then
16756 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16757 This probably means that movemail could lose mail.
16758 There may be a \`development' package to install containing liblockfile." >&5
16759 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16760 This probably means that movemail could lose mail.
16761 There may be a \`development' package to install containing liblockfile." >&2;}
16762 { (exit 1); exit 1; }; }
16763 else :
16767 for ac_func in touchlock
16769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16771 $as_echo_n "checking for $ac_func... " >&6; }
16772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16773 $as_echo_n "(cached) " >&6
16774 else
16775 cat >conftest.$ac_ext <<_ACEOF
16776 /* confdefs.h. */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16783 #define $ac_func innocuous_$ac_func
16785 /* System header to define __stub macros and hopefully few prototypes,
16786 which can conflict with char $ac_func (); below.
16787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16788 <limits.h> exists even on freestanding compilers. */
16790 #ifdef __STDC__
16791 # include <limits.h>
16792 #else
16793 # include <assert.h>
16794 #endif
16796 #undef $ac_func
16798 /* Override any GCC internal prototype to avoid an error.
16799 Use char because int might match the return type of a GCC
16800 builtin and then its argument prototype would still apply. */
16801 #ifdef __cplusplus
16802 extern "C"
16803 #endif
16804 char $ac_func ();
16805 /* The GNU C library defines this for functions which it implements
16806 to always fail with ENOSYS. Some functions are actually named
16807 something starting with __ and the normal name is an alias. */
16808 #if defined __stub_$ac_func || defined __stub___$ac_func
16809 choke me
16810 #endif
16813 main ()
16815 return $ac_func ();
16817 return 0;
16819 _ACEOF
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (ac_try="$ac_link"
16822 case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825 esac
16826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16827 $as_echo "$ac_try_echo") >&5
16828 (eval "$ac_link") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest$ac_exeext && {
16838 test "$cross_compiling" = yes ||
16839 $as_test_x conftest$ac_exeext
16840 }; then
16841 eval "$as_ac_var=yes"
16842 else
16843 $as_echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 eval "$as_ac_var=no"
16849 rm -rf conftest.dSYM
16850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16851 conftest$ac_exeext conftest.$ac_ext
16853 ac_res=`eval 'as_val=${'$as_ac_var'}
16854 $as_echo "$as_val"'`
16855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16856 $as_echo "$ac_res" >&6; }
16857 if test `eval 'as_val=${'$as_ac_var'}
16858 $as_echo "$as_val"'` = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16861 _ACEOF
16864 done
16867 for ac_header in maillock.h
16869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16872 $as_echo_n "checking for $ac_header... " >&6; }
16873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874 $as_echo_n "(cached) " >&6
16876 ac_res=`eval 'as_val=${'$as_ac_Header'}
16877 $as_echo "$as_val"'`
16878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16879 $as_echo "$ac_res" >&6; }
16880 else
16881 # Is the header compilable?
16882 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16883 $as_echo_n "checking $ac_header usability... " >&6; }
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 $ac_includes_default
16891 #include <$ac_header>
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898 esac
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.$ac_objext; then
16911 ac_header_compiler=yes
16912 else
16913 $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_header_compiler=no
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16921 $as_echo "$ac_header_compiler" >&6; }
16923 # Is the header present?
16924 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16925 $as_echo_n "checking $ac_header presence... " >&6; }
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 #include <$ac_header>
16933 _ACEOF
16934 if { (ac_try="$ac_cpp conftest.$ac_ext"
16935 case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16938 esac
16939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16940 $as_echo "$ac_try_echo") >&5
16941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16942 ac_status=$?
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
16946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } >/dev/null && {
16948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16949 test ! -s conftest.err
16950 }; then
16951 ac_header_preproc=yes
16952 else
16953 $as_echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16956 ac_header_preproc=no
16959 rm -f conftest.err conftest.$ac_ext
16960 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16961 $as_echo "$ac_header_preproc" >&6; }
16963 # So? What about this header?
16964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16965 yes:no: )
16966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16967 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16969 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16970 ac_header_preproc=yes
16972 no:yes:* )
16973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16974 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16976 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16978 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16980 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16982 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16984 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16987 esac
16988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16989 $as_echo_n "checking for $ac_header... " >&6; }
16990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16991 $as_echo_n "(cached) " >&6
16992 else
16993 eval "$as_ac_Header=\$ac_header_preproc"
16995 ac_res=`eval 'as_val=${'$as_ac_Header'}
16996 $as_echo "$as_val"'`
16997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16998 $as_echo "$ac_res" >&6; }
17001 if test `eval 'as_val=${'$as_ac_Header'}
17002 $as_echo "$as_val"'` = yes; then
17003 cat >>confdefs.h <<_ACEOF
17004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17005 _ACEOF
17009 done
17083 for ac_func in gethostname getdomainname dup2 \
17084 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17085 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17086 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17087 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17088 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17089 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17090 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17091 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17092 cfmakeraw cfsetspeed
17094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17096 $as_echo_n "checking for $ac_func... " >&6; }
17097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17098 $as_echo_n "(cached) " >&6
17099 else
17100 cat >conftest.$ac_ext <<_ACEOF
17101 /* confdefs.h. */
17102 _ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17108 #define $ac_func innocuous_$ac_func
17110 /* System header to define __stub macros and hopefully few prototypes,
17111 which can conflict with char $ac_func (); below.
17112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17113 <limits.h> exists even on freestanding compilers. */
17115 #ifdef __STDC__
17116 # include <limits.h>
17117 #else
17118 # include <assert.h>
17119 #endif
17121 #undef $ac_func
17123 /* Override any GCC internal prototype to avoid an error.
17124 Use char because int might match the return type of a GCC
17125 builtin and then its argument prototype would still apply. */
17126 #ifdef __cplusplus
17127 extern "C"
17128 #endif
17129 char $ac_func ();
17130 /* The GNU C library defines this for functions which it implements
17131 to always fail with ENOSYS. Some functions are actually named
17132 something starting with __ and the normal name is an alias. */
17133 #if defined __stub_$ac_func || defined __stub___$ac_func
17134 choke me
17135 #endif
17138 main ()
17140 return $ac_func ();
17142 return 0;
17144 _ACEOF
17145 rm -f conftest.$ac_objext conftest$ac_exeext
17146 if { (ac_try="$ac_link"
17147 case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17150 esac
17151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17152 $as_echo "$ac_try_echo") >&5
17153 (eval "$ac_link") 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } && {
17160 test -z "$ac_c_werror_flag" ||
17161 test ! -s conftest.err
17162 } && test -s conftest$ac_exeext && {
17163 test "$cross_compiling" = yes ||
17164 $as_test_x conftest$ac_exeext
17165 }; then
17166 eval "$as_ac_var=yes"
17167 else
17168 $as_echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 eval "$as_ac_var=no"
17174 rm -rf conftest.dSYM
17175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17176 conftest$ac_exeext conftest.$ac_ext
17178 ac_res=`eval 'as_val=${'$as_ac_var'}
17179 $as_echo "$as_val"'`
17180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17181 $as_echo "$ac_res" >&6; }
17182 if test `eval 'as_val=${'$as_ac_var'}
17183 $as_echo "$as_val"'` = yes; then
17184 cat >>confdefs.h <<_ACEOF
17185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17186 _ACEOF
17189 done
17193 for ac_header in sys/un.h
17195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 $as_echo_n "checking for $ac_header... " >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200 $as_echo_n "(cached) " >&6
17202 ac_res=`eval 'as_val=${'$as_ac_Header'}
17203 $as_echo "$as_val"'`
17204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17205 $as_echo "$ac_res" >&6; }
17206 else
17207 # Is the header compilable?
17208 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17209 $as_echo_n "checking $ac_header usability... " >&6; }
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 $ac_includes_default
17217 #include <$ac_header>
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (ac_try="$ac_compile"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224 esac
17225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17226 $as_echo "$ac_try_echo") >&5
17227 (eval "$ac_compile") 2>conftest.er1
17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
17232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest.$ac_objext; then
17237 ac_header_compiler=yes
17238 else
17239 $as_echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_header_compiler=no
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17247 $as_echo "$ac_header_compiler" >&6; }
17249 # Is the header present?
17250 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17251 $as_echo_n "checking $ac_header presence... " >&6; }
17252 cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h. */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 #include <$ac_header>
17259 _ACEOF
17260 if { (ac_try="$ac_cpp conftest.$ac_ext"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264 esac
17265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17266 $as_echo "$ac_try_echo") >&5
17267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } >/dev/null && {
17274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17275 test ! -s conftest.err
17276 }; then
17277 ac_header_preproc=yes
17278 else
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_header_preproc=no
17285 rm -f conftest.err conftest.$ac_ext
17286 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17287 $as_echo "$ac_header_preproc" >&6; }
17289 # So? What about this header?
17290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17291 yes:no: )
17292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17293 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17295 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17296 ac_header_preproc=yes
17298 no:yes:* )
17299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17300 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17302 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17304 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17306 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17310 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17313 esac
17314 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17315 $as_echo_n "checking for $ac_header... " >&6; }
17316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17317 $as_echo_n "(cached) " >&6
17318 else
17319 eval "$as_ac_Header=\$ac_header_preproc"
17321 ac_res=`eval 'as_val=${'$as_ac_Header'}
17322 $as_echo "$as_val"'`
17323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17324 $as_echo "$ac_res" >&6; }
17327 if test `eval 'as_val=${'$as_ac_Header'}
17328 $as_echo "$as_val"'` = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17331 _ACEOF
17335 done
17342 for ac_header in $ac_header_list
17344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17347 $as_echo_n "checking for $ac_header... " >&6; }
17348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17349 $as_echo_n "(cached) " >&6
17351 ac_res=`eval 'as_val=${'$as_ac_Header'}
17352 $as_echo "$as_val"'`
17353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17354 $as_echo "$ac_res" >&6; }
17355 else
17356 # Is the header compilable?
17357 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17358 $as_echo_n "checking $ac_header usability... " >&6; }
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h. */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 $ac_includes_default
17366 #include <$ac_header>
17367 _ACEOF
17368 rm -f conftest.$ac_objext
17369 if { (ac_try="$ac_compile"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373 esac
17374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17375 $as_echo "$ac_try_echo") >&5
17376 (eval "$ac_compile") 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && {
17383 test -z "$ac_c_werror_flag" ||
17384 test ! -s conftest.err
17385 } && test -s conftest.$ac_objext; then
17386 ac_header_compiler=yes
17387 else
17388 $as_echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ac_header_compiler=no
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17396 $as_echo "$ac_header_compiler" >&6; }
17398 # Is the header present?
17399 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17400 $as_echo_n "checking $ac_header presence... " >&6; }
17401 cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h. */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 #include <$ac_header>
17408 _ACEOF
17409 if { (ac_try="$ac_cpp conftest.$ac_ext"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17413 esac
17414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17415 $as_echo "$ac_try_echo") >&5
17416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } >/dev/null && {
17423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 }; then
17426 ac_header_preproc=yes
17427 else
17428 $as_echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_header_preproc=no
17434 rm -f conftest.err conftest.$ac_ext
17435 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17436 $as_echo "$ac_header_preproc" >&6; }
17438 # So? What about this header?
17439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17440 yes:no: )
17441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17442 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17444 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17445 ac_header_preproc=yes
17447 no:yes:* )
17448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17449 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17451 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17453 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17455 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17459 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17462 esac
17463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17464 $as_echo_n "checking for $ac_header... " >&6; }
17465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17466 $as_echo_n "(cached) " >&6
17467 else
17468 eval "$as_ac_Header=\$ac_header_preproc"
17470 ac_res=`eval 'as_val=${'$as_ac_Header'}
17471 $as_echo "$as_val"'`
17472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17473 $as_echo "$ac_res" >&6; }
17476 if test `eval 'as_val=${'$as_ac_Header'}
17477 $as_echo "$as_val"'` = yes; then
17478 cat >>confdefs.h <<_ACEOF
17479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17480 _ACEOF
17484 done
17494 for ac_func in $ac_func_list
17496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17497 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17498 $as_echo_n "checking for $ac_func... " >&6; }
17499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17500 $as_echo_n "(cached) " >&6
17501 else
17502 cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h. */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17510 #define $ac_func innocuous_$ac_func
17512 /* System header to define __stub macros and hopefully few prototypes,
17513 which can conflict with char $ac_func (); below.
17514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17515 <limits.h> exists even on freestanding compilers. */
17517 #ifdef __STDC__
17518 # include <limits.h>
17519 #else
17520 # include <assert.h>
17521 #endif
17523 #undef $ac_func
17525 /* Override any GCC internal prototype to avoid an error.
17526 Use char because int might match the return type of a GCC
17527 builtin and then its argument prototype would still apply. */
17528 #ifdef __cplusplus
17529 extern "C"
17530 #endif
17531 char $ac_func ();
17532 /* The GNU C library defines this for functions which it implements
17533 to always fail with ENOSYS. Some functions are actually named
17534 something starting with __ and the normal name is an alias. */
17535 #if defined __stub_$ac_func || defined __stub___$ac_func
17536 choke me
17537 #endif
17540 main ()
17542 return $ac_func ();
17544 return 0;
17546 _ACEOF
17547 rm -f conftest.$ac_objext conftest$ac_exeext
17548 if { (ac_try="$ac_link"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552 esac
17553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17554 $as_echo "$ac_try_echo") >&5
17555 (eval "$ac_link") 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest$ac_exeext && {
17565 test "$cross_compiling" = yes ||
17566 $as_test_x conftest$ac_exeext
17567 }; then
17568 eval "$as_ac_var=yes"
17569 else
17570 $as_echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 eval "$as_ac_var=no"
17576 rm -rf conftest.dSYM
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17580 ac_res=`eval 'as_val=${'$as_ac_var'}
17581 $as_echo "$as_val"'`
17582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17583 $as_echo "$ac_res" >&6; }
17584 if test `eval 'as_val=${'$as_ac_var'}
17585 $as_echo "$as_val"'` = yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17588 _ACEOF
17591 done
17609 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17610 $as_echo_n "checking for working mktime... " >&6; }
17611 if test "${ac_cv_func_working_mktime+set}" = set; then
17612 $as_echo_n "(cached) " >&6
17613 else
17614 if test "$cross_compiling" = yes; then
17615 ac_cv_func_working_mktime=no
17616 else
17617 cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h. */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* Test program from Paul Eggert and Tony Leneis. */
17624 #ifdef TIME_WITH_SYS_TIME
17625 # include <sys/time.h>
17626 # include <time.h>
17627 #else
17628 # ifdef HAVE_SYS_TIME_H
17629 # include <sys/time.h>
17630 # else
17631 # include <time.h>
17632 # endif
17633 #endif
17635 #include <limits.h>
17636 #include <stdlib.h>
17638 #ifdef HAVE_UNISTD_H
17639 # include <unistd.h>
17640 #endif
17642 #ifndef HAVE_ALARM
17643 # define alarm(X) /* empty */
17644 #endif
17646 /* Work around redefinition to rpl_putenv by other config tests. */
17647 #undef putenv
17649 static time_t time_t_max;
17650 static time_t time_t_min;
17652 /* Values we'll use to set the TZ environment variable. */
17653 static char *tz_strings[] = {
17654 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17655 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17657 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17659 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17660 Based on a problem report from Andreas Jaeger. */
17661 static int
17662 spring_forward_gap ()
17664 /* glibc (up to about 1998-10-07) failed this test. */
17665 struct tm tm;
17667 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17668 instead of "TZ=America/Vancouver" in order to detect the bug even
17669 on systems that don't support the Olson extension, or don't have the
17670 full zoneinfo tables installed. */
17671 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17673 tm.tm_year = 98;
17674 tm.tm_mon = 3;
17675 tm.tm_mday = 5;
17676 tm.tm_hour = 2;
17677 tm.tm_min = 0;
17678 tm.tm_sec = 0;
17679 tm.tm_isdst = -1;
17680 return mktime (&tm) != (time_t) -1;
17683 static int
17684 mktime_test1 (now)
17685 time_t now;
17687 struct tm *lt;
17688 return ! (lt = localtime (&now)) || mktime (lt) == now;
17691 static int
17692 mktime_test (now)
17693 time_t now;
17695 return (mktime_test1 (now)
17696 && mktime_test1 ((time_t) (time_t_max - now))
17697 && mktime_test1 ((time_t) (time_t_min + now)));
17700 static int
17701 irix_6_4_bug ()
17703 /* Based on code from Ariel Faigon. */
17704 struct tm tm;
17705 tm.tm_year = 96;
17706 tm.tm_mon = 3;
17707 tm.tm_mday = 0;
17708 tm.tm_hour = 0;
17709 tm.tm_min = 0;
17710 tm.tm_sec = 0;
17711 tm.tm_isdst = -1;
17712 mktime (&tm);
17713 return tm.tm_mon == 2 && tm.tm_mday == 31;
17716 static int
17717 bigtime_test (j)
17718 int j;
17720 struct tm tm;
17721 time_t now;
17722 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17723 now = mktime (&tm);
17724 if (now != (time_t) -1)
17726 struct tm *lt = localtime (&now);
17727 if (! (lt
17728 && lt->tm_year == tm.tm_year
17729 && lt->tm_mon == tm.tm_mon
17730 && lt->tm_mday == tm.tm_mday
17731 && lt->tm_hour == tm.tm_hour
17732 && lt->tm_min == tm.tm_min
17733 && lt->tm_sec == tm.tm_sec
17734 && lt->tm_yday == tm.tm_yday
17735 && lt->tm_wday == tm.tm_wday
17736 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17737 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17738 return 0;
17740 return 1;
17743 static int
17744 year_2050_test ()
17746 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17747 ignoring leap seconds. */
17748 unsigned long int answer = 2527315200UL;
17750 struct tm tm;
17751 time_t t;
17752 tm.tm_year = 2050 - 1900;
17753 tm.tm_mon = 2 - 1;
17754 tm.tm_mday = 1;
17755 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17756 tm.tm_isdst = -1;
17758 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17759 instead of "TZ=America/Vancouver" in order to detect the bug even
17760 on systems that don't support the Olson extension, or don't have the
17761 full zoneinfo tables installed. */
17762 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17764 t = mktime (&tm);
17766 /* Check that the result is either a failure, or close enough
17767 to the correct answer that we can assume the discrepancy is
17768 due to leap seconds. */
17769 return (t == (time_t) -1
17770 || (0 < t && answer - 120 <= t && t <= answer + 120));
17774 main ()
17776 time_t t, delta;
17777 int i, j;
17779 /* This test makes some buggy mktime implementations loop.
17780 Give up after 60 seconds; a mktime slower than that
17781 isn't worth using anyway. */
17782 alarm (60);
17784 for (;;)
17786 t = (time_t_max << 1) + 1;
17787 if (t <= time_t_max)
17788 break;
17789 time_t_max = t;
17791 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17793 delta = time_t_max / 997; /* a suitable prime number */
17794 for (i = 0; i < N_STRINGS; i++)
17796 if (tz_strings[i])
17797 putenv (tz_strings[i]);
17799 for (t = 0; t <= time_t_max - delta; t += delta)
17800 if (! mktime_test (t))
17801 return 1;
17802 if (! (mktime_test ((time_t) 1)
17803 && mktime_test ((time_t) (60 * 60))
17804 && mktime_test ((time_t) (60 * 60 * 24))))
17805 return 1;
17807 for (j = 1; ; j <<= 1)
17808 if (! bigtime_test (j))
17809 return 1;
17810 else if (INT_MAX / 2 < j)
17811 break;
17812 if (! bigtime_test (INT_MAX))
17813 return 1;
17815 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17817 _ACEOF
17818 rm -f conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17823 esac
17824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826 (eval "$ac_link") 2>&5
17827 ac_status=$?
17828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17830 { (case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833 esac
17834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17835 $as_echo "$ac_try_echo") >&5
17836 (eval "$ac_try") 2>&5
17837 ac_status=$?
17838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_cv_func_working_mktime=yes
17841 else
17842 $as_echo "$as_me: program exited with status $ac_status" >&5
17843 $as_echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ( exit $ac_status )
17847 ac_cv_func_working_mktime=no
17849 rm -rf conftest.dSYM
17850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17855 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17856 $as_echo "$ac_cv_func_working_mktime" >&6; }
17857 if test $ac_cv_func_working_mktime = no; then
17858 case " $LIBOBJS " in
17859 *" mktime.$ac_objext "* ) ;;
17860 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17862 esac
17866 if test "$ac_cv_func_working_mktime" = no; then
17868 cat >>confdefs.h <<\_ACEOF
17869 #define BROKEN_MKTIME 1
17870 _ACEOF
17874 ac_have_func=no # yes means we've found a way to get the load average.
17876 # Make sure getloadavg.c is where it belongs, at configure-time.
17877 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17878 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17879 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17880 { (exit 1); exit 1; }; }
17882 ac_save_LIBS=$LIBS
17884 # Check for getloadavg, but be sure not to touch the cache variable.
17885 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17886 $as_echo_n "checking for getloadavg... " >&6; }
17887 if test "${ac_cv_func_getloadavg+set}" = set; then
17888 $as_echo_n "(cached) " >&6
17889 else
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17898 #define getloadavg innocuous_getloadavg
17900 /* System header to define __stub macros and hopefully few prototypes,
17901 which can conflict with char getloadavg (); below.
17902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17903 <limits.h> exists even on freestanding compilers. */
17905 #ifdef __STDC__
17906 # include <limits.h>
17907 #else
17908 # include <assert.h>
17909 #endif
17911 #undef getloadavg
17913 /* Override any GCC internal prototype to avoid an error.
17914 Use char because int might match the return type of a GCC
17915 builtin and then its argument prototype would still apply. */
17916 #ifdef __cplusplus
17917 extern "C"
17918 #endif
17919 char getloadavg ();
17920 /* The GNU C library defines this for functions which it implements
17921 to always fail with ENOSYS. Some functions are actually named
17922 something starting with __ and the normal name is an alias. */
17923 #if defined __stub_getloadavg || defined __stub___getloadavg
17924 choke me
17925 #endif
17928 main ()
17930 return getloadavg ();
17932 return 0;
17934 _ACEOF
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (ac_try="$ac_link"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940 esac
17941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17942 $as_echo "$ac_try_echo") >&5
17943 (eval "$ac_link") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest$ac_exeext && {
17953 test "$cross_compiling" = yes ||
17954 $as_test_x conftest$ac_exeext
17955 }; then
17956 ac_cv_func_getloadavg=yes
17957 else
17958 $as_echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_func_getloadavg=no
17964 rm -rf conftest.dSYM
17965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17966 conftest$ac_exeext conftest.$ac_ext
17968 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17969 $as_echo "$ac_cv_func_getloadavg" >&6; }
17970 if test $ac_cv_func_getloadavg = yes; then
17971 exit 0
17972 else
17973 exit 1
17975 ) && ac_have_func=yes
17977 # On HPUX9, an unprivileged user can get load averages through this function.
17979 for ac_func in pstat_getdynamic
17981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17982 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17983 $as_echo_n "checking for $ac_func... " >&6; }
17984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17985 $as_echo_n "(cached) " >&6
17986 else
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17995 #define $ac_func innocuous_$ac_func
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char $ac_func (); below.
17999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000 <limits.h> exists even on freestanding compilers. */
18002 #ifdef __STDC__
18003 # include <limits.h>
18004 #else
18005 # include <assert.h>
18006 #endif
18008 #undef $ac_func
18010 /* Override any GCC internal prototype to avoid an error.
18011 Use char because int might match the return type of a GCC
18012 builtin and then its argument prototype would still apply. */
18013 #ifdef __cplusplus
18014 extern "C"
18015 #endif
18016 char $ac_func ();
18017 /* The GNU C library defines this for functions which it implements
18018 to always fail with ENOSYS. Some functions are actually named
18019 something starting with __ and the normal name is an alias. */
18020 #if defined __stub_$ac_func || defined __stub___$ac_func
18021 choke me
18022 #endif
18025 main ()
18027 return $ac_func ();
18029 return 0;
18031 _ACEOF
18032 rm -f conftest.$ac_objext conftest$ac_exeext
18033 if { (ac_try="$ac_link"
18034 case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18037 esac
18038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18039 $as_echo "$ac_try_echo") >&5
18040 (eval "$ac_link") 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && {
18047 test -z "$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 } && test -s conftest$ac_exeext && {
18050 test "$cross_compiling" = yes ||
18051 $as_test_x conftest$ac_exeext
18052 }; then
18053 eval "$as_ac_var=yes"
18054 else
18055 $as_echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 eval "$as_ac_var=no"
18061 rm -rf conftest.dSYM
18062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18063 conftest$ac_exeext conftest.$ac_ext
18065 ac_res=`eval 'as_val=${'$as_ac_var'}
18066 $as_echo "$as_val"'`
18067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18068 $as_echo "$ac_res" >&6; }
18069 if test `eval 'as_val=${'$as_ac_var'}
18070 $as_echo "$as_val"'` = yes; then
18071 cat >>confdefs.h <<_ACEOF
18072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18073 _ACEOF
18076 done
18079 # Solaris has libkstat which does not require root.
18081 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18082 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18083 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18084 $as_echo_n "(cached) " >&6
18085 else
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lkstat $LIBS"
18088 cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h. */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18095 /* Override any GCC internal prototype to avoid an error.
18096 Use char because int might match the return type of a GCC
18097 builtin and then its argument prototype would still apply. */
18098 #ifdef __cplusplus
18099 extern "C"
18100 #endif
18101 char kstat_open ();
18103 main ()
18105 return kstat_open ();
18107 return 0;
18109 _ACEOF
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (ac_try="$ac_link"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115 esac
18116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18117 $as_echo "$ac_try_echo") >&5
18118 (eval "$ac_link") 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && {
18125 test -z "$ac_c_werror_flag" ||
18126 test ! -s conftest.err
18127 } && test -s conftest$ac_exeext && {
18128 test "$cross_compiling" = yes ||
18129 $as_test_x conftest$ac_exeext
18130 }; then
18131 ac_cv_lib_kstat_kstat_open=yes
18132 else
18133 $as_echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_lib_kstat_kstat_open=no
18139 rm -rf conftest.dSYM
18140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18141 conftest$ac_exeext conftest.$ac_ext
18142 LIBS=$ac_check_lib_save_LIBS
18144 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18145 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18146 if test $ac_cv_lib_kstat_kstat_open = yes; then
18147 cat >>confdefs.h <<_ACEOF
18148 #define HAVE_LIBKSTAT 1
18149 _ACEOF
18151 LIBS="-lkstat $LIBS"
18155 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18157 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18158 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18159 # to get the right answer into the cache.
18160 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18161 if test $ac_have_func = no; then
18162 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18163 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18164 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18165 $as_echo_n "(cached) " >&6
18166 else
18167 ac_check_lib_save_LIBS=$LIBS
18168 LIBS="-lelf $LIBS"
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18179 #ifdef __cplusplus
18180 extern "C"
18181 #endif
18182 char elf_begin ();
18184 main ()
18186 return elf_begin ();
18188 return 0;
18190 _ACEOF
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18198 $as_echo "$ac_try_echo") >&5
18199 (eval "$ac_link") 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } && {
18206 test -z "$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18208 } && test -s conftest$ac_exeext && {
18209 test "$cross_compiling" = yes ||
18210 $as_test_x conftest$ac_exeext
18211 }; then
18212 ac_cv_lib_elf_elf_begin=yes
18213 else
18214 $as_echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18217 ac_cv_lib_elf_elf_begin=no
18220 rm -rf conftest.dSYM
18221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18222 conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18226 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18227 if test $ac_cv_lib_elf_elf_begin = yes; then
18228 LIBS="-lelf $LIBS"
18232 if test $ac_have_func = no; then
18233 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18234 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18235 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18236 $as_echo_n "(cached) " >&6
18237 else
18238 ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-lkvm $LIBS"
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18247 /* Override any GCC internal prototype to avoid an error.
18248 Use char because int might match the return type of a GCC
18249 builtin and then its argument prototype would still apply. */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 char kvm_open ();
18255 main ()
18257 return kvm_open ();
18259 return 0;
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18267 esac
18268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18269 $as_echo "$ac_try_echo") >&5
18270 (eval "$ac_link") 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } && {
18277 test -z "$ac_c_werror_flag" ||
18278 test ! -s conftest.err
18279 } && test -s conftest$ac_exeext && {
18280 test "$cross_compiling" = yes ||
18281 $as_test_x conftest$ac_exeext
18282 }; then
18283 ac_cv_lib_kvm_kvm_open=yes
18284 else
18285 $as_echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_lib_kvm_kvm_open=no
18291 rm -rf conftest.dSYM
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18296 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18297 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18298 if test $ac_cv_lib_kvm_kvm_open = yes; then
18299 LIBS="-lkvm $LIBS"
18302 # Check for the 4.4BSD definition of getloadavg.
18303 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18304 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18305 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18306 $as_echo_n "(cached) " >&6
18307 else
18308 ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lutil $LIBS"
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18320 #ifdef __cplusplus
18321 extern "C"
18322 #endif
18323 char getloadavg ();
18325 main ()
18327 return getloadavg ();
18329 return 0;
18331 _ACEOF
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337 esac
18338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18339 $as_echo "$ac_try_echo") >&5
18340 (eval "$ac_link") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext && {
18350 test "$cross_compiling" = yes ||
18351 $as_test_x conftest$ac_exeext
18352 }; then
18353 ac_cv_lib_util_getloadavg=yes
18354 else
18355 $as_echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_lib_util_getloadavg=no
18361 rm -rf conftest.dSYM
18362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18363 conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18367 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18368 if test $ac_cv_lib_util_getloadavg = yes; then
18369 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18374 if test $ac_have_func = no; then
18375 # There is a commonly available library for RS/6000 AIX.
18376 # Since it is not a standard part of AIX, it might be installed locally.
18377 ac_getloadavg_LIBS=$LIBS
18378 LIBS="-L/usr/local/lib $LIBS"
18379 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18380 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18381 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18382 $as_echo_n "(cached) " >&6
18383 else
18384 ac_check_lib_save_LIBS=$LIBS
18385 LIBS="-lgetloadavg $LIBS"
18386 cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h. */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18396 #ifdef __cplusplus
18397 extern "C"
18398 #endif
18399 char getloadavg ();
18401 main ()
18403 return getloadavg ();
18405 return 0;
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413 esac
18414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18415 $as_echo "$ac_try_echo") >&5
18416 (eval "$ac_link") 2>conftest.er1
18417 ac_status=$?
18418 grep -v '^ *+' conftest.er1 >conftest.err
18419 rm -f conftest.er1
18420 cat conftest.err >&5
18421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } && {
18423 test -z "$ac_c_werror_flag" ||
18424 test ! -s conftest.err
18425 } && test -s conftest$ac_exeext && {
18426 test "$cross_compiling" = yes ||
18427 $as_test_x conftest$ac_exeext
18428 }; then
18429 ac_cv_lib_getloadavg_getloadavg=yes
18430 else
18431 $as_echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 ac_cv_lib_getloadavg_getloadavg=no
18437 rm -rf conftest.dSYM
18438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439 conftest$ac_exeext conftest.$ac_ext
18440 LIBS=$ac_check_lib_save_LIBS
18442 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18443 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18444 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18445 LIBS="-lgetloadavg $LIBS"
18446 else
18447 LIBS=$ac_getloadavg_LIBS
18452 # Make sure it is really in the library, if we think we found it,
18453 # otherwise set up the replacement function.
18455 for ac_func in getloadavg
18457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18458 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18459 $as_echo_n "checking for $ac_func... " >&6; }
18460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18461 $as_echo_n "(cached) " >&6
18462 else
18463 cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18471 #define $ac_func innocuous_$ac_func
18473 /* System header to define __stub macros and hopefully few prototypes,
18474 which can conflict with char $ac_func (); below.
18475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476 <limits.h> exists even on freestanding compilers. */
18478 #ifdef __STDC__
18479 # include <limits.h>
18480 #else
18481 # include <assert.h>
18482 #endif
18484 #undef $ac_func
18486 /* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 char $ac_func ();
18493 /* The GNU C library defines this for functions which it implements
18494 to always fail with ENOSYS. Some functions are actually named
18495 something starting with __ and the normal name is an alias. */
18496 #if defined __stub_$ac_func || defined __stub___$ac_func
18497 choke me
18498 #endif
18501 main ()
18503 return $ac_func ();
18505 return 0;
18507 _ACEOF
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513 esac
18514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18515 $as_echo "$ac_try_echo") >&5
18516 (eval "$ac_link") 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_c_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext && {
18526 test "$cross_compiling" = yes ||
18527 $as_test_x conftest$ac_exeext
18528 }; then
18529 eval "$as_ac_var=yes"
18530 else
18531 $as_echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 eval "$as_ac_var=no"
18537 rm -rf conftest.dSYM
18538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18539 conftest$ac_exeext conftest.$ac_ext
18541 ac_res=`eval 'as_val=${'$as_ac_var'}
18542 $as_echo "$as_val"'`
18543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18544 $as_echo "$ac_res" >&6; }
18545 if test `eval 'as_val=${'$as_ac_var'}
18546 $as_echo "$as_val"'` = yes; then
18547 cat >>confdefs.h <<_ACEOF
18548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18549 _ACEOF
18551 else
18552 case " $LIBOBJS " in
18553 *" getloadavg.$ac_objext "* ) ;;
18554 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18556 esac
18559 cat >>confdefs.h <<\_ACEOF
18560 #define C_GETLOADAVG 1
18561 _ACEOF
18563 # Figure out what our getloadavg.c needs.
18564 ac_have_func=no
18565 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18566 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18567 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18568 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18569 $as_echo_n "(cached) " >&6
18571 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18572 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18573 else
18574 # Is the header compilable?
18575 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18576 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 $ac_includes_default
18584 #include <sys/dg_sys_info.h>
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591 esac
18592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18593 $as_echo "$ac_try_echo") >&5
18594 (eval "$ac_compile") 2>conftest.er1
18595 ac_status=$?
18596 grep -v '^ *+' conftest.er1 >conftest.err
18597 rm -f conftest.er1
18598 cat conftest.err >&5
18599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } && {
18601 test -z "$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18603 } && test -s conftest.$ac_objext; then
18604 ac_header_compiler=yes
18605 else
18606 $as_echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18609 ac_header_compiler=no
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18614 $as_echo "$ac_header_compiler" >&6; }
18616 # Is the header present?
18617 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18618 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h. */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 #include <sys/dg_sys_info.h>
18626 _ACEOF
18627 if { (ac_try="$ac_cpp conftest.$ac_ext"
18628 case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18631 esac
18632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18633 $as_echo "$ac_try_echo") >&5
18634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18635 ac_status=$?
18636 grep -v '^ *+' conftest.er1 >conftest.err
18637 rm -f conftest.er1
18638 cat conftest.err >&5
18639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } >/dev/null && {
18641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18642 test ! -s conftest.err
18643 }; then
18644 ac_header_preproc=yes
18645 else
18646 $as_echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_header_preproc=no
18652 rm -f conftest.err conftest.$ac_ext
18653 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18654 $as_echo "$ac_header_preproc" >&6; }
18656 # So? What about this header?
18657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18658 yes:no: )
18659 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18660 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18661 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18662 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18663 ac_header_preproc=yes
18665 no:yes:* )
18666 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18667 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18668 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18669 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18670 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18671 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18672 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18673 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18674 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18675 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18676 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18677 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18680 esac
18681 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18682 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18683 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18684 $as_echo_n "(cached) " >&6
18685 else
18686 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18689 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18692 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18693 ac_have_func=yes
18695 cat >>confdefs.h <<\_ACEOF
18696 #define DGUX 1
18697 _ACEOF
18700 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18701 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18702 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18703 $as_echo_n "(cached) " >&6
18704 else
18705 ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-ldgc $LIBS"
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18714 /* Override any GCC internal prototype to avoid an error.
18715 Use char because int might match the return type of a GCC
18716 builtin and then its argument prototype would still apply. */
18717 #ifdef __cplusplus
18718 extern "C"
18719 #endif
18720 char dg_sys_info ();
18722 main ()
18724 return dg_sys_info ();
18726 return 0;
18728 _ACEOF
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18734 esac
18735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18736 $as_echo "$ac_try_echo") >&5
18737 (eval "$ac_link") 2>conftest.er1
18738 ac_status=$?
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
18742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest$ac_exeext && {
18747 test "$cross_compiling" = yes ||
18748 $as_test_x conftest$ac_exeext
18749 }; then
18750 ac_cv_lib_dgc_dg_sys_info=yes
18751 else
18752 $as_echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 ac_cv_lib_dgc_dg_sys_info=no
18758 rm -rf conftest.dSYM
18759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18760 conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18764 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18765 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_LIBDGC 1
18768 _ACEOF
18770 LIBS="-ldgc $LIBS"
18778 if test "${ac_cv_header_locale_h+set}" = set; then
18779 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18780 $as_echo_n "checking for locale.h... " >&6; }
18781 if test "${ac_cv_header_locale_h+set}" = set; then
18782 $as_echo_n "(cached) " >&6
18784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18785 $as_echo "$ac_cv_header_locale_h" >&6; }
18786 else
18787 # Is the header compilable?
18788 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18789 $as_echo_n "checking locale.h usability... " >&6; }
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h. */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 $ac_includes_default
18797 #include <locale.h>
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (ac_try="$ac_compile"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804 esac
18805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18806 $as_echo "$ac_try_echo") >&5
18807 (eval "$ac_compile") 2>conftest.er1
18808 ac_status=$?
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
18812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest.$ac_objext; then
18817 ac_header_compiler=yes
18818 else
18819 $as_echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_header_compiler=no
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 $as_echo "$ac_header_compiler" >&6; }
18829 # Is the header present?
18830 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18831 $as_echo_n "checking locale.h presence... " >&6; }
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <locale.h>
18839 _ACEOF
18840 if { (ac_try="$ac_cpp conftest.$ac_ext"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844 esac
18845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18846 $as_echo "$ac_try_echo") >&5
18847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } >/dev/null && {
18854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 }; then
18857 ac_header_preproc=yes
18858 else
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_header_preproc=no
18865 rm -f conftest.err conftest.$ac_ext
18866 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 $as_echo "$ac_header_preproc" >&6; }
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871 yes:no: )
18872 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18873 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18875 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18876 ac_header_preproc=yes
18878 no:yes:* )
18879 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18880 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18881 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18882 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18883 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18884 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18886 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18887 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18888 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18889 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18890 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18893 esac
18894 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18895 $as_echo_n "checking for locale.h... " >&6; }
18896 if test "${ac_cv_header_locale_h+set}" = set; then
18897 $as_echo_n "(cached) " >&6
18898 else
18899 ac_cv_header_locale_h=$ac_header_preproc
18901 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18902 $as_echo "$ac_cv_header_locale_h" >&6; }
18908 for ac_func in setlocale
18910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18911 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18912 $as_echo_n "checking for $ac_func... " >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 $as_echo_n "(cached) " >&6
18915 else
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18931 #ifdef __STDC__
18932 # include <limits.h>
18933 #else
18934 # include <assert.h>
18935 #endif
18937 #undef $ac_func
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18942 #ifdef __cplusplus
18943 extern "C"
18944 #endif
18945 char $ac_func ();
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18950 choke me
18951 #endif
18954 main ()
18956 return $ac_func ();
18958 return 0;
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966 esac
18967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18968 $as_echo "$ac_try_echo") >&5
18969 (eval "$ac_link") 2>conftest.er1
18970 ac_status=$?
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
18974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } && {
18976 test -z "$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 } && test -s conftest$ac_exeext && {
18979 test "$cross_compiling" = yes ||
18980 $as_test_x conftest$ac_exeext
18981 }; then
18982 eval "$as_ac_var=yes"
18983 else
18984 $as_echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 eval "$as_ac_var=no"
18990 rm -rf conftest.dSYM
18991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18992 conftest$ac_exeext conftest.$ac_ext
18994 ac_res=`eval 'as_val=${'$as_ac_var'}
18995 $as_echo "$as_val"'`
18996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18997 $as_echo "$ac_res" >&6; }
18998 if test `eval 'as_val=${'$as_ac_var'}
18999 $as_echo "$as_val"'` = yes; then
19000 cat >>confdefs.h <<_ACEOF
19001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19002 _ACEOF
19005 done
19008 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19009 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19010 # Irix 4.0.5F has the header but not the library.
19011 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19012 ac_have_func=yes
19014 cat >>confdefs.h <<\_ACEOF
19015 #define SVR4 1
19016 _ACEOF
19020 if test $ac_have_func = no; then
19021 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19022 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19023 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19024 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19025 $as_echo_n "(cached) " >&6
19027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19028 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19029 else
19030 # Is the header compilable?
19031 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19032 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 $ac_includes_default
19040 #include <inq_stats/cpustats.h>
19041 _ACEOF
19042 rm -f conftest.$ac_objext
19043 if { (ac_try="$ac_compile"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19047 esac
19048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19049 $as_echo "$ac_try_echo") >&5
19050 (eval "$ac_compile") 2>conftest.er1
19051 ac_status=$?
19052 grep -v '^ *+' conftest.er1 >conftest.err
19053 rm -f conftest.er1
19054 cat conftest.err >&5
19055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } && {
19057 test -z "$ac_c_werror_flag" ||
19058 test ! -s conftest.err
19059 } && test -s conftest.$ac_objext; then
19060 ac_header_compiler=yes
19061 else
19062 $as_echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_header_compiler=no
19068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19070 $as_echo "$ac_header_compiler" >&6; }
19072 # Is the header present?
19073 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19074 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19075 cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h. */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 #include <inq_stats/cpustats.h>
19082 _ACEOF
19083 if { (ac_try="$ac_cpp conftest.$ac_ext"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087 esac
19088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19089 $as_echo "$ac_try_echo") >&5
19090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19091 ac_status=$?
19092 grep -v '^ *+' conftest.er1 >conftest.err
19093 rm -f conftest.er1
19094 cat conftest.err >&5
19095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } >/dev/null && {
19097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19099 }; then
19100 ac_header_preproc=yes
19101 else
19102 $as_echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_header_preproc=no
19108 rm -f conftest.err conftest.$ac_ext
19109 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19110 $as_echo "$ac_header_preproc" >&6; }
19112 # So? What about this header?
19113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19114 yes:no: )
19115 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19116 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19117 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19118 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19119 ac_header_preproc=yes
19121 no:yes:* )
19122 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19123 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19124 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19125 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19126 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19127 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19128 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19129 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19130 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19131 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19132 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19133 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19136 esac
19137 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19138 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19139 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19140 $as_echo_n "(cached) " >&6
19141 else
19142 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19145 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19148 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19149 ac_have_func=yes
19151 cat >>confdefs.h <<\_ACEOF
19152 #define UMAX 1
19153 _ACEOF
19156 cat >>confdefs.h <<\_ACEOF
19157 #define UMAX4_3 1
19158 _ACEOF
19165 if test $ac_have_func = no; then
19166 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19167 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19168 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19169 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19170 $as_echo_n "(cached) " >&6
19172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19173 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19174 else
19175 # Is the header compilable?
19176 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19177 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19178 cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h. */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 $ac_includes_default
19185 #include <sys/cpustats.h>
19186 _ACEOF
19187 rm -f conftest.$ac_objext
19188 if { (ac_try="$ac_compile"
19189 case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192 esac
19193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19194 $as_echo "$ac_try_echo") >&5
19195 (eval "$ac_compile") 2>conftest.er1
19196 ac_status=$?
19197 grep -v '^ *+' conftest.er1 >conftest.err
19198 rm -f conftest.er1
19199 cat conftest.err >&5
19200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest.$ac_objext; then
19205 ac_header_compiler=yes
19206 else
19207 $as_echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 ac_header_compiler=no
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19215 $as_echo "$ac_header_compiler" >&6; }
19217 # Is the header present?
19218 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19219 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19220 cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h. */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19226 #include <sys/cpustats.h>
19227 _ACEOF
19228 if { (ac_try="$ac_cpp conftest.$ac_ext"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232 esac
19233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19234 $as_echo "$ac_try_echo") >&5
19235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19236 ac_status=$?
19237 grep -v '^ *+' conftest.er1 >conftest.err
19238 rm -f conftest.er1
19239 cat conftest.err >&5
19240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } >/dev/null && {
19242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19243 test ! -s conftest.err
19244 }; then
19245 ac_header_preproc=yes
19246 else
19247 $as_echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 ac_header_preproc=no
19253 rm -f conftest.err conftest.$ac_ext
19254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19255 $as_echo "$ac_header_preproc" >&6; }
19257 # So? What about this header?
19258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19259 yes:no: )
19260 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19261 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19262 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19263 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19264 ac_header_preproc=yes
19266 no:yes:* )
19267 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19268 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19269 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19270 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19271 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19272 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19273 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19274 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19275 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19276 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19277 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19278 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19281 esac
19282 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19283 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19284 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19285 $as_echo_n "(cached) " >&6
19286 else
19287 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19289 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19290 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19293 if test $ac_cv_header_sys_cpustats_h = yes; then
19294 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19295 #define UMAX 1
19296 _ACEOF
19303 if test $ac_have_func = no; then
19305 for ac_header in mach/mach.h
19307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19310 $as_echo_n "checking for $ac_header... " >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19312 $as_echo_n "(cached) " >&6
19314 ac_res=`eval 'as_val=${'$as_ac_Header'}
19315 $as_echo "$as_val"'`
19316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19317 $as_echo "$ac_res" >&6; }
19318 else
19319 # Is the header compilable?
19320 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19321 $as_echo_n "checking $ac_header usability... " >&6; }
19322 cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h. */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h. */
19328 $ac_includes_default
19329 #include <$ac_header>
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336 esac
19337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19338 $as_echo "$ac_try_echo") >&5
19339 (eval "$ac_compile") 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest.$ac_objext; then
19349 ac_header_compiler=yes
19350 else
19351 $as_echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_header_compiler=no
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19359 $as_echo "$ac_header_compiler" >&6; }
19361 # Is the header present?
19362 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19363 $as_echo_n "checking $ac_header presence... " >&6; }
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h. */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19370 #include <$ac_header>
19371 _ACEOF
19372 if { (ac_try="$ac_cpp conftest.$ac_ext"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376 esac
19377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19378 $as_echo "$ac_try_echo") >&5
19379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } >/dev/null && {
19386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 }; then
19389 ac_header_preproc=yes
19390 else
19391 $as_echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_header_preproc=no
19397 rm -f conftest.err conftest.$ac_ext
19398 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19399 $as_echo "$ac_header_preproc" >&6; }
19401 # So? What about this header?
19402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19403 yes:no: )
19404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19405 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19408 ac_header_preproc=yes
19410 no:yes:* )
19411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19412 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19414 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19416 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19418 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19422 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19425 esac
19426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19427 $as_echo_n "checking for $ac_header... " >&6; }
19428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19429 $as_echo_n "(cached) " >&6
19430 else
19431 eval "$as_ac_Header=\$ac_header_preproc"
19433 ac_res=`eval 'as_val=${'$as_ac_Header'}
19434 $as_echo "$as_val"'`
19435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19436 $as_echo "$ac_res" >&6; }
19439 if test `eval 'as_val=${'$as_ac_Header'}
19440 $as_echo "$as_val"'` = yes; then
19441 cat >>confdefs.h <<_ACEOF
19442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19443 _ACEOF
19447 done
19452 for ac_header in nlist.h
19454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19457 $as_echo_n "checking for $ac_header... " >&6; }
19458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19459 $as_echo_n "(cached) " >&6
19461 ac_res=`eval 'as_val=${'$as_ac_Header'}
19462 $as_echo "$as_val"'`
19463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19464 $as_echo "$ac_res" >&6; }
19465 else
19466 # Is the header compilable?
19467 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19468 $as_echo_n "checking $ac_header usability... " >&6; }
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 $ac_includes_default
19476 #include <$ac_header>
19477 _ACEOF
19478 rm -f conftest.$ac_objext
19479 if { (ac_try="$ac_compile"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19483 esac
19484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19485 $as_echo "$ac_try_echo") >&5
19486 (eval "$ac_compile") 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest.$ac_objext; then
19496 ac_header_compiler=yes
19497 else
19498 $as_echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_header_compiler=no
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19505 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19506 $as_echo "$ac_header_compiler" >&6; }
19508 # Is the header present?
19509 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19510 $as_echo_n "checking $ac_header presence... " >&6; }
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 #include <$ac_header>
19518 _ACEOF
19519 if { (ac_try="$ac_cpp conftest.$ac_ext"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19523 esac
19524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19525 $as_echo "$ac_try_echo") >&5
19526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19527 ac_status=$?
19528 grep -v '^ *+' conftest.er1 >conftest.err
19529 rm -f conftest.er1
19530 cat conftest.err >&5
19531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } >/dev/null && {
19533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 }; then
19536 ac_header_preproc=yes
19537 else
19538 $as_echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ac_header_preproc=no
19544 rm -f conftest.err conftest.$ac_ext
19545 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19546 $as_echo "$ac_header_preproc" >&6; }
19548 # So? What about this header?
19549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19550 yes:no: )
19551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19552 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19555 ac_header_preproc=yes
19557 no:yes:* )
19558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19559 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19561 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19563 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19565 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19567 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19569 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19572 esac
19573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19574 $as_echo_n "checking for $ac_header... " >&6; }
19575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19576 $as_echo_n "(cached) " >&6
19577 else
19578 eval "$as_ac_Header=\$ac_header_preproc"
19580 ac_res=`eval 'as_val=${'$as_ac_Header'}
19581 $as_echo "$as_val"'`
19582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19583 $as_echo "$ac_res" >&6; }
19586 if test `eval 'as_val=${'$as_ac_Header'}
19587 $as_echo "$as_val"'` = yes; then
19588 cat >>confdefs.h <<_ACEOF
19589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19590 _ACEOF
19591 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19592 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19593 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19594 $as_echo_n "(cached) " >&6
19595 else
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h. */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 #include <nlist.h>
19605 main ()
19607 static struct nlist ac_aggr;
19608 if (ac_aggr.n_un.n_name)
19609 return 0;
19611 return 0;
19613 _ACEOF
19614 rm -f conftest.$ac_objext
19615 if { (ac_try="$ac_compile"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619 esac
19620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19621 $as_echo "$ac_try_echo") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.$ac_objext; then
19632 ac_cv_member_struct_nlist_n_un_n_name=yes
19633 else
19634 $as_echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h. */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 #include <nlist.h>
19646 main ()
19648 static struct nlist ac_aggr;
19649 if (sizeof ac_aggr.n_un.n_name)
19650 return 0;
19652 return 0;
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660 esac
19661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19662 $as_echo "$ac_try_echo") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest.$ac_objext; then
19673 ac_cv_member_struct_nlist_n_un_n_name=yes
19674 else
19675 $as_echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_cv_member_struct_nlist_n_un_n_name=no
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19687 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19688 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19690 cat >>confdefs.h <<_ACEOF
19691 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19692 _ACEOF
19695 cat >>confdefs.h <<\_ACEOF
19696 #define NLIST_NAME_UNION 1
19697 _ACEOF
19704 done
19707 done
19710 # Some definitions of getloadavg require that the program be installed setgid.
19711 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19712 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19713 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19714 $as_echo_n "(cached) " >&6
19715 else
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19723 #ifdef LDAV_PRIVILEGED
19724 Yowza Am I SETGID yet
19725 #endif
19726 _ACEOF
19727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19728 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19729 ac_cv_func_getloadavg_setgid=yes
19730 else
19731 ac_cv_func_getloadavg_setgid=no
19733 rm -f conftest*
19736 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19737 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19738 if test $ac_cv_func_getloadavg_setgid = yes; then
19739 NEED_SETGID=true
19741 cat >>confdefs.h <<\_ACEOF
19742 #define GETLOADAVG_PRIVILEGED 1
19743 _ACEOF
19745 else
19746 NEED_SETGID=false
19749 if test $ac_cv_func_getloadavg_setgid = yes; then
19750 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19751 $as_echo_n "checking group of /dev/kmem... " >&6; }
19752 if test "${ac_cv_group_kmem+set}" = set; then
19753 $as_echo_n "(cached) " >&6
19754 else
19755 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19756 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19757 # If we got an error (system does not support symlinks), try without -L.
19758 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19759 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19760 | sed -ne 's/[ ][ ]*/ /g;
19761 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19762 / /s/.* //;p;'`
19765 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19766 $as_echo "$ac_cv_group_kmem" >&6; }
19767 KMEM_GROUP=$ac_cv_group_kmem
19769 if test "x$ac_save_LIBS" = x; then
19770 GETLOADAVG_LIBS=$LIBS
19771 else
19772 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19774 LIBS=$ac_save_LIBS
19778 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19779 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19780 if test "${ac_cv_sys_largefile_source+set}" = set; then
19781 $as_echo_n "(cached) " >&6
19782 else
19783 while :; do
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h. */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <sys/types.h> /* for off_t */
19791 #include <stdio.h>
19793 main ()
19795 int (*fp) (FILE *, off_t, int) = fseeko;
19796 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19798 return 0;
19800 _ACEOF
19801 rm -f conftest.$ac_objext conftest$ac_exeext
19802 if { (ac_try="$ac_link"
19803 case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806 esac
19807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19808 $as_echo "$ac_try_echo") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext && {
19819 test "$cross_compiling" = yes ||
19820 $as_test_x conftest$ac_exeext
19821 }; then
19822 ac_cv_sys_largefile_source=no; break
19823 else
19824 $as_echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19830 rm -rf conftest.dSYM
19831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19832 conftest$ac_exeext conftest.$ac_ext
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 #define _LARGEFILE_SOURCE 1
19840 #include <sys/types.h> /* for off_t */
19841 #include <stdio.h>
19843 main ()
19845 int (*fp) (FILE *, off_t, int) = fseeko;
19846 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19848 return 0;
19850 _ACEOF
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19856 esac
19857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19858 $as_echo "$ac_try_echo") >&5
19859 (eval "$ac_link") 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } && {
19866 test -z "$ac_c_werror_flag" ||
19867 test ! -s conftest.err
19868 } && test -s conftest$ac_exeext && {
19869 test "$cross_compiling" = yes ||
19870 $as_test_x conftest$ac_exeext
19871 }; then
19872 ac_cv_sys_largefile_source=1; break
19873 else
19874 $as_echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19880 rm -rf conftest.dSYM
19881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19882 conftest$ac_exeext conftest.$ac_ext
19883 ac_cv_sys_largefile_source=unknown
19884 break
19885 done
19887 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19888 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19889 case $ac_cv_sys_largefile_source in #(
19890 no | unknown) ;;
19892 cat >>confdefs.h <<_ACEOF
19893 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19894 _ACEOF
19896 esac
19897 rm -rf conftest*
19899 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19900 # in glibc 2.1.3, but that breaks too many other things.
19901 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19902 if test $ac_cv_sys_largefile_source != unknown; then
19904 cat >>confdefs.h <<\_ACEOF
19905 #define HAVE_FSEEKO 1
19906 _ACEOF
19911 # Configure getopt.
19912 # getopt.m4 serial 10
19914 # The getopt module assume you want GNU getopt, with getopt_long etc,
19915 # rather than vanilla POSIX getopt. This means your your code should
19916 # always include <getopt.h> for the getopt prototypes.
19928 # Prerequisites of lib/getopt*.
19933 GETOPT_H=
19935 for ac_header in getopt.h
19937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 $as_echo_n "checking for $ac_header... " >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 $as_echo_n "(cached) " >&6
19944 ac_res=`eval 'as_val=${'$as_ac_Header'}
19945 $as_echo "$as_val"'`
19946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19947 $as_echo "$ac_res" >&6; }
19948 else
19949 # Is the header compilable?
19950 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19951 $as_echo_n "checking $ac_header usability... " >&6; }
19952 cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 $ac_includes_default
19959 #include <$ac_header>
19960 _ACEOF
19961 rm -f conftest.$ac_objext
19962 if { (ac_try="$ac_compile"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966 esac
19967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19968 $as_echo "$ac_try_echo") >&5
19969 (eval "$ac_compile") 2>conftest.er1
19970 ac_status=$?
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
19974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest.$ac_objext; then
19979 ac_header_compiler=yes
19980 else
19981 $as_echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_header_compiler=no
19987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19989 $as_echo "$ac_header_compiler" >&6; }
19991 # Is the header present?
19992 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19993 $as_echo_n "checking $ac_header presence... " >&6; }
19994 cat >conftest.$ac_ext <<_ACEOF
19995 /* confdefs.h. */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 #include <$ac_header>
20001 _ACEOF
20002 if { (ac_try="$ac_cpp conftest.$ac_ext"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20006 esac
20007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20010 ac_status=$?
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
20014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } >/dev/null && {
20016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 }; then
20019 ac_header_preproc=yes
20020 else
20021 $as_echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_preproc=no
20027 rm -f conftest.err conftest.$ac_ext
20028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20029 $as_echo "$ac_header_preproc" >&6; }
20031 # So? What about this header?
20032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20033 yes:no: )
20034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20035 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20038 ac_header_preproc=yes
20040 no:yes:* )
20041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20042 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20044 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20046 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20048 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20052 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20055 esac
20056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 $as_echo_n "checking for $ac_header... " >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059 $as_echo_n "(cached) " >&6
20060 else
20061 eval "$as_ac_Header=\$ac_header_preproc"
20063 ac_res=`eval 'as_val=${'$as_ac_Header'}
20064 $as_echo "$as_val"'`
20065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20066 $as_echo "$ac_res" >&6; }
20069 if test `eval 'as_val=${'$as_ac_Header'}
20070 $as_echo "$as_val"'` = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20073 _ACEOF
20075 else
20076 GETOPT_H=getopt.h
20079 done
20081 if test -z "$GETOPT_H"; then
20083 for ac_func in getopt_long_only
20085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20087 $as_echo_n "checking for $ac_func... " >&6; }
20088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20089 $as_echo_n "(cached) " >&6
20090 else
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20099 #define $ac_func innocuous_$ac_func
20101 /* System header to define __stub macros and hopefully few prototypes,
20102 which can conflict with char $ac_func (); below.
20103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104 <limits.h> exists even on freestanding compilers. */
20106 #ifdef __STDC__
20107 # include <limits.h>
20108 #else
20109 # include <assert.h>
20110 #endif
20112 #undef $ac_func
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20117 #ifdef __cplusplus
20118 extern "C"
20119 #endif
20120 char $ac_func ();
20121 /* The GNU C library defines this for functions which it implements
20122 to always fail with ENOSYS. Some functions are actually named
20123 something starting with __ and the normal name is an alias. */
20124 #if defined __stub_$ac_func || defined __stub___$ac_func
20125 choke me
20126 #endif
20129 main ()
20131 return $ac_func ();
20133 return 0;
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20143 $as_echo "$ac_try_echo") >&5
20144 (eval "$ac_link") 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest$ac_exeext && {
20154 test "$cross_compiling" = yes ||
20155 $as_test_x conftest$ac_exeext
20156 }; then
20157 eval "$as_ac_var=yes"
20158 else
20159 $as_echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 eval "$as_ac_var=no"
20165 rm -rf conftest.dSYM
20166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20167 conftest$ac_exeext conftest.$ac_ext
20169 ac_res=`eval 'as_val=${'$as_ac_var'}
20170 $as_echo "$as_val"'`
20171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20172 $as_echo "$ac_res" >&6; }
20173 if test `eval 'as_val=${'$as_ac_var'}
20174 $as_echo "$as_val"'` = yes; then
20175 cat >>confdefs.h <<_ACEOF
20176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20177 _ACEOF
20179 else
20180 GETOPT_H=getopt.h
20182 done
20186 if test -z "$GETOPT_H"; then
20187 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20188 $as_echo_n "checking whether optreset is declared... " >&6; }
20189 if test "${ac_cv_have_decl_optreset+set}" = set; then
20190 $as_echo_n "(cached) " >&6
20191 else
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h. */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 #include <getopt.h>
20201 main ()
20203 #ifndef optreset
20204 (void) optreset;
20205 #endif
20208 return 0;
20210 _ACEOF
20211 rm -f conftest.$ac_objext
20212 if { (ac_try="$ac_compile"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20216 esac
20217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20218 $as_echo "$ac_try_echo") >&5
20219 (eval "$ac_compile") 2>conftest.er1
20220 ac_status=$?
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
20224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest.$ac_objext; then
20229 ac_cv_have_decl_optreset=yes
20230 else
20231 $as_echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_have_decl_optreset=no
20237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20239 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20240 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20241 if test $ac_cv_have_decl_optreset = yes; then
20242 GETOPT_H=getopt.h
20247 if test -z "$GETOPT_H"; then
20248 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20249 $as_echo_n "checking for working GNU getopt function... " >&6; }
20250 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20251 $as_echo_n "(cached) " >&6
20252 else
20253 if test "$cross_compiling" = yes; then
20254 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20255 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20256 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20257 $as_echo_n "(cached) " >&6
20258 else
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h. */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #include <getopt.h>
20268 main ()
20270 #ifndef getopt_clip
20271 (void) getopt_clip;
20272 #endif
20275 return 0;
20277 _ACEOF
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283 esac
20284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20285 $as_echo "$ac_try_echo") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.$ac_objext; then
20296 ac_cv_have_decl_getopt_clip=yes
20297 else
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_cv_have_decl_getopt_clip=no
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20307 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20308 if test $ac_cv_have_decl_getopt_clip = yes; then
20309 gl_cv_func_gnu_getopt=no
20310 else
20311 gl_cv_func_gnu_getopt=yes
20314 else
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <getopt.h>
20323 main ()
20326 char *myargv[3];
20327 myargv[0] = "conftest";
20328 myargv[1] = "-+";
20329 myargv[2] = 0;
20330 return getopt (2, myargv, "+a") != '?';
20333 return 0;
20335 _ACEOF
20336 rm -f conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20341 esac
20342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20343 $as_echo "$ac_try_echo") >&5
20344 (eval "$ac_link") 2>&5
20345 ac_status=$?
20346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20348 { (case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351 esac
20352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20353 $as_echo "$ac_try_echo") >&5
20354 (eval "$ac_try") 2>&5
20355 ac_status=$?
20356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 gl_cv_func_gnu_getopt=yes
20359 else
20360 $as_echo "$as_me: program exited with status $ac_status" >&5
20361 $as_echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ( exit $ac_status )
20365 gl_cv_func_gnu_getopt=no
20367 rm -rf conftest.dSYM
20368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20373 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20374 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20375 if test "$gl_cv_func_gnu_getopt" = "no"; then
20376 GETOPT_H=getopt.h
20382 if test -n "$GETOPT_H"; then
20385 GETOPT_H=getopt.h
20387 cat >>confdefs.h <<\_ACEOF
20388 #define __GETOPT_PREFIX rpl_
20389 _ACEOF
20394 GETOPTOBJS='getopt.o getopt1.o'
20401 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20402 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20403 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20404 $as_echo_n "(cached) " >&6
20405 else
20406 # Use it with a single arg.
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 $ac_includes_default
20415 main ()
20417 getpgrp (0);
20419 return 0;
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20427 esac
20428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20429 $as_echo "$ac_try_echo") >&5
20430 (eval "$ac_compile") 2>conftest.er1
20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest.$ac_objext; then
20440 ac_cv_func_getpgrp_void=no
20441 else
20442 $as_echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 ac_cv_func_getpgrp_void=yes
20448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20452 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20453 if test $ac_cv_func_getpgrp_void = yes; then
20455 cat >>confdefs.h <<\_ACEOF
20456 #define GETPGRP_VOID 1
20457 _ACEOF
20463 for ac_func in strftime
20465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20466 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20467 $as_echo_n "checking for $ac_func... " >&6; }
20468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20469 $as_echo_n "(cached) " >&6
20470 else
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20479 #define $ac_func innocuous_$ac_func
20481 /* System header to define __stub macros and hopefully few prototypes,
20482 which can conflict with char $ac_func (); below.
20483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20484 <limits.h> exists even on freestanding compilers. */
20486 #ifdef __STDC__
20487 # include <limits.h>
20488 #else
20489 # include <assert.h>
20490 #endif
20492 #undef $ac_func
20494 /* Override any GCC internal prototype to avoid an error.
20495 Use char because int might match the return type of a GCC
20496 builtin and then its argument prototype would still apply. */
20497 #ifdef __cplusplus
20498 extern "C"
20499 #endif
20500 char $ac_func ();
20501 /* The GNU C library defines this for functions which it implements
20502 to always fail with ENOSYS. Some functions are actually named
20503 something starting with __ and the normal name is an alias. */
20504 #if defined __stub_$ac_func || defined __stub___$ac_func
20505 choke me
20506 #endif
20509 main ()
20511 return $ac_func ();
20513 return 0;
20515 _ACEOF
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20521 esac
20522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20523 $as_echo "$ac_try_echo") >&5
20524 (eval "$ac_link") 2>conftest.er1
20525 ac_status=$?
20526 grep -v '^ *+' conftest.er1 >conftest.err
20527 rm -f conftest.er1
20528 cat conftest.err >&5
20529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest$ac_exeext && {
20534 test "$cross_compiling" = yes ||
20535 $as_test_x conftest$ac_exeext
20536 }; then
20537 eval "$as_ac_var=yes"
20538 else
20539 $as_echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 eval "$as_ac_var=no"
20545 rm -rf conftest.dSYM
20546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20547 conftest$ac_exeext conftest.$ac_ext
20549 ac_res=`eval 'as_val=${'$as_ac_var'}
20550 $as_echo "$as_val"'`
20551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20552 $as_echo "$ac_res" >&6; }
20553 if test `eval 'as_val=${'$as_ac_var'}
20554 $as_echo "$as_val"'` = yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20557 _ACEOF
20559 else
20560 # strftime is in -lintl on SCO UNIX.
20561 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20562 $as_echo_n "checking for strftime in -lintl... " >&6; }
20563 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20564 $as_echo_n "(cached) " >&6
20565 else
20566 ac_check_lib_save_LIBS=$LIBS
20567 LIBS="-lintl $LIBS"
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20575 /* Override any GCC internal prototype to avoid an error.
20576 Use char because int might match the return type of a GCC
20577 builtin and then its argument prototype would still apply. */
20578 #ifdef __cplusplus
20579 extern "C"
20580 #endif
20581 char strftime ();
20583 main ()
20585 return strftime ();
20587 return 0;
20589 _ACEOF
20590 rm -f conftest.$ac_objext conftest$ac_exeext
20591 if { (ac_try="$ac_link"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595 esac
20596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20597 $as_echo "$ac_try_echo") >&5
20598 (eval "$ac_link") 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest$ac_exeext && {
20608 test "$cross_compiling" = yes ||
20609 $as_test_x conftest$ac_exeext
20610 }; then
20611 ac_cv_lib_intl_strftime=yes
20612 else
20613 $as_echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ac_cv_lib_intl_strftime=no
20619 rm -rf conftest.dSYM
20620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20621 conftest$ac_exeext conftest.$ac_ext
20622 LIBS=$ac_check_lib_save_LIBS
20624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20625 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20626 if test $ac_cv_lib_intl_strftime = yes; then
20627 cat >>confdefs.h <<\_ACEOF
20628 #define HAVE_STRFTIME 1
20629 _ACEOF
20631 LIBS="-lintl $LIBS"
20635 done
20638 # UNIX98 PTYs.
20640 for ac_func in grantpt
20642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20643 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20644 $as_echo_n "checking for $ac_func... " >&6; }
20645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20646 $as_echo_n "(cached) " >&6
20647 else
20648 cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h. */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20656 #define $ac_func innocuous_$ac_func
20658 /* System header to define __stub macros and hopefully few prototypes,
20659 which can conflict with char $ac_func (); below.
20660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20661 <limits.h> exists even on freestanding compilers. */
20663 #ifdef __STDC__
20664 # include <limits.h>
20665 #else
20666 # include <assert.h>
20667 #endif
20669 #undef $ac_func
20671 /* Override any GCC internal prototype to avoid an error.
20672 Use char because int might match the return type of a GCC
20673 builtin and then its argument prototype would still apply. */
20674 #ifdef __cplusplus
20675 extern "C"
20676 #endif
20677 char $ac_func ();
20678 /* The GNU C library defines this for functions which it implements
20679 to always fail with ENOSYS. Some functions are actually named
20680 something starting with __ and the normal name is an alias. */
20681 #if defined __stub_$ac_func || defined __stub___$ac_func
20682 choke me
20683 #endif
20686 main ()
20688 return $ac_func ();
20690 return 0;
20692 _ACEOF
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698 esac
20699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20700 $as_echo "$ac_try_echo") >&5
20701 (eval "$ac_link") 2>conftest.er1
20702 ac_status=$?
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
20706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } && {
20708 test -z "$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 } && test -s conftest$ac_exeext && {
20711 test "$cross_compiling" = yes ||
20712 $as_test_x conftest$ac_exeext
20713 }; then
20714 eval "$as_ac_var=yes"
20715 else
20716 $as_echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 eval "$as_ac_var=no"
20722 rm -rf conftest.dSYM
20723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20724 conftest$ac_exeext conftest.$ac_ext
20726 ac_res=`eval 'as_val=${'$as_ac_var'}
20727 $as_echo "$as_val"'`
20728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20729 $as_echo "$ac_res" >&6; }
20730 if test `eval 'as_val=${'$as_ac_var'}
20731 $as_echo "$as_val"'` = yes; then
20732 cat >>confdefs.h <<_ACEOF
20733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20734 _ACEOF
20737 done
20740 # PTY-related GNU extensions.
20742 for ac_func in getpt
20744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20745 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20746 $as_echo_n "checking for $ac_func... " >&6; }
20747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20748 $as_echo_n "(cached) " >&6
20749 else
20750 cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20758 #define $ac_func innocuous_$ac_func
20760 /* System header to define __stub macros and hopefully few prototypes,
20761 which can conflict with char $ac_func (); below.
20762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20763 <limits.h> exists even on freestanding compilers. */
20765 #ifdef __STDC__
20766 # include <limits.h>
20767 #else
20768 # include <assert.h>
20769 #endif
20771 #undef $ac_func
20773 /* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20776 #ifdef __cplusplus
20777 extern "C"
20778 #endif
20779 char $ac_func ();
20780 /* The GNU C library defines this for functions which it implements
20781 to always fail with ENOSYS. Some functions are actually named
20782 something starting with __ and the normal name is an alias. */
20783 #if defined __stub_$ac_func || defined __stub___$ac_func
20784 choke me
20785 #endif
20788 main ()
20790 return $ac_func ();
20792 return 0;
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800 esac
20801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20802 $as_echo "$ac_try_echo") >&5
20803 (eval "$ac_link") 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest$ac_exeext && {
20813 test "$cross_compiling" = yes ||
20814 $as_test_x conftest$ac_exeext
20815 }; then
20816 eval "$as_ac_var=yes"
20817 else
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 eval "$as_ac_var=no"
20824 rm -rf conftest.dSYM
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20828 ac_res=`eval 'as_val=${'$as_ac_var'}
20829 $as_echo "$as_val"'`
20830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20831 $as_echo "$ac_res" >&6; }
20832 if test `eval 'as_val=${'$as_ac_var'}
20833 $as_echo "$as_val"'` = yes; then
20834 cat >>confdefs.h <<_ACEOF
20835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20836 _ACEOF
20839 done
20842 # Check this now, so that we will NOT find the above functions in ncurses.
20843 # That is because we have not set up to link ncurses in lib-src.
20844 # It's better to believe a function is not available
20845 # than to expect to find it in ncurses.
20847 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20848 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20849 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20850 $as_echo_n "(cached) " >&6
20851 else
20852 ac_check_lib_save_LIBS=$LIBS
20853 LIBS="-lncurses $LIBS"
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h. */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20861 /* Override any GCC internal prototype to avoid an error.
20862 Use char because int might match the return type of a GCC
20863 builtin and then its argument prototype would still apply. */
20864 #ifdef __cplusplus
20865 extern "C"
20866 #endif
20867 char tparm ();
20869 main ()
20871 return tparm ();
20873 return 0;
20875 _ACEOF
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (ac_try="$ac_link"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881 esac
20882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20883 $as_echo "$ac_try_echo") >&5
20884 (eval "$ac_link") 2>conftest.er1
20885 ac_status=$?
20886 grep -v '^ *+' conftest.er1 >conftest.err
20887 rm -f conftest.er1
20888 cat conftest.err >&5
20889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } && {
20891 test -z "$ac_c_werror_flag" ||
20892 test ! -s conftest.err
20893 } && test -s conftest$ac_exeext && {
20894 test "$cross_compiling" = yes ||
20895 $as_test_x conftest$ac_exeext
20896 }; then
20897 ac_cv_lib_ncurses_tparm=yes
20898 else
20899 $as_echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_cv_lib_ncurses_tparm=no
20905 rm -rf conftest.dSYM
20906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20907 conftest$ac_exeext conftest.$ac_ext
20908 LIBS=$ac_check_lib_save_LIBS
20910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20911 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20912 if test $ac_cv_lib_ncurses_tparm = yes; then
20913 cat >>confdefs.h <<_ACEOF
20914 #define HAVE_LIBNCURSES 1
20915 _ACEOF
20917 LIBS="-lncurses $LIBS"
20922 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20924 resolv=no
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 #include <netinet/in.h>
20932 #include <arpa/nameser.h>
20933 #include <resolv.h>
20935 main ()
20937 return res_init();
20939 return 0;
20941 _ACEOF
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947 esac
20948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20949 $as_echo "$ac_try_echo") >&5
20950 (eval "$ac_link") 2>conftest.er1
20951 ac_status=$?
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
20955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest$ac_exeext && {
20960 test "$cross_compiling" = yes ||
20961 $as_test_x conftest$ac_exeext
20962 }; then
20963 have_res_init=yes
20964 else
20965 $as_echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 have_res_init=no
20971 rm -rf conftest.dSYM
20972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20973 conftest$ac_exeext conftest.$ac_ext
20974 if test "$have_res_init" = no; then
20975 OLIBS="$LIBS"
20976 LIBS="$LIBS -lresolv"
20977 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20978 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20979 cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h. */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 #include <netinet/in.h>
20986 #include <arpa/nameser.h>
20987 #include <resolv.h>
20989 main ()
20991 return res_init();
20993 return 0;
20995 _ACEOF
20996 rm -f conftest.$ac_objext conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21003 $as_echo "$ac_try_echo") >&5
21004 (eval "$ac_link") 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest$ac_exeext && {
21014 test "$cross_compiling" = yes ||
21015 $as_test_x conftest$ac_exeext
21016 }; then
21017 have_res_init=yes
21018 else
21019 $as_echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 have_res_init=no
21025 rm -rf conftest.dSYM
21026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21027 conftest$ac_exeext conftest.$ac_ext
21028 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21029 $as_echo "$have_res_init" >&6; }
21030 if test "$have_res_init" = yes ; then
21031 resolv=yes
21033 LIBS="$OLIBS"
21036 if test "$have_res_init" = yes; then
21038 cat >>confdefs.h <<\_ACEOF
21039 #define HAVE_RES_INIT 1
21040 _ACEOF
21044 # Do we need the Hesiod library to provide the support routines?
21045 if test "$with_hesiod" != no ; then
21046 # Don't set $LIBS here -- see comments above.
21047 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21048 $as_echo_n "checking for res_send... " >&6; }
21049 if test "${ac_cv_func_res_send+set}" = set; then
21050 $as_echo_n "(cached) " >&6
21051 else
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21060 #define res_send innocuous_res_send
21062 /* System header to define __stub macros and hopefully few prototypes,
21063 which can conflict with char res_send (); below.
21064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21065 <limits.h> exists even on freestanding compilers. */
21067 #ifdef __STDC__
21068 # include <limits.h>
21069 #else
21070 # include <assert.h>
21071 #endif
21073 #undef res_send
21075 /* Override any GCC internal prototype to avoid an error.
21076 Use char because int might match the return type of a GCC
21077 builtin and then its argument prototype would still apply. */
21078 #ifdef __cplusplus
21079 extern "C"
21080 #endif
21081 char res_send ();
21082 /* The GNU C library defines this for functions which it implements
21083 to always fail with ENOSYS. Some functions are actually named
21084 something starting with __ and the normal name is an alias. */
21085 #if defined __stub_res_send || defined __stub___res_send
21086 choke me
21087 #endif
21090 main ()
21092 return res_send ();
21094 return 0;
21096 _ACEOF
21097 rm -f conftest.$ac_objext conftest$ac_exeext
21098 if { (ac_try="$ac_link"
21099 case "(($ac_try" in
21100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101 *) ac_try_echo=$ac_try;;
21102 esac
21103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21104 $as_echo "$ac_try_echo") >&5
21105 (eval "$ac_link") 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } && {
21112 test -z "$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 } && test -s conftest$ac_exeext && {
21115 test "$cross_compiling" = yes ||
21116 $as_test_x conftest$ac_exeext
21117 }; then
21118 ac_cv_func_res_send=yes
21119 else
21120 $as_echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_cv_func_res_send=no
21126 rm -rf conftest.dSYM
21127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21128 conftest$ac_exeext conftest.$ac_ext
21130 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21131 $as_echo "$ac_cv_func_res_send" >&6; }
21132 if test $ac_cv_func_res_send = yes; then
21134 else
21135 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21136 $as_echo_n "checking for __res_send... " >&6; }
21137 if test "${ac_cv_func___res_send+set}" = set; then
21138 $as_echo_n "(cached) " >&6
21139 else
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21148 #define __res_send innocuous___res_send
21150 /* System header to define __stub macros and hopefully few prototypes,
21151 which can conflict with char __res_send (); below.
21152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21153 <limits.h> exists even on freestanding compilers. */
21155 #ifdef __STDC__
21156 # include <limits.h>
21157 #else
21158 # include <assert.h>
21159 #endif
21161 #undef __res_send
21163 /* Override any GCC internal prototype to avoid an error.
21164 Use char because int might match the return type of a GCC
21165 builtin and then its argument prototype would still apply. */
21166 #ifdef __cplusplus
21167 extern "C"
21168 #endif
21169 char __res_send ();
21170 /* The GNU C library defines this for functions which it implements
21171 to always fail with ENOSYS. Some functions are actually named
21172 something starting with __ and the normal name is an alias. */
21173 #if defined __stub___res_send || defined __stub_____res_send
21174 choke me
21175 #endif
21178 main ()
21180 return __res_send ();
21182 return 0;
21184 _ACEOF
21185 rm -f conftest.$ac_objext conftest$ac_exeext
21186 if { (ac_try="$ac_link"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190 esac
21191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21192 $as_echo "$ac_try_echo") >&5
21193 (eval "$ac_link") 2>conftest.er1
21194 ac_status=$?
21195 grep -v '^ *+' conftest.er1 >conftest.err
21196 rm -f conftest.er1
21197 cat conftest.err >&5
21198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest$ac_exeext && {
21203 test "$cross_compiling" = yes ||
21204 $as_test_x conftest$ac_exeext
21205 }; then
21206 ac_cv_func___res_send=yes
21207 else
21208 $as_echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_cv_func___res_send=no
21214 rm -rf conftest.dSYM
21215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21216 conftest$ac_exeext conftest.$ac_ext
21218 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21219 $as_echo "$ac_cv_func___res_send" >&6; }
21220 if test $ac_cv_func___res_send = yes; then
21222 else
21223 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21224 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21225 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21226 $as_echo_n "(cached) " >&6
21227 else
21228 ac_check_lib_save_LIBS=$LIBS
21229 LIBS="-lresolv $LIBS"
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21237 /* Override any GCC internal prototype to avoid an error.
21238 Use char because int might match the return type of a GCC
21239 builtin and then its argument prototype would still apply. */
21240 #ifdef __cplusplus
21241 extern "C"
21242 #endif
21243 char res_send ();
21245 main ()
21247 return res_send ();
21249 return 0;
21251 _ACEOF
21252 rm -f conftest.$ac_objext conftest$ac_exeext
21253 if { (ac_try="$ac_link"
21254 case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21257 esac
21258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21259 $as_echo "$ac_try_echo") >&5
21260 (eval "$ac_link") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest$ac_exeext && {
21270 test "$cross_compiling" = yes ||
21271 $as_test_x conftest$ac_exeext
21272 }; then
21273 ac_cv_lib_resolv_res_send=yes
21274 else
21275 $as_echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_cv_lib_resolv_res_send=no
21281 rm -rf conftest.dSYM
21282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21283 conftest$ac_exeext conftest.$ac_ext
21284 LIBS=$ac_check_lib_save_LIBS
21286 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21287 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21288 if test $ac_cv_lib_resolv_res_send = yes; then
21289 resolv=yes
21290 else
21291 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21292 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21293 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21294 $as_echo_n "(cached) " >&6
21295 else
21296 ac_check_lib_save_LIBS=$LIBS
21297 LIBS="-lresolv $LIBS"
21298 cat >conftest.$ac_ext <<_ACEOF
21299 /* confdefs.h. */
21300 _ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h. */
21305 /* Override any GCC internal prototype to avoid an error.
21306 Use char because int might match the return type of a GCC
21307 builtin and then its argument prototype would still apply. */
21308 #ifdef __cplusplus
21309 extern "C"
21310 #endif
21311 char __res_send ();
21313 main ()
21315 return __res_send ();
21317 return 0;
21319 _ACEOF
21320 rm -f conftest.$ac_objext conftest$ac_exeext
21321 if { (ac_try="$ac_link"
21322 case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21325 esac
21326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21327 $as_echo "$ac_try_echo") >&5
21328 (eval "$ac_link") 2>conftest.er1
21329 ac_status=$?
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
21333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest$ac_exeext && {
21338 test "$cross_compiling" = yes ||
21339 $as_test_x conftest$ac_exeext
21340 }; then
21341 ac_cv_lib_resolv___res_send=yes
21342 else
21343 $as_echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_cv_lib_resolv___res_send=no
21349 rm -rf conftest.dSYM
21350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21351 conftest$ac_exeext conftest.$ac_ext
21352 LIBS=$ac_check_lib_save_LIBS
21354 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21355 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21356 if test $ac_cv_lib_resolv___res_send = yes; then
21357 resolv=yes
21366 if test "$resolv" = yes ; then
21367 RESOLVLIB=-lresolv
21368 else
21369 RESOLVLIB=
21371 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21372 $as_echo_n "checking for hes_getmailhost... " >&6; }
21373 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21374 $as_echo_n "(cached) " >&6
21375 else
21376 cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h. */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21382 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21384 #define hes_getmailhost innocuous_hes_getmailhost
21386 /* System header to define __stub macros and hopefully few prototypes,
21387 which can conflict with char hes_getmailhost (); below.
21388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21389 <limits.h> exists even on freestanding compilers. */
21391 #ifdef __STDC__
21392 # include <limits.h>
21393 #else
21394 # include <assert.h>
21395 #endif
21397 #undef hes_getmailhost
21399 /* Override any GCC internal prototype to avoid an error.
21400 Use char because int might match the return type of a GCC
21401 builtin and then its argument prototype would still apply. */
21402 #ifdef __cplusplus
21403 extern "C"
21404 #endif
21405 char hes_getmailhost ();
21406 /* The GNU C library defines this for functions which it implements
21407 to always fail with ENOSYS. Some functions are actually named
21408 something starting with __ and the normal name is an alias. */
21409 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21410 choke me
21411 #endif
21414 main ()
21416 return hes_getmailhost ();
21418 return 0;
21420 _ACEOF
21421 rm -f conftest.$ac_objext conftest$ac_exeext
21422 if { (ac_try="$ac_link"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21428 $as_echo "$ac_try_echo") >&5
21429 (eval "$ac_link") 2>conftest.er1
21430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } && {
21436 test -z "$ac_c_werror_flag" ||
21437 test ! -s conftest.err
21438 } && test -s conftest$ac_exeext && {
21439 test "$cross_compiling" = yes ||
21440 $as_test_x conftest$ac_exeext
21441 }; then
21442 ac_cv_func_hes_getmailhost=yes
21443 else
21444 $as_echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_cv_func_hes_getmailhost=no
21450 rm -rf conftest.dSYM
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452 conftest$ac_exeext conftest.$ac_ext
21454 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21455 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21456 if test $ac_cv_func_hes_getmailhost = yes; then
21458 else
21459 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21460 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21461 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21462 $as_echo_n "(cached) " >&6
21463 else
21464 ac_check_lib_save_LIBS=$LIBS
21465 LIBS="-lhesiod $RESOLVLIB $LIBS"
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h. */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21473 /* Override any GCC internal prototype to avoid an error.
21474 Use char because int might match the return type of a GCC
21475 builtin and then its argument prototype would still apply. */
21476 #ifdef __cplusplus
21477 extern "C"
21478 #endif
21479 char hes_getmailhost ();
21481 main ()
21483 return hes_getmailhost ();
21485 return 0;
21487 _ACEOF
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21493 esac
21494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21495 $as_echo "$ac_try_echo") >&5
21496 (eval "$ac_link") 2>conftest.er1
21497 ac_status=$?
21498 grep -v '^ *+' conftest.er1 >conftest.err
21499 rm -f conftest.er1
21500 cat conftest.err >&5
21501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest$ac_exeext && {
21506 test "$cross_compiling" = yes ||
21507 $as_test_x conftest$ac_exeext
21508 }; then
21509 ac_cv_lib_hesiod_hes_getmailhost=yes
21510 else
21511 $as_echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 ac_cv_lib_hesiod_hes_getmailhost=no
21517 rm -rf conftest.dSYM
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519 conftest$ac_exeext conftest.$ac_ext
21520 LIBS=$ac_check_lib_save_LIBS
21522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21523 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21524 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21526 cat >>confdefs.h <<\_ACEOF
21527 #define HAVE_LIBHESIOD 1
21528 _ACEOF
21530 else
21538 # Do we need libresolv (due to res_init or Hesiod)?
21539 if test "$resolv" = yes ; then
21541 cat >>confdefs.h <<\_ACEOF
21542 #define HAVE_LIBRESOLV 1
21543 _ACEOF
21547 # These tell us which Kerberos-related libraries to use.
21548 if test "${with_kerberos}" != no; then
21550 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21551 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21552 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21553 $as_echo_n "(cached) " >&6
21554 else
21555 ac_check_lib_save_LIBS=$LIBS
21556 LIBS="-lcom_err $LIBS"
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h. */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21567 #ifdef __cplusplus
21568 extern "C"
21569 #endif
21570 char com_err ();
21572 main ()
21574 return com_err ();
21576 return 0;
21578 _ACEOF
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (ac_try="$ac_link"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584 esac
21585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21586 $as_echo "$ac_try_echo") >&5
21587 (eval "$ac_link") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest$ac_exeext && {
21597 test "$cross_compiling" = yes ||
21598 $as_test_x conftest$ac_exeext
21599 }; then
21600 ac_cv_lib_com_err_com_err=yes
21601 else
21602 $as_echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_cv_lib_com_err_com_err=no
21608 rm -rf conftest.dSYM
21609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21610 conftest$ac_exeext conftest.$ac_ext
21611 LIBS=$ac_check_lib_save_LIBS
21613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21614 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21615 if test $ac_cv_lib_com_err_com_err = yes; then
21616 cat >>confdefs.h <<_ACEOF
21617 #define HAVE_LIBCOM_ERR 1
21618 _ACEOF
21620 LIBS="-lcom_err $LIBS"
21625 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21626 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21627 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21628 $as_echo_n "(cached) " >&6
21629 else
21630 ac_check_lib_save_LIBS=$LIBS
21631 LIBS="-lk5crypto $LIBS"
21632 cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h. */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 /* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21642 #ifdef __cplusplus
21643 extern "C"
21644 #endif
21645 char mit_des_cbc_encrypt ();
21647 main ()
21649 return mit_des_cbc_encrypt ();
21651 return 0;
21653 _ACEOF
21654 rm -f conftest.$ac_objext conftest$ac_exeext
21655 if { (ac_try="$ac_link"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659 esac
21660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21661 $as_echo "$ac_try_echo") >&5
21662 (eval "$ac_link") 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && {
21669 test -z "$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 } && test -s conftest$ac_exeext && {
21672 test "$cross_compiling" = yes ||
21673 $as_test_x conftest$ac_exeext
21674 }; then
21675 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21676 else
21677 $as_echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21683 rm -rf conftest.dSYM
21684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21685 conftest$ac_exeext conftest.$ac_ext
21686 LIBS=$ac_check_lib_save_LIBS
21688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21689 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21690 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21691 cat >>confdefs.h <<_ACEOF
21692 #define HAVE_LIBK5CRYPTO 1
21693 _ACEOF
21695 LIBS="-lk5crypto $LIBS"
21700 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21701 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21702 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21703 $as_echo_n "(cached) " >&6
21704 else
21705 ac_check_lib_save_LIBS=$LIBS
21706 LIBS="-lcrypto $LIBS"
21707 cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h. */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21714 /* Override any GCC internal prototype to avoid an error.
21715 Use char because int might match the return type of a GCC
21716 builtin and then its argument prototype would still apply. */
21717 #ifdef __cplusplus
21718 extern "C"
21719 #endif
21720 char mit_des_cbc_encrypt ();
21722 main ()
21724 return mit_des_cbc_encrypt ();
21726 return 0;
21728 _ACEOF
21729 rm -f conftest.$ac_objext conftest$ac_exeext
21730 if { (ac_try="$ac_link"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21734 esac
21735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21736 $as_echo "$ac_try_echo") >&5
21737 (eval "$ac_link") 2>conftest.er1
21738 ac_status=$?
21739 grep -v '^ *+' conftest.er1 >conftest.err
21740 rm -f conftest.er1
21741 cat conftest.err >&5
21742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } && {
21744 test -z "$ac_c_werror_flag" ||
21745 test ! -s conftest.err
21746 } && test -s conftest$ac_exeext && {
21747 test "$cross_compiling" = yes ||
21748 $as_test_x conftest$ac_exeext
21749 }; then
21750 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21751 else
21752 $as_echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21758 rm -rf conftest.dSYM
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760 conftest$ac_exeext conftest.$ac_ext
21761 LIBS=$ac_check_lib_save_LIBS
21763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21764 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21765 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21766 cat >>confdefs.h <<_ACEOF
21767 #define HAVE_LIBCRYPTO 1
21768 _ACEOF
21770 LIBS="-lcrypto $LIBS"
21775 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21776 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21777 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21778 $as_echo_n "(cached) " >&6
21779 else
21780 ac_check_lib_save_LIBS=$LIBS
21781 LIBS="-lkrb5 $LIBS"
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h. */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21789 /* Override any GCC internal prototype to avoid an error.
21790 Use char because int might match the return type of a GCC
21791 builtin and then its argument prototype would still apply. */
21792 #ifdef __cplusplus
21793 extern "C"
21794 #endif
21795 char krb5_init_context ();
21797 main ()
21799 return krb5_init_context ();
21801 return 0;
21803 _ACEOF
21804 rm -f conftest.$ac_objext conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21809 esac
21810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21811 $as_echo "$ac_try_echo") >&5
21812 (eval "$ac_link") 2>conftest.er1
21813 ac_status=$?
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
21817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest$ac_exeext && {
21822 test "$cross_compiling" = yes ||
21823 $as_test_x conftest$ac_exeext
21824 }; then
21825 ac_cv_lib_krb5_krb5_init_context=yes
21826 else
21827 $as_echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21830 ac_cv_lib_krb5_krb5_init_context=no
21833 rm -rf conftest.dSYM
21834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21835 conftest$ac_exeext conftest.$ac_ext
21836 LIBS=$ac_check_lib_save_LIBS
21838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21839 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21840 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21841 cat >>confdefs.h <<_ACEOF
21842 #define HAVE_LIBKRB5 1
21843 _ACEOF
21845 LIBS="-lkrb5 $LIBS"
21849 if test "${with_kerberos5}" = no; then
21851 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21852 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21853 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21854 $as_echo_n "(cached) " >&6
21855 else
21856 ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-ldes425 $LIBS"
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21865 /* Override any GCC internal prototype to avoid an error.
21866 Use char because int might match the return type of a GCC
21867 builtin and then its argument prototype would still apply. */
21868 #ifdef __cplusplus
21869 extern "C"
21870 #endif
21871 char des_cbc_encrypt ();
21873 main ()
21875 return des_cbc_encrypt ();
21877 return 0;
21879 _ACEOF
21880 rm -f conftest.$ac_objext conftest$ac_exeext
21881 if { (ac_try="$ac_link"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21885 esac
21886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21887 $as_echo "$ac_try_echo") >&5
21888 (eval "$ac_link") 2>conftest.er1
21889 ac_status=$?
21890 grep -v '^ *+' conftest.er1 >conftest.err
21891 rm -f conftest.er1
21892 cat conftest.err >&5
21893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && {
21895 test -z "$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 } && test -s conftest$ac_exeext && {
21898 test "$cross_compiling" = yes ||
21899 $as_test_x conftest$ac_exeext
21900 }; then
21901 ac_cv_lib_des425_des_cbc_encrypt=yes
21902 else
21903 $as_echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ac_cv_lib_des425_des_cbc_encrypt=no
21909 rm -rf conftest.dSYM
21910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21911 conftest$ac_exeext conftest.$ac_ext
21912 LIBS=$ac_check_lib_save_LIBS
21914 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21915 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21916 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21917 cat >>confdefs.h <<_ACEOF
21918 #define HAVE_LIBDES425 1
21919 _ACEOF
21921 LIBS="-ldes425 $LIBS"
21923 else
21925 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21926 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21927 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21928 $as_echo_n "(cached) " >&6
21929 else
21930 ac_check_lib_save_LIBS=$LIBS
21931 LIBS="-ldes $LIBS"
21932 cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h. */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21939 /* Override any GCC internal prototype to avoid an error.
21940 Use char because int might match the return type of a GCC
21941 builtin and then its argument prototype would still apply. */
21942 #ifdef __cplusplus
21943 extern "C"
21944 #endif
21945 char des_cbc_encrypt ();
21947 main ()
21949 return des_cbc_encrypt ();
21951 return 0;
21953 _ACEOF
21954 rm -f conftest.$ac_objext conftest$ac_exeext
21955 if { (ac_try="$ac_link"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21959 esac
21960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21961 $as_echo "$ac_try_echo") >&5
21962 (eval "$ac_link") 2>conftest.er1
21963 ac_status=$?
21964 grep -v '^ *+' conftest.er1 >conftest.err
21965 rm -f conftest.er1
21966 cat conftest.err >&5
21967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); } && {
21969 test -z "$ac_c_werror_flag" ||
21970 test ! -s conftest.err
21971 } && test -s conftest$ac_exeext && {
21972 test "$cross_compiling" = yes ||
21973 $as_test_x conftest$ac_exeext
21974 }; then
21975 ac_cv_lib_des_des_cbc_encrypt=yes
21976 else
21977 $as_echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_cv_lib_des_des_cbc_encrypt=no
21983 rm -rf conftest.dSYM
21984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21985 conftest$ac_exeext conftest.$ac_ext
21986 LIBS=$ac_check_lib_save_LIBS
21988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21989 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21990 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21991 cat >>confdefs.h <<_ACEOF
21992 #define HAVE_LIBDES 1
21993 _ACEOF
21995 LIBS="-ldes $LIBS"
22002 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22003 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22004 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22005 $as_echo_n "(cached) " >&6
22006 else
22007 ac_check_lib_save_LIBS=$LIBS
22008 LIBS="-lkrb4 $LIBS"
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 /* Override any GCC internal prototype to avoid an error.
22017 Use char because int might match the return type of a GCC
22018 builtin and then its argument prototype would still apply. */
22019 #ifdef __cplusplus
22020 extern "C"
22021 #endif
22022 char krb_get_cred ();
22024 main ()
22026 return krb_get_cred ();
22028 return 0;
22030 _ACEOF
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036 esac
22037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22038 $as_echo "$ac_try_echo") >&5
22039 (eval "$ac_link") 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest$ac_exeext && {
22049 test "$cross_compiling" = yes ||
22050 $as_test_x conftest$ac_exeext
22051 }; then
22052 ac_cv_lib_krb4_krb_get_cred=yes
22053 else
22054 $as_echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22057 ac_cv_lib_krb4_krb_get_cred=no
22060 rm -rf conftest.dSYM
22061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22062 conftest$ac_exeext conftest.$ac_ext
22063 LIBS=$ac_check_lib_save_LIBS
22065 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22066 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22067 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22068 cat >>confdefs.h <<_ACEOF
22069 #define HAVE_LIBKRB4 1
22070 _ACEOF
22072 LIBS="-lkrb4 $LIBS"
22074 else
22076 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22077 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22078 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22079 $as_echo_n "(cached) " >&6
22080 else
22081 ac_check_lib_save_LIBS=$LIBS
22082 LIBS="-lkrb $LIBS"
22083 cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h. */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22090 /* Override any GCC internal prototype to avoid an error.
22091 Use char because int might match the return type of a GCC
22092 builtin and then its argument prototype would still apply. */
22093 #ifdef __cplusplus
22094 extern "C"
22095 #endif
22096 char krb_get_cred ();
22098 main ()
22100 return krb_get_cred ();
22102 return 0;
22104 _ACEOF
22105 rm -f conftest.$ac_objext conftest$ac_exeext
22106 if { (ac_try="$ac_link"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110 esac
22111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22112 $as_echo "$ac_try_echo") >&5
22113 (eval "$ac_link") 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest$ac_exeext && {
22123 test "$cross_compiling" = yes ||
22124 $as_test_x conftest$ac_exeext
22125 }; then
22126 ac_cv_lib_krb_krb_get_cred=yes
22127 else
22128 $as_echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 ac_cv_lib_krb_krb_get_cred=no
22134 rm -rf conftest.dSYM
22135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22136 conftest$ac_exeext conftest.$ac_ext
22137 LIBS=$ac_check_lib_save_LIBS
22139 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22140 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22141 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143 #define HAVE_LIBKRB 1
22144 _ACEOF
22146 LIBS="-lkrb $LIBS"
22154 if test "${with_kerberos5}" != no; then
22156 for ac_header in krb5.h
22158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22161 $as_echo_n "checking for $ac_header... " >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22163 $as_echo_n "(cached) " >&6
22165 ac_res=`eval 'as_val=${'$as_ac_Header'}
22166 $as_echo "$as_val"'`
22167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22168 $as_echo "$ac_res" >&6; }
22169 else
22170 # Is the header compilable?
22171 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22172 $as_echo_n "checking $ac_header usability... " >&6; }
22173 cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h. */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 $ac_includes_default
22180 #include <$ac_header>
22181 _ACEOF
22182 rm -f conftest.$ac_objext
22183 if { (ac_try="$ac_compile"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22187 esac
22188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22189 $as_echo "$ac_try_echo") >&5
22190 (eval "$ac_compile") 2>conftest.er1
22191 ac_status=$?
22192 grep -v '^ *+' conftest.er1 >conftest.err
22193 rm -f conftest.er1
22194 cat conftest.err >&5
22195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } && {
22197 test -z "$ac_c_werror_flag" ||
22198 test ! -s conftest.err
22199 } && test -s conftest.$ac_objext; then
22200 ac_header_compiler=yes
22201 else
22202 $as_echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ac_header_compiler=no
22208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22209 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22210 $as_echo "$ac_header_compiler" >&6; }
22212 # Is the header present?
22213 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22214 $as_echo_n "checking $ac_header presence... " >&6; }
22215 cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h. */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 #include <$ac_header>
22222 _ACEOF
22223 if { (ac_try="$ac_cpp conftest.$ac_ext"
22224 case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22227 esac
22228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22229 $as_echo "$ac_try_echo") >&5
22230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22231 ac_status=$?
22232 grep -v '^ *+' conftest.er1 >conftest.err
22233 rm -f conftest.er1
22234 cat conftest.err >&5
22235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } >/dev/null && {
22237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 }; then
22240 ac_header_preproc=yes
22241 else
22242 $as_echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_header_preproc=no
22248 rm -f conftest.err conftest.$ac_ext
22249 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22250 $as_echo "$ac_header_preproc" >&6; }
22252 # So? What about this header?
22253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22254 yes:no: )
22255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22256 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22259 ac_header_preproc=yes
22261 no:yes:* )
22262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22263 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22265 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22267 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22269 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22273 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22276 esac
22277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22278 $as_echo_n "checking for $ac_header... " >&6; }
22279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22280 $as_echo_n "(cached) " >&6
22281 else
22282 eval "$as_ac_Header=\$ac_header_preproc"
22284 ac_res=`eval 'as_val=${'$as_ac_Header'}
22285 $as_echo "$as_val"'`
22286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22287 $as_echo "$ac_res" >&6; }
22290 if test `eval 'as_val=${'$as_ac_Header'}
22291 $as_echo "$as_val"'` = yes; then
22292 cat >>confdefs.h <<_ACEOF
22293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22294 _ACEOF
22295 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22296 $as_echo_n "checking for krb5_error.text... " >&6; }
22297 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22298 $as_echo_n "(cached) " >&6
22299 else
22300 cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h. */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22306 #include <krb5.h>
22309 main ()
22311 static krb5_error ac_aggr;
22312 if (ac_aggr.text)
22313 return 0;
22315 return 0;
22317 _ACEOF
22318 rm -f conftest.$ac_objext
22319 if { (ac_try="$ac_compile"
22320 case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22323 esac
22324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22325 $as_echo "$ac_try_echo") >&5
22326 (eval "$ac_compile") 2>conftest.er1
22327 ac_status=$?
22328 grep -v '^ *+' conftest.er1 >conftest.err
22329 rm -f conftest.er1
22330 cat conftest.err >&5
22331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } && {
22333 test -z "$ac_c_werror_flag" ||
22334 test ! -s conftest.err
22335 } && test -s conftest.$ac_objext; then
22336 ac_cv_member_krb5_error_text=yes
22337 else
22338 $as_echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h. */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 #include <krb5.h>
22350 main ()
22352 static krb5_error ac_aggr;
22353 if (sizeof ac_aggr.text)
22354 return 0;
22356 return 0;
22358 _ACEOF
22359 rm -f conftest.$ac_objext
22360 if { (ac_try="$ac_compile"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364 esac
22365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22366 $as_echo "$ac_try_echo") >&5
22367 (eval "$ac_compile") 2>conftest.er1
22368 ac_status=$?
22369 grep -v '^ *+' conftest.er1 >conftest.err
22370 rm -f conftest.er1
22371 cat conftest.err >&5
22372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } && {
22374 test -z "$ac_c_werror_flag" ||
22375 test ! -s conftest.err
22376 } && test -s conftest.$ac_objext; then
22377 ac_cv_member_krb5_error_text=yes
22378 else
22379 $as_echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ac_cv_member_krb5_error_text=no
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22391 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22392 if test $ac_cv_member_krb5_error_text = yes; then
22394 cat >>confdefs.h <<_ACEOF
22395 #define HAVE_KRB5_ERROR_TEXT 1
22396 _ACEOF
22400 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22401 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22402 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22403 $as_echo_n "(cached) " >&6
22404 else
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <krb5.h>
22414 main ()
22416 static krb5_error ac_aggr;
22417 if (ac_aggr.e_text)
22418 return 0;
22420 return 0;
22422 _ACEOF
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22428 esac
22429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22430 $as_echo "$ac_try_echo") >&5
22431 (eval "$ac_compile") 2>conftest.er1
22432 ac_status=$?
22433 grep -v '^ *+' conftest.er1 >conftest.err
22434 rm -f conftest.er1
22435 cat conftest.err >&5
22436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } && {
22438 test -z "$ac_c_werror_flag" ||
22439 test ! -s conftest.err
22440 } && test -s conftest.$ac_objext; then
22441 ac_cv_member_krb5_error_e_text=yes
22442 else
22443 $as_echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 #include <krb5.h>
22455 main ()
22457 static krb5_error ac_aggr;
22458 if (sizeof ac_aggr.e_text)
22459 return 0;
22461 return 0;
22463 _ACEOF
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469 esac
22470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22471 $as_echo "$ac_try_echo") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22473 ac_status=$?
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
22477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 ac_cv_member_krb5_error_e_text=yes
22483 else
22484 $as_echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_cv_member_krb5_error_e_text=no
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22496 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22497 if test $ac_cv_member_krb5_error_e_text = yes; then
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_KRB5_ERROR_E_TEXT 1
22501 _ACEOF
22508 done
22510 else
22512 for ac_header in des.h
22514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22516 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22517 $as_echo_n "checking for $ac_header... " >&6; }
22518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22519 $as_echo_n "(cached) " >&6
22521 ac_res=`eval 'as_val=${'$as_ac_Header'}
22522 $as_echo "$as_val"'`
22523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22524 $as_echo "$ac_res" >&6; }
22525 else
22526 # Is the header compilable?
22527 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22528 $as_echo_n "checking $ac_header usability... " >&6; }
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h. */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 $ac_includes_default
22536 #include <$ac_header>
22537 _ACEOF
22538 rm -f conftest.$ac_objext
22539 if { (ac_try="$ac_compile"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22543 esac
22544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22545 $as_echo "$ac_try_echo") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_header_compiler=yes
22557 else
22558 $as_echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_header_compiler=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22566 $as_echo "$ac_header_compiler" >&6; }
22568 # Is the header present?
22569 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22570 $as_echo_n "checking $ac_header presence... " >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h. */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 #include <$ac_header>
22578 _ACEOF
22579 if { (ac_try="$ac_cpp conftest.$ac_ext"
22580 case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22583 esac
22584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22585 $as_echo "$ac_try_echo") >&5
22586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22587 ac_status=$?
22588 grep -v '^ *+' conftest.er1 >conftest.err
22589 rm -f conftest.er1
22590 cat conftest.err >&5
22591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } >/dev/null && {
22593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22594 test ! -s conftest.err
22595 }; then
22596 ac_header_preproc=yes
22597 else
22598 $as_echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22601 ac_header_preproc=no
22604 rm -f conftest.err conftest.$ac_ext
22605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22606 $as_echo "$ac_header_preproc" >&6; }
22608 # So? What about this header?
22609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22610 yes:no: )
22611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22612 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22615 ac_header_preproc=yes
22617 no:yes:* )
22618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22619 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22621 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22623 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22625 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22629 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22632 esac
22633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22634 $as_echo_n "checking for $ac_header... " >&6; }
22635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22636 $as_echo_n "(cached) " >&6
22637 else
22638 eval "$as_ac_Header=\$ac_header_preproc"
22640 ac_res=`eval 'as_val=${'$as_ac_Header'}
22641 $as_echo "$as_val"'`
22642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22643 $as_echo "$ac_res" >&6; }
22646 if test `eval 'as_val=${'$as_ac_Header'}
22647 $as_echo "$as_val"'` = yes; then
22648 cat >>confdefs.h <<_ACEOF
22649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22650 _ACEOF
22652 else
22654 for ac_header in kerberosIV/des.h
22656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22659 $as_echo_n "checking for $ac_header... " >&6; }
22660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22661 $as_echo_n "(cached) " >&6
22663 ac_res=`eval 'as_val=${'$as_ac_Header'}
22664 $as_echo "$as_val"'`
22665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22666 $as_echo "$ac_res" >&6; }
22667 else
22668 # Is the header compilable?
22669 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22670 $as_echo_n "checking $ac_header usability... " >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 #include <$ac_header>
22679 _ACEOF
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22685 esac
22686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22687 $as_echo "$ac_try_echo") >&5
22688 (eval "$ac_compile") 2>conftest.er1
22689 ac_status=$?
22690 grep -v '^ *+' conftest.er1 >conftest.err
22691 rm -f conftest.er1
22692 cat conftest.err >&5
22693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest.$ac_objext; then
22698 ac_header_compiler=yes
22699 else
22700 $as_echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22703 ac_header_compiler=no
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22708 $as_echo "$ac_header_compiler" >&6; }
22710 # Is the header present?
22711 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22712 $as_echo_n "checking $ac_header presence... " >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h. */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <$ac_header>
22720 _ACEOF
22721 if { (ac_try="$ac_cpp conftest.$ac_ext"
22722 case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725 esac
22726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22727 $as_echo "$ac_try_echo") >&5
22728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22729 ac_status=$?
22730 grep -v '^ *+' conftest.er1 >conftest.err
22731 rm -f conftest.er1
22732 cat conftest.err >&5
22733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } >/dev/null && {
22735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22737 }; then
22738 ac_header_preproc=yes
22739 else
22740 $as_echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22743 ac_header_preproc=no
22746 rm -f conftest.err conftest.$ac_ext
22747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22748 $as_echo "$ac_header_preproc" >&6; }
22750 # So? What about this header?
22751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22752 yes:no: )
22753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22754 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22757 ac_header_preproc=yes
22759 no:yes:* )
22760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22761 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22763 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22765 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22767 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22771 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22774 esac
22775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22776 $as_echo_n "checking for $ac_header... " >&6; }
22777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22778 $as_echo_n "(cached) " >&6
22779 else
22780 eval "$as_ac_Header=\$ac_header_preproc"
22782 ac_res=`eval 'as_val=${'$as_ac_Header'}
22783 $as_echo "$as_val"'`
22784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22785 $as_echo "$ac_res" >&6; }
22788 if test `eval 'as_val=${'$as_ac_Header'}
22789 $as_echo "$as_val"'` = yes; then
22790 cat >>confdefs.h <<_ACEOF
22791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22792 _ACEOF
22794 else
22796 for ac_header in kerberos/des.h
22798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22801 $as_echo_n "checking for $ac_header... " >&6; }
22802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22803 $as_echo_n "(cached) " >&6
22805 ac_res=`eval 'as_val=${'$as_ac_Header'}
22806 $as_echo "$as_val"'`
22807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22808 $as_echo "$ac_res" >&6; }
22809 else
22810 # Is the header compilable?
22811 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22812 $as_echo_n "checking $ac_header usability... " >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h. */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 $ac_includes_default
22820 #include <$ac_header>
22821 _ACEOF
22822 rm -f conftest.$ac_objext
22823 if { (ac_try="$ac_compile"
22824 case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22827 esac
22828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22829 $as_echo "$ac_try_echo") >&5
22830 (eval "$ac_compile") 2>conftest.er1
22831 ac_status=$?
22832 grep -v '^ *+' conftest.er1 >conftest.err
22833 rm -f conftest.er1
22834 cat conftest.err >&5
22835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } && {
22837 test -z "$ac_c_werror_flag" ||
22838 test ! -s conftest.err
22839 } && test -s conftest.$ac_objext; then
22840 ac_header_compiler=yes
22841 else
22842 $as_echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_header_compiler=no
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22850 $as_echo "$ac_header_compiler" >&6; }
22852 # Is the header present?
22853 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22854 $as_echo_n "checking $ac_header presence... " >&6; }
22855 cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h. */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 #include <$ac_header>
22862 _ACEOF
22863 if { (ac_try="$ac_cpp conftest.$ac_ext"
22864 case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22867 esac
22868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22869 $as_echo "$ac_try_echo") >&5
22870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22871 ac_status=$?
22872 grep -v '^ *+' conftest.er1 >conftest.err
22873 rm -f conftest.er1
22874 cat conftest.err >&5
22875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } >/dev/null && {
22877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22878 test ! -s conftest.err
22879 }; then
22880 ac_header_preproc=yes
22881 else
22882 $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22885 ac_header_preproc=no
22888 rm -f conftest.err conftest.$ac_ext
22889 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22890 $as_echo "$ac_header_preproc" >&6; }
22892 # So? What about this header?
22893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22894 yes:no: )
22895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22896 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22899 ac_header_preproc=yes
22901 no:yes:* )
22902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22903 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22905 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22907 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22909 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22913 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22916 esac
22917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22918 $as_echo_n "checking for $ac_header... " >&6; }
22919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22920 $as_echo_n "(cached) " >&6
22921 else
22922 eval "$as_ac_Header=\$ac_header_preproc"
22924 ac_res=`eval 'as_val=${'$as_ac_Header'}
22925 $as_echo "$as_val"'`
22926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22927 $as_echo "$ac_res" >&6; }
22930 if test `eval 'as_val=${'$as_ac_Header'}
22931 $as_echo "$as_val"'` = yes; then
22932 cat >>confdefs.h <<_ACEOF
22933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22934 _ACEOF
22938 done
22942 done
22946 done
22949 for ac_header in krb.h
22951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22954 $as_echo_n "checking for $ac_header... " >&6; }
22955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22956 $as_echo_n "(cached) " >&6
22958 ac_res=`eval 'as_val=${'$as_ac_Header'}
22959 $as_echo "$as_val"'`
22960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22961 $as_echo "$ac_res" >&6; }
22962 else
22963 # Is the header compilable?
22964 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22965 $as_echo_n "checking $ac_header usability... " >&6; }
22966 cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h. */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 $ac_includes_default
22973 #include <$ac_header>
22974 _ACEOF
22975 rm -f conftest.$ac_objext
22976 if { (ac_try="$ac_compile"
22977 case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22980 esac
22981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22982 $as_echo "$ac_try_echo") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22984 ac_status=$?
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
22988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22994 else
22995 $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003 $as_echo "$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23007 $as_echo_n "checking $ac_header presence... " >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h. */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <$ac_header>
23015 _ACEOF
23016 if { (ac_try="$ac_cpp conftest.$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23022 $as_echo "$ac_try_echo") >&5
23023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23024 ac_status=$?
23025 grep -v '^ *+' conftest.er1 >conftest.err
23026 rm -f conftest.er1
23027 cat conftest.err >&5
23028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } >/dev/null && {
23030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23031 test ! -s conftest.err
23032 }; then
23033 ac_header_preproc=yes
23034 else
23035 $as_echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23038 ac_header_preproc=no
23041 rm -f conftest.err conftest.$ac_ext
23042 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23043 $as_echo "$ac_header_preproc" >&6; }
23045 # So? What about this header?
23046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23047 yes:no: )
23048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23049 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23051 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23052 ac_header_preproc=yes
23054 no:yes:* )
23055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23056 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23058 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23060 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23062 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23066 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23069 esac
23070 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23071 $as_echo_n "checking for $ac_header... " >&6; }
23072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23073 $as_echo_n "(cached) " >&6
23074 else
23075 eval "$as_ac_Header=\$ac_header_preproc"
23077 ac_res=`eval 'as_val=${'$as_ac_Header'}
23078 $as_echo "$as_val"'`
23079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23080 $as_echo "$ac_res" >&6; }
23083 if test `eval 'as_val=${'$as_ac_Header'}
23084 $as_echo "$as_val"'` = yes; then
23085 cat >>confdefs.h <<_ACEOF
23086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23087 _ACEOF
23089 else
23091 for ac_header in kerberosIV/krb.h
23093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23096 $as_echo_n "checking for $ac_header... " >&6; }
23097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23098 $as_echo_n "(cached) " >&6
23100 ac_res=`eval 'as_val=${'$as_ac_Header'}
23101 $as_echo "$as_val"'`
23102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23103 $as_echo "$ac_res" >&6; }
23104 else
23105 # Is the header compilable?
23106 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23107 $as_echo_n "checking $ac_header usability... " >&6; }
23108 cat >conftest.$ac_ext <<_ACEOF
23109 /* confdefs.h. */
23110 _ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h. */
23114 $ac_includes_default
23115 #include <$ac_header>
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23122 esac
23123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23124 $as_echo "$ac_try_echo") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23126 ac_status=$?
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
23130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 ac_header_compiler=yes
23136 else
23137 $as_echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_header_compiler=no
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23145 $as_echo "$ac_header_compiler" >&6; }
23147 # Is the header present?
23148 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23149 $as_echo_n "checking $ac_header presence... " >&6; }
23150 cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h. */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23156 #include <$ac_header>
23157 _ACEOF
23158 if { (ac_try="$ac_cpp conftest.$ac_ext"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23162 esac
23163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23164 $as_echo "$ac_try_echo") >&5
23165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23166 ac_status=$?
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
23170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } >/dev/null && {
23172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23174 }; then
23175 ac_header_preproc=yes
23176 else
23177 $as_echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_header_preproc=no
23183 rm -f conftest.err conftest.$ac_ext
23184 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23185 $as_echo "$ac_header_preproc" >&6; }
23187 # So? What about this header?
23188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23189 yes:no: )
23190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23194 ac_header_preproc=yes
23196 no:yes:* )
23197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23198 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23200 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23202 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23204 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23208 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23211 esac
23212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23213 $as_echo_n "checking for $ac_header... " >&6; }
23214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23215 $as_echo_n "(cached) " >&6
23216 else
23217 eval "$as_ac_Header=\$ac_header_preproc"
23219 ac_res=`eval 'as_val=${'$as_ac_Header'}
23220 $as_echo "$as_val"'`
23221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23222 $as_echo "$ac_res" >&6; }
23225 if test `eval 'as_val=${'$as_ac_Header'}
23226 $as_echo "$as_val"'` = yes; then
23227 cat >>confdefs.h <<_ACEOF
23228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23229 _ACEOF
23231 else
23233 for ac_header in kerberos/krb.h
23235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23238 $as_echo_n "checking for $ac_header... " >&6; }
23239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23240 $as_echo_n "(cached) " >&6
23242 ac_res=`eval 'as_val=${'$as_ac_Header'}
23243 $as_echo "$as_val"'`
23244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23245 $as_echo "$ac_res" >&6; }
23246 else
23247 # Is the header compilable?
23248 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23249 $as_echo_n "checking $ac_header usability... " >&6; }
23250 cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h. */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 $ac_includes_default
23257 #include <$ac_header>
23258 _ACEOF
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23264 esac
23265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23266 $as_echo "$ac_try_echo") >&5
23267 (eval "$ac_compile") 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest.$ac_objext; then
23277 ac_header_compiler=yes
23278 else
23279 $as_echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_header_compiler=no
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23287 $as_echo "$ac_header_compiler" >&6; }
23289 # Is the header present?
23290 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23291 $as_echo_n "checking $ac_header presence... " >&6; }
23292 cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h. */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23298 #include <$ac_header>
23299 _ACEOF
23300 if { (ac_try="$ac_cpp conftest.$ac_ext"
23301 case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23304 esac
23305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23306 $as_echo "$ac_try_echo") >&5
23307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23308 ac_status=$?
23309 grep -v '^ *+' conftest.er1 >conftest.err
23310 rm -f conftest.er1
23311 cat conftest.err >&5
23312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } >/dev/null && {
23314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23315 test ! -s conftest.err
23316 }; then
23317 ac_header_preproc=yes
23318 else
23319 $as_echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ac_header_preproc=no
23325 rm -f conftest.err conftest.$ac_ext
23326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23327 $as_echo "$ac_header_preproc" >&6; }
23329 # So? What about this header?
23330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23331 yes:no: )
23332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23333 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23336 ac_header_preproc=yes
23338 no:yes:* )
23339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23340 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23342 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23344 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23346 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23350 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23353 esac
23354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23355 $as_echo_n "checking for $ac_header... " >&6; }
23356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23357 $as_echo_n "(cached) " >&6
23358 else
23359 eval "$as_ac_Header=\$ac_header_preproc"
23361 ac_res=`eval 'as_val=${'$as_ac_Header'}
23362 $as_echo "$as_val"'`
23363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23364 $as_echo "$ac_res" >&6; }
23367 if test `eval 'as_val=${'$as_ac_Header'}
23368 $as_echo "$as_val"'` = yes; then
23369 cat >>confdefs.h <<_ACEOF
23370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23371 _ACEOF
23375 done
23379 done
23383 done
23387 for ac_header in com_err.h
23389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23392 $as_echo_n "checking for $ac_header... " >&6; }
23393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23394 $as_echo_n "(cached) " >&6
23396 ac_res=`eval 'as_val=${'$as_ac_Header'}
23397 $as_echo "$as_val"'`
23398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23399 $as_echo "$ac_res" >&6; }
23400 else
23401 # Is the header compilable?
23402 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23403 $as_echo_n "checking $ac_header usability... " >&6; }
23404 cat >conftest.$ac_ext <<_ACEOF
23405 /* confdefs.h. */
23406 _ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23410 $ac_includes_default
23411 #include <$ac_header>
23412 _ACEOF
23413 rm -f conftest.$ac_objext
23414 if { (ac_try="$ac_compile"
23415 case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23418 esac
23419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23420 $as_echo "$ac_try_echo") >&5
23421 (eval "$ac_compile") 2>conftest.er1
23422 ac_status=$?
23423 grep -v '^ *+' conftest.er1 >conftest.err
23424 rm -f conftest.er1
23425 cat conftest.err >&5
23426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } && {
23428 test -z "$ac_c_werror_flag" ||
23429 test ! -s conftest.err
23430 } && test -s conftest.$ac_objext; then
23431 ac_header_compiler=yes
23432 else
23433 $as_echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ac_header_compiler=no
23439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23441 $as_echo "$ac_header_compiler" >&6; }
23443 # Is the header present?
23444 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23445 $as_echo_n "checking $ac_header presence... " >&6; }
23446 cat >conftest.$ac_ext <<_ACEOF
23447 /* confdefs.h. */
23448 _ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 #include <$ac_header>
23453 _ACEOF
23454 if { (ac_try="$ac_cpp conftest.$ac_ext"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23458 esac
23459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23460 $as_echo "$ac_try_echo") >&5
23461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23462 ac_status=$?
23463 grep -v '^ *+' conftest.er1 >conftest.err
23464 rm -f conftest.er1
23465 cat conftest.err >&5
23466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } >/dev/null && {
23468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 }; then
23471 ac_header_preproc=yes
23472 else
23473 $as_echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_header_preproc=no
23479 rm -f conftest.err conftest.$ac_ext
23480 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23481 $as_echo "$ac_header_preproc" >&6; }
23483 # So? What about this header?
23484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23485 yes:no: )
23486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23487 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23490 ac_header_preproc=yes
23492 no:yes:* )
23493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23494 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23496 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23498 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23500 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23502 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23504 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23507 esac
23508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23509 $as_echo_n "checking for $ac_header... " >&6; }
23510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23511 $as_echo_n "(cached) " >&6
23512 else
23513 eval "$as_ac_Header=\$ac_header_preproc"
23515 ac_res=`eval 'as_val=${'$as_ac_Header'}
23516 $as_echo "$as_val"'`
23517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23518 $as_echo "$ac_res" >&6; }
23521 if test `eval 'as_val=${'$as_ac_Header'}
23522 $as_echo "$as_val"'` = yes; then
23523 cat >>confdefs.h <<_ACEOF
23524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23525 _ACEOF
23529 done
23533 # Solaris requires -lintl if you want strerror (which calls dgettext)
23534 # to return localized messages.
23536 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23537 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23538 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23539 $as_echo_n "(cached) " >&6
23540 else
23541 ac_check_lib_save_LIBS=$LIBS
23542 LIBS="-lintl $LIBS"
23543 cat >conftest.$ac_ext <<_ACEOF
23544 /* confdefs.h. */
23545 _ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23550 /* Override any GCC internal prototype to avoid an error.
23551 Use char because int might match the return type of a GCC
23552 builtin and then its argument prototype would still apply. */
23553 #ifdef __cplusplus
23554 extern "C"
23555 #endif
23556 char dgettext ();
23558 main ()
23560 return dgettext ();
23562 return 0;
23564 _ACEOF
23565 rm -f conftest.$ac_objext conftest$ac_exeext
23566 if { (ac_try="$ac_link"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570 esac
23571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23572 $as_echo "$ac_try_echo") >&5
23573 (eval "$ac_link") 2>conftest.er1
23574 ac_status=$?
23575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
23578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } && {
23580 test -z "$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 } && test -s conftest$ac_exeext && {
23583 test "$cross_compiling" = yes ||
23584 $as_test_x conftest$ac_exeext
23585 }; then
23586 ac_cv_lib_intl_dgettext=yes
23587 else
23588 $as_echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 ac_cv_lib_intl_dgettext=no
23594 rm -rf conftest.dSYM
23595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23596 conftest$ac_exeext conftest.$ac_ext
23597 LIBS=$ac_check_lib_save_LIBS
23599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23600 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23601 if test $ac_cv_lib_intl_dgettext = yes; then
23602 cat >>confdefs.h <<_ACEOF
23603 #define HAVE_LIBINTL 1
23604 _ACEOF
23606 LIBS="-lintl $LIBS"
23611 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23612 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23613 if test "${emacs_cv_localtime_cache+set}" = set; then
23614 $as_echo_n "(cached) " >&6
23615 else
23616 if test x$ac_cv_func_tzset = xyes; then
23617 if test "$cross_compiling" = yes; then
23618 # If we have tzset, assume the worst when cross-compiling.
23619 emacs_cv_localtime_cache=yes
23620 else
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h. */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 #include <time.h>
23628 extern char **environ;
23629 unset_TZ ()
23631 char **from, **to;
23632 for (to = from = environ; (*to = *from); from++)
23633 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23634 to++;
23636 char TZ_GMT0[] = "TZ=GMT0";
23637 char TZ_PST8[] = "TZ=PST8";
23638 main()
23640 time_t now = time ((time_t *) 0);
23641 int hour_GMT0, hour_unset;
23642 if (putenv (TZ_GMT0) != 0)
23643 exit (1);
23644 hour_GMT0 = localtime (&now)->tm_hour;
23645 unset_TZ ();
23646 hour_unset = localtime (&now)->tm_hour;
23647 if (putenv (TZ_PST8) != 0)
23648 exit (1);
23649 if (localtime (&now)->tm_hour == hour_GMT0)
23650 exit (1);
23651 unset_TZ ();
23652 if (localtime (&now)->tm_hour != hour_unset)
23653 exit (1);
23654 exit (0);
23656 _ACEOF
23657 rm -f conftest$ac_exeext
23658 if { (ac_try="$ac_link"
23659 case "(($ac_try" in
23660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661 *) ac_try_echo=$ac_try;;
23662 esac
23663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23664 $as_echo "$ac_try_echo") >&5
23665 (eval "$ac_link") 2>&5
23666 ac_status=$?
23667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23669 { (case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23672 esac
23673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23674 $as_echo "$ac_try_echo") >&5
23675 (eval "$ac_try") 2>&5
23676 ac_status=$?
23677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; }; then
23679 emacs_cv_localtime_cache=no
23680 else
23681 $as_echo "$as_me: program exited with status $ac_status" >&5
23682 $as_echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 ( exit $ac_status )
23686 emacs_cv_localtime_cache=yes
23688 rm -rf conftest.dSYM
23689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23693 else
23694 # If we lack tzset, report that localtime does not cache TZ,
23695 # since we can't invalidate the cache if we don't have tzset.
23696 emacs_cv_localtime_cache=no
23699 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23700 $as_echo "$emacs_cv_localtime_cache" >&6; }
23701 if test $emacs_cv_localtime_cache = yes; then
23703 cat >>confdefs.h <<\_ACEOF
23704 #define LOCALTIME_CACHE 1
23705 _ACEOF
23709 if test "x$HAVE_TIMEVAL" = xyes; then
23711 for ac_func in gettimeofday
23713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23715 $as_echo_n "checking for $ac_func... " >&6; }
23716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23717 $as_echo_n "(cached) " >&6
23718 else
23719 cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h. */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23727 #define $ac_func innocuous_$ac_func
23729 /* System header to define __stub macros and hopefully few prototypes,
23730 which can conflict with char $ac_func (); below.
23731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23732 <limits.h> exists even on freestanding compilers. */
23734 #ifdef __STDC__
23735 # include <limits.h>
23736 #else
23737 # include <assert.h>
23738 #endif
23740 #undef $ac_func
23742 /* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23745 #ifdef __cplusplus
23746 extern "C"
23747 #endif
23748 char $ac_func ();
23749 /* The GNU C library defines this for functions which it implements
23750 to always fail with ENOSYS. Some functions are actually named
23751 something starting with __ and the normal name is an alias. */
23752 #if defined __stub_$ac_func || defined __stub___$ac_func
23753 choke me
23754 #endif
23757 main ()
23759 return $ac_func ();
23761 return 0;
23763 _ACEOF
23764 rm -f conftest.$ac_objext conftest$ac_exeext
23765 if { (ac_try="$ac_link"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23769 esac
23770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23771 $as_echo "$ac_try_echo") >&5
23772 (eval "$ac_link") 2>conftest.er1
23773 ac_status=$?
23774 grep -v '^ *+' conftest.er1 >conftest.err
23775 rm -f conftest.er1
23776 cat conftest.err >&5
23777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } && {
23779 test -z "$ac_c_werror_flag" ||
23780 test ! -s conftest.err
23781 } && test -s conftest$ac_exeext && {
23782 test "$cross_compiling" = yes ||
23783 $as_test_x conftest$ac_exeext
23784 }; then
23785 eval "$as_ac_var=yes"
23786 else
23787 $as_echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23790 eval "$as_ac_var=no"
23793 rm -rf conftest.dSYM
23794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23795 conftest$ac_exeext conftest.$ac_ext
23797 ac_res=`eval 'as_val=${'$as_ac_var'}
23798 $as_echo "$as_val"'`
23799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23800 $as_echo "$ac_res" >&6; }
23801 if test `eval 'as_val=${'$as_ac_var'}
23802 $as_echo "$as_val"'` = yes; then
23803 cat >>confdefs.h <<_ACEOF
23804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23805 _ACEOF
23808 done
23810 if test $ac_cv_func_gettimeofday = yes; then
23811 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23812 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23813 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23814 $as_echo_n "(cached) " >&6
23815 else
23816 cat >conftest.$ac_ext <<_ACEOF
23817 /* confdefs.h. */
23818 _ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23823 #ifdef TIME_WITH_SYS_TIME
23824 #include <sys/time.h>
23825 #include <time.h>
23826 #else
23827 #ifdef HAVE_SYS_TIME_H
23828 #include <sys/time.h>
23829 #else
23830 #include <time.h>
23831 #endif
23832 #endif
23834 main ()
23836 struct timeval time;
23837 gettimeofday (&time, 0);
23839 return 0;
23841 _ACEOF
23842 rm -f conftest.$ac_objext
23843 if { (ac_try="$ac_compile"
23844 case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23847 esac
23848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23849 $as_echo "$ac_try_echo") >&5
23850 (eval "$ac_compile") 2>conftest.er1
23851 ac_status=$?
23852 grep -v '^ *+' conftest.er1 >conftest.err
23853 rm -f conftest.er1
23854 cat conftest.err >&5
23855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); } && {
23857 test -z "$ac_c_werror_flag" ||
23858 test ! -s conftest.err
23859 } && test -s conftest.$ac_objext; then
23860 emacs_cv_gettimeofday_two_arguments=yes
23861 else
23862 $as_echo "$as_me: failed program was:" >&5
23863 sed 's/^/| /' conftest.$ac_ext >&5
23865 emacs_cv_gettimeofday_two_arguments=no
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23871 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23872 if test $emacs_cv_gettimeofday_two_arguments = no; then
23874 cat >>confdefs.h <<\_ACEOF
23875 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23876 _ACEOF
23882 ok_so_far=yes
23883 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23884 $as_echo_n "checking for socket... " >&6; }
23885 if test "${ac_cv_func_socket+set}" = set; then
23886 $as_echo_n "(cached) " >&6
23887 else
23888 cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h. */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23896 #define socket innocuous_socket
23898 /* System header to define __stub macros and hopefully few prototypes,
23899 which can conflict with char socket (); below.
23900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23901 <limits.h> exists even on freestanding compilers. */
23903 #ifdef __STDC__
23904 # include <limits.h>
23905 #else
23906 # include <assert.h>
23907 #endif
23909 #undef socket
23911 /* Override any GCC internal prototype to avoid an error.
23912 Use char because int might match the return type of a GCC
23913 builtin and then its argument prototype would still apply. */
23914 #ifdef __cplusplus
23915 extern "C"
23916 #endif
23917 char socket ();
23918 /* The GNU C library defines this for functions which it implements
23919 to always fail with ENOSYS. Some functions are actually named
23920 something starting with __ and the normal name is an alias. */
23921 #if defined __stub_socket || defined __stub___socket
23922 choke me
23923 #endif
23926 main ()
23928 return socket ();
23930 return 0;
23932 _ACEOF
23933 rm -f conftest.$ac_objext conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23938 esac
23939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23940 $as_echo "$ac_try_echo") >&5
23941 (eval "$ac_link") 2>conftest.er1
23942 ac_status=$?
23943 grep -v '^ *+' conftest.er1 >conftest.err
23944 rm -f conftest.er1
23945 cat conftest.err >&5
23946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } && {
23948 test -z "$ac_c_werror_flag" ||
23949 test ! -s conftest.err
23950 } && test -s conftest$ac_exeext && {
23951 test "$cross_compiling" = yes ||
23952 $as_test_x conftest$ac_exeext
23953 }; then
23954 ac_cv_func_socket=yes
23955 else
23956 $as_echo "$as_me: failed program was:" >&5
23957 sed 's/^/| /' conftest.$ac_ext >&5
23959 ac_cv_func_socket=no
23962 rm -rf conftest.dSYM
23963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23964 conftest$ac_exeext conftest.$ac_ext
23966 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23967 $as_echo "$ac_cv_func_socket" >&6; }
23968 if test $ac_cv_func_socket = yes; then
23970 else
23971 ok_so_far=no
23974 if test $ok_so_far = yes; then
23975 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23976 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23977 $as_echo_n "checking for netinet/in.h... " >&6; }
23978 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23979 $as_echo_n "(cached) " >&6
23981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23982 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23983 else
23984 # Is the header compilable?
23985 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23986 $as_echo_n "checking netinet/in.h usability... " >&6; }
23987 cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h. */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23993 $ac_includes_default
23994 #include <netinet/in.h>
23995 _ACEOF
23996 rm -f conftest.$ac_objext
23997 if { (ac_try="$ac_compile"
23998 case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24001 esac
24002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24003 $as_echo "$ac_try_echo") >&5
24004 (eval "$ac_compile") 2>conftest.er1
24005 ac_status=$?
24006 grep -v '^ *+' conftest.er1 >conftest.err
24007 rm -f conftest.er1
24008 cat conftest.err >&5
24009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); } && {
24011 test -z "$ac_c_werror_flag" ||
24012 test ! -s conftest.err
24013 } && test -s conftest.$ac_objext; then
24014 ac_header_compiler=yes
24015 else
24016 $as_echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24019 ac_header_compiler=no
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24024 $as_echo "$ac_header_compiler" >&6; }
24026 # Is the header present?
24027 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24028 $as_echo_n "checking netinet/in.h presence... " >&6; }
24029 cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h. */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 #include <netinet/in.h>
24036 _ACEOF
24037 if { (ac_try="$ac_cpp conftest.$ac_ext"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24041 esac
24042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24043 $as_echo "$ac_try_echo") >&5
24044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24045 ac_status=$?
24046 grep -v '^ *+' conftest.er1 >conftest.err
24047 rm -f conftest.er1
24048 cat conftest.err >&5
24049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } >/dev/null && {
24051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24052 test ! -s conftest.err
24053 }; then
24054 ac_header_preproc=yes
24055 else
24056 $as_echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059 ac_header_preproc=no
24062 rm -f conftest.err conftest.$ac_ext
24063 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24064 $as_echo "$ac_header_preproc" >&6; }
24066 # So? What about this header?
24067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24068 yes:no: )
24069 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24070 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24072 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24073 ac_header_preproc=yes
24075 no:yes:* )
24076 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24077 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24078 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24079 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24080 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24081 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24083 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24084 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24085 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24086 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24087 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24090 esac
24091 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24092 $as_echo_n "checking for netinet/in.h... " >&6; }
24093 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24094 $as_echo_n "(cached) " >&6
24095 else
24096 ac_cv_header_netinet_in_h=$ac_header_preproc
24098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24099 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24102 if test $ac_cv_header_netinet_in_h = yes; then
24104 else
24105 ok_so_far=no
24110 if test $ok_so_far = yes; then
24111 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24112 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24113 $as_echo_n "checking for arpa/inet.h... " >&6; }
24114 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24115 $as_echo_n "(cached) " >&6
24117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24118 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24119 else
24120 # Is the header compilable?
24121 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24122 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24123 cat >conftest.$ac_ext <<_ACEOF
24124 /* confdefs.h. */
24125 _ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h. */
24129 $ac_includes_default
24130 #include <arpa/inet.h>
24131 _ACEOF
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24137 esac
24138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24139 $as_echo "$ac_try_echo") >&5
24140 (eval "$ac_compile") 2>conftest.er1
24141 ac_status=$?
24142 grep -v '^ *+' conftest.er1 >conftest.err
24143 rm -f conftest.er1
24144 cat conftest.err >&5
24145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } && {
24147 test -z "$ac_c_werror_flag" ||
24148 test ! -s conftest.err
24149 } && test -s conftest.$ac_objext; then
24150 ac_header_compiler=yes
24151 else
24152 $as_echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 ac_header_compiler=no
24158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24160 $as_echo "$ac_header_compiler" >&6; }
24162 # Is the header present?
24163 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24164 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24165 cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h. */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 #include <arpa/inet.h>
24172 _ACEOF
24173 if { (ac_try="$ac_cpp conftest.$ac_ext"
24174 case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24177 esac
24178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24179 $as_echo "$ac_try_echo") >&5
24180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24181 ac_status=$?
24182 grep -v '^ *+' conftest.er1 >conftest.err
24183 rm -f conftest.er1
24184 cat conftest.err >&5
24185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } >/dev/null && {
24187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24189 }; then
24190 ac_header_preproc=yes
24191 else
24192 $as_echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ac_header_preproc=no
24198 rm -f conftest.err conftest.$ac_ext
24199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24200 $as_echo "$ac_header_preproc" >&6; }
24202 # So? What about this header?
24203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24204 yes:no: )
24205 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24206 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24207 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24208 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24209 ac_header_preproc=yes
24211 no:yes:* )
24212 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24213 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24214 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24215 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24216 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24217 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24218 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24219 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24220 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24221 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24222 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24223 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24226 esac
24227 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24228 $as_echo_n "checking for arpa/inet.h... " >&6; }
24229 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24230 $as_echo_n "(cached) " >&6
24231 else
24232 ac_cv_header_arpa_inet_h=$ac_header_preproc
24234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24235 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24238 if test $ac_cv_header_arpa_inet_h = yes; then
24240 else
24241 ok_so_far=no
24246 if test $ok_so_far = yes; then
24248 cat >>confdefs.h <<\_ACEOF
24249 #define HAVE_INET_SOCKETS 1
24250 _ACEOF
24255 for ac_header in sys/ioctl.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
24400 if test -f /usr/lpp/X11/bin/smt.exp; then
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_AIX_SMT_EXP 1
24404 _ACEOF
24408 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24409 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24410 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24411 { $as_echo "$as_me:$LINENO: result: yes" >&5
24412 $as_echo "yes" >&6; }
24414 cat >>confdefs.h <<\_ACEOF
24415 #define HAVE_DEV_PTMX 1
24416 _ACEOF
24418 else
24419 { $as_echo "$as_me:$LINENO: result: no" >&5
24420 $as_echo "no" >&6; }
24423 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24424 $as_echo_n "checking for pid_t... " >&6; }
24425 if test "${ac_cv_type_pid_t+set}" = set; then
24426 $as_echo_n "(cached) " >&6
24427 else
24428 ac_cv_type_pid_t=no
24429 cat >conftest.$ac_ext <<_ACEOF
24430 /* confdefs.h. */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 $ac_includes_default
24437 main ()
24439 if (sizeof (pid_t))
24440 return 0;
24442 return 0;
24444 _ACEOF
24445 rm -f conftest.$ac_objext
24446 if { (ac_try="$ac_compile"
24447 case "(($ac_try" in
24448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24449 *) ac_try_echo=$ac_try;;
24450 esac
24451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24452 $as_echo "$ac_try_echo") >&5
24453 (eval "$ac_compile") 2>conftest.er1
24454 ac_status=$?
24455 grep -v '^ *+' conftest.er1 >conftest.err
24456 rm -f conftest.er1
24457 cat conftest.err >&5
24458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); } && {
24460 test -z "$ac_c_werror_flag" ||
24461 test ! -s conftest.err
24462 } && test -s conftest.$ac_objext; then
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h. */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 $ac_includes_default
24471 main ()
24473 if (sizeof ((pid_t)))
24474 return 0;
24476 return 0;
24478 _ACEOF
24479 rm -f conftest.$ac_objext
24480 if { (ac_try="$ac_compile"
24481 case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24484 esac
24485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24486 $as_echo "$ac_try_echo") >&5
24487 (eval "$ac_compile") 2>conftest.er1
24488 ac_status=$?
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
24492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } && {
24494 test -z "$ac_c_werror_flag" ||
24495 test ! -s conftest.err
24496 } && test -s conftest.$ac_objext; then
24498 else
24499 $as_echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24502 ac_cv_type_pid_t=yes
24505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24506 else
24507 $as_echo "$as_me: failed program was:" >&5
24508 sed 's/^/| /' conftest.$ac_ext >&5
24513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24516 $as_echo "$ac_cv_type_pid_t" >&6; }
24517 if test $ac_cv_type_pid_t = yes; then
24519 else
24521 cat >>confdefs.h <<_ACEOF
24522 #define pid_t int
24523 _ACEOF
24528 for ac_header in vfork.h
24530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24532 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24533 $as_echo_n "checking for $ac_header... " >&6; }
24534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24535 $as_echo_n "(cached) " >&6
24537 ac_res=`eval 'as_val=${'$as_ac_Header'}
24538 $as_echo "$as_val"'`
24539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24540 $as_echo "$ac_res" >&6; }
24541 else
24542 # Is the header compilable?
24543 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24544 $as_echo_n "checking $ac_header usability... " >&6; }
24545 cat >conftest.$ac_ext <<_ACEOF
24546 /* confdefs.h. */
24547 _ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 $ac_includes_default
24552 #include <$ac_header>
24553 _ACEOF
24554 rm -f conftest.$ac_objext
24555 if { (ac_try="$ac_compile"
24556 case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24559 esac
24560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24561 $as_echo "$ac_try_echo") >&5
24562 (eval "$ac_compile") 2>conftest.er1
24563 ac_status=$?
24564 grep -v '^ *+' conftest.er1 >conftest.err
24565 rm -f conftest.er1
24566 cat conftest.err >&5
24567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); } && {
24569 test -z "$ac_c_werror_flag" ||
24570 test ! -s conftest.err
24571 } && test -s conftest.$ac_objext; then
24572 ac_header_compiler=yes
24573 else
24574 $as_echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24577 ac_header_compiler=no
24580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24582 $as_echo "$ac_header_compiler" >&6; }
24584 # Is the header present?
24585 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24586 $as_echo_n "checking $ac_header presence... " >&6; }
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 #include <$ac_header>
24594 _ACEOF
24595 if { (ac_try="$ac_cpp conftest.$ac_ext"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24599 esac
24600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24601 $as_echo "$ac_try_echo") >&5
24602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } >/dev/null && {
24609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 }; then
24612 ac_header_preproc=yes
24613 else
24614 $as_echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_header_preproc=no
24620 rm -f conftest.err conftest.$ac_ext
24621 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24622 $as_echo "$ac_header_preproc" >&6; }
24624 # So? What about this header?
24625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24626 yes:no: )
24627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24628 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24631 ac_header_preproc=yes
24633 no:yes:* )
24634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24635 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24637 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24639 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24641 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24645 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24648 esac
24649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24650 $as_echo_n "checking for $ac_header... " >&6; }
24651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24652 $as_echo_n "(cached) " >&6
24653 else
24654 eval "$as_ac_Header=\$ac_header_preproc"
24656 ac_res=`eval 'as_val=${'$as_ac_Header'}
24657 $as_echo "$as_val"'`
24658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24659 $as_echo "$ac_res" >&6; }
24662 if test `eval 'as_val=${'$as_ac_Header'}
24663 $as_echo "$as_val"'` = yes; then
24664 cat >>confdefs.h <<_ACEOF
24665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24666 _ACEOF
24670 done
24674 for ac_func in fork vfork
24676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24677 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24678 $as_echo_n "checking for $ac_func... " >&6; }
24679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24680 $as_echo_n "(cached) " >&6
24681 else
24682 cat >conftest.$ac_ext <<_ACEOF
24683 /* confdefs.h. */
24684 _ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24690 #define $ac_func innocuous_$ac_func
24692 /* System header to define __stub macros and hopefully few prototypes,
24693 which can conflict with char $ac_func (); below.
24694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24695 <limits.h> exists even on freestanding compilers. */
24697 #ifdef __STDC__
24698 # include <limits.h>
24699 #else
24700 # include <assert.h>
24701 #endif
24703 #undef $ac_func
24705 /* Override any GCC internal prototype to avoid an error.
24706 Use char because int might match the return type of a GCC
24707 builtin and then its argument prototype would still apply. */
24708 #ifdef __cplusplus
24709 extern "C"
24710 #endif
24711 char $ac_func ();
24712 /* The GNU C library defines this for functions which it implements
24713 to always fail with ENOSYS. Some functions are actually named
24714 something starting with __ and the normal name is an alias. */
24715 #if defined __stub_$ac_func || defined __stub___$ac_func
24716 choke me
24717 #endif
24720 main ()
24722 return $ac_func ();
24724 return 0;
24726 _ACEOF
24727 rm -f conftest.$ac_objext conftest$ac_exeext
24728 if { (ac_try="$ac_link"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24732 esac
24733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24734 $as_echo "$ac_try_echo") >&5
24735 (eval "$ac_link") 2>conftest.er1
24736 ac_status=$?
24737 grep -v '^ *+' conftest.er1 >conftest.err
24738 rm -f conftest.er1
24739 cat conftest.err >&5
24740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); } && {
24742 test -z "$ac_c_werror_flag" ||
24743 test ! -s conftest.err
24744 } && test -s conftest$ac_exeext && {
24745 test "$cross_compiling" = yes ||
24746 $as_test_x conftest$ac_exeext
24747 }; then
24748 eval "$as_ac_var=yes"
24749 else
24750 $as_echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 eval "$as_ac_var=no"
24756 rm -rf conftest.dSYM
24757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24758 conftest$ac_exeext conftest.$ac_ext
24760 ac_res=`eval 'as_val=${'$as_ac_var'}
24761 $as_echo "$as_val"'`
24762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24763 $as_echo "$ac_res" >&6; }
24764 if test `eval 'as_val=${'$as_ac_var'}
24765 $as_echo "$as_val"'` = yes; then
24766 cat >>confdefs.h <<_ACEOF
24767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24768 _ACEOF
24771 done
24773 if test "x$ac_cv_func_fork" = xyes; then
24774 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24775 $as_echo_n "checking for working fork... " >&6; }
24776 if test "${ac_cv_func_fork_works+set}" = set; then
24777 $as_echo_n "(cached) " >&6
24778 else
24779 if test "$cross_compiling" = yes; then
24780 ac_cv_func_fork_works=cross
24781 else
24782 cat >conftest.$ac_ext <<_ACEOF
24783 /* confdefs.h. */
24784 _ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h. */
24788 $ac_includes_default
24790 main ()
24793 /* By Ruediger Kuhlmann. */
24794 return fork () < 0;
24797 return 0;
24799 _ACEOF
24800 rm -f conftest$ac_exeext
24801 if { (ac_try="$ac_link"
24802 case "(($ac_try" in
24803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804 *) ac_try_echo=$ac_try;;
24805 esac
24806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808 (eval "$ac_link") 2>&5
24809 ac_status=$?
24810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812 { (case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24815 esac
24816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24817 $as_echo "$ac_try_echo") >&5
24818 (eval "$ac_try") 2>&5
24819 ac_status=$?
24820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 ac_cv_func_fork_works=yes
24823 else
24824 $as_echo "$as_me: program exited with status $ac_status" >&5
24825 $as_echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 ( exit $ac_status )
24829 ac_cv_func_fork_works=no
24831 rm -rf conftest.dSYM
24832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24837 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24838 $as_echo "$ac_cv_func_fork_works" >&6; }
24840 else
24841 ac_cv_func_fork_works=$ac_cv_func_fork
24843 if test "x$ac_cv_func_fork_works" = xcross; then
24844 case $host in
24845 *-*-amigaos* | *-*-msdosdjgpp*)
24846 # Override, as these systems have only a dummy fork() stub
24847 ac_cv_func_fork_works=no
24850 ac_cv_func_fork_works=yes
24852 esac
24853 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24854 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24856 ac_cv_func_vfork_works=$ac_cv_func_vfork
24857 if test "x$ac_cv_func_vfork" = xyes; then
24858 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24859 $as_echo_n "checking for working vfork... " >&6; }
24860 if test "${ac_cv_func_vfork_works+set}" = set; then
24861 $as_echo_n "(cached) " >&6
24862 else
24863 if test "$cross_compiling" = yes; then
24864 ac_cv_func_vfork_works=cross
24865 else
24866 cat >conftest.$ac_ext <<_ACEOF
24867 /* confdefs.h. */
24868 _ACEOF
24869 cat confdefs.h >>conftest.$ac_ext
24870 cat >>conftest.$ac_ext <<_ACEOF
24871 /* end confdefs.h. */
24872 /* Thanks to Paul Eggert for this test. */
24873 $ac_includes_default
24874 #include <sys/wait.h>
24875 #ifdef HAVE_VFORK_H
24876 # include <vfork.h>
24877 #endif
24878 /* On some sparc systems, changes by the child to local and incoming
24879 argument registers are propagated back to the parent. The compiler
24880 is told about this with #include <vfork.h>, but some compilers
24881 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24882 static variable whose address is put into a register that is
24883 clobbered by the vfork. */
24884 static void
24885 #ifdef __cplusplus
24886 sparc_address_test (int arg)
24887 # else
24888 sparc_address_test (arg) int arg;
24889 #endif
24891 static pid_t child;
24892 if (!child) {
24893 child = vfork ();
24894 if (child < 0) {
24895 perror ("vfork");
24896 _exit(2);
24898 if (!child) {
24899 arg = getpid();
24900 write(-1, "", 0);
24901 _exit (arg);
24907 main ()
24909 pid_t parent = getpid ();
24910 pid_t child;
24912 sparc_address_test (0);
24914 child = vfork ();
24916 if (child == 0) {
24917 /* Here is another test for sparc vfork register problems. This
24918 test uses lots of local variables, at least as many local
24919 variables as main has allocated so far including compiler
24920 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24921 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24922 reuse the register of parent for one of the local variables,
24923 since it will think that parent can't possibly be used any more
24924 in this routine. Assigning to the local variable will thus
24925 munge parent in the parent process. */
24926 pid_t
24927 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24928 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24929 /* Convince the compiler that p..p7 are live; otherwise, it might
24930 use the same hardware register for all 8 local variables. */
24931 if (p != p1 || p != p2 || p != p3 || p != p4
24932 || p != p5 || p != p6 || p != p7)
24933 _exit(1);
24935 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24936 from child file descriptors. If the child closes a descriptor
24937 before it execs or exits, this munges the parent's descriptor
24938 as well. Test for this by closing stdout in the child. */
24939 _exit(close(fileno(stdout)) != 0);
24940 } else {
24941 int status;
24942 struct stat st;
24944 while (wait(&status) != child)
24946 return (
24947 /* Was there some problem with vforking? */
24948 child < 0
24950 /* Did the child fail? (This shouldn't happen.) */
24951 || status
24953 /* Did the vfork/compiler bug occur? */
24954 || parent != getpid()
24956 /* Did the file descriptor bug occur? */
24957 || fstat(fileno(stdout), &st) != 0
24961 _ACEOF
24962 rm -f conftest$ac_exeext
24963 if { (ac_try="$ac_link"
24964 case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24967 esac
24968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24969 $as_echo "$ac_try_echo") >&5
24970 (eval "$ac_link") 2>&5
24971 ac_status=$?
24972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24974 { (case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24977 esac
24978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24979 $as_echo "$ac_try_echo") >&5
24980 (eval "$ac_try") 2>&5
24981 ac_status=$?
24982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; }; then
24984 ac_cv_func_vfork_works=yes
24985 else
24986 $as_echo "$as_me: program exited with status $ac_status" >&5
24987 $as_echo "$as_me: failed program was:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24990 ( exit $ac_status )
24991 ac_cv_func_vfork_works=no
24993 rm -rf conftest.dSYM
24994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24999 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25000 $as_echo "$ac_cv_func_vfork_works" >&6; }
25003 if test "x$ac_cv_func_fork_works" = xcross; then
25004 ac_cv_func_vfork_works=$ac_cv_func_vfork
25005 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25006 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25009 if test "x$ac_cv_func_vfork_works" = xyes; then
25011 cat >>confdefs.h <<\_ACEOF
25012 #define HAVE_WORKING_VFORK 1
25013 _ACEOF
25015 else
25017 cat >>confdefs.h <<\_ACEOF
25018 #define vfork fork
25019 _ACEOF
25022 if test "x$ac_cv_func_fork_works" = xyes; then
25024 cat >>confdefs.h <<\_ACEOF
25025 #define HAVE_WORKING_FORK 1
25026 _ACEOF
25031 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25032 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25033 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25034 $as_echo_n "(cached) " >&6
25035 else
25036 cat >conftest.$ac_ext <<_ACEOF
25037 /* confdefs.h. */
25038 _ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042 #include <langinfo.h>
25044 main ()
25046 char* cs = nl_langinfo(CODESET);
25048 return 0;
25050 _ACEOF
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (ac_try="$ac_link"
25053 case "(($ac_try" in
25054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055 *) ac_try_echo=$ac_try;;
25056 esac
25057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25058 $as_echo "$ac_try_echo") >&5
25059 (eval "$ac_link") 2>conftest.er1
25060 ac_status=$?
25061 grep -v '^ *+' conftest.er1 >conftest.err
25062 rm -f conftest.er1
25063 cat conftest.err >&5
25064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } && {
25066 test -z "$ac_c_werror_flag" ||
25067 test ! -s conftest.err
25068 } && test -s conftest$ac_exeext && {
25069 test "$cross_compiling" = yes ||
25070 $as_test_x conftest$ac_exeext
25071 }; then
25072 emacs_cv_langinfo_codeset=yes
25073 else
25074 $as_echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25077 emacs_cv_langinfo_codeset=no
25080 rm -rf conftest.dSYM
25081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25082 conftest$ac_exeext conftest.$ac_ext
25085 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25086 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25087 if test $emacs_cv_langinfo_codeset = yes; then
25089 cat >>confdefs.h <<\_ACEOF
25090 #define HAVE_LANGINFO_CODESET 1
25091 _ACEOF
25095 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25096 $as_echo_n "checking for size_t... " >&6; }
25097 if test "${ac_cv_type_size_t+set}" = set; then
25098 $as_echo_n "(cached) " >&6
25099 else
25100 ac_cv_type_size_t=no
25101 cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h. */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107 $ac_includes_default
25109 main ()
25111 if (sizeof (size_t))
25112 return 0;
25114 return 0;
25116 _ACEOF
25117 rm -f conftest.$ac_objext
25118 if { (ac_try="$ac_compile"
25119 case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122 esac
25123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25124 $as_echo "$ac_try_echo") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25135 cat >conftest.$ac_ext <<_ACEOF
25136 /* confdefs.h. */
25137 _ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25141 $ac_includes_default
25143 main ()
25145 if (sizeof ((size_t)))
25146 return 0;
25148 return 0;
25150 _ACEOF
25151 rm -f conftest.$ac_objext
25152 if { (ac_try="$ac_compile"
25153 case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25156 esac
25157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25158 $as_echo "$ac_try_echo") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25160 ac_status=$?
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
25164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.$ac_objext; then
25170 else
25171 $as_echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_cv_type_size_t=yes
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 else
25179 $as_echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25188 $as_echo "$ac_cv_type_size_t" >&6; }
25189 if test $ac_cv_type_size_t = yes; then
25191 cat >>confdefs.h <<_ACEOF
25192 #define HAVE_SIZE_T 1
25193 _ACEOF
25199 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25200 $as_echo_n "checking for mbstate_t... " >&6; }
25201 if test "${ac_cv_type_mbstate_t+set}" = set; then
25202 $as_echo_n "(cached) " >&6
25203 else
25204 cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h. */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 $ac_includes_default
25211 # include <wchar.h>
25213 main ()
25215 mbstate_t x; return sizeof x;
25217 return 0;
25219 _ACEOF
25220 rm -f conftest.$ac_objext
25221 if { (ac_try="$ac_compile"
25222 case "(($ac_try" in
25223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224 *) ac_try_echo=$ac_try;;
25225 esac
25226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25227 $as_echo "$ac_try_echo") >&5
25228 (eval "$ac_compile") 2>conftest.er1
25229 ac_status=$?
25230 grep -v '^ *+' conftest.er1 >conftest.err
25231 rm -f conftest.er1
25232 cat conftest.err >&5
25233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } && {
25235 test -z "$ac_c_werror_flag" ||
25236 test ! -s conftest.err
25237 } && test -s conftest.$ac_objext; then
25238 ac_cv_type_mbstate_t=yes
25239 else
25240 $as_echo "$as_me: failed program was:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25243 ac_cv_type_mbstate_t=no
25246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25248 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25249 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25250 if test $ac_cv_type_mbstate_t = yes; then
25252 cat >>confdefs.h <<\_ACEOF
25253 #define HAVE_MBSTATE_T 1
25254 _ACEOF
25256 else
25258 cat >>confdefs.h <<\_ACEOF
25259 #define mbstate_t int
25260 _ACEOF
25264 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25265 $as_echo_n "checking for C restrict keyword... " >&6; }
25266 if test "${emacs_cv_c_restrict+set}" = set; then
25267 $as_echo_n "(cached) " >&6
25268 else
25269 cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h. */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 void fred (int *restrict x);
25277 main ()
25281 return 0;
25283 _ACEOF
25284 rm -f conftest.$ac_objext
25285 if { (ac_try="$ac_compile"
25286 case "(($ac_try" in
25287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288 *) ac_try_echo=$ac_try;;
25289 esac
25290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25291 $as_echo "$ac_try_echo") >&5
25292 (eval "$ac_compile") 2>conftest.er1
25293 ac_status=$?
25294 grep -v '^ *+' conftest.er1 >conftest.err
25295 rm -f conftest.er1
25296 cat conftest.err >&5
25297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); } && {
25299 test -z "$ac_c_werror_flag" ||
25300 test ! -s conftest.err
25301 } && test -s conftest.$ac_objext; then
25302 emacs_cv_c_restrict=yes
25303 else
25304 $as_echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25307 cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h. */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 void fred (int *__restrict x);
25315 main ()
25319 return 0;
25321 _ACEOF
25322 rm -f conftest.$ac_objext
25323 if { (ac_try="$ac_compile"
25324 case "(($ac_try" in
25325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326 *) ac_try_echo=$ac_try;;
25327 esac
25328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25329 $as_echo "$ac_try_echo") >&5
25330 (eval "$ac_compile") 2>conftest.er1
25331 ac_status=$?
25332 grep -v '^ *+' conftest.er1 >conftest.err
25333 rm -f conftest.er1
25334 cat conftest.err >&5
25335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } && {
25337 test -z "$ac_c_werror_flag" ||
25338 test ! -s conftest.err
25339 } && test -s conftest.$ac_objext; then
25340 emacs_cv_c_restrict=__restrict
25341 else
25342 $as_echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 emacs_cv_c_restrict=no
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25354 $as_echo "$emacs_cv_c_restrict" >&6; }
25355 case "$emacs_cv_c_restrict" in
25356 yes) emacs_restrict=restrict;;
25357 no) emacs_restrict="";;
25358 *) emacs_restrict="$emacs_cv_c_restrict";;
25359 esac
25360 if test "$emacs_restrict" != __restrict; then
25362 cat >>confdefs.h <<_ACEOF
25363 #define __restrict $emacs_restrict
25364 _ACEOF
25368 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25369 $as_echo_n "checking for C restricted array declarations... " >&6; }
25370 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25371 $as_echo_n "(cached) " >&6
25372 else
25373 cat >conftest.$ac_ext <<_ACEOF
25374 /* confdefs.h. */
25375 _ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h. */
25379 void fred (int x[__restrict]);
25381 main ()
25385 return 0;
25387 _ACEOF
25388 rm -f conftest.$ac_objext
25389 if { (ac_try="$ac_compile"
25390 case "(($ac_try" in
25391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392 *) ac_try_echo=$ac_try;;
25393 esac
25394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25395 $as_echo "$ac_try_echo") >&5
25396 (eval "$ac_compile") 2>conftest.er1
25397 ac_status=$?
25398 grep -v '^ *+' conftest.er1 >conftest.err
25399 rm -f conftest.er1
25400 cat conftest.err >&5
25401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); } && {
25403 test -z "$ac_c_werror_flag" ||
25404 test ! -s conftest.err
25405 } && test -s conftest.$ac_objext; then
25406 emacs_cv_c_restrict_arr=yes
25407 else
25408 $as_echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25411 emacs_cv_c_restrict_arr=no
25414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25417 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25418 if test "$emacs_cv_c_restrict_arr" = yes; then
25420 cat >>confdefs.h <<\_ACEOF
25421 #define __restrict_arr __restrict
25422 _ACEOF
25428 # Set up the CFLAGS for real compilation, so we can substitute it.
25429 CFLAGS="$REAL_CFLAGS"
25430 CPPFLAGS="$REAL_CPPFLAGS"
25432 #### Find out which version of Emacs this is.
25433 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25434 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25435 if test x"${version}" = x; then
25436 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25437 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25438 { (exit 1); exit 1; }; }
25440 if test x"${version}" != x"$PACKAGE_VERSION"; then
25441 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25442 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25445 ### Specify what sort of things we'll be editing into Makefile and config.h.
25446 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25491 cat >>confdefs.h <<_ACEOF
25492 #define EMACS_CONFIGURATION "${canonical}"
25493 _ACEOF
25496 cat >>confdefs.h <<_ACEOF
25497 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25498 _ACEOF
25501 cat >>confdefs.h <<_ACEOF
25502 #define config_machfile "${machfile}"
25503 _ACEOF
25506 cat >>confdefs.h <<_ACEOF
25507 #define config_opsysfile "${opsysfile}"
25508 _ACEOF
25511 cat >>confdefs.h <<_ACEOF
25512 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25513 _ACEOF
25516 cat >>confdefs.h <<_ACEOF
25517 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25518 _ACEOF
25521 cat >>confdefs.h <<_ACEOF
25522 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25523 _ACEOF
25526 cat >>confdefs.h <<_ACEOF
25527 #define UNEXEC_SRC ${UNEXEC_SRC}
25528 _ACEOF
25531 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25533 cat >>confdefs.h <<\_ACEOF
25534 #define HAVE_X_WINDOWS 1
25535 _ACEOF
25538 if test "${USE_X_TOOLKIT}" != "none" ; then
25540 cat >>confdefs.h <<\_ACEOF
25541 #define USE_X_TOOLKIT 1
25542 _ACEOF
25544 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25546 cat >>confdefs.h <<\_ACEOF
25547 #define USE_LUCID 1
25548 _ACEOF
25550 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25552 cat >>confdefs.h <<\_ACEOF
25553 #define USE_MOTIF 1
25554 _ACEOF
25558 if test "${HAVE_X11}" = "yes" ; then
25560 cat >>confdefs.h <<\_ACEOF
25561 #define HAVE_X11 1
25562 _ACEOF
25565 if test "${HAVE_MENUS}" = "yes" ; then
25567 cat >>confdefs.h <<\_ACEOF
25568 #define HAVE_MENUS 1
25569 _ACEOF
25572 if test "${GNU_MALLOC}" = "yes" ; then
25574 cat >>confdefs.h <<\_ACEOF
25575 #define GNU_MALLOC 1
25576 _ACEOF
25579 if test "${REL_ALLOC}" = "yes" ; then
25581 cat >>confdefs.h <<\_ACEOF
25582 #define REL_ALLOC 1
25583 _ACEOF
25592 #### Report on what we decided to do.
25593 #### Report GTK as a toolkit, even if it doesn't use Xt.
25594 #### It makes printing result more understandable as using GTK sets
25595 #### toolkit_scroll_bars to yes by default.
25596 if test "${HAVE_GTK}" = "yes"; then
25597 USE_X_TOOLKIT=GTK
25600 echo "
25601 Configured for \`${canonical}'.
25603 Where should the build process find the source code? ${srcdir}
25604 What operating system and machine description files should Emacs use?
25605 \`${opsysfile}' and \`${machfile}'
25606 What compiler should emacs be built with? ${CC} ${CFLAGS}
25607 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25608 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25609 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25610 What window system should Emacs use? ${window_system}
25611 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25613 if test -n "${x_includes}"; then
25614 echo " Where do we find X Windows header files? ${x_includes}"
25615 else
25616 echo " Where do we find X Windows header files? Standard dirs"
25618 if test -n "${x_libraries}"; then
25619 echo " Where do we find X Windows libraries? ${x_libraries}"
25620 else
25621 echo " Where do we find X Windows libraries? Standard dirs"
25624 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25625 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25626 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25627 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25628 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25629 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25630 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25631 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25632 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25633 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25635 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25636 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25637 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25638 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25640 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25641 echo
25643 if test $USE_XASSERTS = yes; then
25644 echo " Compiling with asserts turned on."
25645 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25648 echo
25650 if test "$USE_X_TOOLKIT" = GTK; then
25651 case "$canonical" in
25652 *cygwin*)
25653 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25654 will probably get a crash on startup. If this happens, please use another
25655 toolkit for Emacs. See etc/PROBLEMS for more information."
25657 esac
25660 if test "$HAVE_NS" = "yes"; then
25661 echo
25662 echo "You must run \"make install\" in order to test the built application.
25663 The installed application will go to nextstep/Emacs.app and can be
25664 run or moved from there."
25665 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25666 echo "The application will be fully self-contained."
25667 else
25668 echo "The lisp resources for the application will be installed under ${prefix}.
25669 You may need to run \"make install\" with sudo. The application will fail
25670 to run if these resources are not installed."
25672 echo
25675 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25676 echo "D-Bus integration has been tested for GNU/Linux only."
25677 echo
25681 # Remove any trailing slashes in these variables.
25682 test "${prefix}" != NONE &&
25683 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25684 test "${exec_prefix}" != NONE &&
25685 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25687 # Now get this: Some word that is part of the ${srcdir} directory name
25688 # or the ${configuration} value might, just might, happen to be an
25689 # identifier like `sun4' or `i386' or something, and be predefined by
25690 # the C preprocessor to some helpful value like 1, or maybe the empty
25691 # string. Needless to say consequent macro substitutions are less
25692 # than conducive to the makefile finding the correct directory.
25693 cpp_undefs="`echo $srcdir $configuration $canonical |
25694 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25695 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25697 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25698 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25699 ## from Makefile.c can correctly provide the arg `-traditional' to the
25700 ## C preprocessor.
25702 cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h. */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25708 yes..yes
25709 _ACEOF
25710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25711 $EGREP "yes..yes" >/dev/null 2>&1; then
25712 CPP_NEED_TRADITIONAL=no
25713 else
25714 CPP_NEED_TRADITIONAL=yes
25716 rm -f conftest*
25719 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in 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"
25721 ac_config_commands="$ac_config_commands default"
25723 cat >confcache <<\_ACEOF
25724 # This file is a shell script that caches the results of configure
25725 # tests run on this system so they can be shared between configure
25726 # scripts and configure runs, see configure's option --config-cache.
25727 # It is not useful on other systems. If it contains results you don't
25728 # want to keep, you may remove or edit it.
25730 # config.status only pays attention to the cache file if you give it
25731 # the --recheck option to rerun configure.
25733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25735 # following values.
25737 _ACEOF
25739 # The following way of writing the cache mishandles newlines in values,
25740 # but we know of no workaround that is simple, portable, and efficient.
25741 # So, we kill variables containing newlines.
25742 # Ultrix sh set writes to stderr and can't be redirected directly,
25743 # and sets the high bit in the cache file unless we assign to the vars.
25745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25746 eval ac_val=\$$ac_var
25747 case $ac_val in #(
25748 *${as_nl}*)
25749 case $ac_var in #(
25750 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25751 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25752 esac
25753 case $ac_var in #(
25754 _ | IFS | as_nl) ;; #(
25755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25756 *) $as_unset $ac_var ;;
25757 esac ;;
25758 esac
25759 done
25761 (set) 2>&1 |
25762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25763 *${as_nl}ac_space=\ *)
25764 # `set' does not quote correctly, so add quotes (double-quote
25765 # substitution turns \\\\ into \\, and sed turns \\ into \).
25766 sed -n \
25767 "s/'/'\\\\''/g;
25768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25769 ;; #(
25771 # `set' quotes correctly as required by POSIX, so do not add quotes.
25772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25774 esac |
25775 sort
25777 sed '
25778 /^ac_cv_env_/b end
25779 t clear
25780 :clear
25781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25782 t end
25783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25784 :end' >>confcache
25785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25786 if test -w "$cache_file"; then
25787 test "x$cache_file" != "x/dev/null" &&
25788 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25789 $as_echo "$as_me: updating cache $cache_file" >&6;}
25790 cat confcache >$cache_file
25791 else
25792 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25793 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25796 rm -f confcache
25798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25799 # Let make expand exec_prefix.
25800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25802 DEFS=-DHAVE_CONFIG_H
25804 ac_libobjs=
25805 ac_ltlibobjs=
25806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25807 # 1. Remove the extension, and $U if already installed.
25808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25809 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25811 # will be set to the directory where LIBOBJS objects are built.
25812 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25813 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25814 done
25815 LIBOBJS=$ac_libobjs
25817 LTLIBOBJS=$ac_ltlibobjs
25821 : ${CONFIG_STATUS=./config.status}
25822 ac_write_fail=0
25823 ac_clean_files_save=$ac_clean_files
25824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25825 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25827 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25828 #! $SHELL
25829 # Generated by $as_me.
25830 # Run this file to recreate the current configuration.
25831 # Compiler output produced by configure, useful for debugging
25832 # configure, is in config.log if it exists.
25834 debug=false
25835 ac_cs_recheck=false
25836 ac_cs_silent=false
25837 SHELL=\${CONFIG_SHELL-$SHELL}
25838 _ACEOF
25840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25841 ## --------------------- ##
25842 ## M4sh Initialization. ##
25843 ## --------------------- ##
25845 # Be more Bourne compatible
25846 DUALCASE=1; export DUALCASE # for MKS sh
25847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25848 emulate sh
25849 NULLCMD=:
25850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25851 # is contrary to our usage. Disable this feature.
25852 alias -g '${1+"$@"}'='"$@"'
25853 setopt NO_GLOB_SUBST
25854 else
25855 case `(set -o) 2>/dev/null` in
25856 *posix*) set -o posix ;;
25857 esac
25864 # PATH needs CR
25865 # Avoid depending upon Character Ranges.
25866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25869 as_cr_digits='0123456789'
25870 as_cr_alnum=$as_cr_Letters$as_cr_digits
25872 as_nl='
25874 export as_nl
25875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25879 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25880 as_echo='printf %s\n'
25881 as_echo_n='printf %s'
25882 else
25883 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25884 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25885 as_echo_n='/usr/ucb/echo -n'
25886 else
25887 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25888 as_echo_n_body='eval
25889 arg=$1;
25890 case $arg in
25891 *"$as_nl"*)
25892 expr "X$arg" : "X\\(.*\\)$as_nl";
25893 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25894 esac;
25895 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25897 export as_echo_n_body
25898 as_echo_n='sh -c $as_echo_n_body as_echo'
25900 export as_echo_body
25901 as_echo='sh -c $as_echo_body as_echo'
25904 # The user is always right.
25905 if test "${PATH_SEPARATOR+set}" != set; then
25906 PATH_SEPARATOR=:
25907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25908 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25909 PATH_SEPARATOR=';'
25913 # Support unset when possible.
25914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25915 as_unset=unset
25916 else
25917 as_unset=false
25921 # IFS
25922 # We need space, tab and new line, in precisely that order. Quoting is
25923 # there to prevent editors from complaining about space-tab.
25924 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25925 # splitting by setting IFS to empty value.)
25926 IFS=" "" $as_nl"
25928 # Find who we are. Look in the path if we contain no directory separator.
25929 case $0 in
25930 *[\\/]* ) as_myself=$0 ;;
25931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25932 for as_dir in $PATH
25934 IFS=$as_save_IFS
25935 test -z "$as_dir" && as_dir=.
25936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25937 done
25938 IFS=$as_save_IFS
25941 esac
25942 # We did not find ourselves, most probably we were run as `sh COMMAND'
25943 # in which case we are not to be found in the path.
25944 if test "x$as_myself" = x; then
25945 as_myself=$0
25947 if test ! -f "$as_myself"; then
25948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25949 { (exit 1); exit 1; }
25952 # Work around bugs in pre-3.0 UWIN ksh.
25953 for as_var in ENV MAIL MAILPATH
25954 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25955 done
25956 PS1='$ '
25957 PS2='> '
25958 PS4='+ '
25960 # NLS nuisances.
25961 LC_ALL=C
25962 export LC_ALL
25963 LANGUAGE=C
25964 export LANGUAGE
25966 # Required to use basename.
25967 if expr a : '\(a\)' >/dev/null 2>&1 &&
25968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25969 as_expr=expr
25970 else
25971 as_expr=false
25974 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25975 as_basename=basename
25976 else
25977 as_basename=false
25981 # Name of the executable.
25982 as_me=`$as_basename -- "$0" ||
25983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25984 X"$0" : 'X\(//\)$' \| \
25985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25986 $as_echo X/"$0" |
25987 sed '/^.*\/\([^/][^/]*\)\/*$/{
25988 s//\1/
25991 /^X\/\(\/\/\)$/{
25992 s//\1/
25995 /^X\/\(\/\).*/{
25996 s//\1/
25999 s/.*/./; q'`
26001 # CDPATH.
26002 $as_unset CDPATH
26006 as_lineno_1=$LINENO
26007 as_lineno_2=$LINENO
26008 test "x$as_lineno_1" != "x$as_lineno_2" &&
26009 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26011 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26012 # uniformly replaced by the line number. The first 'sed' inserts a
26013 # line-number line after each line using $LINENO; the second 'sed'
26014 # does the real work. The second script uses 'N' to pair each
26015 # line-number line with the line containing $LINENO, and appends
26016 # trailing '-' during substitution so that $LINENO is not a special
26017 # case at line end.
26018 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26019 # scripts with optimization help from Paolo Bonzini. Blame Lee
26020 # E. McMahon (1931-1989) for sed's syntax. :-)
26021 sed -n '
26023 /[$]LINENO/=
26024 ' <$as_myself |
26025 sed '
26026 s/[$]LINENO.*/&-/
26027 t lineno
26029 :lineno
26031 :loop
26032 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26033 t loop
26034 s/-\n.*//
26035 ' >$as_me.lineno &&
26036 chmod +x "$as_me.lineno" ||
26037 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26038 { (exit 1); exit 1; }; }
26040 # Don't try to exec as it changes $[0], causing all sort of problems
26041 # (the dirname of $[0] is not the place where we might find the
26042 # original and so on. Autoconf is especially sensitive to this).
26043 . "./$as_me.lineno"
26044 # Exit status is that of the last command.
26045 exit
26049 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26050 as_dirname=dirname
26051 else
26052 as_dirname=false
26055 ECHO_C= ECHO_N= ECHO_T=
26056 case `echo -n x` in
26057 -n*)
26058 case `echo 'x\c'` in
26059 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26060 *) ECHO_C='\c';;
26061 esac;;
26063 ECHO_N='-n';;
26064 esac
26065 if expr a : '\(a\)' >/dev/null 2>&1 &&
26066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26067 as_expr=expr
26068 else
26069 as_expr=false
26072 rm -f conf$$ conf$$.exe conf$$.file
26073 if test -d conf$$.dir; then
26074 rm -f conf$$.dir/conf$$.file
26075 else
26076 rm -f conf$$.dir
26077 mkdir conf$$.dir 2>/dev/null
26079 if (echo >conf$$.file) 2>/dev/null; then
26080 if ln -s conf$$.file conf$$ 2>/dev/null; then
26081 as_ln_s='ln -s'
26082 # ... but there are two gotchas:
26083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26085 # In both cases, we have to default to `cp -p'.
26086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26087 as_ln_s='cp -p'
26088 elif ln conf$$.file conf$$ 2>/dev/null; then
26089 as_ln_s=ln
26090 else
26091 as_ln_s='cp -p'
26093 else
26094 as_ln_s='cp -p'
26096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26097 rmdir conf$$.dir 2>/dev/null
26099 if mkdir -p . 2>/dev/null; then
26100 as_mkdir_p=:
26101 else
26102 test -d ./-p && rmdir ./-p
26103 as_mkdir_p=false
26106 if test -x / >/dev/null 2>&1; then
26107 as_test_x='test -x'
26108 else
26109 if ls -dL / >/dev/null 2>&1; then
26110 as_ls_L_option=L
26111 else
26112 as_ls_L_option=
26114 as_test_x='
26115 eval sh -c '\''
26116 if test -d "$1"; then
26117 test -d "$1/.";
26118 else
26119 case $1 in
26120 -*)set "./$1";;
26121 esac;
26122 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26123 ???[sx]*):;;*)false;;esac;fi
26124 '\'' sh
26127 as_executable_p=$as_test_x
26129 # Sed expression to map a string onto a valid CPP name.
26130 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26132 # Sed expression to map a string onto a valid variable name.
26133 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26136 exec 6>&1
26138 # Save the log message, to keep $[0] and so on meaningful, and to
26139 # report actual input values of CONFIG_FILES etc. instead of their
26140 # values after options handling.
26141 ac_log="
26142 This file was extended by emacs $as_me 23.1.50, which was
26143 generated by GNU Autoconf 2.62. Invocation command line was
26145 CONFIG_FILES = $CONFIG_FILES
26146 CONFIG_HEADERS = $CONFIG_HEADERS
26147 CONFIG_LINKS = $CONFIG_LINKS
26148 CONFIG_COMMANDS = $CONFIG_COMMANDS
26149 $ $0 $@
26151 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26154 _ACEOF
26156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26157 # Files that config.status was made for.
26158 config_files="$ac_config_files"
26159 config_headers="$ac_config_headers"
26160 config_commands="$ac_config_commands"
26162 _ACEOF
26164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26165 ac_cs_usage="\
26166 \`$as_me' instantiates files from templates according to the
26167 current configuration.
26169 Usage: $0 [OPTIONS] [FILE]...
26171 -h, --help print this help, then exit
26172 -V, --version print version number and configuration settings, then exit
26173 -q, --quiet do not print progress messages
26174 -d, --debug don't remove temporary files
26175 --recheck update $as_me by reconfiguring in the same conditions
26176 --file=FILE[:TEMPLATE]
26177 instantiate the configuration file FILE
26178 --header=FILE[:TEMPLATE]
26179 instantiate the configuration header FILE
26181 Configuration files:
26182 $config_files
26184 Configuration headers:
26185 $config_headers
26187 Configuration commands:
26188 $config_commands
26190 Report bugs to <bug-autoconf@gnu.org>."
26192 _ACEOF
26193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26194 ac_cs_version="\\
26195 emacs config.status 23.1.50
26196 configured by $0, generated by GNU Autoconf 2.62,
26197 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26199 Copyright (C) 2008 Free Software Foundation, Inc.
26200 This config.status script is free software; the Free Software Foundation
26201 gives unlimited permission to copy, distribute and modify it."
26203 ac_pwd='$ac_pwd'
26204 srcdir='$srcdir'
26205 INSTALL='$INSTALL'
26206 test -n "\$AWK" || AWK=awk
26207 _ACEOF
26209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26210 # The default lists apply if the user does not specify any file.
26211 ac_need_defaults=:
26212 while test $# != 0
26214 case $1 in
26215 --*=*)
26216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26218 ac_shift=:
26221 ac_option=$1
26222 ac_optarg=$2
26223 ac_shift=shift
26225 esac
26227 case $ac_option in
26228 # Handling of the options.
26229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26230 ac_cs_recheck=: ;;
26231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26232 $as_echo "$ac_cs_version"; exit ;;
26233 --debug | --debu | --deb | --de | --d | -d )
26234 debug=: ;;
26235 --file | --fil | --fi | --f )
26236 $ac_shift
26237 case $ac_optarg in
26238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26239 esac
26240 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26241 ac_need_defaults=false;;
26242 --header | --heade | --head | --hea )
26243 $ac_shift
26244 case $ac_optarg in
26245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26246 esac
26247 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26248 ac_need_defaults=false;;
26249 --he | --h)
26250 # Conflict between --help and --header
26251 { $as_echo "$as_me: error: ambiguous option: $1
26252 Try \`$0 --help' for more information." >&2
26253 { (exit 1); exit 1; }; };;
26254 --help | --hel | -h )
26255 $as_echo "$ac_cs_usage"; exit ;;
26256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26257 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26258 ac_cs_silent=: ;;
26260 # This is an error.
26261 -*) { $as_echo "$as_me: error: unrecognized option: $1
26262 Try \`$0 --help' for more information." >&2
26263 { (exit 1); exit 1; }; } ;;
26265 *) ac_config_targets="$ac_config_targets $1"
26266 ac_need_defaults=false ;;
26268 esac
26269 shift
26270 done
26272 ac_configure_extra_args=
26274 if $ac_cs_silent; then
26275 exec 6>/dev/null
26276 ac_configure_extra_args="$ac_configure_extra_args --silent"
26279 _ACEOF
26280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26281 if \$ac_cs_recheck; then
26282 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26283 shift
26284 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26285 CONFIG_SHELL='$SHELL'
26286 export CONFIG_SHELL
26287 exec "\$@"
26290 _ACEOF
26291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26292 exec 5>>config.log
26294 echo
26295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26296 ## Running $as_me. ##
26297 _ASBOX
26298 $as_echo "$ac_log"
26299 } >&5
26301 _ACEOF
26302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26304 # INIT-COMMANDS
26306 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26308 _ACEOF
26310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26312 # Handling of arguments.
26313 for ac_config_target in $ac_config_targets
26315 case $ac_config_target in
26316 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26317 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26318 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26319 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26320 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26321 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26322 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26323 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26324 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26325 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26326 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26327 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26328 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26330 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26331 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26332 { (exit 1); exit 1; }; };;
26333 esac
26334 done
26337 # If the user did not use the arguments to specify the items to instantiate,
26338 # then the envvar interface is used. Set only those that are not.
26339 # We use the long form for the default assignment because of an extremely
26340 # bizarre bug on SunOS 4.1.3.
26341 if $ac_need_defaults; then
26342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26347 # Have a temporary directory for convenience. Make it in the build tree
26348 # simply because there is no reason against having it here, and in addition,
26349 # creating and moving files from /tmp can sometimes cause problems.
26350 # Hook for its removal unless debugging.
26351 # Note that there is a small window in which the directory will not be cleaned:
26352 # after its creation but before its name has been assigned to `$tmp'.
26353 $debug ||
26355 tmp=
26356 trap 'exit_status=$?
26357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26359 trap '{ (exit 1); exit 1; }' 1 2 13 15
26361 # Create a (secure) tmp directory for tmp files.
26364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26365 test -n "$tmp" && test -d "$tmp"
26366 } ||
26368 tmp=./conf$$-$RANDOM
26369 (umask 077 && mkdir "$tmp")
26370 } ||
26372 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26373 { (exit 1); exit 1; }
26376 # Set up the scripts for CONFIG_FILES section.
26377 # No need to generate them if there are no CONFIG_FILES.
26378 # This happens for instance with `./config.status config.h'.
26379 if test -n "$CONFIG_FILES"; then
26382 ac_cr=' '
26383 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26384 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26385 ac_cs_awk_cr='\\r'
26386 else
26387 ac_cs_awk_cr=$ac_cr
26390 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26391 _ACEOF
26395 echo "cat >conf$$subs.awk <<_ACEOF" &&
26396 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26397 echo "_ACEOF"
26398 } >conf$$subs.sh ||
26399 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26400 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26401 { (exit 1); exit 1; }; }
26402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26403 ac_delim='%!_!# '
26404 for ac_last_try in false false false false false :; do
26405 . ./conf$$subs.sh ||
26406 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26407 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26408 { (exit 1); exit 1; }; }
26410 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26411 break
26412 elif $ac_last_try; then
26413 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26414 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26415 { (exit 1); exit 1; }; }
26416 else
26417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26419 done
26420 rm -f conf$$subs.sh
26422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26423 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26424 _ACEOF
26425 sed -n '
26427 s/^/S["/; s/!.*/"]=/
26430 s/^[^!]*!//
26431 :repl
26432 t repl
26433 s/'"$ac_delim"'$//
26434 t delim
26437 s/\(.\{148\}\).*/\1/
26438 t more1
26439 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26442 b repl
26443 :more1
26444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26447 s/.\{148\}//
26448 t nl
26449 :delim
26451 s/\(.\{148\}\).*/\1/
26452 t more2
26453 s/["\\]/\\&/g; s/^/"/; s/$/"/
26456 :more2
26457 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26460 s/.\{148\}//
26461 t delim
26462 ' <conf$$subs.awk | sed '
26463 /^[^""]/{
26465 s/\n//
26467 ' >>$CONFIG_STATUS || ac_write_fail=1
26468 rm -f conf$$subs.awk
26469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26470 _ACAWK
26471 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26472 for (key in S) S_is_set[key] = 1
26473 FS = "\a"
26477 line = $ 0
26478 nfields = split(line, field, "@")
26479 substed = 0
26480 len = length(field[1])
26481 for (i = 2; i < nfields; i++) {
26482 key = field[i]
26483 keylen = length(key)
26484 if (S_is_set[key]) {
26485 value = S[key]
26486 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26487 len += length(value) + length(field[++i])
26488 substed = 1
26489 } else
26490 len += 1 + keylen
26493 print line
26496 _ACAWK
26497 _ACEOF
26498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26499 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26500 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26501 else
26503 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26504 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26505 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26506 { (exit 1); exit 1; }; }
26507 _ACEOF
26509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26511 # trailing colons and then remove the whole line if VPATH becomes empty
26512 # (actually we leave an empty line to preserve line numbers).
26513 if test "x$srcdir" = x.; then
26514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26515 s/:*\$(srcdir):*/:/
26516 s/:*\${srcdir}:*/:/
26517 s/:*@srcdir@:*/:/
26518 s/^\([^=]*=[ ]*\):*/\1/
26519 s/:*$//
26520 s/^[^=]*=[ ]*$//
26524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26525 fi # test -n "$CONFIG_FILES"
26527 # Set up the scripts for CONFIG_HEADERS section.
26528 # No need to generate them if there are no CONFIG_HEADERS.
26529 # This happens for instance with `./config.status Makefile'.
26530 if test -n "$CONFIG_HEADERS"; then
26531 cat >"$tmp/defines.awk" <<\_ACAWK ||
26532 BEGIN {
26533 _ACEOF
26535 # Transform confdefs.h into an awk script `defines.awk', embedded as
26536 # here-document in config.status, that substitutes the proper values into
26537 # config.h.in to produce config.h.
26539 # Create a delimiter string that does not exist in confdefs.h, to ease
26540 # handling of long lines.
26541 ac_delim='%!_!# '
26542 for ac_last_try in false false :; do
26543 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26544 if test -z "$ac_t"; then
26545 break
26546 elif $ac_last_try; then
26547 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26548 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26549 { (exit 1); exit 1; }; }
26550 else
26551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26553 done
26555 # For the awk script, D is an array of macro values keyed by name,
26556 # likewise P contains macro parameters if any. Preserve backslash
26557 # newline sequences.
26559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26560 sed -n '
26561 s/.\{148\}/&'"$ac_delim"'/g
26562 t rset
26563 :rset
26564 s/^[ ]*#[ ]*define[ ][ ]*/ /
26565 t def
26567 :def
26568 s/\\$//
26569 t bsnl
26570 s/["\\]/\\&/g
26571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26572 D["\1"]=" \3"/p
26573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26575 :bsnl
26576 s/["\\]/\\&/g
26577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26578 D["\1"]=" \3\\\\\\n"\\/p
26579 t cont
26580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26581 t cont
26583 :cont
26585 s/.\{148\}/&'"$ac_delim"'/g
26586 t clear
26587 :clear
26588 s/\\$//
26589 t bsnlc
26590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26592 :bsnlc
26593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26594 b cont
26595 ' <confdefs.h | sed '
26596 s/'"$ac_delim"'/"\\\
26597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26600 for (key in D) D_is_set[key] = 1
26601 FS = "\a"
26603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26604 line = \$ 0
26605 split(line, arg, " ")
26606 if (arg[1] == "#") {
26607 defundef = arg[2]
26608 mac1 = arg[3]
26609 } else {
26610 defundef = substr(arg[1], 2)
26611 mac1 = arg[2]
26613 split(mac1, mac2, "(") #)
26614 macro = mac2[1]
26615 if (D_is_set[macro]) {
26616 # Preserve the white space surrounding the "#".
26617 prefix = substr(line, 1, index(line, defundef) - 1)
26618 print prefix "define", macro P[macro] D[macro]
26619 next
26620 } else {
26621 # Replace #undef with comments. This is necessary, for example,
26622 # in the case of _POSIX_SOURCE, which is predefined and required
26623 # on some systems where configure will not decide to define it.
26624 if (defundef == "undef") {
26625 print "/*", line, "*/"
26626 next
26630 { print }
26631 _ACAWK
26632 _ACEOF
26633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26634 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26635 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26636 { (exit 1); exit 1; }; }
26637 fi # test -n "$CONFIG_HEADERS"
26640 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26641 shift
26642 for ac_tag
26644 case $ac_tag in
26645 :[FHLC]) ac_mode=$ac_tag; continue;;
26646 esac
26647 case $ac_mode$ac_tag in
26648 :[FHL]*:*);;
26649 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26650 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26651 { (exit 1); exit 1; }; };;
26652 :[FH]-) ac_tag=-:-;;
26653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26654 esac
26655 ac_save_IFS=$IFS
26656 IFS=:
26657 set x $ac_tag
26658 IFS=$ac_save_IFS
26659 shift
26660 ac_file=$1
26661 shift
26663 case $ac_mode in
26664 :L) ac_source=$1;;
26665 :[FH])
26666 ac_file_inputs=
26667 for ac_f
26669 case $ac_f in
26670 -) ac_f="$tmp/stdin";;
26671 *) # Look for the file first in the build tree, then in the source tree
26672 # (if the path is not absolute). The absolute path cannot be DOS-style,
26673 # because $ac_f cannot contain `:'.
26674 test -f "$ac_f" ||
26675 case $ac_f in
26676 [\\/$]*) false;;
26677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26678 esac ||
26679 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26680 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26681 { (exit 1); exit 1; }; };;
26682 esac
26683 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26684 ac_file_inputs="$ac_file_inputs '$ac_f'"
26685 done
26687 # Let's still pretend it is `configure' which instantiates (i.e., don't
26688 # use $as_me), people would be surprised to read:
26689 # /* config.h. Generated by config.status. */
26690 configure_input='Generated from '`
26691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26692 `' by configure.'
26693 if test x"$ac_file" != x-; then
26694 configure_input="$ac_file. $configure_input"
26695 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26696 $as_echo "$as_me: creating $ac_file" >&6;}
26698 # Neutralize special characters interpreted by sed in replacement strings.
26699 case $configure_input in #(
26700 *\&* | *\|* | *\\* )
26701 ac_sed_conf_input=`$as_echo "$configure_input" |
26702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26703 *) ac_sed_conf_input=$configure_input;;
26704 esac
26706 case $ac_tag in
26707 *:-:* | *:-) cat >"$tmp/stdin" \
26708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26710 { (exit 1); exit 1; }; } ;;
26711 esac
26713 esac
26715 ac_dir=`$as_dirname -- "$ac_file" ||
26716 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26717 X"$ac_file" : 'X\(//\)[^/]' \| \
26718 X"$ac_file" : 'X\(//\)$' \| \
26719 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26720 $as_echo X"$ac_file" |
26721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26722 s//\1/
26725 /^X\(\/\/\)[^/].*/{
26726 s//\1/
26729 /^X\(\/\/\)$/{
26730 s//\1/
26733 /^X\(\/\).*/{
26734 s//\1/
26737 s/.*/./; q'`
26738 { as_dir="$ac_dir"
26739 case $as_dir in #(
26740 -*) as_dir=./$as_dir;;
26741 esac
26742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26743 as_dirs=
26744 while :; do
26745 case $as_dir in #(
26746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26747 *) as_qdir=$as_dir;;
26748 esac
26749 as_dirs="'$as_qdir' $as_dirs"
26750 as_dir=`$as_dirname -- "$as_dir" ||
26751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26752 X"$as_dir" : 'X\(//\)[^/]' \| \
26753 X"$as_dir" : 'X\(//\)$' \| \
26754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26755 $as_echo X"$as_dir" |
26756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26757 s//\1/
26760 /^X\(\/\/\)[^/].*/{
26761 s//\1/
26764 /^X\(\/\/\)$/{
26765 s//\1/
26768 /^X\(\/\).*/{
26769 s//\1/
26772 s/.*/./; q'`
26773 test -d "$as_dir" && break
26774 done
26775 test -z "$as_dirs" || eval "mkdir $as_dirs"
26776 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26777 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26778 { (exit 1); exit 1; }; }; }
26779 ac_builddir=.
26781 case "$ac_dir" in
26782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26785 # A ".." for each directory in $ac_dir_suffix.
26786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26787 case $ac_top_builddir_sub in
26788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26790 esac ;;
26791 esac
26792 ac_abs_top_builddir=$ac_pwd
26793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26794 # for backward compatibility:
26795 ac_top_builddir=$ac_top_build_prefix
26797 case $srcdir in
26798 .) # We are building in place.
26799 ac_srcdir=.
26800 ac_top_srcdir=$ac_top_builddir_sub
26801 ac_abs_top_srcdir=$ac_pwd ;;
26802 [\\/]* | ?:[\\/]* ) # Absolute name.
26803 ac_srcdir=$srcdir$ac_dir_suffix;
26804 ac_top_srcdir=$srcdir
26805 ac_abs_top_srcdir=$srcdir ;;
26806 *) # Relative name.
26807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26808 ac_top_srcdir=$ac_top_build_prefix$srcdir
26809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26810 esac
26811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26814 case $ac_mode in
26817 # CONFIG_FILE
26820 case $INSTALL in
26821 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26822 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26823 esac
26824 _ACEOF
26826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26827 # If the template does not know about datarootdir, expand it.
26828 # FIXME: This hack should be removed a few years after 2.60.
26829 ac_datarootdir_hack=; ac_datarootdir_seen=
26831 ac_sed_dataroot='
26832 /datarootdir/ {
26836 /@datadir@/p
26837 /@docdir@/p
26838 /@infodir@/p
26839 /@localedir@/p
26840 /@mandir@/p
26842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26843 *datarootdir*) ac_datarootdir_seen=yes;;
26844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26845 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26847 _ACEOF
26848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26849 ac_datarootdir_hack='
26850 s&@datadir@&$datadir&g
26851 s&@docdir@&$docdir&g
26852 s&@infodir@&$infodir&g
26853 s&@localedir@&$localedir&g
26854 s&@mandir@&$mandir&g
26855 s&\\\${datarootdir}&$datarootdir&g' ;;
26856 esac
26857 _ACEOF
26859 # Neutralize VPATH when `$srcdir' = `.'.
26860 # Shell code in configure.ac might set extrasub.
26861 # FIXME: do we really want to maintain this feature?
26862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26863 ac_sed_extra="$ac_vpsub
26864 $extrasub
26865 _ACEOF
26866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26869 s|@configure_input@|$ac_sed_conf_input|;t t
26870 s&@top_builddir@&$ac_top_builddir_sub&;t t
26871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26872 s&@srcdir@&$ac_srcdir&;t t
26873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26874 s&@top_srcdir@&$ac_top_srcdir&;t t
26875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26876 s&@builddir@&$ac_builddir&;t t
26877 s&@abs_builddir@&$ac_abs_builddir&;t t
26878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26879 s&@INSTALL@&$ac_INSTALL&;t t
26880 $ac_datarootdir_hack
26882 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26883 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26884 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26885 { (exit 1); exit 1; }; }
26887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26888 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26890 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26891 which seems to be undefined. Please make sure it is defined." >&5
26892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26893 which seems to be undefined. Please make sure it is defined." >&2;}
26895 rm -f "$tmp/stdin"
26896 case $ac_file in
26897 -) cat "$tmp/out" && rm -f "$tmp/out";;
26898 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26899 esac \
26900 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26901 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26902 { (exit 1); exit 1; }; }
26906 # CONFIG_HEADER
26908 if test x"$ac_file" != x-; then
26910 $as_echo "/* $configure_input */" \
26911 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26912 } >"$tmp/config.h" \
26913 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26914 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26915 { (exit 1); exit 1; }; }
26916 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26917 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26918 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26919 else
26920 rm -f "$ac_file"
26921 mv "$tmp/config.h" "$ac_file" \
26922 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26923 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26924 { (exit 1); exit 1; }; }
26926 else
26927 $as_echo "/* $configure_input */" \
26928 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26929 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26930 $as_echo "$as_me: error: could not create -" >&2;}
26931 { (exit 1); exit 1; }; }
26935 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26936 $as_echo "$as_me: executing $ac_file commands" >&6;}
26938 esac
26941 case $ac_file$ac_mode in
26942 "default":C)
26944 ### Make the necessary directories, if they don't exist.
26945 for dir in etc lisp ; do
26946 test -d ${dir} || mkdir ${dir}
26947 done
26949 # Build src/Makefile from ${srcdir}/src/Makefile.c
26950 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26951 # This must be done after src/config.h is built, since we rely on that file.
26953 echo creating src/epaths.h
26954 ${MAKE-make} epaths-force
26956 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26957 # `..' to `. .' unless invoked with -traditional
26959 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26960 CPPFLAGS="$CPPFLAGS -traditional"
26963 echo creating lib-src/Makefile
26964 ( cd lib-src
26965 rm -f junk.c junk1.c junk2.c
26966 sed -e '/start of cpp stuff/q' \
26967 < Makefile.c > junk1.c
26968 sed -e '1,/start of cpp stuff/d'\
26969 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26970 < Makefile.c > junk.c
26971 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26972 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26973 cat junk1.c junk2.c > Makefile.new
26974 rm -f junk.c junk1.c junk2.c
26975 chmod 444 Makefile.new
26976 mv -f Makefile.new Makefile
26979 echo creating src/Makefile
26980 ( cd src
26981 rm -f junk.c junk1.c junk2.c
26982 sed -e '/start of cpp stuff/q' \
26983 < Makefile.c > junk1.c
26984 sed -e '1,/start of cpp stuff/d'\
26985 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26986 < Makefile.c > junk.c
26987 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26988 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26989 cat junk1.c junk2.c > Makefile.new
26990 rm -f junk.c junk1.c junk2.c
26991 chmod 444 Makefile.new
26992 mv -f Makefile.new Makefile
26995 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26996 echo creating src/.gdbinit
26997 echo source $srcdir/src/.gdbinit > src/.gdbinit
27002 esac
27003 done # for ac_tag
27006 { (exit 0); exit 0; }
27007 _ACEOF
27008 chmod +x $CONFIG_STATUS
27009 ac_clean_files=$ac_clean_files_save
27011 test $ac_write_fail = 0 ||
27012 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27013 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27014 { (exit 1); exit 1; }; }
27017 # configure is writing to config.log, and then calls config.status.
27018 # config.status does its own redirection, appending to config.log.
27019 # Unfortunately, on DOS this fails, as config.log is still kept open
27020 # by configure, so config.status won't be able to write to it; its
27021 # output is simply discarded. So we exec the FD to /dev/null,
27022 # effectively closing config.log, so it can be properly (re)opened and
27023 # appended to by config.status. When coming back to configure, we
27024 # need to make the FD available again.
27025 if test "$no_create" != yes; then
27026 ac_cs_success=:
27027 ac_config_status_args=
27028 test "$silent" = yes &&
27029 ac_config_status_args="$ac_config_status_args --quiet"
27030 exec 5>/dev/null
27031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27032 exec 5>>config.log
27033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27034 # would make configure fail if this is the last instruction.
27035 $ac_cs_success || { (exit 1); exit 1; }
27037 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27038 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27039 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}