(grep-template): Add "<X>" to docstring.
[emacs.git] / configure
blob8726ef6adcc702af2e281870b16807a1d310bc8b
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 FONTCONFIG_CFLAGS
720 FONTCONFIG_LIBS
721 XFT_CFLAGS
722 XFT_LIBS
723 LIBOTF_CFLAGS
724 LIBOTF_LIBS
725 M17N_FLT_CFLAGS
726 M17N_FLT_LIBS
727 FREETYPE_CFLAGS
728 FREETYPE_LIBS
729 ALLOCA
730 liblockfile
731 LIBOBJS
732 NEED_SETGID
733 KMEM_GROUP
734 GETLOADAVG_LIBS
735 GETOPT_H
736 GETOPTOBJS
737 version
738 configuration
739 canonical
740 srcdir
741 lispdir
742 locallisppath
743 lisppath
744 x_default_search_path
745 etcdir
746 archlibdir
747 bitmapdir
748 gamedir
749 gameuser
750 c_switch_system
751 c_switch_machine
752 LD_SWITCH_X_SITE
753 LD_SWITCH_X_SITE_AUX
754 C_SWITCH_X_SITE
755 X_TOOLKIT_TYPE
756 machfile
757 opsysfile
758 ns_appdir
759 ns_appbindir
760 ns_appresdir
761 ns_appsrc
762 GNUSTEP_MAKEFILES
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
765 GNU_OBJC_CFLAGS
766 LIB_SRC_EXTRA_INSTALLABLES
767 LTLIBOBJS'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 with_pop
772 with_kerberos
773 with_kerberos5
774 with_hesiod
775 with_sound
776 with_sync_input
777 with_x_toolkit
778 with_xpm
779 with_jpeg
780 with_tiff
781 with_gif
782 with_png
783 with_rsvg
784 with_xft
785 with_libotf
786 with_m17n_flt
787 with_toolkit_scroll_bars
788 with_xaw3d
789 with_xim
790 with_ns
791 with_gpm
792 with_dbus
793 with_makeinfo
794 with_gtk
795 with_gcc
796 with_pkg_config_prog
797 with_gnustep_conf
798 enable_ns_self_contained
799 enable_asserts
800 enable_maintainer_mode
801 enable_locallisppath
802 enable_checking
803 enable_profiling
804 enable_largefile
805 with_x
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
816 XMKMF'
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
867 ac_prev=
868 ac_dashdash=
869 for ac_option
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
926 { (exit 1); exit 1; }; }
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1206 Try \`$0 --help' for more information." >&2
1207 { (exit 1); exit 1; }; }
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1214 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1215 { (exit 1); exit 1; }; }
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227 esac
1228 done
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1233 { (exit 1); exit 1; }; }
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1240 { (exit 1); exit 1; }; } ;;
1241 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1264 { (exit 1); exit 1; }; }
1265 done
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288 test "$silent" = yes && exec 6>/dev/null
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1295 { (exit 1); exit 1; }; }
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1298 { (exit 1); exit 1; }; }
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1319 /^X\(\/\/\)$/{
1320 s//\1/
1323 /^X\(\/\).*/{
1324 s//\1/
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1332 else
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1338 { (exit 1); exit 1; }; }
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1343 { (exit 1); exit 1; }; }
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1424 cat <<\_ACEOF
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431 X features:
1432 --x-includes=DIR X include files are in DIR
1433 --x-libraries=DIR X library files are in DIR
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1444 esac
1445 cat <<\_ACEOF
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --disable-ns-self-contained
1452 disable self contained build under NeXTstep
1453 --enable-asserts compile code with asserts enabled
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-locallisppath=PATH
1458 directories Emacs should search for lisp files
1459 specific to this site
1460 --enable-checking[=LIST]
1461 enable expensive run-time checks. With LIST, enable
1462 only specific categories of checks. Categories are:
1463 all,yes,no. Flags are: stringbytes, stringoverrun,
1464 stringfreelist, xmallocoverrun, conslist
1465 --enable-profiling build emacs with profiling support. This might not
1466 work on all platforms
1467 --disable-largefile omit support for large files
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --without-pop don't support POP mail retrieval with movemail
1473 --with-kerberos support Kerberos-authenticated POP
1474 --with-kerberos5 support Kerberos version 5 authenticated POP
1475 --with-hesiod support Hesiod to get the POP server host
1476 --without-sound don't compile with sound support
1477 --without-sync-input process async input synchronously
1478 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1479 motif, gtk, no)
1480 --without-xpm don't compile with XPM image support
1481 --without-jpeg don't compile with JPEG image support
1482 --without-tiff don't compile with TIFF image support
1483 --without-gif don't compile with GIF image support
1484 --without-png don't compile with PNG image support
1485 --without-rsvg don't compile with SVG image support
1486 --without-xft don't use XFT for anti aliased fonts
1487 --without-libotf don't use libotf for OpenType font support
1488 --without-m17n-flt don't use m17n-flt for text shaping
1489 --without-toolkit-scroll-bars
1490 don't use Motif or Xaw3d scroll bars
1491 --without-xaw3d don't use Xaw3d
1492 --without-xim don't use X11 XIM
1493 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1494 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1495 console
1496 --without-dbus don't compile with D-Bus support
1497 --without-makeinfo don't require makeinfo for building manuals
1499 --with-pkg-config-prog=PATH
1500 path to pkg-config for finding GTK and librsvg
1501 --with-gnustep-conf=PATH
1502 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1503 or /etc/GNUstep/GNUstep.conf
1504 --with-x use the X Window System
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1514 CPP C preprocessor
1515 XMKMF Path to xmkmf, Makefile generator for X Window System
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1520 _ACEOF
1521 ac_status=$?
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 emacs configure 23.1.50
1583 generated by GNU Autoconf 2.62
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by emacs $as_me 23.1.50, which was
1597 generated by GNU Autoconf 2.62. Invocation command line was
1599 $ $0 $@
1601 _ACEOF
1602 exec 5>>config.log
1604 cat <<_ASUNAME
1605 ## --------- ##
1606 ## Platform. ##
1607 ## --------- ##
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626 _ASUNAME
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 $as_echo "PATH: $as_dir"
1634 done
1635 IFS=$as_save_IFS
1637 } >&5
1639 cat >&5 <<_ACEOF
1642 ## ----------- ##
1643 ## Core tests. ##
1644 ## ----------- ##
1646 _ACEOF
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_configure_args=
1655 ac_configure_args0=
1656 ac_configure_args1=
1657 ac_must_keep_next=false
1658 for ac_pass in 1 2
1660 for ac_arg
1662 case $ac_arg in
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1666 continue ;;
1667 *\'*)
1668 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 esac
1670 case $ac_pass in
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1676 else
1677 case $ac_arg in
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 esac
1686 -* ) ac_must_keep_next=true ;;
1687 esac
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1691 esac
1692 done
1693 done
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1705 echo
1707 cat <<\_ASBOX
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1711 _ASBOX
1712 echo
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1717 case $ac_val in #(
1718 *${as_nl}*)
1719 case $ac_var in #(
1720 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 esac
1723 case $ac_var in #(
1724 _ | IFS | as_nl) ;; #(
1725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1726 *) $as_unset $ac_var ;;
1727 esac ;;
1728 esac
1729 done
1730 (set) 2>&1 |
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1733 sed -n \
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 ;; #(
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1740 esac |
1741 sort
1743 echo
1745 cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 $as_echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1761 if test -n "$ac_subst_files"; then
1762 cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767 echo
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1771 case $ac_val in
1772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 esac
1774 $as_echo "$ac_var='\''$ac_val'\''"
1775 done | sort
1776 echo
1779 if test -s confdefs.h; then
1780 cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785 echo
1786 cat confdefs.h
1787 echo
1789 test "$ac_signal" != 0 &&
1790 $as_echo "$as_me: caught signal $ac_signal"
1791 $as_echo "$as_me: exit $exit_status"
1792 } >&5
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795 exit $exit_status
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer an explicitly selected file to automatically selected ones.
1834 ac_site_file1=NONE
1835 ac_site_file2=NONE
1836 if test -n "$CONFIG_SITE"; then
1837 ac_site_file1=$CONFIG_SITE
1838 elif test "x$prefix" != xNONE; then
1839 ac_site_file1=$prefix/share/config.site
1840 ac_site_file2=$prefix/etc/config.site
1841 else
1842 ac_site_file1=$ac_default_prefix/share/config.site
1843 ac_site_file2=$ac_default_prefix/etc/config.site
1845 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1847 test "x$ac_site_file" = xNONE && continue
1848 if test -r "$ac_site_file"; then
1849 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1852 . "$ac_site_file"
1854 done
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 $as_echo "$as_me: loading cache $cache_file" >&6;}
1862 case $cache_file in
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1865 esac
1867 else
1868 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 $as_echo "$as_me: creating cache $cache_file" >&6;}
1870 >$cache_file
1873 ac_header_list="$ac_header_list sys/time.h"
1874 ac_header_list="$ac_header_list unistd.h"
1875 ac_func_list="$ac_func_list alarm"
1876 # Check that the precious variables saved in the cache have kept the same
1877 # value.
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1885 set,)
1886 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1889 ,set)
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,);;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 # differences in whitespace do not lead to failure.
1897 ac_old_val_w=`echo x $ac_old_val`
1898 ac_new_val_w=`echo x $ac_new_val`
1899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902 ac_cache_corrupted=:
1903 else
1904 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1906 eval $ac_var=\$ac_old_val
1908 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1909 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1910 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1911 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1912 fi;;
1913 esac
1914 # Pass precious variables to config.status.
1915 if test "$ac_new_set" = set; then
1916 case $ac_new_val in
1917 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 *) ac_arg=$ac_var=$ac_new_val ;;
1919 esac
1920 case " $ac_configure_args " in
1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923 esac
1925 done
1926 if $ac_cache_corrupted; then
1927 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931 { (exit 1); exit 1; }; }
1958 ac_ext=c
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1969 test "$program_prefix" != NONE &&
1970 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1971 # Use a double $ so make ignores it.
1972 test "$program_suffix" != NONE &&
1973 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1974 # Double any \ or $.
1975 # By default was `s,x,x', remove it if useless.
1976 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1977 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1980 lispdir='${datadir}/emacs/${version}/lisp'
1981 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1982 '${datadir}/emacs/site-lisp'
1983 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1984 etcdir='${datadir}/emacs/${version}/etc'
1985 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1986 docdir='${datadir}/emacs/${version}/etc'
1987 gamedir='${localstatedir}/games/emacs'
1989 gameuser=games
1994 # Check whether --with-pop was given.
1995 if test "${with_pop+set}" = set; then
1996 withval=$with_pop;
1997 else
1998 with_pop=yes
2001 if test "$with_pop" = yes; then
2002 cat >>confdefs.h <<\_ACEOF
2003 #define MAIL_USE_POP 1
2004 _ACEOF
2010 # Check whether --with-kerberos was given.
2011 if test "${with_kerberos+set}" = set; then
2012 withval=$with_kerberos;
2013 else
2014 with_kerberos=no
2017 if test "$with_kerberos" != no; then
2018 cat >>confdefs.h <<\_ACEOF
2019 #define KERBEROS 1
2020 _ACEOF
2026 # Check whether --with-kerberos5 was given.
2027 if test "${with_kerberos5+set}" = set; then
2028 withval=$with_kerberos5;
2029 else
2030 with_kerberos5=no
2033 if test "${with_kerberos5}" != no; then
2034 if test "${with_kerberos}" = no; then
2035 with_kerberos=yes
2036 cat >>confdefs.h <<\_ACEOF
2037 #define KERBEROS 1
2038 _ACEOF
2042 cat >>confdefs.h <<\_ACEOF
2043 #define KERBEROS5 1
2044 _ACEOF
2049 # Check whether --with-hesiod was given.
2050 if test "${with_hesiod+set}" = set; then
2051 withval=$with_hesiod;
2052 else
2053 with_hesiod=no
2056 if test "$with_hesiod" != no; then
2058 cat >>confdefs.h <<\_ACEOF
2059 #define HESIOD 1
2060 _ACEOF
2065 # Check whether --with-sound was given.
2066 if test "${with_sound+set}" = set; then
2067 withval=$with_sound;
2068 else
2069 with_sound=yes
2074 # Check whether --with-sync-input was given.
2075 if test "${with_sync_input+set}" = set; then
2076 withval=$with_sync_input;
2077 else
2078 with_sync_input=yes
2081 if test "$with_sync_input" = yes; then
2083 cat >>confdefs.h <<\_ACEOF
2084 #define SYNC_INPUT 1
2085 _ACEOF
2090 # Check whether --with-x-toolkit was given.
2091 if test "${with_x_toolkit+set}" = set; then
2092 withval=$with_x_toolkit; case "${withval}" in
2093 y | ye | yes ) val=gtk ;;
2094 n | no ) val=no ;;
2095 l | lu | luc | luci | lucid ) val=lucid ;;
2096 a | at | ath | athe | athen | athena ) val=athena ;;
2097 m | mo | mot | moti | motif ) val=motif ;;
2098 g | gt | gtk ) val=gtk ;;
2100 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2101 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2102 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2103 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2104 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2105 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2106 { (exit 1); exit 1; }; }
2108 esac
2109 with_x_toolkit=$val
2115 # Check whether --with-xpm was given.
2116 if test "${with_xpm+set}" = set; then
2117 withval=$with_xpm;
2118 else
2119 with_xpm=yes
2123 # Check whether --with-jpeg was given.
2124 if test "${with_jpeg+set}" = set; then
2125 withval=$with_jpeg;
2126 else
2127 with_jpeg=yes
2131 # Check whether --with-tiff was given.
2132 if test "${with_tiff+set}" = set; then
2133 withval=$with_tiff;
2134 else
2135 with_tiff=yes
2139 # Check whether --with-gif was given.
2140 if test "${with_gif+set}" = set; then
2141 withval=$with_gif;
2142 else
2143 with_gif=yes
2147 # Check whether --with-png was given.
2148 if test "${with_png+set}" = set; then
2149 withval=$with_png;
2150 else
2151 with_png=yes
2155 # Check whether --with-rsvg was given.
2156 if test "${with_rsvg+set}" = set; then
2157 withval=$with_rsvg;
2158 else
2159 with_rsvg=yes
2164 # Check whether --with-xft was given.
2165 if test "${with_xft+set}" = set; then
2166 withval=$with_xft;
2167 else
2168 with_xft=yes
2172 # Check whether --with-libotf was given.
2173 if test "${with_libotf+set}" = set; then
2174 withval=$with_libotf;
2175 else
2176 with_libotf=yes
2180 # Check whether --with-m17n-flt was given.
2181 if test "${with_m17n_flt+set}" = set; then
2182 withval=$with_m17n_flt;
2183 else
2184 with_m17n_flt=yes
2189 # Check whether --with-toolkit-scroll-bars was given.
2190 if test "${with_toolkit_scroll_bars+set}" = set; then
2191 withval=$with_toolkit_scroll_bars;
2192 else
2193 with_toolkit_scroll_bars=yes
2197 # Check whether --with-xaw3d was given.
2198 if test "${with_xaw3d+set}" = set; then
2199 withval=$with_xaw3d;
2200 else
2201 with_xaw3d=yes
2205 # Check whether --with-xim was given.
2206 if test "${with_xim+set}" = set; then
2207 withval=$with_xim;
2208 else
2209 with_xim=yes
2213 # Check whether --with-ns was given.
2214 if test "${with_ns+set}" = set; then
2215 withval=$with_ns;
2216 else
2217 with_ns=no
2222 # Check whether --with-gpm was given.
2223 if test "${with_gpm+set}" = set; then
2224 withval=$with_gpm;
2225 else
2226 with_gpm=yes
2230 # Check whether --with-dbus was given.
2231 if test "${with_dbus+set}" = set; then
2232 withval=$with_dbus;
2233 else
2234 with_dbus=yes
2238 ## For the times when you want to build Emacs but don't have
2239 ## a suitable makeinfo, and can live without the manuals.
2241 # Check whether --with-makeinfo was given.
2242 if test "${with_makeinfo+set}" = set; then
2243 withval=$with_makeinfo;
2244 else
2245 with_makeinfo=yes
2250 # Check whether --with-gtk was given.
2251 if test "${with_gtk+set}" = set; then
2252 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2253 specify a toolkit." >&5
2254 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2255 specify a toolkit." >&2;}
2256 { (exit 1); exit 1; }; }
2261 # Check whether --with-gcc was given.
2262 if test "${with_gcc+set}" = set; then
2263 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2264 variable to specify a compiler." >&5
2265 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2266 variable to specify a compiler." >&2;}
2267 { (exit 1); exit 1; }; }
2272 # Check whether --with-pkg-config-prog was given.
2273 if test "${with_pkg_config_prog+set}" = set; then
2274 withval=$with_pkg_config_prog;
2277 if test "X${with_pkg_config_prog}" != X; then
2278 if test "${with_pkg_config_prog}" != yes; then
2279 PKG_CONFIG="${with_pkg_config_prog}"
2284 # Check whether --with-gnustep-conf was given.
2285 if test "${with_gnustep_conf+set}" = set; then
2286 withval=$with_gnustep_conf;
2289 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2290 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2291 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2292 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2294 # Check whether --enable-ns-self-contained was given.
2295 if test "${enable_ns_self_contained+set}" = set; then
2296 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2297 else
2298 EN_NS_SELF_CONTAINED=yes
2302 # Check whether --enable-asserts was given.
2303 if test "${enable_asserts+set}" = set; then
2304 enableval=$enable_asserts; USE_XASSERTS=$enableval
2305 else
2306 USE_XASSERTS=no
2310 # Check whether --enable-maintainer-mode was given.
2311 if test "${enable_maintainer_mode+set}" = set; then
2312 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2313 else
2314 USE_MAINTAINER_MODE=no
2317 if test $USE_MAINTAINER_MODE = yes; then
2318 MAINT=
2319 else
2320 MAINT=#
2324 # Check whether --enable-locallisppath was given.
2325 if test "${enable_locallisppath+set}" = set; then
2326 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2327 locallisppath=
2328 elif test "${enableval}" != "yes"; then
2329 locallisppath=${enableval}
2334 # Check whether --enable-checking was given.
2335 if test "${enable_checking+set}" = set; then
2336 enableval=$enable_checking; ac_checking_flags="${enableval}"
2339 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2340 for check in $ac_checking_flags
2342 case $check in
2343 # these set all the flags to specific states
2344 yes) ac_enable_checking=1 ;;
2345 no) ac_enable_checking= ;
2346 ac_gc_check_stringbytes= ;
2347 ac_gc_check_string_overrun= ;
2348 ac_gc_check_string_free_list= ;
2349 ac_xmalloc_overrun= ;
2350 ac_gc_check_cons_list= ;;
2351 all) ac_enable_checking=1 ;
2352 ac_gc_check_stringbytes=1 ;
2353 ac_gc_check_string_overrun=1 ;
2354 ac_gc_check_string_free_list=1 ;
2355 ac_xmalloc_overrun=1 ;
2356 ac_gc_check_cons_list=1 ;;
2357 # these enable particular checks
2358 stringbytes) ac_gc_check_stringbytes=1 ;;
2359 stringoverrun) ac_gc_check_string_overrun=1 ;;
2360 stringfreelist) ac_gc_check_string_free_list=1 ;;
2361 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2362 conslist) ac_gc_check_cons_list=1 ;;
2363 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2364 $as_echo "$as_me: error: unknown check category $check" >&2;}
2365 { (exit 1); exit 1; }; } ;;
2366 esac
2367 done
2368 IFS="$ac_save_IFS"
2370 if test x$ac_enable_checking != x ; then
2372 cat >>confdefs.h <<\_ACEOF
2373 #define ENABLE_CHECKING 1
2374 _ACEOF
2377 if test x$ac_gc_check_stringbytes != x ; then
2379 cat >>confdefs.h <<\_ACEOF
2380 #define GC_CHECK_STRING_BYTES 1
2381 _ACEOF
2384 if test x$ac_gc_check_stringoverrun != x ; then
2386 cat >>confdefs.h <<\_ACEOF
2387 #define GC_CHECK_STRING_OVERRUN 1
2388 _ACEOF
2391 if test x$ac_gc_check_string_free_list != x ; then
2393 cat >>confdefs.h <<\_ACEOF
2394 #define GC_CHECK_STRING_FREE_LIST 1
2395 _ACEOF
2398 if test x$ac_xmalloc_overrun != x ; then
2400 cat >>confdefs.h <<\_ACEOF
2401 #define XMALLOC_OVERRUN_CHECK 1
2402 _ACEOF
2405 if test x$ac_gc_check_cons_list != x ; then
2407 cat >>confdefs.h <<\_ACEOF
2408 #define GC_CHECK_CONS_LIST 1
2409 _ACEOF
2413 # Check whether --enable-profiling was given.
2414 if test "${enable_profiling+set}" = set; then
2415 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2418 if test x$ac_enable_profiling != x ; then
2419 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2420 PROFILING_LDFLAGS="-pg"
2421 else
2422 PROFILING_CFLAGS=
2423 PROFILING_LDFLAGS=
2426 #### Make srcdir absolute, if it isn't already. It's important to
2427 #### avoid running the path through pwd unnecessarily, since pwd can
2428 #### give you automounter prefixes, which can go away. We do all this
2429 #### so Emacs can find its files when run uninstalled.
2430 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2431 unset CDPATH
2432 case "${srcdir}" in
2433 /* ) ;;
2435 ## We may be able to use the $PWD environment variable to make this
2436 ## absolute. But sometimes PWD is inaccurate.
2437 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2438 ## but that tested only for a well-formed and valid PWD,
2439 ## it did not object when PWD was well-formed and valid but just wrong.
2440 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2441 then
2442 srcdir="$PWD"
2443 else
2444 srcdir="`(cd ${srcdir}; pwd)`"
2447 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2448 esac
2450 #### Check if the source directory already has a configured system in it.
2451 if test `pwd` != `(cd ${srcdir} && pwd)` \
2452 && test -f "${srcdir}/src/config.h" ; then
2453 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2454 as a build directory right now; it has been configured in its own
2455 right. To configure in another directory as well, you MUST
2456 use GNU make. If you do not have GNU make, then you must
2457 now do \`make distclean' in ${srcdir},
2458 and then run $0 again." >&5
2459 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2460 as a build directory right now; it has been configured in its own
2461 right. To configure in another directory as well, you MUST
2462 use GNU make. If you do not have GNU make, then you must
2463 now do \`make distclean' in ${srcdir},
2464 and then run $0 again." >&2;}
2467 #### Given the configuration name, set machfile and opsysfile to the
2468 #### names of the m/*.h and s/*.h files we should use.
2470 ### Canonicalize the configuration name.
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2487 done
2488 if test -z "$ac_aux_dir"; then
2489 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2490 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2491 { (exit 1); exit 1; }; }
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2506 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2507 { (exit 1); exit 1; }; }
2509 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2510 $as_echo_n "checking build system type... " >&6; }
2511 if test "${ac_cv_build+set}" = set; then
2512 $as_echo_n "(cached) " >&6
2513 else
2514 ac_build_alias=$build_alias
2515 test "x$ac_build_alias" = x &&
2516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2517 test "x$ac_build_alias" = x &&
2518 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2519 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2520 { (exit 1); exit 1; }; }
2521 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2522 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2523 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2524 { (exit 1); exit 1; }; }
2527 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2528 $as_echo "$ac_cv_build" >&6; }
2529 case $ac_cv_build in
2530 *-*-*) ;;
2531 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2532 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2533 { (exit 1); exit 1; }; };;
2534 esac
2535 build=$ac_cv_build
2536 ac_save_IFS=$IFS; IFS='-'
2537 set x $ac_cv_build
2538 shift
2539 build_cpu=$1
2540 build_vendor=$2
2541 shift; shift
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2544 build_os=$*
2545 IFS=$ac_save_IFS
2546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2550 $as_echo_n "checking host system type... " >&6; }
2551 if test "${ac_cv_host+set}" = set; then
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test "x$host_alias" = x; then
2555 ac_cv_host=$ac_cv_build
2556 else
2557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2558 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2559 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2560 { (exit 1); exit 1; }; }
2564 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2565 $as_echo "$ac_cv_host" >&6; }
2566 case $ac_cv_host in
2567 *-*-*) ;;
2568 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2569 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2570 { (exit 1); exit 1; }; };;
2571 esac
2572 host=$ac_cv_host
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_host
2575 shift
2576 host_cpu=$1
2577 host_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 host_os=$*
2582 IFS=$ac_save_IFS
2583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586 canonical=$host
2587 configuration=${host_alias-${build_alias-$host}}
2591 ### If you add support for a new configuration, add code to this
2592 ### switch statement to recognize your configuration name and select
2593 ### the appropriate operating system and machine description files.
2595 ### You would hope that you could choose an m/*.h file pretty much
2596 ### based on the machine portion of the configuration name, and an s-
2597 ### file based on the operating system portion. However, it turns out
2598 ### that each m/*.h file is pretty manufacturer-specific - for
2599 ### example mips.h is MIPS
2600 ### So we basically have to have a special case for each
2601 ### configuration name.
2603 ### As far as handling version numbers on operating systems is
2604 ### concerned, make sure things will fail in a fixable way. If
2605 ### /etc/MACHINES doesn't say anything about version numbers, be
2606 ### prepared to handle anything reasonably. If version numbers
2607 ### matter, be sure /etc/MACHINES says something about it.
2609 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2610 ### "System V Release 4"; he writes, "The old convention encouraged
2611 ### confusion between `system' and `release' levels'."
2613 machine='' opsys='' unported=no
2614 case "${canonical}" in
2616 ## FreeBSD ports
2617 *-*-freebsd* )
2618 opsys=freebsd
2619 case "${canonical}" in
2620 alpha*-*-freebsd*) machine=alpha ;;
2621 arm*-*-freebsd*) machine=arm ;;
2622 ia64-*-freebsd*) machine=ia64 ;;
2623 sparc-*-freebsd*) machine=sparc ;;
2624 sparc64-*-freebsd*) machine=sparc ;;
2625 powerpc-*-freebsd*) machine=macppc ;;
2626 i[3456]86-*-freebsd*) machine=intel386 ;;
2627 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2628 esac
2631 ## FreeBSD kernel + glibc based userland
2632 *-*-kfreebsd*gnu* )
2633 opsys=gnu-kfreebsd
2634 case "${canonical}" in
2635 alpha*-*-kfreebsd*) machine=alpha ;;
2636 ia64-*-kfreebsd*) machine=ia64 ;;
2637 sparc-*-kfreebsd*) machine=sparc ;;
2638 sparc64-*-kfreebsd*) machine=sparc ;;
2639 powerpc-*-kfreebsd*) machine=macppc ;;
2640 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2641 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2642 esac
2645 ## NetBSD ports
2646 *-*-netbsd* )
2647 opsys=netbsd
2648 if test -f /usr/lib/crti.o; then
2650 cat >>confdefs.h <<\_ACEOF
2651 #define HAVE_CRTIN /**/
2652 _ACEOF
2656 case "${canonical}" in
2657 alpha*-*-netbsd*) machine=alpha ;;
2658 i[3456]86-*-netbsd*) machine=intel386 ;;
2659 mips-*-netbsd*) machine=mips ;;
2660 mipsel-*-netbsd*) machine=mips ;;
2661 mipseb-*-netbsd*) machine=mips ;;
2662 powerpc-*-netbsd*) machine=macppc ;;
2663 sparc*-*-netbsd*) machine=sparc ;;
2664 vax-*-netbsd*) machine=vax ;;
2665 arm-*-netbsd*) machine=arm ;;
2666 x86_64-*-netbsd*) machine=amdx86-64 ;;
2667 hppa-*-netbsd*) machine=hp800 ;;
2668 m68k-*-netbsd*) machine=m68k ;;
2669 esac
2672 ## OpenBSD ports
2673 *-*-openbsd* )
2674 opsys=openbsd
2675 case "${canonical}" in
2676 alpha*-*-openbsd*) machine=alpha ;;
2677 arm-*-openbsd*) machine=arm ;;
2678 i386-*-openbsd*) machine=intel386 ;;
2679 powerpc-*-openbsd*) machine=macppc ;;
2680 sparc*-*-openbsd*) machine=sparc ;;
2681 vax-*-openbsd*) machine=vax ;;
2682 x86_64-*-openbsd*) machine=amdx86-64 ;;
2683 hppa-*-openbsd*) machine=hp800 ;;
2684 esac
2687 ## LynxOS ports
2688 *-*-lynxos* )
2689 opsys=lynxos
2690 case "${canonical}" in
2691 i[3456]86-*-lynxos*) machine=intel386 ;;
2692 powerpc-*-lynxos*) machine=powerpc ;;
2693 esac
2696 alpha*-*-linux-gnu* )
2697 machine=alpha opsys=gnu-linux
2700 arm*-*-linux-gnu* )
2701 machine=arm opsys=gnu-linux
2704 ## Apple Darwin / Mac OS X
2705 *-apple-darwin* )
2706 case "${canonical}" in
2707 i[3456]86-* ) machine=intel386 ;;
2708 powerpc-* ) machine=macppc ;;
2709 * ) unported=yes ;;
2710 esac
2711 opsys=darwin
2712 # Define CPP as follows to make autoconf work correctly.
2713 CPP="${CC-cc} -E -no-cpp-precomp"
2714 # Use fink packages if available.
2715 if test -d /sw/include && test -d /sw/lib; then
2716 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2717 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2718 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2722 ## HP 9000 series 700 and 800, running HP/UX
2723 hppa*-hp-hpux10.2* )
2724 machine=hp800 opsys=hpux10-20
2726 hppa*-hp-hpux1[1-9]* )
2727 machine=hp800 opsys=hpux11
2728 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2731 hppa*-*-linux-gnu* )
2732 machine=hp800 opsys=gnu-linux
2735 ## IBM machines
2736 s390-*-linux-gnu* )
2737 machine=ibms390 opsys=gnu-linux
2739 s390x-*-linux-gnu* )
2740 machine=ibms390x opsys=gnu-linux
2742 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2743 machine=ibmrs6000 opsys=aix4-2
2745 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2746 machine=ibmrs6000 opsys=aix4-2
2748 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2749 machine=ibmrs6000 opsys=aix4-2
2751 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2752 machine=ibmrs6000 opsys=aix4-2
2755 ## Macintosh PowerPC
2756 powerpc*-*-linux-gnu* )
2757 machine=macppc opsys=gnu-linux
2760 ## Silicon Graphics machines
2761 ## Iris 4D
2762 mips-sgi-irix6.5 )
2763 machine=iris4d opsys=irix6-5
2764 # Without defining _LANGUAGE_C, things get masked out in the headers
2765 # so that, for instance, grepping for `free' in stdlib.h fails and
2766 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2767 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2768 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2771 ## Suns
2772 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2773 machine=sparc opsys=gnu-linux
2776 *-sun-solaris* \
2777 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2778 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2779 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2780 case "${canonical}" in
2781 i[3456]86-*-* ) machine=intel386 ;;
2782 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2783 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2784 sparc* ) machine=sparc ;;
2785 * ) unported=yes ;;
2786 esac
2787 case "${canonical}" in
2788 *-sunos5.3* | *-solaris2.3* )
2789 opsys=sol2-3
2790 NON_GNU_CPP=/usr/ccs/lib/cpp
2792 *-sunos5.4* | *-solaris2.4* )
2793 opsys=sol2-4
2794 NON_GNU_CPP=/usr/ccs/lib/cpp
2795 RANLIB="ar -ts"
2797 *-sunos5.5* | *-solaris2.5* )
2798 opsys=sol2-5
2799 NON_GNU_CPP=/usr/ccs/lib/cpp
2800 RANLIB="ar -ts"
2802 *-sunos5.6* | *-solaris2.6* )
2803 opsys=sol2-6
2804 NON_GNU_CPP=/usr/ccs/lib/cpp
2805 RANLIB="ar -ts"
2807 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2808 opsys=sol2-6
2809 emacs_check_sunpro_c=yes
2810 NON_GNU_CPP=/usr/ccs/lib/cpp
2812 *-sunos5* | *-solaris* )
2813 opsys=sol2-10
2814 emacs_check_sunpro_c=yes
2815 NON_GNU_CPP=/usr/ccs/lib/cpp
2817 esac
2818 ## Watch out for a compiler that we know will not work.
2819 case "${canonical}" in
2820 *-solaris* | *-sunos5* )
2821 if [ "x$CC" = x/usr/ucb/cc ]; then
2822 ## /usr/ucb/cc doesn't work;
2823 ## we should find some other compiler that does work.
2824 unset CC
2827 *) ;;
2828 esac
2831 ## Vaxen.
2832 vax-dec-* )
2833 machine=vax
2834 case "${canonical}" in
2835 *-vms* ) opsys=vms ;;
2836 * ) unported=yes
2837 esac
2840 ## IA-64
2841 ia64*-*-linux* )
2842 machine=ia64 opsys=gnu-linux
2845 ## Intel 386 machines where we don't care about the manufacturer
2846 i[3456]86-*-* )
2847 machine=intel386
2848 case "${canonical}" in
2849 *-cygwin ) opsys=cygwin ;;
2850 *-darwin* ) opsys=darwin
2851 CPP="${CC-cc} -E -no-cpp-precomp"
2853 *-linux-gnu* ) opsys=gnu-linux ;;
2854 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2855 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2856 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2857 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2858 esac
2861 ## m68k Linux-based GNU system
2862 m68k-*-linux-gnu* )
2863 machine=m68k opsys=gnu-linux
2866 ## Mips Linux-based GNU system
2867 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2868 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2869 machine=mips opsys=gnu-linux
2872 ## AMD x86-64 Linux-based GNU system
2873 x86_64-*-linux-gnu* )
2874 machine=amdx86-64 opsys=gnu-linux
2877 ## Tensilica Xtensa Linux-based GNU system
2878 xtensa*-*-linux-gnu* )
2879 machine=xtensa opsys=gnu-linux
2882 ## SuperH Linux-based GNU system
2883 sh[34]*-*-linux-gnu* )
2884 machine=sh3 opsys=gnu-linux
2888 unported=yes
2890 esac
2892 ### If the code above didn't choose an operating system, just choose
2893 ### an operating system based on the configuration name. You really
2894 ### only want to use this when you have no idea what the right
2895 ### operating system is; if you know what operating systems a machine
2896 ### runs, it's cleaner to make it explicit in the case statement
2897 ### above.
2898 if test x"${opsys}" = x; then
2899 case "${canonical}" in
2900 *-gnu* ) opsys=gnu ;;
2901 *-sysv4.2uw* ) opsys=unixware ;;
2902 *-sysv5uw* ) opsys=unixware ;;
2903 *-sysv5OpenUNIX* ) opsys=unixware ;;
2904 *-sysv4.1* | *-sysvr4.1* )
2905 NON_GNU_CPP=/usr/lib/cpp
2906 opsys=usg5-4 ;;
2907 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2908 if [ x$NON_GNU_CPP = x ]; then
2909 if [ -f /usr/ccs/lib/cpp ]; then
2910 NON_GNU_CPP=/usr/ccs/lib/cpp
2911 else
2912 NON_GNU_CPP=/lib/cpp
2915 opsys=usg5-4-2 ;;
2916 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2918 unported=yes
2920 esac
2925 if test $unported = yes; then
2926 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2927 Check \`etc/MACHINES' for recognized configuration names." >&5
2928 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2929 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2930 { (exit 1); exit 1; }; }
2933 machfile="m/${machine}.h"
2934 opsysfile="s/${opsys}.h"
2937 #### Choose a compiler.
2938 test -n "$CC" && cc_specified=yes
2940 # Save the value of CFLAGS that the user specified.
2941 SPECIFIED_CFLAGS="$CFLAGS"
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:$LINENO: result: no" >&5
2982 $as_echo "no" >&6; }
2987 if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc; ac_word=$2
2991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="gcc"
3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3010 done
3011 done
3012 IFS=$as_save_IFS
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:$LINENO: result: no" >&5
3022 $as_echo "no" >&6; }
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3031 whose name does not start with the host triplet. If you think this
3032 configuration is useful to you, please write to autoconf@gnu.org." >&5
3033 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3034 whose name does not start with the host triplet. If you think this
3035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 CC=$ac_ct_CC
3040 else
3041 CC="$ac_cv_prog_CC"
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}cc; ac_word=$2
3048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC="${ac_tool_prefix}cc"
3064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3069 IFS=$as_save_IFS
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078 { $as_echo "$as_me:$LINENO: result: no" >&5
3079 $as_echo "no" >&6; }
3085 if test -z "$CC"; then
3086 # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 ac_prog_rejected=no
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105 ac_prog_rejected=yes
3106 continue
3108 ac_cv_prog_CC="cc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3112 done
3113 done
3114 IFS=$as_save_IFS
3116 if test $ac_prog_rejected = yes; then
3117 # We found a bogon in the path, so make sure we never use it.
3118 set dummy $ac_cv_prog_CC
3119 shift
3120 if test $# != 0; then
3121 # We chose a different compiler from the bogus one.
3122 # However, it has the same basename, so the bogon will be chosen
3123 # first if we set CC to just the basename; use the full file name.
3124 shift
3125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:$LINENO: result: no" >&5
3136 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 for ac_prog in cl.exe
3145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3166 done
3167 done
3168 IFS=$as_save_IFS
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:$LINENO: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$CC" && break
3183 done
3185 if test -z "$CC"; then
3186 ac_ct_CC=$CC
3187 for ac_prog in cl.exe
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="$ac_prog"
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3212 IFS=$as_save_IFS
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221 { $as_echo "$as_me:$LINENO: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$ac_ct_CC" && break
3227 done
3229 if test "x$ac_ct_CC" = x; then
3230 CC=""
3231 else
3232 case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3235 whose name does not start with the host triplet. If you think this
3236 configuration is useful to you, please write to autoconf@gnu.org." >&5
3237 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3238 whose name does not start with the host triplet. If you think this
3239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242 CC=$ac_ct_CC
3249 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3255 # Provide some information about the compiler.
3256 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3257 set X $ac_compile
3258 ac_compiler=$2
3259 { (ac_try="$ac_compiler --version >&5"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compiler --version >&5") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }
3270 { (ac_try="$ac_compiler -v >&5"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_compiler -v >&5") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (ac_try="$ac_compiler -V >&5"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287 $as_echo "$ac_try_echo") >&5
3288 (eval "$ac_compiler -V >&5") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3301 main ()
3305 return 0;
3307 _ACEOF
3308 ac_clean_files_save=$ac_clean_files
3309 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310 # Try to create an executable without -o first, disregard a.out.
3311 # It will help us diagnose broken compilers, and finding out an intuition
3312 # of exeext.
3313 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3314 $as_echo_n "checking for C compiler default output file name... " >&6; }
3315 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3317 # The possible output files:
3318 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3320 ac_rmfiles=
3321 for ac_file in $ac_files
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326 esac
3327 done
3328 rm -f $ac_rmfiles
3330 if { (ac_try="$ac_link_default"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337 (eval "$ac_link_default") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; then
3341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3344 # so that the user can short-circuit this test for compilers unknown to
3345 # Autoconf.
3346 for ac_file in $ac_files ''
3348 test -f "$ac_file" || continue
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3352 [ab].out )
3353 # We found the default executable, but exeext='' is most
3354 # certainly right.
3355 break;;
3356 *.* )
3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3358 then :; else
3359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 # We set ac_cv_exeext here because the later test for it is not
3362 # safe: cross compilers may not add the suffix if given an `-o'
3363 # argument, so we may need to know it at that point already.
3364 # Even if this section looks crufty: it has the advantage of
3365 # actually working.
3366 break;;
3368 break;;
3369 esac
3370 done
3371 test "$ac_cv_exeext" = no && ac_cv_exeext=
3373 else
3374 ac_file=''
3377 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 if test -z "$ac_file"; then
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3384 See \`config.log' for more details." >&5
3385 $as_echo "$as_me: error: C compiler cannot create executables
3386 See \`config.log' for more details." >&2;}
3387 { (exit 77); exit 77; }; }
3390 ac_exeext=$ac_cv_exeext
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3395 $as_echo_n "checking whether the C compiler works... " >&6; }
3396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3397 # If not cross compiling, check that we can run a simple program.
3398 if test "$cross_compiling" != yes; then
3399 if { ac_try='./$ac_file'
3400 { (case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_try") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 cross_compiling=no
3411 else
3412 if test "$cross_compiling" = maybe; then
3413 cross_compiling=yes
3414 else
3415 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3416 If you meant to cross compile, use \`--host'.
3417 See \`config.log' for more details." >&5
3418 $as_echo "$as_me: error: cannot run C compiled programs.
3419 If you meant to cross compile, use \`--host'.
3420 See \`config.log' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3425 { $as_echo "$as_me:$LINENO: result: yes" >&5
3426 $as_echo "yes" >&6; }
3428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3429 ac_clean_files=$ac_clean_files_save
3430 # Check that the compiler produces executables we can run. If not, either
3431 # the compiler is broken, or we cross compile.
3432 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3433 $as_echo_n "checking whether we are cross compiling... " >&6; }
3434 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3435 $as_echo "$cross_compiling" >&6; }
3437 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3438 $as_echo_n "checking for suffix of executables... " >&6; }
3439 if { (ac_try="$ac_link"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_link") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; then
3450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3451 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3452 # work properly (i.e., refer to `conftest.exe'), while it won't with
3453 # `rm'.
3454 for ac_file in conftest.exe conftest conftest.*; do
3455 test -f "$ac_file" || continue
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 break;;
3460 * ) break;;
3461 esac
3462 done
3463 else
3464 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3467 See \`config.log' for more details." >&2;}
3468 { (exit 1); exit 1; }; }
3471 rm -f conftest$ac_cv_exeext
3472 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3473 $as_echo "$ac_cv_exeext" >&6; }
3475 rm -f conftest.$ac_ext
3476 EXEEXT=$ac_cv_exeext
3477 ac_exeext=$EXEEXT
3478 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3479 $as_echo_n "checking for suffix of object files... " >&6; }
3480 if test "${ac_cv_objext+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3482 else
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3491 main ()
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.o conftest.obj
3499 if { (ac_try="$ac_compile"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505 $as_echo "$ac_try_echo") >&5
3506 (eval "$ac_compile") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; then
3510 for ac_file in conftest.o conftest.obj conftest.*; do
3511 test -f "$ac_file" || continue;
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3515 break;;
3516 esac
3517 done
3518 else
3519 $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details." >&5
3524 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3525 See \`config.log' for more details." >&2;}
3526 { (exit 1); exit 1; }; }
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3534 ac_objext=$OBJEXT
3535 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3538 $as_echo_n "(cached) " >&6
3539 else
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3548 main ()
3550 #ifndef __GNUC__
3551 choke me
3552 #endif
3555 return 0;
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_compiler_gnu=yes
3577 else
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_compiler_gnu=no
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3591 GCC=yes
3592 else
3593 GCC=
3595 ac_test_CFLAGS=${CFLAGS+set}
3596 ac_save_CFLAGS=$CFLAGS
3597 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3598 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3599 if test "${ac_cv_prog_cc_g+set}" = set; then
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3604 ac_cv_prog_cc_g=no
3605 CFLAGS="-g"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3614 main ()
3618 return 0;
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3628 $as_echo "$ac_try_echo") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3639 ac_cv_prog_cc_g=yes
3640 else
3641 $as_echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 CFLAGS=""
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3667 $as_echo "$ac_try_echo") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.$ac_objext; then
3679 else
3680 $as_echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 ac_c_werror_flag=$ac_save_c_werror_flag
3684 CFLAGS="-g"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h. */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3693 main ()
3697 return 0;
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 ac_cv_prog_cc_g=yes
3719 else
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3735 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3736 $as_echo "$ac_cv_prog_cc_g" >&6; }
3737 if test "$ac_test_CFLAGS" = set; then
3738 CFLAGS=$ac_save_CFLAGS
3739 elif test $ac_cv_prog_cc_g = yes; then
3740 if test "$GCC" = yes; then
3741 CFLAGS="-g -O2"
3742 else
3743 CFLAGS="-g"
3745 else
3746 if test "$GCC" = yes; then
3747 CFLAGS="-O2"
3748 else
3749 CFLAGS=
3752 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3753 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3754 if test "${ac_cv_prog_cc_c89+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3756 else
3757 ac_cv_prog_cc_c89=no
3758 ac_save_CC=$CC
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <stdarg.h>
3766 #include <stdio.h>
3767 #include <sys/types.h>
3768 #include <sys/stat.h>
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3773 char **p;
3774 int i;
3776 return p[i];
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3780 char *s;
3781 va_list v;
3782 va_start (v,p);
3783 s = g (p, va_arg (v,int));
3784 va_end (v);
3785 return s;
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3799 #define FOO(x) 'x'
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3806 int argc;
3807 char **argv;
3809 main ()
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 return 0;
3815 _ACEOF
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 CC="$ac_save_CC $ac_arg"
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_cv_prog_cc_c89=$ac_arg
3839 else
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3877 CPP=
3880 ## If not using gcc, and on Solaris, and no CPP specified, see if
3881 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3882 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3883 test x"$CPP" = x; then
3884 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3885 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3887 if test "${emacs_cv_sunpro_c+set}" = set; then
3888 $as_echo_n "(cached) " >&6
3889 else
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3898 main ()
3900 #ifndef __SUNPRO_C
3901 fail;
3902 #endif
3905 return 0;
3907 _ACEOF
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (ac_try="$ac_link"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_link") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest$ac_exeext && {
3926 test "$cross_compiling" = yes ||
3927 $as_test_x conftest$ac_exeext
3928 }; then
3929 emacs_cv_sunpro_c=yes
3930 else
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 emacs_cv_sunpro_c=no
3937 rm -rf conftest.dSYM
3938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3939 conftest$ac_exeext conftest.$ac_ext
3942 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3943 $as_echo "$emacs_cv_sunpro_c" >&6; }
3945 if test x"$emacs_cv_sunpro_c" = xyes; then
3946 NON_GNU_CPP="$CC -E -Xs"
3950 #### Some systems specify a CPP to use unless we are using GCC.
3951 #### Now that we know whether we are using GCC, we can decide whether
3952 #### to use that one.
3953 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3954 then
3955 CPP="$NON_GNU_CPP"
3958 #### Some systems specify a CC to use unless we are using GCC.
3959 #### Now that we know whether we are using GCC, we can decide whether
3960 #### to use that one.
3961 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3962 test x$cc_specified != xyes
3963 then
3964 CC="$NON_GNU_CC"
3967 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3968 then
3969 CC="$CC $GCC_TEST_OPTIONS"
3972 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3973 then
3974 CC="$CC $NON_GCC_TEST_OPTIONS"
3977 ac_ext=c
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3984 # On Suns, sometimes $CPP names a directory.
3985 if test -n "$CPP" && test -d "$CPP"; then
3986 CPP=
3988 if test -z "$CPP"; then
3989 if test "${ac_cv_prog_CPP+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991 else
3992 # Double quotes because CPP needs to be expanded
3993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3995 ac_preproc_ok=false
3996 for ac_c_preproc_warn_flag in '' yes
3998 # Use a header file that comes with gcc, so configuring glibc
3999 # with a fresh cross-compiler works.
4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 # <limits.h> exists even on freestanding compilers.
4002 # On the NeXT, cc -E runs the code through the compiler's parser,
4003 # not just through cpp. "Syntax error" is here to catch this case.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #ifdef __STDC__
4011 # include <limits.h>
4012 #else
4013 # include <assert.h>
4014 #endif
4015 Syntax error
4016 _ACEOF
4017 if { (ac_try="$ac_cpp conftest.$ac_ext"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } >/dev/null && {
4031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 }; then
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 # Broken: fails on valid input.
4040 continue
4043 rm -f conftest.err conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h. */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <ac_nonexistent.h>
4054 _ACEOF
4055 if { (ac_try="$ac_cpp conftest.$ac_ext"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } >/dev/null && {
4069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 }; then
4072 # Broken: success on invalid input.
4073 continue
4074 else
4075 $as_echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 # Passes both tests.
4079 ac_preproc_ok=:
4080 break
4083 rm -f conftest.err conftest.$ac_ext
4085 done
4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087 rm -f conftest.err conftest.$ac_ext
4088 if $ac_preproc_ok; then
4089 break
4092 done
4093 ac_cv_prog_CPP=$CPP
4096 CPP=$ac_cv_prog_CPP
4097 else
4098 ac_cv_prog_CPP=$CPP
4100 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4101 $as_echo "$CPP" >&6; }
4102 ac_preproc_ok=false
4103 for ac_c_preproc_warn_flag in '' yes
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error" is here to catch this case.
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #ifdef __STDC__
4118 # include <limits.h>
4119 #else
4120 # include <assert.h>
4121 #endif
4122 Syntax error
4123 _ACEOF
4124 if { (ac_try="$ac_cpp conftest.$ac_ext"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 }; then
4142 else
4143 $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 # Broken: fails on valid input.
4147 continue
4150 rm -f conftest.err conftest.$ac_ext
4152 # OK, works on sane cases. Now check whether nonexistent headers
4153 # can be detected and how.
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if { (ac_try="$ac_cpp conftest.$ac_ext"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } >/dev/null && {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 }; then
4179 # Broken: success on invalid input.
4180 continue
4181 else
4182 $as_echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Passes both tests.
4186 ac_preproc_ok=:
4187 break
4190 rm -f conftest.err conftest.$ac_ext
4192 done
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4197 else
4198 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4199 See \`config.log' for more details." >&5
4200 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4201 See \`config.log' for more details." >&2;}
4202 { (exit 1); exit 1; }; }
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if test "${ac_cv_path_GREP+set}" = set; then
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in grep ggrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 ac_count=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP="$ac_path_GREP"
4249 ac_path_GREP_max=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4257 $ac_path_GREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_GREP"; then
4263 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4267 else
4268 ac_cv_path_GREP=$GREP
4272 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274 GREP="$ac_cv_path_GREP"
4277 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4283 then ac_cv_path_EGREP="$GREP -E"
4284 else
4285 if test -z "$EGREP"; then
4286 ac_path_EGREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in egrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298 # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4300 *GNU*)
4301 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4303 ac_count=0
4304 $as_echo_n 0123456789 >"conftest.in"
4305 while :
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'EGREP' >> "conftest.nl"
4311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 ac_count=`expr $ac_count + 1`
4314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_EGREP="$ac_path_EGREP"
4317 ac_path_EGREP_max=$ac_count
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4325 $ac_path_EGREP_found && break 3
4326 done
4327 done
4328 done
4329 IFS=$as_save_IFS
4330 if test -z "$ac_cv_path_EGREP"; then
4331 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4332 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4333 { (exit 1); exit 1; }; }
4335 else
4336 ac_cv_path_EGREP=$EGREP
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4346 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4350 else
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <stdlib.h>
4358 #include <stdarg.h>
4359 #include <string.h>
4360 #include <float.h>
4363 main ()
4367 return 0;
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (ac_try="$ac_compile"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4377 $as_echo "$ac_try_echo") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest.$ac_objext; then
4388 ac_cv_header_stdc=yes
4389 else
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_header_stdc=no
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 if test $ac_cv_header_stdc = yes; then
4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #include <string.h>
4408 _ACEOF
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 $EGREP "memchr" >/dev/null 2>&1; then
4412 else
4413 ac_cv_header_stdc=no
4415 rm -f conftest*
4419 if test $ac_cv_header_stdc = yes; then
4420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <stdlib.h>
4429 _ACEOF
4430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4431 $EGREP "free" >/dev/null 2>&1; then
4433 else
4434 ac_cv_header_stdc=no
4436 rm -f conftest*
4440 if test $ac_cv_header_stdc = yes; then
4441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4442 if test "$cross_compiling" = yes; then
4444 else
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <ctype.h>
4452 #include <stdlib.h>
4453 #if ((' ' & 0x0FF) == 0x020)
4454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4456 #else
4457 # define ISLOWER(c) \
4458 (('a' <= (c) && (c) <= 'i') \
4459 || ('j' <= (c) && (c) <= 'r') \
4460 || ('s' <= (c) && (c) <= 'z'))
4461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4462 #endif
4464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4466 main ()
4468 int i;
4469 for (i = 0; i < 256; i++)
4470 if (XOR (islower (i), ISLOWER (i))
4471 || toupper (i) != TOUPPER (i))
4472 return 2;
4473 return 0;
4475 _ACEOF
4476 rm -f conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_link") 2>&5
4485 ac_status=$?
4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4493 $as_echo "$ac_try_echo") >&5
4494 (eval "$ac_try") 2>&5
4495 ac_status=$?
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4499 else
4500 $as_echo "$as_me: program exited with status $ac_status" >&5
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ( exit $ac_status )
4505 ac_cv_header_stdc=no
4507 rm -rf conftest.dSYM
4508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4515 $as_echo "$ac_cv_header_stdc" >&6; }
4516 if test $ac_cv_header_stdc = yes; then
4518 cat >>confdefs.h <<\_ACEOF
4519 #define STDC_HEADERS 1
4520 _ACEOF
4524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 $as_echo_n "checking for $ac_header... " >&6; }
4540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4551 #include <$ac_header>
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4555 case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558 esac
4559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4560 $as_echo "$ac_try_echo") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4571 eval "$as_ac_Header=yes"
4572 else
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 eval "$as_ac_Header=no"
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_res=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'`
4583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4584 $as_echo "$ac_res" >&6; }
4585 if test `eval 'as_val=${'$as_ac_Header'}
4586 $as_echo "$as_val"'` = yes; then
4587 cat >>confdefs.h <<_ACEOF
4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589 _ACEOF
4593 done
4597 if test "${ac_cv_header_minix_config_h+set}" = set; then
4598 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4599 $as_echo_n "checking for minix/config.h... " >&6; }
4600 if test "${ac_cv_header_minix_config_h+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4604 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4605 else
4606 # Is the header compilable?
4607 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4608 $as_echo_n "checking minix/config.h usability... " >&6; }
4609 cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h. */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4615 $ac_includes_default
4616 #include <minix/config.h>
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (ac_try="$ac_compile"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626 (eval "$ac_compile") 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } && {
4633 test -z "$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4635 } && test -s conftest.$ac_objext; then
4636 ac_header_compiler=yes
4637 else
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_header_compiler=no
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4646 $as_echo "$ac_header_compiler" >&6; }
4648 # Is the header present?
4649 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4650 $as_echo_n "checking minix/config.h presence... " >&6; }
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #include <minix/config.h>
4658 _ACEOF
4659 if { (ac_try="$ac_cpp conftest.$ac_ext"
4660 case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4665 $as_echo "$ac_try_echo") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null && {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 }; then
4676 ac_header_preproc=yes
4677 else
4678 $as_echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 ac_header_preproc=no
4684 rm -f conftest.err conftest.$ac_ext
4685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4686 $as_echo "$ac_header_preproc" >&6; }
4688 # So? What about this header?
4689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4690 yes:no: )
4691 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4692 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4693 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4694 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4695 ac_header_preproc=yes
4697 no:yes:* )
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4700 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4701 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4702 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4703 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4704 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4705 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4706 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4707 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4712 esac
4713 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4714 $as_echo_n "checking for minix/config.h... " >&6; }
4715 if test "${ac_cv_header_minix_config_h+set}" = set; then
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_cv_header_minix_config_h=$ac_header_preproc
4720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4721 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4724 if test $ac_cv_header_minix_config_h = yes; then
4725 MINIX=yes
4726 else
4727 MINIX=
4731 if test "$MINIX" = yes; then
4733 cat >>confdefs.h <<\_ACEOF
4734 #define _POSIX_SOURCE 1
4735 _ACEOF
4738 cat >>confdefs.h <<\_ACEOF
4739 #define _POSIX_1_SOURCE 2
4740 _ACEOF
4743 cat >>confdefs.h <<\_ACEOF
4744 #define _MINIX 1
4745 _ACEOF
4751 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4752 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4763 # define __EXTENSIONS__ 1
4764 $ac_includes_default
4766 main ()
4770 return 0;
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (ac_try="$ac_compile"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780 $as_echo "$ac_try_echo") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4791 ac_cv_safe_to_define___extensions__=yes
4792 else
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 ac_cv_safe_to_define___extensions__=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4802 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4803 test $ac_cv_safe_to_define___extensions__ = yes &&
4804 cat >>confdefs.h <<\_ACEOF
4805 #define __EXTENSIONS__ 1
4806 _ACEOF
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _ALL_SOURCE 1
4810 _ACEOF
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _GNU_SOURCE 1
4814 _ACEOF
4816 cat >>confdefs.h <<\_ACEOF
4817 #define _POSIX_PTHREAD_SEMANTICS 1
4818 _ACEOF
4820 cat >>confdefs.h <<\_ACEOF
4821 #define _TANDEM_SOURCE 1
4822 _ACEOF
4826 ### Use -Wno-pointer-sign if the compiler supports it
4827 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4828 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4829 SAVE_CFLAGS="$CFLAGS"
4830 CFLAGS="$CFLAGS -Wno-pointer-sign"
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4839 main ()
4843 return 0;
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 has_option=yes
4865 else
4866 $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 has_option=no
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 if test $has_option = yes; then
4874 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4876 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4877 $as_echo "$has_option" >&6; }
4878 CFLAGS="$SAVE_CFLAGS"
4879 unset has_option
4880 unset SAVE_CFLAGS
4882 #### Some other nice autoconf tests.
4884 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4885 $as_echo_n "checking whether ln -s works... " >&6; }
4886 LN_S=$as_ln_s
4887 if test "$LN_S" = "ln -s"; then
4888 { $as_echo "$as_me:$LINENO: result: yes" >&5
4889 $as_echo "yes" >&6; }
4890 else
4891 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4892 $as_echo "no, using $LN_S" >&6; }
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4902 # On Suns, sometimes $CPP names a directory.
4903 if test -n "$CPP" && test -d "$CPP"; then
4904 CPP=
4906 if test -z "$CPP"; then
4907 if test "${ac_cv_prog_CPP+set}" = set; then
4908 $as_echo_n "(cached) " >&6
4909 else
4910 # Double quotes because CPP needs to be expanded
4911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4913 ac_preproc_ok=false
4914 for ac_c_preproc_warn_flag in '' yes
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4933 Syntax error
4934 _ACEOF
4935 if { (ac_try="$ac_cpp conftest.$ac_ext"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null && {
4949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 }; then
4953 else
4954 $as_echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 # Broken: fails on valid input.
4958 continue
4961 rm -f conftest.err conftest.$ac_ext
4963 # OK, works on sane cases. Now check whether nonexistent headers
4964 # can be detected and how.
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if { (ac_try="$ac_cpp conftest.$ac_ext"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null && {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 }; then
4990 # Broken: success on invalid input.
4991 continue
4992 else
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 # Passes both tests.
4997 ac_preproc_ok=:
4998 break
5001 rm -f conftest.err conftest.$ac_ext
5003 done
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.$ac_ext
5006 if $ac_preproc_ok; then
5007 break
5010 done
5011 ac_cv_prog_CPP=$CPP
5014 CPP=$ac_cv_prog_CPP
5015 else
5016 ac_cv_prog_CPP=$CPP
5018 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5019 $as_echo "$CPP" >&6; }
5020 ac_preproc_ok=false
5021 for ac_c_preproc_warn_flag in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040 Syntax error
5041 _ACEOF
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048 $as_echo "$ac_try_echo") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 }; then
5060 else
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 # Broken: fails on valid input.
5065 continue
5068 rm -f conftest.err conftest.$ac_ext
5070 # OK, works on sane cases. Now check whether nonexistent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5079 _ACEOF
5080 if { (ac_try="$ac_cpp conftest.$ac_ext"
5081 case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084 esac
5085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null && {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 }; then
5097 # Broken: success on invalid input.
5098 continue
5099 else
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5108 rm -f conftest.err conftest.$ac_ext
5110 done
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then
5115 else
5116 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details." >&5
5118 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details." >&2;}
5120 { (exit 1); exit 1; }; }
5123 ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129 # Find a good install program. We prefer a C program (faster),
5130 # so one script is as good as another. But avoid the broken or
5131 # incompatible versions:
5132 # SysV /etc/install, /usr/sbin/install
5133 # SunOS /usr/etc/install
5134 # IRIX /sbin/install
5135 # AIX /bin/install
5136 # AmigaOS /C/install, which installs bootblocks on floppy discs
5137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5140 # OS/2's system install, which has a completely different semantic
5141 # ./install, which can be erroneously created by make from ./install.sh.
5142 # Reject install programs that cannot install multiple files.
5143 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5144 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5145 if test -z "$INSTALL"; then
5146 if test "${ac_cv_path_install+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 # Account for people who put trailing slashes in PATH elements.
5155 case $as_dir/ in
5156 ./ | .// | /cC/* | \
5157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5158 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5159 /usr/ucb/* ) ;;
5161 # OSF1 and SCO ODT 3.0 have their own names for install.
5162 # Don't use installbsd from OSF since it installs stuff as root
5163 # by default.
5164 for ac_prog in ginstall scoinst install; do
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5167 if test $ac_prog = install &&
5168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5169 # AIX install. It has an incompatible calling convention.
5171 elif test $ac_prog = install &&
5172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5173 # program-specific install script used by HP pwplus--don't use.
5175 else
5176 rm -rf conftest.one conftest.two conftest.dir
5177 echo one > conftest.one
5178 echo two > conftest.two
5179 mkdir conftest.dir
5180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5181 test -s conftest.one && test -s conftest.two &&
5182 test -s conftest.dir/conftest.one &&
5183 test -s conftest.dir/conftest.two
5184 then
5185 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5186 break 3
5190 done
5191 done
5193 esac
5195 done
5196 IFS=$as_save_IFS
5198 rm -rf conftest.one conftest.two conftest.dir
5201 if test "${ac_cv_path_install+set}" = set; then
5202 INSTALL=$ac_cv_path_install
5203 else
5204 # As a last resort, use the slow shell script. Don't cache a
5205 # value for INSTALL within a source directory, because that will
5206 # break other packages using the cache if that directory is
5207 # removed, or if the value is a relative name.
5208 INSTALL=$ac_install_sh
5211 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5212 $as_echo "$INSTALL" >&6; }
5214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5215 # It thinks the first close brace ends the variable substitution.
5216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5222 if test "x$RANLIB" = x; then
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_RANLIB+set}" = set; then
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$RANLIB"; then
5232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 RANLIB=$ac_cv_prog_RANLIB
5252 if test -n "$RANLIB"; then
5253 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5254 $as_echo "$RANLIB" >&6; }
5255 else
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }
5262 if test -z "$ac_cv_prog_RANLIB"; then
5263 ac_ct_RANLIB=$RANLIB
5264 # Extract the first word of "ranlib", so it can be a program name with args.
5265 set dummy ranlib; ac_word=$2
5266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$ac_ct_RANLIB"; then
5272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_prog_ac_ct_RANLIB="ranlib"
5282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5285 done
5286 done
5287 IFS=$as_save_IFS
5291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5292 if test -n "$ac_ct_RANLIB"; then
5293 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5294 $as_echo "$ac_ct_RANLIB" >&6; }
5295 else
5296 { $as_echo "$as_me:$LINENO: result: no" >&5
5297 $as_echo "no" >&6; }
5300 if test "x$ac_ct_RANLIB" = x; then
5301 RANLIB=":"
5302 else
5303 case $cross_compiling:$ac_tool_warned in
5304 yes:)
5305 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5306 whose name does not start with the host triplet. If you think this
5307 configuration is useful to you, please write to autoconf@gnu.org." >&5
5308 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5309 whose name does not start with the host triplet. If you think this
5310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5311 ac_tool_warned=yes ;;
5312 esac
5313 RANLIB=$ac_ct_RANLIB
5315 else
5316 RANLIB="$ac_cv_prog_RANLIB"
5320 # Extract the first word of "install-info", so it can be a program name with args.
5321 set dummy install-info; ac_word=$2
5322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5325 $as_echo_n "(cached) " >&6
5326 else
5327 case $INSTALL_INFO in
5328 [\\/]* | ?:[\\/]*)
5329 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5343 done
5344 done
5345 IFS=$as_save_IFS
5348 esac
5350 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5351 if test -n "$INSTALL_INFO"; then
5352 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5353 $as_echo "$INSTALL_INFO" >&6; }
5354 else
5355 { $as_echo "$as_me:$LINENO: result: no" >&5
5356 $as_echo "no" >&6; }
5360 # Extract the first word of "install-info", so it can be a program name with args.
5361 set dummy install-info; ac_word=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5366 else
5367 case $INSTALL_INFO in
5368 [\\/]* | ?:[\\/]*)
5369 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in /usr/sbin
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5383 done
5384 done
5385 IFS=$as_save_IFS
5388 esac
5390 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5391 if test -n "$INSTALL_INFO"; then
5392 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5393 $as_echo "$INSTALL_INFO" >&6; }
5394 else
5395 { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5400 # Extract the first word of "install-info", so it can be a program name with args.
5401 set dummy install-info; ac_word=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5406 else
5407 case $INSTALL_INFO in
5408 [\\/]* | ?:[\\/]*)
5409 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in /sbin
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5423 done
5424 done
5425 IFS=$as_save_IFS
5427 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5429 esac
5431 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5432 if test -n "$INSTALL_INFO"; then
5433 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5434 $as_echo "$INSTALL_INFO" >&6; }
5435 else
5436 { $as_echo "$as_me:$LINENO: result: no" >&5
5437 $as_echo "no" >&6; }
5441 # Extract the first word of "gzip", so it can be a program name with args.
5442 set dummy gzip; ac_word=$2
5443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5447 else
5448 case $GZIP_PROG in
5449 [\\/]* | ?:[\\/]*)
5450 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5464 done
5465 done
5466 IFS=$as_save_IFS
5469 esac
5471 GZIP_PROG=$ac_cv_path_GZIP_PROG
5472 if test -n "$GZIP_PROG"; then
5473 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5474 $as_echo "$GZIP_PROG" >&6; }
5475 else
5476 { $as_echo "$as_me:$LINENO: result: no" >&5
5477 $as_echo "no" >&6; }
5483 ## Need makeinfo >= 4.6 (?) to build the manuals.
5484 # Extract the first word of "makeinfo", so it can be a program name with args.
5485 set dummy makeinfo; ac_word=$2
5486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5489 $as_echo_n "(cached) " >&6
5490 else
5491 case $MAKEINFO in
5492 [\\/]* | ?:[\\/]*)
5493 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5511 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5513 esac
5515 MAKEINFO=$ac_cv_path_MAKEINFO
5516 if test -n "$MAKEINFO"; then
5517 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5518 $as_echo "$MAKEINFO" >&6; }
5519 else
5520 { $as_echo "$as_me:$LINENO: result: no" >&5
5521 $as_echo "no" >&6; }
5525 if test "$MAKEINFO" != "no" && \
5526 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
5527 MAKEINFO=no
5530 ## Makeinfo is unusual. For a released Emacs, the manuals are
5531 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5532 ## therefore in the category of "special tools" not normally required, which
5533 ## configure does not have to check for (eg autoconf itself).
5534 ## In a CVS checkout on the other hand, the manuals are not included.
5535 ## So makeinfo is a requirement to build from CVS, and configure
5536 ## should test for it as it does for any other build requirement.
5537 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5538 ## with pre-built manuals, from a CVS checkout.
5539 if test "$MAKEINFO" = "no"; then
5540 if test "x${with_makeinfo}" = "xno"; then
5541 MAKEINFO=off
5542 elif ! test -e $srcdir/info/emacs; then
5543 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5544 source tree does not seem to have pre-built manuals in the \`info' directory.
5545 Either install a suitable version of makeinfo, or re-run configure
5546 with the \`--without-makeinfo' option to build without the manuals. " >&5
5547 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5548 source tree does not seem to have pre-built manuals in the \`info' directory.
5549 Either install a suitable version of makeinfo, or re-run configure
5550 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5551 { (exit 1); exit 1; }; }
5556 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5557 then
5558 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5561 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5562 then
5563 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5567 late_LDFLAGS=$LDFLAGS
5568 if test "$GCC" = yes; then
5569 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5570 else
5571 LDFLAGS="$LDFLAGS -znocombreloc"
5574 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5575 $as_echo_n "checking for -znocombreloc... " >&6; }
5576 cat >conftest.$ac_ext <<_ACEOF
5577 main(){return 0;}
5578 _ACEOF
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (ac_try="$ac_link"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5586 $as_echo "$ac_try_echo") >&5
5587 (eval "$ac_link") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest$ac_exeext && {
5597 test "$cross_compiling" = yes ||
5598 $as_test_x conftest$ac_exeext
5599 }; then
5600 { $as_echo "$as_me:$LINENO: result: yes" >&5
5601 $as_echo "yes" >&6; }
5602 else
5603 $as_echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 LDFLAGS=$late_LDFLAGS
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5611 rm -rf conftest.dSYM
5612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5613 conftest$ac_exeext conftest.$ac_ext
5615 #### Extract some information from the operating system and machine files.
5617 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5618 - which libraries the lib-src programs will want, and
5619 - whether the GNU malloc routines are usable..." >&5
5620 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5621 - which libraries the lib-src programs will want, and
5622 - whether the GNU malloc routines are usable..." >&6;}
5624 ### First figure out CFLAGS (which we use for running the compiler here)
5625 ### and REAL_CFLAGS (which we use for real compilation).
5626 ### The two are the same except on a few systems, where they are made
5627 ### different to work around various lossages. For example,
5628 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5629 ### as implying static linking.
5631 ### If the CFLAGS env var is specified, we use that value
5632 ### instead of the default.
5634 ### It's not important that this name contain the PID; you can't run
5635 ### two configures in the same directory and have anything work
5636 ### anyway.
5637 tempcname="conftest.c"
5639 echo '
5640 #include "'${srcdir}'/src/'${opsysfile}'"
5641 #include "'${srcdir}'/src/'${machfile}'"
5642 #ifndef LIBS_MACHINE
5643 #define LIBS_MACHINE
5644 #endif
5645 #ifndef LIBS_SYSTEM
5646 #define LIBS_SYSTEM
5647 #endif
5648 #ifndef C_SWITCH_SYSTEM
5649 #define C_SWITCH_SYSTEM
5650 #endif
5651 #ifndef C_SWITCH_MACHINE
5652 #define C_SWITCH_MACHINE
5653 #endif
5654 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5655 configure___ c_switch_system=C_SWITCH_SYSTEM
5656 configure___ c_switch_machine=C_SWITCH_MACHINE
5658 #ifndef LIB_X11_LIB
5659 #define LIB_X11_LIB -lX11
5660 #endif
5662 #ifndef LIBX11_SYSTEM
5663 #define LIBX11_SYSTEM
5664 #endif
5665 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5667 #ifdef UNEXEC
5668 configure___ unexec=UNEXEC
5669 #else
5670 configure___ unexec=unexec.o
5671 #endif
5673 #ifdef SYSTEM_MALLOC
5674 configure___ system_malloc=yes
5675 #else
5676 configure___ system_malloc=no
5677 #endif
5679 #ifdef USE_MMAP_FOR_BUFFERS
5680 configure___ use_mmap_for_buffers=yes
5681 #else
5682 configure___ use_mmap_for_buffers=no
5683 #endif
5685 #ifndef C_DEBUG_SWITCH
5686 #define C_DEBUG_SWITCH -g
5687 #endif
5689 #ifndef C_OPTIMIZE_SWITCH
5690 #ifdef __GNUC__
5691 #define C_OPTIMIZE_SWITCH -O2
5692 #else
5693 #define C_OPTIMIZE_SWITCH -O
5694 #endif
5695 #endif
5697 #ifndef C_WARNINGS_SWITCH
5698 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5699 #endif
5701 #ifndef LD_SWITCH_MACHINE
5702 #define LD_SWITCH_MACHINE
5703 #endif
5705 #ifndef LD_SWITCH_SYSTEM
5706 #define LD_SWITCH_SYSTEM
5707 #endif
5709 #ifndef LD_SWITCH_X_SITE_AUX
5710 #define LD_SWITCH_X_SITE_AUX
5711 #endif
5713 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5714 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5716 #ifdef THIS_IS_CONFIGURE
5718 /* Get the CFLAGS for tests in configure. */
5719 #ifdef __GNUC__
5720 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5721 #else
5722 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5723 #endif
5725 #else /* not THIS_IS_CONFIGURE */
5727 /* Get the CFLAGS for real compilation. */
5728 #ifdef __GNUC__
5729 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5730 #else
5731 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5732 #endif
5734 #endif /* not THIS_IS_CONFIGURE */
5735 ' > ${tempcname}
5737 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5739 # The value of CPP is a quoted variable reference, so we need to do this
5740 # to get its actual value...
5741 CPP=`eval "echo $CPP"`
5742 eval `${CPP} -Isrc ${tempcname} \
5743 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5744 if test "x$SPECIFIED_CFLAGS" = x; then
5745 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5746 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5747 else
5748 REAL_CFLAGS="$CFLAGS"
5750 rm ${tempcname}
5752 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5754 ### Make sure subsequent tests use flags consistent with the build flags.
5756 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5757 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5758 else
5759 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5764 # Check whether --enable-largefile was given.
5765 if test "${enable_largefile+set}" = set; then
5766 enableval=$enable_largefile;
5769 if test "$enable_largefile" != no; then
5771 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5772 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5773 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5775 else
5776 ac_cv_sys_largefile_CC=no
5777 if test "$GCC" != yes; then
5778 ac_save_CC=$CC
5779 while :; do
5780 # IRIX 6.2 and later do not support large files by default,
5781 # so use the C compiler's -n32 option if that helps.
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 /* Check that off_t can represent 2**63 - 1 correctly.
5790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5791 since some C++ compilers masquerading as C compilers
5792 incorrectly reject 9223372036854775807. */
5793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5795 && LARGE_OFF_T % 2147483647 == 1)
5796 ? 1 : -1];
5798 main ()
5802 return 0;
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5807 case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810 esac
5811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 break
5824 else
5825 $as_echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5831 rm -f core conftest.err conftest.$ac_objext
5832 CC="$CC -n32"
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840 $as_echo "$ac_try_echo") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 ac_cv_sys_largefile_CC=' -n32'; break
5852 else
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5859 rm -f core conftest.err conftest.$ac_objext
5860 break
5861 done
5862 CC=$ac_save_CC
5863 rm -f conftest.$ac_ext
5866 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5867 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5868 if test "$ac_cv_sys_largefile_CC" != no; then
5869 CC=$CC$ac_cv_sys_largefile_CC
5872 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5873 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5874 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5875 $as_echo_n "(cached) " >&6
5876 else
5877 while :; do
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5894 main ()
5898 return 0;
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 ac_cv_sys_file_offset_bits=no; break
5920 else
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #define _FILE_OFFSET_BITS 64
5935 #include <sys/types.h>
5936 /* Check that off_t can represent 2**63 - 1 correctly.
5937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5938 since some C++ compilers masquerading as C compilers
5939 incorrectly reject 9223372036854775807. */
5940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5942 && LARGE_OFF_T % 2147483647 == 1)
5943 ? 1 : -1];
5945 main ()
5949 return 0;
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959 $as_echo "$ac_try_echo") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_objext; then
5970 ac_cv_sys_file_offset_bits=64; break
5971 else
5972 $as_echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ac_cv_sys_file_offset_bits=unknown
5980 break
5981 done
5983 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5984 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5985 case $ac_cv_sys_file_offset_bits in #(
5986 no | unknown) ;;
5988 cat >>confdefs.h <<_ACEOF
5989 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5990 _ACEOF
5992 esac
5993 rm -rf conftest*
5994 if test $ac_cv_sys_file_offset_bits = unknown; then
5995 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5996 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5997 if test "${ac_cv_sys_large_files+set}" = set; then
5998 $as_echo_n "(cached) " >&6
5999 else
6000 while :; do
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #include <sys/types.h>
6008 /* Check that off_t can represent 2**63 - 1 correctly.
6009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6010 since some C++ compilers masquerading as C compilers
6011 incorrectly reject 9223372036854775807. */
6012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6014 && LARGE_OFF_T % 2147483647 == 1)
6015 ? 1 : -1];
6017 main ()
6021 return 0;
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6031 $as_echo "$ac_try_echo") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_c_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest.$ac_objext; then
6042 ac_cv_sys_large_files=no; break
6043 else
6044 $as_echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #define _LARGE_FILES 1
6058 #include <sys/types.h>
6059 /* Check that off_t can represent 2**63 - 1 correctly.
6060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6061 since some C++ compilers masquerading as C compilers
6062 incorrectly reject 9223372036854775807. */
6063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6065 && LARGE_OFF_T % 2147483647 == 1)
6066 ? 1 : -1];
6068 main ()
6072 return 0;
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6077 case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080 esac
6081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6082 $as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_cv_sys_large_files=1; break
6094 else
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_cv_sys_large_files=unknown
6103 break
6104 done
6106 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6107 $as_echo "$ac_cv_sys_large_files" >&6; }
6108 case $ac_cv_sys_large_files in #(
6109 no | unknown) ;;
6111 cat >>confdefs.h <<_ACEOF
6112 #define _LARGE_FILES $ac_cv_sys_large_files
6113 _ACEOF
6115 esac
6116 rm -rf conftest*
6122 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6123 ### be located in either /usr/lib64 or /usr/lib.
6124 ### In some rare cases, /usr/lib64 exists but does not contain the
6125 ### relevant files (bug#1287). Hence test for crtn.o.
6126 case "${canonical}" in
6127 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6128 if test -e /usr/lib64/crtn.o; then
6130 cat >>confdefs.h <<\_ACEOF
6131 #define HAVE_LIB64_DIR 1
6132 _ACEOF
6135 esac
6140 if test "${with_sound}" != "no"; then
6141 # Sound support for GNU/Linux and the free BSDs.
6145 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 $as_echo_n "checking for $ac_header... " >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 $as_echo_n "(cached) " >&6
6154 ac_res=`eval 'as_val=${'$as_ac_Header'}
6155 $as_echo "$as_val"'`
6156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6157 $as_echo "$ac_res" >&6; }
6158 else
6159 # Is the header compilable?
6160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 $as_echo_n "checking $ac_header usability... " >&6; }
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6178 $as_echo "$ac_try_echo") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.$ac_objext; then
6189 ac_header_compiler=yes
6190 else
6191 $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_header_compiler=no
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6199 $as_echo "$ac_header_compiler" >&6; }
6201 # Is the header present?
6202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6203 $as_echo_n "checking $ac_header presence... " >&6; }
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <$ac_header>
6211 _ACEOF
6212 if { (ac_try="$ac_cpp conftest.$ac_ext"
6213 case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216 esac
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } >/dev/null && {
6226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 }; then
6229 ac_header_preproc=yes
6230 else
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_header_preproc=no
6237 rm -f conftest.err conftest.$ac_ext
6238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6239 $as_echo "$ac_header_preproc" >&6; }
6241 # So? What about this header?
6242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6243 yes:no: )
6244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6248 ac_header_preproc=yes
6250 no:yes:* )
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6265 esac
6266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 $as_echo_n "checking for $ac_header... " >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 $as_echo_n "(cached) " >&6
6270 else
6271 eval "$as_ac_Header=\$ac_header_preproc"
6273 ac_res=`eval 'as_val=${'$as_ac_Header'}
6274 $as_echo "$as_val"'`
6275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6276 $as_echo "$ac_res" >&6; }
6279 if test `eval 'as_val=${'$as_ac_Header'}
6280 $as_echo "$as_val"'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6283 _ACEOF
6287 done
6289 # Emulation library used on NetBSD.
6290 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6291 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6292 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6294 else
6295 ac_check_lib_save_LIBS=$LIBS
6296 LIBS="-lossaudio $LIBS"
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6307 #ifdef __cplusplus
6308 extern "C"
6309 #endif
6310 char _oss_ioctl ();
6312 main ()
6314 return _oss_ioctl ();
6316 return 0;
6318 _ACEOF
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (ac_try="$ac_link"
6321 case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324 esac
6325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6326 $as_echo "$ac_try_echo") >&5
6327 (eval "$ac_link") 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest$ac_exeext && {
6337 test "$cross_compiling" = yes ||
6338 $as_test_x conftest$ac_exeext
6339 }; then
6340 ac_cv_lib_ossaudio__oss_ioctl=yes
6341 else
6342 $as_echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 ac_cv_lib_ossaudio__oss_ioctl=no
6348 rm -rf conftest.dSYM
6349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6350 conftest$ac_exeext conftest.$ac_ext
6351 LIBS=$ac_check_lib_save_LIBS
6353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6354 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6355 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6356 LIBSOUND=-lossaudio
6357 else
6358 LIBSOUND=
6363 ALSA_REQUIRED=1.0.0
6364 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6366 succeeded=no
6368 # Extract the first word of "pkg-config", so it can be a program name with args.
6369 set dummy pkg-config; ac_word=$2
6370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6373 $as_echo_n "(cached) " >&6
6374 else
6375 case $PKG_CONFIG in
6376 [\\/]* | ?:[\\/]*)
6377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6391 done
6392 done
6393 IFS=$as_save_IFS
6395 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6397 esac
6399 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6400 if test -n "$PKG_CONFIG"; then
6401 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6402 $as_echo "$PKG_CONFIG" >&6; }
6403 else
6404 { $as_echo "$as_me:$LINENO: result: no" >&5
6405 $as_echo "no" >&6; }
6410 if test "$PKG_CONFIG" = "no" ; then
6411 HAVE_ALSA=no
6412 else
6413 PKG_CONFIG_MIN_VERSION=0.9.0
6414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6415 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6416 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6418 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6419 { $as_echo "$as_me:$LINENO: result: yes" >&5
6420 $as_echo "yes" >&6; }
6421 succeeded=yes
6423 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6424 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6425 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6426 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6427 $as_echo "$ALSA_CFLAGS" >&6; }
6429 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6430 $as_echo_n "checking ALSA_LIBS... " >&6; }
6431 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6432 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6433 $as_echo "$ALSA_LIBS" >&6; }
6434 else
6435 { $as_echo "$as_me:$LINENO: result: no" >&5
6436 $as_echo "no" >&6; }
6437 ALSA_CFLAGS=""
6438 ALSA_LIBS=""
6439 ## If we have a custom action on failure, don't print errors, but
6440 ## do set a variable so people can do so.
6441 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6447 else
6448 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6449 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6453 if test $succeeded = yes; then
6454 HAVE_ALSA=yes
6455 else
6456 HAVE_ALSA=no
6459 if test $HAVE_ALSA = yes; then
6460 SAVE_CFLAGS="$CFLAGS"
6461 SAVE_LDFLAGS="$LDFLAGS"
6462 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6463 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h. */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <asoundlib.h>
6472 main ()
6474 snd_lib_error_set_handler (0);
6476 return 0;
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 emacs_alsa_normal=yes
6498 else
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 emacs_alsa_normal=no
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 if test "$emacs_alsa_normal" != yes; then
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <alsa/asoundlib.h>
6515 main ()
6517 snd_lib_error_set_handler (0);
6519 return 0;
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6524 case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6529 $as_echo "$ac_try_echo") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.$ac_objext; then
6540 emacs_alsa_subdir=yes
6541 else
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 emacs_alsa_subdir=no
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 if test "$emacs_alsa_subdir" != yes; then
6550 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6551 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6552 { (exit 1); exit 1; }; }
6554 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6557 CFLAGS="$SAVE_CFLAGS"
6558 LDFLAGS="$SAVE_LDFLAGS"
6559 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6560 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_ALSA 1
6564 _ACEOF
6595 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6596 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6597 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6598 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6599 sys/utsname.h pwd.h
6601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6604 $as_echo_n "checking for $ac_header... " >&6; }
6605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6606 $as_echo_n "(cached) " >&6
6608 ac_res=`eval 'as_val=${'$as_ac_Header'}
6609 $as_echo "$as_val"'`
6610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6611 $as_echo "$ac_res" >&6; }
6612 else
6613 # Is the header compilable?
6614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6615 $as_echo_n "checking $ac_header usability... " >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 $ac_includes_default
6623 #include <$ac_header>
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (ac_try="$ac_compile"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_compile") 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest.$ac_objext; then
6643 ac_header_compiler=yes
6644 else
6645 $as_echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 ac_header_compiler=no
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6653 $as_echo "$ac_header_compiler" >&6; }
6655 # Is the header present?
6656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6657 $as_echo_n "checking $ac_header presence... " >&6; }
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h. */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <$ac_header>
6665 _ACEOF
6666 if { (ac_try="$ac_cpp conftest.$ac_ext"
6667 case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } >/dev/null && {
6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 }; then
6683 ac_header_preproc=yes
6684 else
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 ac_header_preproc=no
6691 rm -f conftest.err conftest.$ac_ext
6692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6693 $as_echo "$ac_header_preproc" >&6; }
6695 # So? What about this header?
6696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6697 yes:no: )
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6702 ac_header_preproc=yes
6704 no:yes:* )
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6719 esac
6720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 $as_echo_n "checking for $ac_header... " >&6; }
6722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6723 $as_echo_n "(cached) " >&6
6724 else
6725 eval "$as_ac_Header=\$ac_header_preproc"
6727 ac_res=`eval 'as_val=${'$as_ac_Header'}
6728 $as_echo "$as_val"'`
6729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6730 $as_echo "$ac_res" >&6; }
6733 if test `eval 'as_val=${'$as_ac_Header'}
6734 $as_echo "$as_val"'` = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 _ACEOF
6741 done
6744 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6745 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <sys/personality.h>
6754 main ()
6756 personality (PER_LINUX32)
6758 return 0;
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 emacs_cv_personality_linux32=yes
6780 else
6781 $as_echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 emacs_cv_personality_linux32=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6789 $as_echo "$emacs_cv_personality_linux32" >&6; }
6791 if test $emacs_cv_personality_linux32 = yes; then
6793 cat >>confdefs.h <<\_ACEOF
6794 #define HAVE_PERSONALITY_LINUX32 1
6795 _ACEOF
6800 for ac_header in term.h
6802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6804 $as_echo_n "checking for $ac_header... " >&6; }
6805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <$ac_header>
6815 _ACEOF
6816 if { (ac_try="$ac_cpp conftest.$ac_ext"
6817 case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820 esac
6821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6822 $as_echo "$ac_try_echo") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev/null && {
6830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 }; then
6833 eval "$as_ac_Header=yes"
6834 else
6835 $as_echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 eval "$as_ac_Header=no"
6841 rm -f conftest.err conftest.$ac_ext
6843 ac_res=`eval 'as_val=${'$as_ac_Header'}
6844 $as_echo "$as_val"'`
6845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6847 if test `eval 'as_val=${'$as_ac_Header'}
6848 $as_echo "$as_val"'` = yes; then
6849 cat >>confdefs.h <<_ACEOF
6850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 _ACEOF
6855 done
6857 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6858 $as_echo_n "checking for ANSI C header files... " >&6; }
6859 if test "${ac_cv_header_stdc+set}" = set; then
6860 $as_echo_n "(cached) " >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #include <stdlib.h>
6869 #include <stdarg.h>
6870 #include <string.h>
6871 #include <float.h>
6874 main ()
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
6899 ac_cv_header_stdc=yes
6900 else
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_cv_header_stdc=no
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 if test $ac_cv_header_stdc = yes; then
6910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <string.h>
6919 _ACEOF
6920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6921 $EGREP "memchr" >/dev/null 2>&1; then
6923 else
6924 ac_cv_header_stdc=no
6926 rm -f conftest*
6930 if test $ac_cv_header_stdc = yes; then
6931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <stdlib.h>
6940 _ACEOF
6941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "free" >/dev/null 2>&1; then
6944 else
6945 ac_cv_header_stdc=no
6947 rm -f conftest*
6951 if test $ac_cv_header_stdc = yes; then
6952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6953 if test "$cross_compiling" = yes; then
6955 else
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <ctype.h>
6963 #include <stdlib.h>
6964 #if ((' ' & 0x0FF) == 0x020)
6965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6967 #else
6968 # define ISLOWER(c) \
6969 (('a' <= (c) && (c) <= 'i') \
6970 || ('j' <= (c) && (c) <= 'r') \
6971 || ('s' <= (c) && (c) <= 'z'))
6972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6973 #endif
6975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6977 main ()
6979 int i;
6980 for (i = 0; i < 256; i++)
6981 if (XOR (islower (i), ISLOWER (i))
6982 || toupper (i) != TOUPPER (i))
6983 return 2;
6984 return 0;
6986 _ACEOF
6987 rm -f conftest$ac_exeext
6988 if { (ac_try="$ac_link"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_link") 2>&5
6996 ac_status=$?
6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6999 { (case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002 esac
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005 (eval "$ac_try") 2>&5
7006 ac_status=$?
7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7010 else
7011 $as_echo "$as_me: program exited with status $ac_status" >&5
7012 $as_echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ( exit $ac_status )
7016 ac_cv_header_stdc=no
7018 rm -rf conftest.dSYM
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 $as_echo "$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7031 _ACEOF
7035 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7036 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7037 if test "${ac_cv_header_time+set}" = set; then
7038 $as_echo_n "(cached) " >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <sys/time.h>
7048 #include <time.h>
7051 main ()
7053 if ((struct tm *) 0)
7054 return 0;
7056 return 0;
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (ac_try="$ac_compile"
7061 case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066 $as_echo "$ac_try_echo") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.$ac_objext; then
7077 ac_cv_header_time=yes
7078 else
7079 $as_echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7082 ac_cv_header_time=no
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7088 $as_echo "$ac_cv_header_time" >&6; }
7089 if test $ac_cv_header_time = yes; then
7091 cat >>confdefs.h <<\_ACEOF
7092 #define TIME_WITH_SYS_TIME 1
7093 _ACEOF
7097 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7098 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7101 else
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 $ac_includes_default
7110 main ()
7112 #ifndef sys_siglist
7113 (void) sys_siglist;
7114 #endif
7117 return 0;
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_cv_have_decl_sys_siglist=yes
7139 else
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_cv_have_decl_sys_siglist=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7149 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7150 if test $ac_cv_have_decl_sys_siglist = yes; then
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_DECL_SYS_SIGLIST 1
7154 _ACEOF
7157 else
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_DECL_SYS_SIGLIST 0
7160 _ACEOF
7166 if test $ac_cv_have_decl_sys_siglist != yes; then
7167 # For Tru64, at least:
7168 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7169 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7170 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7171 $as_echo_n "(cached) " >&6
7172 else
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7181 main ()
7183 #ifndef __sys_siglist
7184 (void) __sys_siglist;
7185 #endif
7188 return 0;
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7198 $as_echo "$ac_try_echo") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
7203 cat conftest.err >&5
7204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.$ac_objext; then
7209 ac_cv_have_decl___sys_siglist=yes
7210 else
7211 $as_echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 ac_cv_have_decl___sys_siglist=no
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7220 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7221 if test $ac_cv_have_decl___sys_siglist = yes; then
7223 cat >>confdefs.h <<_ACEOF
7224 #define HAVE_DECL___SYS_SIGLIST 1
7225 _ACEOF
7228 else
7229 cat >>confdefs.h <<_ACEOF
7230 #define HAVE_DECL___SYS_SIGLIST 0
7231 _ACEOF
7237 if test $ac_cv_have_decl___sys_siglist = yes; then
7239 cat >>confdefs.h <<\_ACEOF
7240 #define sys_siglist __sys_siglist
7241 _ACEOF
7245 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7246 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7247 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7249 else
7250 cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h. */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 #include <sys/types.h>
7257 #include <sys/wait.h>
7258 #ifndef WEXITSTATUS
7259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7260 #endif
7261 #ifndef WIFEXITED
7262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7263 #endif
7266 main ()
7268 int s;
7269 wait (&s);
7270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7272 return 0;
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7277 case "(($ac_try" in
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7280 esac
7281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7282 $as_echo "$ac_try_echo") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7293 ac_cv_header_sys_wait_h=yes
7294 else
7295 $as_echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_cv_header_sys_wait_h=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7304 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7305 if test $ac_cv_header_sys_wait_h = yes; then
7307 cat >>confdefs.h <<\_ACEOF
7308 #define HAVE_SYS_WAIT_H 1
7309 _ACEOF
7314 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7315 $as_echo_n "checking for struct utimbuf... " >&6; }
7316 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7318 else
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #ifdef TIME_WITH_SYS_TIME
7326 #include <sys/time.h>
7327 #include <time.h>
7328 #else
7329 #ifdef HAVE_SYS_TIME_H
7330 #include <sys/time.h>
7331 #else
7332 #include <time.h>
7333 #endif
7334 #endif
7335 #ifdef HAVE_UTIME_H
7336 #include <utime.h>
7337 #endif
7339 main ()
7341 static struct utimbuf x; x.actime = x.modtime;
7343 return 0;
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.$ac_objext; then
7364 emacs_cv_struct_utimbuf=yes
7365 else
7366 $as_echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 emacs_cv_struct_utimbuf=no
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7375 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7376 if test $emacs_cv_struct_utimbuf = yes; then
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_STRUCT_UTIMBUF 1
7380 _ACEOF
7384 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7385 $as_echo_n "checking return type of signal handlers... " >&6; }
7386 if test "${ac_cv_type_signal+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <sys/types.h>
7396 #include <signal.h>
7399 main ()
7401 return *(signal (0, 0)) (0) == 1;
7403 return 0;
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (ac_try="$ac_compile"
7408 case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411 esac
7412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413 $as_echo "$ac_try_echo") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_type_signal=int
7425 else
7426 $as_echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_type_signal=void
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7435 $as_echo "$ac_cv_type_signal" >&6; }
7437 cat >>confdefs.h <<_ACEOF
7438 #define RETSIGTYPE $ac_cv_type_signal
7439 _ACEOF
7443 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7444 $as_echo_n "checking for speed_t... " >&6; }
7445 if test "${emacs_cv_speed_t+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7447 else
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <termios.h>
7456 main ()
7458 speed_t x = 1;
7460 return 0;
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7465 case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468 esac
7469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7470 $as_echo "$ac_try_echo") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7481 emacs_cv_speed_t=yes
7482 else
7483 $as_echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 emacs_cv_speed_t=no
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7492 $as_echo "$emacs_cv_speed_t" >&6; }
7493 if test $emacs_cv_speed_t = yes; then
7495 cat >>confdefs.h <<\_ACEOF
7496 #define HAVE_SPEED_T 1
7497 _ACEOF
7501 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7502 $as_echo_n "checking for struct timeval... " >&6; }
7503 if test "${emacs_cv_struct_timeval+set}" = set; then
7504 $as_echo_n "(cached) " >&6
7505 else
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h. */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 #ifdef TIME_WITH_SYS_TIME
7513 #include <sys/time.h>
7514 #include <time.h>
7515 #else
7516 #ifdef HAVE_SYS_TIME_H
7517 #include <sys/time.h>
7518 #else
7519 #include <time.h>
7520 #endif
7521 #endif
7523 main ()
7525 static struct timeval x; x.tv_sec = x.tv_usec;
7527 return 0;
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
7532 case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535 esac
7536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7537 $as_echo "$ac_try_echo") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 emacs_cv_struct_timeval=yes
7549 else
7550 $as_echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 emacs_cv_struct_timeval=no
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7559 $as_echo "$emacs_cv_struct_timeval" >&6; }
7560 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7561 if test $emacs_cv_struct_timeval = yes; then
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_TIMEVAL 1
7565 _ACEOF
7569 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7570 $as_echo_n "checking for struct exception... " >&6; }
7571 if test "${emacs_cv_struct_exception+set}" = set; then
7572 $as_echo_n "(cached) " >&6
7573 else
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 #include <math.h>
7582 main ()
7584 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7586 return 0;
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7591 case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594 esac
7595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7596 $as_echo "$ac_try_echo") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.$ac_objext; then
7607 emacs_cv_struct_exception=yes
7608 else
7609 $as_echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 emacs_cv_struct_exception=no
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7618 $as_echo "$emacs_cv_struct_exception" >&6; }
7619 HAVE_EXCEPTION=$emacs_cv_struct_exception
7620 if test $emacs_cv_struct_exception != yes; then
7622 cat >>confdefs.h <<\_ACEOF
7623 #define NO_MATHERR 1
7624 _ACEOF
7629 for ac_header in sys/socket.h
7631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 $as_echo_n "checking for $ac_header... " >&6; }
7635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 $as_echo_n "(cached) " >&6
7638 ac_res=`eval 'as_val=${'$as_ac_Header'}
7639 $as_echo "$as_val"'`
7640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7641 $as_echo "$ac_res" >&6; }
7642 else
7643 # Is the header compilable?
7644 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7645 $as_echo_n "checking $ac_header usability... " >&6; }
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 #include <$ac_header>
7654 _ACEOF
7655 rm -f conftest.$ac_objext
7656 if { (ac_try="$ac_compile"
7657 case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660 esac
7661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7662 $as_echo "$ac_try_echo") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_header_compiler=yes
7674 else
7675 $as_echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_header_compiler=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 $as_echo "$ac_header_compiler" >&6; }
7685 # Is the header present?
7686 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 $as_echo_n "checking $ac_header presence... " >&6; }
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <$ac_header>
7695 _ACEOF
7696 if { (ac_try="$ac_cpp conftest.$ac_ext"
7697 case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7702 $as_echo "$ac_try_echo") >&5
7703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev/null && {
7710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 }; then
7713 ac_header_preproc=yes
7714 else
7715 $as_echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 ac_header_preproc=no
7721 rm -f conftest.err conftest.$ac_ext
7722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 $as_echo "$ac_header_preproc" >&6; }
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7727 yes:no: )
7728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7732 ac_header_preproc=yes
7734 no:yes:* )
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7738 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7740 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7742 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7746 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7749 esac
7750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 $as_echo_n "checking for $ac_header... " >&6; }
7752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7753 $as_echo_n "(cached) " >&6
7754 else
7755 eval "$as_ac_Header=\$ac_header_preproc"
7757 ac_res=`eval 'as_val=${'$as_ac_Header'}
7758 $as_echo "$as_val"'`
7759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7760 $as_echo "$ac_res" >&6; }
7763 if test `eval 'as_val=${'$as_ac_Header'}
7764 $as_echo "$as_val"'` = yes; then
7765 cat >>confdefs.h <<_ACEOF
7766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7767 _ACEOF
7771 done
7774 for ac_header in net/if.h
7776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 $as_echo_n "checking for $ac_header... " >&6; }
7779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780 $as_echo_n "(cached) " >&6
7781 else
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 #if HAVE_SYS_SOCKET_H
7790 #include <sys/socket.h>
7791 #endif
7793 #include <$ac_header>
7794 _ACEOF
7795 rm -f conftest.$ac_objext
7796 if { (ac_try="$ac_compile"
7797 case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800 esac
7801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7802 $as_echo "$ac_try_echo") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7804 ac_status=$?
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7814 else
7815 $as_echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 eval "$as_ac_Header=no"
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 ac_res=`eval 'as_val=${'$as_ac_Header'}
7824 $as_echo "$as_val"'`
7825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7826 $as_echo "$ac_res" >&6; }
7827 if test `eval 'as_val=${'$as_ac_Header'}
7828 $as_echo "$as_val"'` = yes; then
7829 cat >>confdefs.h <<_ACEOF
7830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7831 _ACEOF
7835 done
7838 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7839 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7840 if test "${ac_cv_struct_tm+set}" = set; then
7841 $as_echo_n "(cached) " >&6
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 #include <sys/types.h>
7850 #include <time.h>
7853 main ()
7855 struct tm tm;
7856 int *p = &tm.tm_sec;
7857 return !p;
7859 return 0;
7861 _ACEOF
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7869 $as_echo "$ac_try_echo") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 ac_cv_struct_tm=time.h
7881 else
7882 $as_echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_struct_tm=sys/time.h
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7891 $as_echo "$ac_cv_struct_tm" >&6; }
7892 if test $ac_cv_struct_tm = sys/time.h; then
7894 cat >>confdefs.h <<\_ACEOF
7895 #define TM_IN_SYS_TIME 1
7896 _ACEOF
7900 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7901 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7902 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7903 $as_echo_n "(cached) " >&6
7904 else
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <sys/types.h>
7912 #include <$ac_cv_struct_tm>
7916 main ()
7918 static struct tm ac_aggr;
7919 if (ac_aggr.tm_zone)
7920 return 0;
7922 return 0;
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (ac_try="$ac_compile"
7927 case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930 esac
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7943 ac_cv_member_struct_tm_tm_zone=yes
7944 else
7945 $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7955 #include <$ac_cv_struct_tm>
7959 main ()
7961 static struct tm ac_aggr;
7962 if (sizeof ac_aggr.tm_zone)
7963 return 0;
7965 return 0;
7967 _ACEOF
7968 rm -f conftest.$ac_objext
7969 if { (ac_try="$ac_compile"
7970 case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973 esac
7974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7975 $as_echo "$ac_try_echo") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.$ac_objext; then
7986 ac_cv_member_struct_tm_tm_zone=yes
7987 else
7988 $as_echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 ac_cv_member_struct_tm_tm_zone=no
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8000 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8001 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8003 cat >>confdefs.h <<_ACEOF
8004 #define HAVE_STRUCT_TM_TM_ZONE 1
8005 _ACEOF
8010 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_TM_ZONE 1
8014 _ACEOF
8016 else
8017 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8018 $as_echo_n "checking whether tzname is declared... " >&6; }
8019 if test "${ac_cv_have_decl_tzname+set}" = set; then
8020 $as_echo_n "(cached) " >&6
8021 else
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 #include <time.h>
8031 main ()
8033 #ifndef tzname
8034 (void) tzname;
8035 #endif
8038 return 0;
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (ac_try="$ac_compile"
8043 case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046 esac
8047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8048 $as_echo "$ac_try_echo") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_have_decl_tzname=yes
8060 else
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_have_decl_tzname=no
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8070 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8071 if test $ac_cv_have_decl_tzname = yes; then
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DECL_TZNAME 1
8075 _ACEOF
8078 else
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_DECL_TZNAME 0
8081 _ACEOF
8087 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8088 $as_echo_n "checking for tzname... " >&6; }
8089 if test "${ac_cv_var_tzname+set}" = set; then
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <time.h>
8099 #if !HAVE_DECL_TZNAME
8100 extern char *tzname[];
8101 #endif
8104 main ()
8106 return tzname[0][0];
8108 return 0;
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116 esac
8117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8118 $as_echo "$ac_try_echo") >&5
8119 (eval "$ac_link") 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest$ac_exeext && {
8129 test "$cross_compiling" = yes ||
8130 $as_test_x conftest$ac_exeext
8131 }; then
8132 ac_cv_var_tzname=yes
8133 else
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_var_tzname=no
8140 rm -rf conftest.dSYM
8141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8142 conftest$ac_exeext conftest.$ac_ext
8144 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8145 $as_echo "$ac_cv_var_tzname" >&6; }
8146 if test $ac_cv_var_tzname = yes; then
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_TZNAME 1
8150 _ACEOF
8155 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8156 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8157 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8158 $as_echo_n "(cached) " >&6
8159 else
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 #include <time.h>
8169 main ()
8171 static struct tm ac_aggr;
8172 if (ac_aggr.tm_gmtoff)
8173 return 0;
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (ac_try="$ac_compile"
8180 case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183 esac
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_member_struct_tm_tm_gmtoff=yes
8197 else
8198 $as_echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 #include <time.h>
8210 main ()
8212 static struct tm ac_aggr;
8213 if (sizeof ac_aggr.tm_gmtoff)
8214 return 0;
8216 return 0;
8218 _ACEOF
8219 rm -f conftest.$ac_objext
8220 if { (ac_try="$ac_compile"
8221 case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224 esac
8225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.$ac_objext; then
8237 ac_cv_member_struct_tm_tm_gmtoff=yes
8238 else
8239 $as_echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_cv_member_struct_tm_tm_gmtoff=no
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8251 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8252 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8254 cat >>confdefs.h <<\_ACEOF
8255 #define HAVE_TM_GMTOFF 1
8256 _ACEOF
8260 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8261 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8262 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #if HAVE_SYS_SOCKET_H
8273 #include <sys/socket.h>
8274 #endif
8275 #if HAVE_NET_IF_H
8276 #include <net/if.h>
8277 #endif
8280 main ()
8282 static struct ifreq ac_aggr;
8283 if (ac_aggr.ifr_flags)
8284 return 0;
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_flags=yes
8308 else
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8319 #if HAVE_SYS_SOCKET_H
8320 #include <sys/socket.h>
8321 #endif
8322 #if HAVE_NET_IF_H
8323 #include <net/if.h>
8324 #endif
8327 main ()
8329 static struct ifreq ac_aggr;
8330 if (sizeof ac_aggr.ifr_flags)
8331 return 0;
8333 return 0;
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8338 case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_compile") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest.$ac_objext; then
8354 ac_cv_member_struct_ifreq_ifr_flags=yes
8355 else
8356 $as_echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8359 ac_cv_member_struct_ifreq_ifr_flags=no
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8368 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8369 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8373 _ACEOF
8377 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8378 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8379 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 #if HAVE_SYS_SOCKET_H
8390 #include <sys/socket.h>
8391 #endif
8392 #if HAVE_NET_IF_H
8393 #include <net/if.h>
8394 #endif
8397 main ()
8399 static struct ifreq ac_aggr;
8400 if (ac_aggr.ifr_hwaddr)
8401 return 0;
8403 return 0;
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8408 case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8425 else
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8438 #endif
8439 #if HAVE_NET_IF_H
8440 #include <net/if.h>
8441 #endif
8444 main ()
8446 static struct ifreq ac_aggr;
8447 if (sizeof ac_aggr.ifr_hwaddr)
8448 return 0;
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458 esac
8459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8460 $as_echo "$ac_try_echo") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then
8471 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8472 else
8473 $as_echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8485 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8486 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8488 cat >>confdefs.h <<_ACEOF
8489 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8490 _ACEOF
8494 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8495 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8496 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8498 else
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 $ac_includes_default
8506 #if HAVE_SYS_SOCKET_H
8507 #include <sys/socket.h>
8508 #endif
8509 #if HAVE_NET_IF_H
8510 #include <net/if.h>
8511 #endif
8514 main ()
8516 static struct ifreq ac_aggr;
8517 if (ac_aggr.ifr_netmask)
8518 return 0;
8520 return 0;
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (ac_try="$ac_compile"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_netmask=yes
8542 else
8543 $as_echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 #if HAVE_SYS_SOCKET_H
8554 #include <sys/socket.h>
8555 #endif
8556 #if HAVE_NET_IF_H
8557 #include <net/if.h>
8558 #endif
8561 main ()
8563 static struct ifreq ac_aggr;
8564 if (sizeof ac_aggr.ifr_netmask)
8565 return 0;
8567 return 0;
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8577 $as_echo "$ac_try_echo") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 ac_cv_member_struct_ifreq_ifr_netmask=yes
8589 else
8590 $as_echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_cv_member_struct_ifreq_ifr_netmask=no
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8602 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8603 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8607 _ACEOF
8611 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8612 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8613 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8614 $as_echo_n "(cached) " >&6
8615 else
8616 cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h. */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8623 #if HAVE_SYS_SOCKET_H
8624 #include <sys/socket.h>
8625 #endif
8626 #if HAVE_NET_IF_H
8627 #include <net/if.h>
8628 #endif
8631 main ()
8633 static struct ifreq ac_aggr;
8634 if (ac_aggr.ifr_broadaddr)
8635 return 0;
8637 return 0;
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8642 case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645 esac
8646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8647 $as_echo "$ac_try_echo") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8659 else
8660 $as_echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8672 #endif
8673 #if HAVE_NET_IF_H
8674 #include <net/if.h>
8675 #endif
8678 main ()
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_broadaddr)
8682 return 0;
8684 return 0;
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8689 case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8692 esac
8693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8694 $as_echo "$ac_try_echo") >&5
8695 (eval "$ac_compile") 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest.$ac_objext; then
8705 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8706 else
8707 $as_echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8710 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8719 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8720 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8722 cat >>confdefs.h <<_ACEOF
8723 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8724 _ACEOF
8728 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8729 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8730 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 #if HAVE_SYS_SOCKET_H
8741 #include <sys/socket.h>
8742 #endif
8743 #if HAVE_NET_IF_H
8744 #include <net/if.h>
8745 #endif
8748 main ()
8750 static struct ifreq ac_aggr;
8751 if (ac_aggr.ifr_addr)
8752 return 0;
8754 return 0;
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (ac_try="$ac_compile"
8759 case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_compile") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest.$ac_objext; then
8775 ac_cv_member_struct_ifreq_ifr_addr=yes
8776 else
8777 $as_echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h. */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 $ac_includes_default
8787 #if HAVE_SYS_SOCKET_H
8788 #include <sys/socket.h>
8789 #endif
8790 #if HAVE_NET_IF_H
8791 #include <net/if.h>
8792 #endif
8795 main ()
8797 static struct ifreq ac_aggr;
8798 if (sizeof ac_aggr.ifr_addr)
8799 return 0;
8801 return 0;
8803 _ACEOF
8804 rm -f conftest.$ac_objext
8805 if { (ac_try="$ac_compile"
8806 case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809 esac
8810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8811 $as_echo "$ac_try_echo") >&5
8812 (eval "$ac_compile") 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } && {
8819 test -z "$ac_c_werror_flag" ||
8820 test ! -s conftest.err
8821 } && test -s conftest.$ac_objext; then
8822 ac_cv_member_struct_ifreq_ifr_addr=yes
8823 else
8824 $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_cv_member_struct_ifreq_ifr_addr=no
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8836 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8837 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8841 _ACEOF
8848 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8849 $as_echo_n "checking for function prototypes... " >&6; }
8850 if test "$ac_cv_prog_cc_c89" != no; then
8851 { $as_echo "$as_me:$LINENO: result: yes" >&5
8852 $as_echo "yes" >&6; }
8854 cat >>confdefs.h <<\_ACEOF
8855 #define PROTOTYPES 1
8856 _ACEOF
8859 cat >>confdefs.h <<\_ACEOF
8860 #define __PROTOTYPES 1
8861 _ACEOF
8863 else
8864 { $as_echo "$as_me:$LINENO: result: no" >&5
8865 $as_echo "no" >&6; }
8868 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8869 $as_echo_n "checking for working volatile... " >&6; }
8870 if test "${ac_cv_c_volatile+set}" = set; then
8871 $as_echo_n "(cached) " >&6
8872 else
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8881 main ()
8884 volatile int x;
8885 int * volatile y = (int *) 0;
8886 return !x && !y;
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (ac_try="$ac_compile"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest.$ac_objext; then
8909 ac_cv_c_volatile=yes
8910 else
8911 $as_echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8914 ac_cv_c_volatile=no
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8920 $as_echo "$ac_cv_c_volatile" >&6; }
8921 if test $ac_cv_c_volatile = no; then
8923 cat >>confdefs.h <<\_ACEOF
8924 #define volatile /**/
8925 _ACEOF
8929 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8930 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8931 if test "${ac_cv_c_const+set}" = set; then
8932 $as_echo_n "(cached) " >&6
8933 else
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8942 main ()
8944 /* FIXME: Include the comments suggested by Paul. */
8945 #ifndef __cplusplus
8946 /* Ultrix mips cc rejects this. */
8947 typedef int charset[2];
8948 const charset cs;
8949 /* SunOS 4.1.1 cc rejects this. */
8950 char const *const *pcpcc;
8951 char **ppc;
8952 /* NEC SVR4.0.2 mips cc rejects this. */
8953 struct point {int x, y;};
8954 static struct point const zero = {0,0};
8955 /* AIX XL C 1.02.0.0 rejects this.
8956 It does not let you subtract one const X* pointer from another in
8957 an arm of an if-expression whose if-part is not a constant
8958 expression */
8959 const char *g = "string";
8960 pcpcc = &g + (g ? g-g : 0);
8961 /* HPUX 7.0 cc rejects these. */
8962 ++pcpcc;
8963 ppc = (char**) pcpcc;
8964 pcpcc = (char const *const *) ppc;
8965 { /* SCO 3.2v4 cc rejects this. */
8966 char *t;
8967 char const *s = 0 ? (char *) 0 : (char const *) 0;
8969 *t++ = 0;
8970 if (s) return 0;
8972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8973 int x[] = {25, 17};
8974 const int *foo = &x[0];
8975 ++foo;
8977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8978 typedef const int *iptr;
8979 iptr p = 0;
8980 ++p;
8982 { /* AIX XL C 1.02.0.0 rejects this saying
8983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8984 struct s { int j; const int *ap[3]; };
8985 struct s *b; b->j = 5;
8987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8988 const int foo = 10;
8989 if (!foo) return 0;
8991 return !cs[0] && !zero.x;
8992 #endif
8995 return 0;
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 ac_cv_c_const=yes
9017 else
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_cv_c_const=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9027 $as_echo "$ac_cv_c_const" >&6; }
9028 if test $ac_cv_c_const = no; then
9030 cat >>confdefs.h <<\_ACEOF
9031 #define const /**/
9032 _ACEOF
9036 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9037 $as_echo_n "checking for void * support... " >&6; }
9038 if test "${emacs_cv_void_star+set}" = set; then
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9049 main ()
9051 void * foo;
9053 return 0;
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9058 case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061 esac
9062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9063 $as_echo "$ac_try_echo") >&5
9064 (eval "$ac_compile") 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest.$ac_objext; then
9074 emacs_cv_void_star=yes
9075 else
9076 $as_echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 emacs_cv_void_star=no
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9085 $as_echo "$emacs_cv_void_star" >&6; }
9086 if test $emacs_cv_void_star = yes; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define POINTER_TYPE void
9089 _ACEOF
9091 else
9092 cat >>confdefs.h <<\_ACEOF
9093 #define POINTER_TYPE char
9094 _ACEOF
9102 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9104 set x ${MAKE-make}
9105 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9106 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat >conftest.make <<\_ACEOF
9110 SHELL = /bin/sh
9111 all:
9112 @echo '@@@%%%=$(MAKE)=@@@%%%'
9113 _ACEOF
9114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9116 *@@@%%%=?*=@@@%%%*)
9117 eval ac_cv_prog_make_${ac_make}_set=yes;;
9119 eval ac_cv_prog_make_${ac_make}_set=no;;
9120 esac
9121 rm -f conftest.make
9123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9124 { $as_echo "$as_me:$LINENO: result: yes" >&5
9125 $as_echo "yes" >&6; }
9126 SET_MAKE=
9127 else
9128 { $as_echo "$as_me:$LINENO: result: no" >&5
9129 $as_echo "no" >&6; }
9130 SET_MAKE="MAKE=${MAKE-make}"
9134 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9135 $as_echo_n "checking for long file names... " >&6; }
9136 if test "${ac_cv_sys_long_file_names+set}" = set; then
9137 $as_echo_n "(cached) " >&6
9138 else
9139 ac_cv_sys_long_file_names=yes
9140 # Test for long file names in all the places we know might matter:
9141 # . the current directory, where building will happen
9142 # $prefix/lib where we will be installing things
9143 # $exec_prefix/lib likewise
9144 # $TMPDIR if set, where it might want to write temporary files
9145 # /tmp where it might want to write temporary files
9146 # /var/tmp likewise
9147 # /usr/tmp likewise
9148 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9149 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9150 # in the usual case where exec_prefix is '${prefix}'.
9151 case $ac_dir in #(
9152 . | /* | ?:[\\/]*) ;; #(
9153 *) continue;;
9154 esac
9155 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9156 ac_xdir=$ac_dir/cf$$
9157 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9158 ac_tf1=$ac_xdir/conftest9012345
9159 ac_tf2=$ac_xdir/conftest9012346
9160 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9161 ac_cv_sys_long_file_names=no
9162 rm -f -r "$ac_xdir" 2>/dev/null
9163 test $ac_cv_sys_long_file_names = no && break
9164 done
9166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9167 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9168 if test $ac_cv_sys_long_file_names = yes; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_LONG_FILE_NAMES 1
9172 _ACEOF
9177 #### Choose a window system.
9179 { $as_echo "$as_me:$LINENO: checking for X" >&5
9180 $as_echo_n "checking for X... " >&6; }
9183 # Check whether --with-x was given.
9184 if test "${with_x+set}" = set; then
9185 withval=$with_x;
9188 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9189 if test "x$with_x" = xno; then
9190 # The user explicitly disabled X.
9191 have_x=disabled
9192 else
9193 case $x_includes,$x_libraries in #(
9194 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9195 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9196 { (exit 1); exit 1; }; };; #(
9197 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9199 else
9200 # One or both of the vars are not set, and there is no cached value.
9201 ac_x_includes=no ac_x_libraries=no
9202 rm -f -r conftest.dir
9203 if mkdir conftest.dir; then
9204 cd conftest.dir
9205 cat >Imakefile <<'_ACEOF'
9206 incroot:
9207 @echo incroot='${INCROOT}'
9208 usrlibdir:
9209 @echo usrlibdir='${USRLIBDIR}'
9210 libdir:
9211 @echo libdir='${LIBDIR}'
9212 _ACEOF
9213 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 for ac_var in incroot usrlibdir libdir; do
9216 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9217 done
9218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9219 for ac_extension in a so sl dylib la dll; do
9220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9221 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9222 ac_im_usrlibdir=$ac_im_libdir; break
9224 done
9225 # Screen out bogus values from the imake configuration. They are
9226 # bogus both because they are the default anyway, and because
9227 # using them would break gcc on systems where it needs fixed includes.
9228 case $ac_im_incroot in
9229 /usr/include) ac_x_includes= ;;
9230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9231 esac
9232 case $ac_im_usrlibdir in
9233 /usr/lib | /lib) ;;
9234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9235 esac
9237 cd ..
9238 rm -f -r conftest.dir
9241 # Standard set of common directories for X headers.
9242 # Check X11 before X11Rn because it is often a symlink to the current release.
9243 ac_x_header_dirs='
9244 /usr/X11/include
9245 /usr/X11R6/include
9246 /usr/X11R5/include
9247 /usr/X11R4/include
9249 /usr/include/X11
9250 /usr/include/X11R6
9251 /usr/include/X11R5
9252 /usr/include/X11R4
9254 /usr/local/X11/include
9255 /usr/local/X11R6/include
9256 /usr/local/X11R5/include
9257 /usr/local/X11R4/include
9259 /usr/local/include/X11
9260 /usr/local/include/X11R6
9261 /usr/local/include/X11R5
9262 /usr/local/include/X11R4
9264 /usr/X386/include
9265 /usr/x386/include
9266 /usr/XFree86/include/X11
9268 /usr/include
9269 /usr/local/include
9270 /usr/unsupported/include
9271 /usr/athena/include
9272 /usr/local/x11r5/include
9273 /usr/lpp/Xamples/include
9275 /usr/openwin/include
9276 /usr/openwin/share/include'
9278 if test "$ac_x_includes" = no; then
9279 # Guess where to find include files, by looking for Xlib.h.
9280 # First, try using that file with no special directory specified.
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 #include <X11/Xlib.h>
9288 _ACEOF
9289 if { (ac_try="$ac_cpp conftest.$ac_ext"
9290 case "(($ac_try" in
9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292 *) ac_try_echo=$ac_try;;
9293 esac
9294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9295 $as_echo "$ac_try_echo") >&5
9296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9297 ac_status=$?
9298 grep -v '^ *+' conftest.er1 >conftest.err
9299 rm -f conftest.er1
9300 cat conftest.err >&5
9301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } >/dev/null && {
9303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9304 test ! -s conftest.err
9305 }; then
9306 # We can compile using X headers with no special include directory.
9307 ac_x_includes=
9308 else
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 for ac_dir in $ac_x_header_dirs; do
9313 if test -r "$ac_dir/X11/Xlib.h"; then
9314 ac_x_includes=$ac_dir
9315 break
9317 done
9320 rm -f conftest.err conftest.$ac_ext
9321 fi # $ac_x_includes = no
9323 if test "$ac_x_libraries" = no; then
9324 # Check for the libraries.
9325 # See if we find them without any special options.
9326 # Don't add to $LIBS permanently.
9327 ac_save_LIBS=$LIBS
9328 LIBS="-lX11 $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h. */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <X11/Xlib.h>
9337 main ()
9339 XrmInitialize ()
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9351 $as_echo "$ac_try_echo") >&5
9352 (eval "$ac_link") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest$ac_exeext && {
9362 test "$cross_compiling" = yes ||
9363 $as_test_x conftest$ac_exeext
9364 }; then
9365 LIBS=$ac_save_LIBS
9366 # We can link X programs with no special library path.
9367 ac_x_libraries=
9368 else
9369 $as_echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 LIBS=$ac_save_LIBS
9373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9375 # Don't even attempt the hair of trying to link an X program!
9376 for ac_extension in a so sl dylib la dll; do
9377 if test -r "$ac_dir/libX11.$ac_extension"; then
9378 ac_x_libraries=$ac_dir
9379 break 2
9381 done
9382 done
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi # $ac_x_libraries = no
9390 case $ac_x_includes,$ac_x_libraries in #(
9391 no,* | *,no | *\'*)
9392 # Didn't find X, or a directory has "'" in its name.
9393 ac_cv_have_x="have_x=no";; #(
9395 # Record where we found X for the cache.
9396 ac_cv_have_x="have_x=yes\
9397 ac_x_includes='$ac_x_includes'\
9398 ac_x_libraries='$ac_x_libraries'"
9399 esac
9401 ;; #(
9402 *) have_x=yes;;
9403 esac
9404 eval "$ac_cv_have_x"
9405 fi # $with_x != no
9407 if test "$have_x" != yes; then
9408 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9409 $as_echo "$have_x" >&6; }
9410 no_x=yes
9411 else
9412 # If each of the values was on the command line, it overrides each guess.
9413 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9414 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9415 # Update the cache value to reflect the command line values.
9416 ac_cv_have_x="have_x=yes\
9417 ac_x_includes='$x_includes'\
9418 ac_x_libraries='$x_libraries'"
9419 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9420 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9423 if test "$no_x" = yes; then
9424 window_system=none
9425 else
9426 window_system=x11
9429 ## Workaround for bug in autoconf <= 2.62.
9430 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9431 ## No need to do anything special for these standard directories.
9432 ## This is an experiment, take it out if it causes problems.
9433 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9435 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9439 if test "${x_libraries}" != NONE; then
9440 if test -n "${x_libraries}"; then
9441 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9442 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9444 x_default_search_path=""
9445 x_search_path=${x_libraries}
9446 if test -z "${x_search_path}"; then
9447 x_search_path=/usr/lib
9449 for x_library in `echo ${x_search_path}: | \
9450 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9451 x_search_path="\
9452 ${x_library}/X11/%L/%T/%N%C%S:\
9453 ${x_library}/X11/%l/%T/%N%C%S:\
9454 ${x_library}/X11/%T/%N%C%S:\
9455 ${x_library}/X11/%L/%T/%N%S:\
9456 ${x_library}/X11/%l/%T/%N%S:\
9457 ${x_library}/X11/%T/%N%S"
9458 if test x"${x_default_search_path}" = x; then
9459 x_default_search_path=${x_search_path}
9460 else
9461 x_default_search_path="${x_search_path}:${x_default_search_path}"
9463 done
9465 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9466 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9469 if test x"${x_includes}" = x; then
9470 bitmapdir=/usr/include/X11/bitmaps
9471 else
9472 # accumulate include directories that have X11 bitmap subdirectories
9473 bmd_acc="dummyval"
9474 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9475 if test -d "${bmd}/X11/bitmaps"; then
9476 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9478 if test -d "${bmd}/bitmaps"; then
9479 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9481 done
9482 if test ${bmd_acc} != "dummyval"; then
9483 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9487 HAVE_NS=no
9488 NS_IMPL_COCOA=no
9489 NS_IMPL_GNUSTEP=no
9490 tmp_CPPFLAGS="$CPPFLAGS"
9491 tmp_CFLAGS="$CFLAGS"
9492 CPPFLAGS="$CPPFLAGS -x objective-c"
9493 CFLAGS="$CFLAGS -x objective-c"
9494 if test "${with_ns}" != no; then
9495 if test "${opsys}" = darwin; then
9496 NS_IMPL_COCOA=yes
9497 ns_appdir=`pwd`/nextstep/Emacs.app
9498 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9499 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9500 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9501 elif test -f $GNUSTEP_CONFIG_FILE; then
9502 NS_IMPL_GNUSTEP=yes
9503 ns_appdir=`pwd`/nextstep/Emacs.app
9504 ns_appbindir=`pwd`/nextstep/Emacs.app
9505 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9506 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9507 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9508 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9509 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9510 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9511 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9512 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9513 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9515 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9516 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9517 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9518 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9519 $as_echo_n "(cached) " >&6
9521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9522 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9523 else
9524 # Is the header compilable?
9525 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9526 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 #include <AppKit/AppKit.h>
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (ac_try="$ac_compile"
9538 case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541 esac
9542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544 (eval "$ac_compile") 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.$ac_objext; then
9554 ac_header_compiler=yes
9555 else
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_header_compiler=no
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 $as_echo "$ac_header_compiler" >&6; }
9566 # Is the header present?
9567 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9568 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h. */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #include <AppKit/AppKit.h>
9576 _ACEOF
9577 if { (ac_try="$ac_cpp conftest.$ac_ext"
9578 case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581 esac
9582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583 $as_echo "$ac_try_echo") >&5
9584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev/null && {
9591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 }; then
9594 ac_header_preproc=yes
9595 else
9596 $as_echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_header_preproc=no
9602 rm -f conftest.err conftest.$ac_ext
9603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 $as_echo "$ac_header_preproc" >&6; }
9606 # So? What about this header?
9607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9608 yes:no: )
9609 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9610 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9612 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9613 ac_header_preproc=yes
9615 no:yes:* )
9616 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9617 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9618 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9619 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9620 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9621 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9622 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9623 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9624 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9625 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9626 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9627 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9630 esac
9631 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9632 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9633 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9634 $as_echo_n "(cached) " >&6
9635 else
9636 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9639 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9642 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9643 HAVE_NS=yes
9644 else
9645 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9646 files are missing or cannot be compiled." >&5
9647 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9648 files are missing or cannot be compiled." >&2;}
9649 { (exit 1); exit 1; }; }
9653 NS_HAVE_NSINTEGER=yes
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <Foundation/NSObjCRuntime.h>
9662 main ()
9664 NSInteger i;
9666 return 0;
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (ac_try="$ac_compile"
9671 case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674 esac
9675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9676 $as_echo "$ac_try_echo") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ns_have_nsinteger=yes
9688 else
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ns_have_nsinteger=no
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 if test $ns_have_nsinteger = no; then
9697 NS_HAVE_NSINTEGER=no
9700 if test "${HAVE_NS}" = yes; then
9701 window_system=nextstep
9702 with_xft=no
9703 # set up packaging dirs
9704 exec_prefix=${ns_appbindir}
9705 libexecdir=${ns_appbindir}/libexec
9706 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9707 prefix=${ns_appresdir}
9710 CFLAGS="$tmp_CFLAGS"
9711 CPPFLAGS="$tmp_CPPFLAGS"
9713 case "${window_system}" in
9714 x11 )
9715 HAVE_X_WINDOWS=yes
9716 HAVE_X11=yes
9717 case "${with_x_toolkit}" in
9718 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9719 motif ) USE_X_TOOLKIT=MOTIF ;;
9720 gtk ) with_gtk=yes
9721 USE_X_TOOLKIT=none ;;
9722 no ) USE_X_TOOLKIT=none ;;
9723 * ) USE_X_TOOLKIT=maybe ;;
9724 esac
9726 nextstep | none )
9727 HAVE_X_WINDOWS=no
9728 HAVE_X11=no
9729 USE_X_TOOLKIT=none
9731 esac
9733 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9734 # Extract the first word of "X", so it can be a program name with args.
9735 set dummy X; ac_word=$2
9736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9739 $as_echo_n "(cached) " >&6
9740 else
9741 if test -n "$HAVE_XSERVER"; then
9742 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_prog_HAVE_XSERVER="true"
9752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9759 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9762 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9763 if test -n "$HAVE_XSERVER"; then
9764 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9765 $as_echo "$HAVE_XSERVER" >&6; }
9766 else
9767 { $as_echo "$as_me:$LINENO: result: no" >&5
9768 $as_echo "no" >&6; }
9772 if test "$HAVE_XSERVER" = true ||
9773 test -n "$DISPLAY" ||
9774 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9775 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9776 were found. You should install the relevant development files for X
9777 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9778 sure you have development files for image handling, i.e.
9779 tiff, gif, jpeg, png and xpm.
9780 If you are sure you want Emacs compiled without X window support, pass
9781 --without-x
9782 to configure." >&5
9783 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9784 were found. You should install the relevant development files for X
9785 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9786 sure you have development files for image handling, i.e.
9787 tiff, gif, jpeg, png and xpm.
9788 If you are sure you want Emacs compiled without X window support, pass
9789 --without-x
9790 to configure." >&2;}
9791 { (exit 1); exit 1; }; }
9795 ### If we're using X11, we should use the X menu package.
9796 HAVE_MENUS=no
9797 case ${HAVE_X11} in
9798 yes ) HAVE_MENUS=yes ;;
9799 esac
9801 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9802 # Assume not, until told otherwise.
9803 GNU_MALLOC=yes
9804 doug_lea_malloc=yes
9805 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9806 $as_echo_n "checking for malloc_get_state... " >&6; }
9807 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818 #define malloc_get_state innocuous_malloc_get_state
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char malloc_get_state (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9825 #ifdef __STDC__
9826 # include <limits.h>
9827 #else
9828 # include <assert.h>
9829 #endif
9831 #undef malloc_get_state
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char malloc_get_state ();
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9844 choke me
9845 #endif
9848 main ()
9850 return malloc_get_state ();
9852 return 0;
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863 (eval "$ac_link") 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9875 }; then
9876 ac_cv_func_malloc_get_state=yes
9877 else
9878 $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_func_malloc_get_state=no
9884 rm -rf conftest.dSYM
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9888 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9889 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9890 if test $ac_cv_func_malloc_get_state = yes; then
9892 else
9893 doug_lea_malloc=no
9896 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9897 $as_echo_n "checking for malloc_set_state... " >&6; }
9898 if test "${ac_cv_func_malloc_set_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_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define malloc_set_state innocuous_malloc_set_state
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char malloc_set_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_set_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_set_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_set_state || defined __stub___malloc_set_state
9935 choke me
9936 #endif
9939 main ()
9941 return malloc_set_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_set_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_set_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_set_state" >&5
9980 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9981 if test $ac_cv_func_malloc_set_state = yes; then
9983 else
9984 doug_lea_malloc=no
9987 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9988 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9989 if test "${emacs_cv_var___after_morecore_hook+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 extern void (* __after_morecore_hook)();
10000 main ()
10002 __after_morecore_hook = 0
10004 return 0;
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012 esac
10013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014 $as_echo "$ac_try_echo") >&5
10015 (eval "$ac_link") 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext && {
10025 test "$cross_compiling" = yes ||
10026 $as_test_x conftest$ac_exeext
10027 }; then
10028 emacs_cv_var___after_morecore_hook=yes
10029 else
10030 $as_echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 emacs_cv_var___after_morecore_hook=no
10036 rm -rf conftest.dSYM
10037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038 conftest$ac_exeext conftest.$ac_ext
10040 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10041 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10042 if test $emacs_cv_var___after_morecore_hook = no; then
10043 doug_lea_malloc=no
10045 if test "${system_malloc}" = "yes"; then
10046 GNU_MALLOC=no
10047 GNU_MALLOC_reason="
10048 (The GNU allocators don't work with this system configuration.)"
10050 if test "$doug_lea_malloc" = "yes" ; then
10051 if test "$GNU_MALLOC" = yes ; then
10052 GNU_MALLOC_reason="
10053 (Using Doug Lea's new malloc from the GNU C Library.)"
10056 cat >>confdefs.h <<\_ACEOF
10057 #define DOUG_LEA_MALLOC 1
10058 _ACEOF
10062 if test x"${REL_ALLOC}" = x; then
10063 REL_ALLOC=${GNU_MALLOC}
10069 for ac_header in stdlib.h unistd.h
10071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10074 $as_echo_n "checking for $ac_header... " >&6; }
10075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10076 $as_echo_n "(cached) " >&6
10078 ac_res=`eval 'as_val=${'$as_ac_Header'}
10079 $as_echo "$as_val"'`
10080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10081 $as_echo "$ac_res" >&6; }
10082 else
10083 # Is the header compilable?
10084 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10085 $as_echo_n "checking $ac_header usability... " >&6; }
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h. */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 $ac_includes_default
10093 #include <$ac_header>
10094 _ACEOF
10095 rm -f conftest.$ac_objext
10096 if { (ac_try="$ac_compile"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100 esac
10101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
10113 ac_header_compiler=yes
10114 else
10115 $as_echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_header_compiler=no
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10123 $as_echo "$ac_header_compiler" >&6; }
10125 # Is the header present?
10126 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10127 $as_echo_n "checking $ac_header presence... " >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10135 _ACEOF
10136 if { (ac_try="$ac_cpp conftest.$ac_ext"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } >/dev/null && {
10150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 }; then
10153 ac_header_preproc=yes
10154 else
10155 $as_echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ac_header_preproc=no
10161 rm -f conftest.err conftest.$ac_ext
10162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10163 $as_echo "$ac_header_preproc" >&6; }
10165 # So? What about this header?
10166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10167 yes:no: )
10168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10169 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10172 ac_header_preproc=yes
10174 no:yes:* )
10175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10178 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10180 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10182 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10186 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10189 esac
10190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 $as_echo_n "checking for $ac_header... " >&6; }
10192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10193 $as_echo_n "(cached) " >&6
10194 else
10195 eval "$as_ac_Header=\$ac_header_preproc"
10197 ac_res=`eval 'as_val=${'$as_ac_Header'}
10198 $as_echo "$as_val"'`
10199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10200 $as_echo "$ac_res" >&6; }
10203 if test `eval 'as_val=${'$as_ac_Header'}
10204 $as_echo "$as_val"'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10207 _ACEOF
10211 done
10214 for ac_func in getpagesize
10216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10217 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10218 $as_echo_n "checking for $ac_func... " >&6; }
10219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10220 $as_echo_n "(cached) " >&6
10221 else
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h. */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230 #define $ac_func innocuous_$ac_func
10232 /* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char $ac_func (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10237 #ifdef __STDC__
10238 # include <limits.h>
10239 #else
10240 # include <assert.h>
10241 #endif
10243 #undef $ac_func
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char $ac_func ();
10252 /* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255 #if defined __stub_$ac_func || defined __stub___$ac_func
10256 choke me
10257 #endif
10260 main ()
10262 return $ac_func ();
10264 return 0;
10266 _ACEOF
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272 esac
10273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10274 $as_echo "$ac_try_echo") >&5
10275 (eval "$ac_link") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest$ac_exeext && {
10285 test "$cross_compiling" = yes ||
10286 $as_test_x conftest$ac_exeext
10287 }; then
10288 eval "$as_ac_var=yes"
10289 else
10290 $as_echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 eval "$as_ac_var=no"
10296 rm -rf conftest.dSYM
10297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10298 conftest$ac_exeext conftest.$ac_ext
10300 ac_res=`eval 'as_val=${'$as_ac_var'}
10301 $as_echo "$as_val"'`
10302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10303 $as_echo "$ac_res" >&6; }
10304 if test `eval 'as_val=${'$as_ac_var'}
10305 $as_echo "$as_val"'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10308 _ACEOF
10311 done
10313 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10314 $as_echo_n "checking for working mmap... " >&6; }
10315 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10316 $as_echo_n "(cached) " >&6
10317 else
10318 if test "$cross_compiling" = yes; then
10319 ac_cv_func_mmap_fixed_mapped=no
10320 else
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 /* malloc might have been renamed as rpl_malloc. */
10329 #undef malloc
10331 /* Thanks to Mike Haertel and Jim Avera for this test.
10332 Here is a matrix of mmap possibilities:
10333 mmap private not fixed
10334 mmap private fixed at somewhere currently unmapped
10335 mmap private fixed at somewhere already mapped
10336 mmap shared not fixed
10337 mmap shared fixed at somewhere currently unmapped
10338 mmap shared fixed at somewhere already mapped
10339 For private mappings, we should verify that changes cannot be read()
10340 back from the file, nor mmap's back from the file at a different
10341 address. (There have been systems where private was not correctly
10342 implemented like the infamous i386 svr4.0, and systems where the
10343 VM page cache was not coherent with the file system buffer cache
10344 like early versions of FreeBSD and possibly contemporary NetBSD.)
10345 For shared mappings, we should conversely verify that changes get
10346 propagated back to all the places they're supposed to be.
10348 Grep wants private fixed already mapped.
10349 The main things grep needs to know about mmap are:
10350 * does it exist and is it safe to write into the mmap'd area
10351 * how to use it (BSD variants) */
10353 #include <fcntl.h>
10354 #include <sys/mman.h>
10356 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10357 char *malloc ();
10358 #endif
10360 /* This mess was copied from the GNU getpagesize.h. */
10361 #ifndef HAVE_GETPAGESIZE
10362 /* Assume that all systems that can run configure have sys/param.h. */
10363 # ifndef HAVE_SYS_PARAM_H
10364 # define HAVE_SYS_PARAM_H 1
10365 # endif
10367 # ifdef _SC_PAGESIZE
10368 # define getpagesize() sysconf(_SC_PAGESIZE)
10369 # else /* no _SC_PAGESIZE */
10370 # ifdef HAVE_SYS_PARAM_H
10371 # include <sys/param.h>
10372 # ifdef EXEC_PAGESIZE
10373 # define getpagesize() EXEC_PAGESIZE
10374 # else /* no EXEC_PAGESIZE */
10375 # ifdef NBPG
10376 # define getpagesize() NBPG * CLSIZE
10377 # ifndef CLSIZE
10378 # define CLSIZE 1
10379 # endif /* no CLSIZE */
10380 # else /* no NBPG */
10381 # ifdef NBPC
10382 # define getpagesize() NBPC
10383 # else /* no NBPC */
10384 # ifdef PAGESIZE
10385 # define getpagesize() PAGESIZE
10386 # endif /* PAGESIZE */
10387 # endif /* no NBPC */
10388 # endif /* no NBPG */
10389 # endif /* no EXEC_PAGESIZE */
10390 # else /* no HAVE_SYS_PARAM_H */
10391 # define getpagesize() 8192 /* punt totally */
10392 # endif /* no HAVE_SYS_PARAM_H */
10393 # endif /* no _SC_PAGESIZE */
10395 #endif /* no HAVE_GETPAGESIZE */
10398 main ()
10400 char *data, *data2, *data3;
10401 int i, pagesize;
10402 int fd;
10404 pagesize = getpagesize ();
10406 /* First, make a file with some known garbage in it. */
10407 data = (char *) malloc (pagesize);
10408 if (!data)
10409 return 1;
10410 for (i = 0; i < pagesize; ++i)
10411 *(data + i) = rand ();
10412 umask (0);
10413 fd = creat ("conftest.mmap", 0600);
10414 if (fd < 0)
10415 return 1;
10416 if (write (fd, data, pagesize) != pagesize)
10417 return 1;
10418 close (fd);
10420 /* Next, try to mmap the file at a fixed address which already has
10421 something else allocated at it. If we can, also make sure that
10422 we see the same garbage. */
10423 fd = open ("conftest.mmap", O_RDWR);
10424 if (fd < 0)
10425 return 1;
10426 data2 = (char *) malloc (2 * pagesize);
10427 if (!data2)
10428 return 1;
10429 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10430 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10431 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10432 return 1;
10433 for (i = 0; i < pagesize; ++i)
10434 if (*(data + i) != *(data2 + i))
10435 return 1;
10437 /* Finally, make sure that changes to the mapped area do not
10438 percolate back to the file as seen by read(). (This is a bug on
10439 some variants of i386 svr4.0.) */
10440 for (i = 0; i < pagesize; ++i)
10441 *(data2 + i) = *(data2 + i) + 1;
10442 data3 = (char *) malloc (pagesize);
10443 if (!data3)
10444 return 1;
10445 if (read (fd, data3, pagesize) != pagesize)
10446 return 1;
10447 for (i = 0; i < pagesize; ++i)
10448 if (*(data + i) != *(data3 + i))
10449 return 1;
10450 close (fd);
10451 return 0;
10453 _ACEOF
10454 rm -f conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10461 $as_echo "$ac_try_echo") >&5
10462 (eval "$ac_link") 2>&5
10463 ac_status=$?
10464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469 esac
10470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472 (eval "$ac_try") 2>&5
10473 ac_status=$?
10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_func_mmap_fixed_mapped=yes
10477 else
10478 $as_echo "$as_me: program exited with status $ac_status" >&5
10479 $as_echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ( exit $ac_status )
10483 ac_cv_func_mmap_fixed_mapped=no
10485 rm -rf conftest.dSYM
10486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10492 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10493 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_MMAP 1
10497 _ACEOF
10500 rm -f conftest.mmap
10502 if test $use_mmap_for_buffers = yes; then
10503 REL_ALLOC=no
10506 LIBS="$libsrc_libs $LIBS"
10509 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10510 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10511 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10512 $as_echo_n "(cached) " >&6
10513 else
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-ldnet $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 char dnet_ntoa ();
10531 main ()
10533 return dnet_ntoa ();
10535 return 0;
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543 esac
10544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10545 $as_echo "$ac_try_echo") >&5
10546 (eval "$ac_link") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest$ac_exeext && {
10556 test "$cross_compiling" = yes ||
10557 $as_test_x conftest$ac_exeext
10558 }; then
10559 ac_cv_lib_dnet_dnet_ntoa=yes
10560 else
10561 $as_echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_lib_dnet_dnet_ntoa=no
10567 rm -rf conftest.dSYM
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10572 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10573 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_LIBDNET 1
10577 _ACEOF
10579 LIBS="-ldnet $LIBS"
10584 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10585 $as_echo_n "checking for main in -lXbsd... " >&6; }
10586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lXbsd $LIBS"
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10600 main ()
10602 return main ();
10604 return 0;
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10614 $as_echo "$ac_try_echo") >&5
10615 (eval "$ac_link") 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext && {
10625 test "$cross_compiling" = yes ||
10626 $as_test_x conftest$ac_exeext
10627 }; then
10628 ac_cv_lib_Xbsd_main=yes
10629 else
10630 $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_lib_Xbsd_main=no
10636 rm -rf conftest.dSYM
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10642 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10643 if test $ac_cv_lib_Xbsd_main = yes; then
10644 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10649 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10650 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10651 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10652 $as_echo_n "(cached) " >&6
10653 else
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-lpthreads $LIBS"
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char cma_open ();
10671 main ()
10673 return cma_open ();
10675 return 0;
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683 esac
10684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686 (eval "$ac_link") 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext && {
10696 test "$cross_compiling" = yes ||
10697 $as_test_x conftest$ac_exeext
10698 }; then
10699 ac_cv_lib_pthreads_cma_open=yes
10700 else
10701 $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_cv_lib_pthreads_cma_open=no
10707 rm -rf conftest.dSYM
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10713 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10714 if test $ac_cv_lib_pthreads_cma_open = yes; then
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_LIBPTHREADS 1
10717 _ACEOF
10719 LIBS="-lpthreads $LIBS"
10725 case ${host_os} in
10726 aix*)
10727 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10728 $as_echo_n "checking for -bbigtoc option... " >&6; }
10729 if test "${gdb_cv_bigtoc+set}" = set; then
10730 $as_echo_n "(cached) " >&6
10731 else
10733 case $GCC in
10734 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10735 *) gdb_cv_bigtoc=-bbigtoc ;;
10736 esac
10738 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10747 main ()
10749 int i;
10751 return 0;
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10774 }; then
10776 else
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 gdb_cv_bigtoc=
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10788 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10789 $as_echo "$gdb_cv_bigtoc" >&6; }
10791 esac
10793 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10794 # used for the tests that follow. We set them back to REAL_CFLAGS and
10795 # REAL_CPPFLAGS later on.
10797 REAL_CPPFLAGS="$CPPFLAGS"
10799 if test "${HAVE_X11}" = "yes"; then
10800 DEFS="$C_SWITCH_X_SITE $DEFS"
10801 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10802 LIBS="$LIBX $LIBS"
10803 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10804 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10806 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10807 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10808 # but it's more convenient here to set LD_RUN_PATH
10809 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10810 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10811 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10812 export LD_RUN_PATH
10815 if test "${opsys}" = "gnu-linux"; then
10816 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10817 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10826 main ()
10828 XOpenDisplay ("foo");
10830 return 0;
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10838 esac
10839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10840 $as_echo "$ac_try_echo") >&5
10841 (eval "$ac_link") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest$ac_exeext && {
10851 test "$cross_compiling" = yes ||
10852 $as_test_x conftest$ac_exeext
10853 }; then
10854 xlinux_first_failure=no
10855 else
10856 $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 xlinux_first_failure=yes
10862 rm -rf conftest.dSYM
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
10865 if test "${xlinux_first_failure}" = "yes"; then
10866 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10867 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10868 OLD_CPPFLAGS="$CPPFLAGS"
10869 OLD_LIBS="$LIBS"
10870 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10871 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10872 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10873 LIBS="$LIBS -b i486-linuxaout"
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h. */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10882 main ()
10884 XOpenDisplay ("foo");
10886 return 0;
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10909 }; then
10910 xlinux_second_failure=no
10911 else
10912 $as_echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 xlinux_second_failure=yes
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
10921 if test "${xlinux_second_failure}" = "yes"; then
10922 # If we get the same failure with -b, there is no use adding -b.
10923 # So take it out. This plays safe.
10924 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10925 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10926 CPPFLAGS="$OLD_CPPFLAGS"
10927 LIBS="$OLD_LIBS"
10928 { $as_echo "$as_me:$LINENO: result: no" >&5
10929 $as_echo "no" >&6; }
10930 else
10931 { $as_echo "$as_me:$LINENO: result: yes" >&5
10932 $as_echo "yes" >&6; }
10934 else
10935 { $as_echo "$as_me:$LINENO: result: no" >&5
10936 $as_echo "no" >&6; }
10940 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10941 # header files included from there.
10942 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
10943 $as_echo_n "checking for Xkb... " >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <X11/Xlib.h>
10951 #include <X11/XKBlib.h>
10953 main ()
10955 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10957 return 0;
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965 esac
10966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967 $as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10980 }; then
10981 emacs_xkb=yes
10982 else
10983 $as_echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 emacs_xkb=no
10989 rm -rf conftest.dSYM
10990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10992 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10993 $as_echo "$emacs_xkb" >&6; }
10994 if test $emacs_xkb = yes; then
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_XKBGETKEYBOARD 1
10998 _ACEOF
11006 for ac_func in XrmSetDatabase XScreenResourceString \
11007 XScreenNumberOfScreen XSetWMProtocols
11009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11011 $as_echo_n "checking for $ac_func... " >&6; }
11012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11013 $as_echo_n "(cached) " >&6
11014 else
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define $ac_func innocuous_$ac_func
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char $ac_func (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11030 #ifdef __STDC__
11031 # include <limits.h>
11032 #else
11033 # include <assert.h>
11034 #endif
11036 #undef $ac_func
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char $ac_func ();
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub_$ac_func || defined __stub___$ac_func
11049 choke me
11050 #endif
11053 main ()
11055 return $ac_func ();
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11080 }; then
11081 eval "$as_ac_var=yes"
11082 else
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 eval "$as_ac_var=no"
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11093 ac_res=`eval 'as_val=${'$as_ac_var'}
11094 $as_echo "$as_val"'`
11095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11096 $as_echo "$ac_res" >&6; }
11097 if test `eval 'as_val=${'$as_ac_var'}
11098 $as_echo "$as_val"'` = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11101 _ACEOF
11104 done
11108 if test "${window_system}" = "x11"; then
11109 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11110 $as_echo_n "checking X11 version 6... " >&6; }
11111 if test "${emacs_cv_x11_version_6+set}" = set; then
11112 $as_echo_n "(cached) " >&6
11113 else
11114 cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h. */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 #include <X11/Xlib.h>
11122 main ()
11124 #if XlibSpecificationRelease < 6
11125 fail;
11126 #endif
11129 return 0;
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137 esac
11138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11139 $as_echo "$ac_try_echo") >&5
11140 (eval "$ac_link") 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext && {
11150 test "$cross_compiling" = yes ||
11151 $as_test_x conftest$ac_exeext
11152 }; then
11153 emacs_cv_x11_version_6=yes
11154 else
11155 $as_echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 emacs_cv_x11_version_6=no
11161 rm -rf conftest.dSYM
11162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163 conftest$ac_exeext conftest.$ac_ext
11166 if test $emacs_cv_x11_version_6 = yes; then
11167 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11168 $as_echo "6 or newer" >&6; }
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_X11R6 1
11172 _ACEOF
11174 else
11175 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11176 $as_echo "before 6" >&6; }
11181 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11182 HAVE_RSVG=no
11183 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11184 if test "${with_rsvg}" != "no"; then
11185 RSVG_REQUIRED=2.11.0
11186 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11189 succeeded=no
11191 # Extract the first word of "pkg-config", so it can be a program name with args.
11192 set dummy pkg-config; ac_word=$2
11193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 $as_echo_n "checking for $ac_word... " >&6; }
11195 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11196 $as_echo_n "(cached) " >&6
11197 else
11198 case $PKG_CONFIG in
11199 [\\/]* | ?:[\\/]*)
11200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 break 2
11214 done
11215 done
11216 IFS=$as_save_IFS
11218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11220 esac
11222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11223 if test -n "$PKG_CONFIG"; then
11224 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11225 $as_echo "$PKG_CONFIG" >&6; }
11226 else
11227 { $as_echo "$as_me:$LINENO: result: no" >&5
11228 $as_echo "no" >&6; }
11233 if test "$PKG_CONFIG" = "no" ; then
11235 else
11236 PKG_CONFIG_MIN_VERSION=0.9.0
11237 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11238 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11239 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11241 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11242 { $as_echo "$as_me:$LINENO: result: yes" >&5
11243 $as_echo "yes" >&6; }
11244 succeeded=yes
11246 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11247 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11248 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11249 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11250 $as_echo "$RSVG_CFLAGS" >&6; }
11252 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11253 $as_echo_n "checking RSVG_LIBS... " >&6; }
11254 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11255 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11256 $as_echo "$RSVG_LIBS" >&6; }
11257 else
11258 { $as_echo "$as_me:$LINENO: result: no" >&5
11259 $as_echo "no" >&6; }
11260 RSVG_CFLAGS=""
11261 RSVG_LIBS=""
11262 ## If we have a custom action on failure, don't print errors, but
11263 ## do set a variable so people can do so.
11264 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11270 else
11271 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11272 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11276 if test $succeeded = yes; then
11278 else
11285 if test ".${RSVG_CFLAGS}" != "."; then
11286 HAVE_RSVG=yes
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_RSVG 1
11290 _ACEOF
11292 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11293 LIBS="$RSVG_LIBS $LIBS"
11299 HAVE_GTK=no
11300 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11301 GLIB_REQUIRED=2.6
11302 GTK_REQUIRED=2.6
11303 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11306 succeeded=no
11308 # Extract the first word of "pkg-config", so it can be a program name with args.
11309 set dummy pkg-config; ac_word=$2
11310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11313 $as_echo_n "(cached) " >&6
11314 else
11315 case $PKG_CONFIG in
11316 [\\/]* | ?:[\\/]*)
11317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11337 esac
11339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11340 if test -n "$PKG_CONFIG"; then
11341 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11342 $as_echo "$PKG_CONFIG" >&6; }
11343 else
11344 { $as_echo "$as_me:$LINENO: result: no" >&5
11345 $as_echo "no" >&6; }
11350 if test "$PKG_CONFIG" = "no" ; then
11351 pkg_check_gtk=no
11352 else
11353 PKG_CONFIG_MIN_VERSION=0.9.0
11354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11355 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11356 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11358 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 succeeded=yes
11363 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11364 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11365 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11366 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11367 $as_echo "$GTK_CFLAGS" >&6; }
11369 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11370 $as_echo_n "checking GTK_LIBS... " >&6; }
11371 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11372 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11373 $as_echo "$GTK_LIBS" >&6; }
11374 else
11375 { $as_echo "$as_me:$LINENO: result: no" >&5
11376 $as_echo "no" >&6; }
11377 GTK_CFLAGS=""
11378 GTK_LIBS=""
11379 ## If we have a custom action on failure, don't print errors, but
11380 ## do set a variable so people can do so.
11381 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11387 else
11388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11393 if test $succeeded = yes; then
11394 pkg_check_gtk=yes
11395 else
11396 pkg_check_gtk=no
11399 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11400 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11401 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11402 { (exit 1); exit 1; }; }
11407 if test x"$pkg_check_gtk" = xyes; then
11411 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11412 CFLAGS="$CFLAGS $GTK_CFLAGS"
11413 LIBS="$GTK_LIBS $LIBS"
11414 GTK_COMPILES=no
11416 for ac_func in gtk_main
11418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11419 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11420 $as_echo_n "checking for $ac_func... " >&6; }
11421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11422 $as_echo_n "(cached) " >&6
11423 else
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define $ac_func innocuous_$ac_func
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11439 #ifdef __STDC__
11440 # include <limits.h>
11441 #else
11442 # include <assert.h>
11443 #endif
11445 #undef $ac_func
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char $ac_func ();
11454 /* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457 #if defined __stub_$ac_func || defined __stub___$ac_func
11458 choke me
11459 #endif
11462 main ()
11464 return $ac_func ();
11466 return 0;
11468 _ACEOF
11469 rm -f conftest.$ac_objext conftest$ac_exeext
11470 if { (ac_try="$ac_link"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474 esac
11475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11476 $as_echo "$ac_try_echo") >&5
11477 (eval "$ac_link") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest$ac_exeext && {
11487 test "$cross_compiling" = yes ||
11488 $as_test_x conftest$ac_exeext
11489 }; then
11490 eval "$as_ac_var=yes"
11491 else
11492 $as_echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 eval "$as_ac_var=no"
11498 rm -rf conftest.dSYM
11499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11500 conftest$ac_exeext conftest.$ac_ext
11502 ac_res=`eval 'as_val=${'$as_ac_var'}
11503 $as_echo "$as_val"'`
11504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11505 $as_echo "$ac_res" >&6; }
11506 if test `eval 'as_val=${'$as_ac_var'}
11507 $as_echo "$as_val"'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510 _ACEOF
11511 GTK_COMPILES=yes
11513 done
11515 if test "${GTK_COMPILES}" != "yes"; then
11516 if test "$USE_X_TOOLKIT" != "maybe"; then
11517 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11518 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11519 { (exit 1); exit 1; }; };
11521 else
11522 HAVE_GTK=yes
11524 cat >>confdefs.h <<\_ACEOF
11525 #define USE_GTK 1
11526 _ACEOF
11528 USE_X_TOOLKIT=none
11529 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11531 else
11532 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11533 closing open displays. This is no problem if you just use
11534 one display, but if you use more than one and close one of them
11535 Emacs may crash." >&5
11536 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11537 closing open displays. This is no problem if you just use
11538 one display, but if you use more than one and close one of them
11539 Emacs may crash." >&2;}
11540 sleep 3
11547 if test "${HAVE_GTK}" = "yes"; then
11549 if test "$with_toolkit_scroll_bars" != no; then
11550 with_toolkit_scroll_bars=yes
11553 HAVE_GTK_MULTIDISPLAY=no
11555 for ac_func in gdk_display_open
11557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11559 $as_echo_n "checking for $ac_func... " >&6; }
11560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11561 $as_echo_n "(cached) " >&6
11562 else
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11571 #define $ac_func innocuous_$ac_func
11573 /* System header to define __stub macros and hopefully few prototypes,
11574 which can conflict with char $ac_func (); below.
11575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576 <limits.h> exists even on freestanding compilers. */
11578 #ifdef __STDC__
11579 # include <limits.h>
11580 #else
11581 # include <assert.h>
11582 #endif
11584 #undef $ac_func
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 char $ac_func ();
11593 /* The GNU C library defines this for functions which it implements
11594 to always fail with ENOSYS. Some functions are actually named
11595 something starting with __ and the normal name is an alias. */
11596 #if defined __stub_$ac_func || defined __stub___$ac_func
11597 choke me
11598 #endif
11601 main ()
11603 return $ac_func ();
11605 return 0;
11607 _ACEOF
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613 esac
11614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11615 $as_echo "$ac_try_echo") >&5
11616 (eval "$ac_link") 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest$ac_exeext && {
11626 test "$cross_compiling" = yes ||
11627 $as_test_x conftest$ac_exeext
11628 }; then
11629 eval "$as_ac_var=yes"
11630 else
11631 $as_echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 eval "$as_ac_var=no"
11637 rm -rf conftest.dSYM
11638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11639 conftest$ac_exeext conftest.$ac_ext
11641 ac_res=`eval 'as_val=${'$as_ac_var'}
11642 $as_echo "$as_val"'`
11643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11644 $as_echo "$ac_res" >&6; }
11645 if test `eval 'as_val=${'$as_ac_var'}
11646 $as_echo "$as_val"'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649 _ACEOF
11650 HAVE_GTK_MULTIDISPLAY=yes
11652 done
11654 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_GTK_MULTIDISPLAY 1
11658 _ACEOF
11662 HAVE_GTK_FILE_SELECTION=no
11663 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11664 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11665 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11666 $as_echo_n "(cached) " >&6
11667 else
11668 cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h. */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11675 #include <gtk/gtk.h>
11678 main ()
11680 #ifndef GTK_TYPE_FILE_SELECTION
11681 (void) GTK_TYPE_FILE_SELECTION;
11682 #endif
11685 return 0;
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11695 $as_echo "$ac_try_echo") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest.$ac_objext; then
11706 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11707 else
11708 $as_echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11717 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11718 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11719 HAVE_GTK_FILE_SELECTION=yes
11720 else
11721 HAVE_GTK_FILE_SELECTION=no
11724 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11726 for ac_func in gtk_file_selection_new
11728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11729 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 $as_echo_n "checking for $ac_func... " >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11732 $as_echo_n "(cached) " >&6
11733 else
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11749 #ifdef __STDC__
11750 # include <limits.h>
11751 #else
11752 # include <assert.h>
11753 #endif
11755 #undef $ac_func
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 char $ac_func ();
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11768 choke me
11769 #endif
11772 main ()
11774 return $ac_func ();
11776 return 0;
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
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_link") 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_exeext && {
11797 test "$cross_compiling" = yes ||
11798 $as_test_x conftest$ac_exeext
11799 }; then
11800 eval "$as_ac_var=yes"
11801 else
11802 $as_echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 eval "$as_ac_var=no"
11808 rm -rf conftest.dSYM
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810 conftest$ac_exeext conftest.$ac_ext
11812 ac_res=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11815 $as_echo "$ac_res" >&6; }
11816 if test `eval 'as_val=${'$as_ac_var'}
11817 $as_echo "$as_val"'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 _ACEOF
11821 HAVE_GTK_FILE_SELECTION=yes
11822 else
11823 HAVE_GTK_FILE_SELECTION=no
11825 done
11829 HAVE_GTK_FILE_CHOOSER=no
11830 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11831 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11832 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11833 $as_echo_n "(cached) " >&6
11834 else
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h. */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 $ac_includes_default
11842 #include <gtk/gtk.h>
11845 main ()
11847 #ifndef GTK_TYPE_FILE_CHOOSER
11848 (void) GTK_TYPE_FILE_CHOOSER;
11849 #endif
11852 return 0;
11854 _ACEOF
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11874 else
11875 $as_echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11884 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11885 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11886 HAVE_GTK_FILE_CHOOSER=yes
11887 else
11888 HAVE_GTK_FILE_CHOOSER=no
11891 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11893 for ac_func in gtk_file_chooser_dialog_new
11895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 $as_echo_n "checking for $ac_func... " >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899 $as_echo_n "(cached) " >&6
11900 else
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11916 #ifdef __STDC__
11917 # include <limits.h>
11918 #else
11919 # include <assert.h>
11920 #endif
11922 #undef $ac_func
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 char $ac_func ();
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11935 choke me
11936 #endif
11939 main ()
11941 return $ac_func ();
11943 return 0;
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
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_link") 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_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11966 }; then
11967 eval "$as_ac_var=yes"
11968 else
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 eval "$as_ac_var=no"
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 if test `eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'` = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11987 _ACEOF
11988 HAVE_GTK_FILE_CHOOSER=yes
11989 else
11990 HAVE_GTK_FILE_CHOOSER=no
11992 done
11996 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11997 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_GTK_FILE_BOTH 1
12001 _ACEOF
12005 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12006 HAVE_GTK_AND_PTHREAD=no
12008 for ac_header in pthread.h
12010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12013 $as_echo_n "checking for $ac_header... " >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015 $as_echo_n "(cached) " >&6
12017 ac_res=`eval 'as_val=${'$as_ac_Header'}
12018 $as_echo "$as_val"'`
12019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12020 $as_echo "$ac_res" >&6; }
12021 else
12022 # Is the header compilable?
12023 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12024 $as_echo_n "checking $ac_header usability... " >&6; }
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 $ac_includes_default
12032 #include <$ac_header>
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039 esac
12040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12041 $as_echo "$ac_try_echo") >&5
12042 (eval "$ac_compile") 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } && {
12049 test -z "$ac_c_werror_flag" ||
12050 test ! -s conftest.err
12051 } && test -s conftest.$ac_objext; then
12052 ac_header_compiler=yes
12053 else
12054 $as_echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ac_header_compiler=no
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12062 $as_echo "$ac_header_compiler" >&6; }
12064 # Is the header present?
12065 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12066 $as_echo_n "checking $ac_header presence... " >&6; }
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <$ac_header>
12074 _ACEOF
12075 if { (ac_try="$ac_cpp conftest.$ac_ext"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } >/dev/null && {
12089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 }; then
12092 ac_header_preproc=yes
12093 else
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_header_preproc=no
12100 rm -f conftest.err conftest.$ac_ext
12101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12102 $as_echo "$ac_header_preproc" >&6; }
12104 # So? What about this header?
12105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12106 yes:no: )
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12108 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12111 ac_header_preproc=yes
12113 no:yes:* )
12114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12115 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12117 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12119 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12121 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12125 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12128 esac
12129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12130 $as_echo_n "checking for $ac_header... " >&6; }
12131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12132 $as_echo_n "(cached) " >&6
12133 else
12134 eval "$as_ac_Header=\$ac_header_preproc"
12136 ac_res=`eval 'as_val=${'$as_ac_Header'}
12137 $as_echo "$as_val"'`
12138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12139 $as_echo "$ac_res" >&6; }
12142 if test `eval 'as_val=${'$as_ac_Header'}
12143 $as_echo "$as_val"'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146 _ACEOF
12150 done
12152 if test "$ac_cv_header_pthread_h"; then
12153 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12154 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12155 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lpthread $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char pthread_self ();
12175 main ()
12177 return pthread_self ();
12179 return 0;
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_link") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest$ac_exeext && {
12200 test "$cross_compiling" = yes ||
12201 $as_test_x conftest$ac_exeext
12202 }; then
12203 ac_cv_lib_pthread_pthread_self=yes
12204 else
12205 $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_lib_pthread_pthread_self=no
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12217 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12218 if test $ac_cv_lib_pthread_pthread_self = yes; then
12219 HAVE_GTK_AND_PTHREAD=yes
12223 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12224 case "${canonical}" in
12225 *-hpux*) ;;
12226 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12227 esac
12229 cat >>confdefs.h <<\_ACEOF
12230 #define HAVE_GTK_AND_PTHREAD 1
12231 _ACEOF
12237 HAVE_DBUS=no
12238 if test "${with_dbus}" = "yes"; then
12240 succeeded=no
12242 # Extract the first word of "pkg-config", so it can be a program name with args.
12243 set dummy pkg-config; ac_word=$2
12244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12248 else
12249 case $PKG_CONFIG in
12250 [\\/]* | ?:[\\/]*)
12251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12265 done
12266 done
12267 IFS=$as_save_IFS
12269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12271 esac
12273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12274 if test -n "$PKG_CONFIG"; then
12275 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12276 $as_echo "$PKG_CONFIG" >&6; }
12277 else
12278 { $as_echo "$as_me:$LINENO: result: no" >&5
12279 $as_echo "no" >&6; }
12284 if test "$PKG_CONFIG" = "no" ; then
12285 HAVE_DBUS=no
12286 else
12287 PKG_CONFIG_MIN_VERSION=0.9.0
12288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12289 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12290 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12292 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12293 { $as_echo "$as_me:$LINENO: result: yes" >&5
12294 $as_echo "yes" >&6; }
12295 succeeded=yes
12297 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12298 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12299 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12300 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12301 $as_echo "$DBUS_CFLAGS" >&6; }
12303 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12304 $as_echo_n "checking DBUS_LIBS... " >&6; }
12305 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12306 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12307 $as_echo "$DBUS_LIBS" >&6; }
12308 else
12309 { $as_echo "$as_me:$LINENO: result: no" >&5
12310 $as_echo "no" >&6; }
12311 DBUS_CFLAGS=""
12312 DBUS_LIBS=""
12313 ## If we have a custom action on failure, don't print errors, but
12314 ## do set a variable so people can do so.
12315 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12321 else
12322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12327 if test $succeeded = yes; then
12328 HAVE_DBUS=yes
12329 else
12330 HAVE_DBUS=no
12333 if test "$HAVE_DBUS" = yes; then
12334 LIBS="$LIBS $DBUS_LIBS"
12336 cat >>confdefs.h <<\_ACEOF
12337 #define HAVE_DBUS 1
12338 _ACEOF
12341 for ac_func in dbus_watch_get_unix_fd
12343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12345 $as_echo_n "checking for $ac_func... " >&6; }
12346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12347 $as_echo_n "(cached) " >&6
12348 else
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12357 #define $ac_func innocuous_$ac_func
12359 /* System header to define __stub macros and hopefully few prototypes,
12360 which can conflict with char $ac_func (); below.
12361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12362 <limits.h> exists even on freestanding compilers. */
12364 #ifdef __STDC__
12365 # include <limits.h>
12366 #else
12367 # include <assert.h>
12368 #endif
12370 #undef $ac_func
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12375 #ifdef __cplusplus
12376 extern "C"
12377 #endif
12378 char $ac_func ();
12379 /* The GNU C library defines this for functions which it implements
12380 to always fail with ENOSYS. Some functions are actually named
12381 something starting with __ and the normal name is an alias. */
12382 #if defined __stub_$ac_func || defined __stub___$ac_func
12383 choke me
12384 #endif
12387 main ()
12389 return $ac_func ();
12391 return 0;
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (ac_try="$ac_link"
12396 case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399 esac
12400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12401 $as_echo "$ac_try_echo") >&5
12402 (eval "$ac_link") 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } && {
12409 test -z "$ac_c_werror_flag" ||
12410 test ! -s conftest.err
12411 } && test -s conftest$ac_exeext && {
12412 test "$cross_compiling" = yes ||
12413 $as_test_x conftest$ac_exeext
12414 }; then
12415 eval "$as_ac_var=yes"
12416 else
12417 $as_echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 eval "$as_ac_var=no"
12423 rm -rf conftest.dSYM
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425 conftest$ac_exeext conftest.$ac_ext
12427 ac_res=`eval 'as_val=${'$as_ac_var'}
12428 $as_echo "$as_val"'`
12429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12430 $as_echo "$ac_res" >&6; }
12431 if test `eval 'as_val=${'$as_ac_var'}
12432 $as_echo "$as_val"'` = yes; then
12433 cat >>confdefs.h <<_ACEOF
12434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12435 _ACEOF
12438 done
12443 HAVE_XAW3D=no
12444 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12445 if test "$with_xaw3d" != no; then
12446 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12447 $as_echo_n "checking for xaw3d... " >&6; }
12448 if test "${emacs_cv_xaw3d+set}" = set; then
12449 $as_echo_n "(cached) " >&6
12450 else
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 #include <X11/Intrinsic.h>
12459 #include <X11/Xaw3d/Simple.h>
12461 main ()
12465 return 0;
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (ac_try="$ac_link"
12470 case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12473 esac
12474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12475 $as_echo "$ac_try_echo") >&5
12476 (eval "$ac_link") 2>conftest.er1
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest$ac_exeext && {
12486 test "$cross_compiling" = yes ||
12487 $as_test_x conftest$ac_exeext
12488 }; then
12489 emacs_cv_xaw3d=yes
12490 else
12491 $as_echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 emacs_cv_xaw3d=no
12497 rm -rf conftest.dSYM
12498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12499 conftest$ac_exeext conftest.$ac_ext
12502 else
12503 emacs_cv_xaw3d=no
12505 if test $emacs_cv_xaw3d = yes; then
12506 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12507 $as_echo "yes; using Lucid toolkit" >&6; }
12508 USE_X_TOOLKIT=LUCID
12509 HAVE_XAW3D=yes
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_XAW3D 1
12513 _ACEOF
12515 else
12516 { $as_echo "$as_me:$LINENO: result: no" >&5
12517 $as_echo "no" >&6; }
12518 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12519 $as_echo_n "checking for libXaw... " >&6; }
12520 if test "${emacs_cv_xaw+set}" = set; then
12521 $as_echo_n "(cached) " >&6
12522 else
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12530 #include <X11/Intrinsic.h>
12531 #include <X11/Xaw/Simple.h>
12533 main ()
12537 return 0;
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545 esac
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_link") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest$ac_exeext && {
12558 test "$cross_compiling" = yes ||
12559 $as_test_x conftest$ac_exeext
12560 }; then
12561 emacs_cv_xaw=yes
12562 else
12563 $as_echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 emacs_cv_xaw=no
12569 rm -rf conftest.dSYM
12570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12571 conftest$ac_exeext conftest.$ac_ext
12574 if test $emacs_cv_xaw = yes; then
12575 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12576 $as_echo "yes; using Lucid toolkit" >&6; }
12577 USE_X_TOOLKIT=LUCID
12578 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12579 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12580 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12581 { (exit 1); exit 1; }; }
12582 else
12583 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12584 $as_echo "no; do not use toolkit by default" >&6; }
12585 USE_X_TOOLKIT=none
12590 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12592 if test "${USE_X_TOOLKIT}" != "none"; then
12593 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12594 $as_echo_n "checking X11 toolkit version... " >&6; }
12595 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12596 $as_echo_n "(cached) " >&6
12597 else
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <X11/Intrinsic.h>
12606 main ()
12608 #if XtSpecificationRelease < 6
12609 fail;
12610 #endif
12613 return 0;
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621 esac
12622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12623 $as_echo "$ac_try_echo") >&5
12624 (eval "$ac_link") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest$ac_exeext && {
12634 test "$cross_compiling" = yes ||
12635 $as_test_x conftest$ac_exeext
12636 }; then
12637 emacs_cv_x11_toolkit_version_6=yes
12638 else
12639 $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 emacs_cv_x11_toolkit_version_6=no
12645 rm -rf conftest.dSYM
12646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12647 conftest$ac_exeext conftest.$ac_ext
12650 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12651 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12652 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12653 $as_echo "6 or newer" >&6; }
12655 cat >>confdefs.h <<\_ACEOF
12656 #define HAVE_X11XTR6 1
12657 _ACEOF
12659 else
12660 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12661 $as_echo "before 6" >&6; }
12664 OLDLIBS="$LIBS"
12665 if test x$HAVE_X11XTR6 = xyes; then
12666 LIBS="-lXt -lSM -lICE $LIBS"
12667 else
12668 LIBS="-lXt $LIBS"
12671 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12672 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12673 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12674 $as_echo_n "(cached) " >&6
12675 else
12676 ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-lXmu $LIBS"
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char XmuConvertStandardSelection ();
12693 main ()
12695 return XmuConvertStandardSelection ();
12697 return 0;
12699 _ACEOF
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (ac_try="$ac_link"
12702 case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705 esac
12706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12707 $as_echo "$ac_try_echo") >&5
12708 (eval "$ac_link") 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest$ac_exeext && {
12718 test "$cross_compiling" = yes ||
12719 $as_test_x conftest$ac_exeext
12720 }; then
12721 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12722 else
12723 $as_echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12729 rm -rf conftest.dSYM
12730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12731 conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS
12734 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12735 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12736 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12737 cat >>confdefs.h <<_ACEOF
12738 #define HAVE_LIBXMU 1
12739 _ACEOF
12741 LIBS="-lXmu $LIBS"
12745 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12748 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12749 if test "${HAVE_X11}" = "yes"; then
12750 if test "${USE_X_TOOLKIT}" != "none"; then
12752 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12753 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12754 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12755 $as_echo_n "(cached) " >&6
12756 else
12757 ac_check_lib_save_LIBS=$LIBS
12758 LIBS="-lXext $LIBS"
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h. */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12766 /* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 char XShapeQueryExtension ();
12774 main ()
12776 return XShapeQueryExtension ();
12778 return 0;
12780 _ACEOF
12781 rm -f conftest.$ac_objext conftest$ac_exeext
12782 if { (ac_try="$ac_link"
12783 case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786 esac
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_link") 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest$ac_exeext && {
12799 test "$cross_compiling" = yes ||
12800 $as_test_x conftest$ac_exeext
12801 }; then
12802 ac_cv_lib_Xext_XShapeQueryExtension=yes
12803 else
12804 $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_cv_lib_Xext_XShapeQueryExtension=no
12810 rm -rf conftest.dSYM
12811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12816 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12817 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12818 cat >>confdefs.h <<_ACEOF
12819 #define HAVE_LIBXEXT 1
12820 _ACEOF
12822 LIBS="-lXext $LIBS"
12829 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12830 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12831 $as_echo_n "checking for Motif version 2.1... " >&6; }
12832 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12833 $as_echo_n "(cached) " >&6
12834 else
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <Xm/Xm.h>
12843 main ()
12845 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12846 int x = 5;
12847 #else
12848 Motif version prior to 2.1.
12849 #endif
12851 return 0;
12853 _ACEOF
12854 rm -f conftest.$ac_objext
12855 if { (ac_try="$ac_compile"
12856 case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859 esac
12860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12861 $as_echo "$ac_try_echo") >&5
12862 (eval "$ac_compile") 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } && {
12869 test -z "$ac_c_werror_flag" ||
12870 test ! -s conftest.err
12871 } && test -s conftest.$ac_objext; then
12872 emacs_cv_motif_version_2_1=yes
12873 else
12874 $as_echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12877 emacs_cv_motif_version_2_1=no
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12883 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12884 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12885 if test $emacs_cv_motif_version_2_1 = yes; then
12886 HAVE_LIBXP=no
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_MOTIF_2_1 1
12890 _ACEOF
12892 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12893 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12894 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12895 $as_echo_n "(cached) " >&6
12896 else
12897 ac_check_lib_save_LIBS=$LIBS
12898 LIBS="-lXp $LIBS"
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 char XpCreateContext ();
12914 main ()
12916 return XpCreateContext ();
12918 return 0;
12920 _ACEOF
12921 rm -f conftest.$ac_objext conftest$ac_exeext
12922 if { (ac_try="$ac_link"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926 esac
12927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12928 $as_echo "$ac_try_echo") >&5
12929 (eval "$ac_link") 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } && {
12936 test -z "$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 } && test -s conftest$ac_exeext && {
12939 test "$cross_compiling" = yes ||
12940 $as_test_x conftest$ac_exeext
12941 }; then
12942 ac_cv_lib_Xp_XpCreateContext=yes
12943 else
12944 $as_echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ac_cv_lib_Xp_XpCreateContext=no
12950 rm -rf conftest.dSYM
12951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12955 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12956 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12957 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12958 HAVE_LIBXP=yes
12961 if test ${HAVE_LIBXP} = yes; then
12963 cat >>confdefs.h <<\_ACEOF
12964 #define HAVE_LIBXP 1
12965 _ACEOF
12968 else
12969 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12970 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12971 if test "${emacs_cv_lesstif+set}" = set; then
12972 $as_echo_n "(cached) " >&6
12973 else
12974 # We put this in CFLAGS temporarily to precede other -I options
12975 # that might be in CFLAGS temporarily.
12976 # We put this in CPPFLAGS where it precedes the other -I options.
12977 OLD_CPPFLAGS=$CPPFLAGS
12978 OLD_CFLAGS=$CFLAGS
12979 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12980 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12981 cat >conftest.$ac_ext <<_ACEOF
12982 /* confdefs.h. */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12989 main ()
12991 int x = 5;
12993 return 0;
12995 _ACEOF
12996 rm -f conftest.$ac_objext
12997 if { (ac_try="$ac_compile"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001 esac
13002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13003 $as_echo "$ac_try_echo") >&5
13004 (eval "$ac_compile") 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && {
13011 test -z "$ac_c_werror_flag" ||
13012 test ! -s conftest.err
13013 } && test -s conftest.$ac_objext; then
13014 emacs_cv_lesstif=yes
13015 else
13016 $as_echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13019 emacs_cv_lesstif=no
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13025 $as_echo "$emacs_cv_lesstif" >&6; }
13026 if test $emacs_cv_lesstif = yes; then
13027 # Make sure this -I option remains in CPPFLAGS after it is set
13028 # back to REAL_CPPFLAGS.
13029 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13030 # have those other -I options anyway. Ultimately, having this
13031 # directory ultimately in CPPFLAGS will be enough.
13032 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13033 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13034 else
13035 CFLAGS=$OLD_CFLAGS
13036 CPPFLAGS=$OLD_CPPFLAGS
13043 USE_TOOLKIT_SCROLL_BARS=no
13044 if test "${with_toolkit_scroll_bars}" != "no"; then
13045 if test "${USE_X_TOOLKIT}" != "none"; then
13046 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13047 cat >>confdefs.h <<\_ACEOF
13048 #define USE_TOOLKIT_SCROLL_BARS 1
13049 _ACEOF
13051 HAVE_XAW3D=no
13052 USE_TOOLKIT_SCROLL_BARS=yes
13053 elif test "${HAVE_XAW3D}" = "yes"; then
13054 cat >>confdefs.h <<\_ACEOF
13055 #define USE_TOOLKIT_SCROLL_BARS 1
13056 _ACEOF
13058 USE_TOOLKIT_SCROLL_BARS=yes
13060 elif test "${HAVE_GTK}" = "yes"; then
13061 cat >>confdefs.h <<\_ACEOF
13062 #define USE_TOOLKIT_SCROLL_BARS 1
13063 _ACEOF
13065 USE_TOOLKIT_SCROLL_BARS=yes
13066 elif test "${HAVE_NS}" = "yes"; then
13067 cat >>confdefs.h <<\_ACEOF
13068 #define USE_TOOLKIT_SCROLL_BARS 1
13069 _ACEOF
13071 USE_TOOLKIT_SCROLL_BARS=yes
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 #include <X11/Xlib.h>
13083 #include <X11/Xresource.h>
13085 main ()
13087 XIMProc callback;
13089 return 0;
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_compile") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest.$ac_objext; then
13110 HAVE_XIM=yes
13112 cat >>confdefs.h <<\_ACEOF
13113 #define HAVE_XIM 1
13114 _ACEOF
13116 else
13117 $as_echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 HAVE_XIM=no
13123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 if test "${with_xim}" != "no"; then
13128 cat >>confdefs.h <<\_ACEOF
13129 #define USE_XIM 1
13130 _ACEOF
13135 if test "${HAVE_XIM}" != "no"; then
13136 late_CFLAGS=$CFLAGS
13137 if test "$GCC" = yes; then
13138 CFLAGS="$CFLAGS --pedantic-errors"
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13147 #include <X11/Xlib.h>
13148 #include <X11/Xresource.h>
13150 main ()
13152 Display *display;
13153 XrmDatabase db;
13154 char *res_name;
13155 char *res_class;
13156 XIMProc callback;
13157 XPointer *client_data;
13158 #ifndef __GNUC__
13159 /* If we're not using GCC, it's probably not XFree86, and this is
13160 probably right, but we can't use something like --pedantic-errors. */
13161 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13162 char*, XIMProc, XPointer*);
13163 #endif
13164 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13165 client_data);
13167 return 0;
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13177 $as_echo "$ac_try_echo") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
13188 emacs_cv_arg6_star=yes
13189 else
13190 $as_echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 if test "$emacs_cv_arg6_star" = yes; then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13201 _ACEOF
13203 else
13204 cat >>confdefs.h <<\_ACEOF
13205 #define XRegisterIMInstantiateCallback_arg6 XPointer
13206 _ACEOF
13209 CFLAGS=$late_CFLAGS
13212 ### Start of font-backend (under any platform) section.
13213 # (nothing here yet -- this is a placeholder)
13214 ### End of font-backend (under any platform) section.
13216 ### Start of font-backend (under X11) section.
13217 if test "${HAVE_X11}" = "yes"; then
13219 succeeded=no
13221 # Extract the first word of "pkg-config", so it can be a program name with args.
13222 set dummy pkg-config; ac_word=$2
13223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13224 $as_echo_n "checking for $ac_word... " >&6; }
13225 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13226 $as_echo_n "(cached) " >&6
13227 else
13228 case $PKG_CONFIG in
13229 [\\/]* | ?:[\\/]*)
13230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13244 done
13245 done
13246 IFS=$as_save_IFS
13248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13250 esac
13252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13253 if test -n "$PKG_CONFIG"; then
13254 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13255 $as_echo "$PKG_CONFIG" >&6; }
13256 else
13257 { $as_echo "$as_me:$LINENO: result: no" >&5
13258 $as_echo "no" >&6; }
13263 if test "$PKG_CONFIG" = "no" ; then
13264 HAVE_FC=no
13265 else
13266 PKG_CONFIG_MIN_VERSION=0.9.0
13267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13268 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13269 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13271 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13272 { $as_echo "$as_me:$LINENO: result: yes" >&5
13273 $as_echo "yes" >&6; }
13274 succeeded=yes
13276 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13277 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13278 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13279 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13280 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13282 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13283 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13284 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13285 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13286 $as_echo "$FONTCONFIG_LIBS" >&6; }
13287 else
13288 { $as_echo "$as_me:$LINENO: result: no" >&5
13289 $as_echo "no" >&6; }
13290 FONTCONFIG_CFLAGS=""
13291 FONTCONFIG_LIBS=""
13292 ## If we have a custom action on failure, don't print errors, but
13293 ## do set a variable so people can do so.
13294 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13300 else
13301 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13302 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13306 if test $succeeded = yes; then
13307 HAVE_FC=yes
13308 else
13309 HAVE_FC=no
13313 ## Use -lXft if available, unless `--with-xft=no'.
13314 HAVE_XFT=maybe
13315 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13316 with_xft="no";
13318 if test "x${with_xft}" != "xno"; then
13321 succeeded=no
13323 # Extract the first word of "pkg-config", so it can be a program name with args.
13324 set dummy pkg-config; ac_word=$2
13325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13328 $as_echo_n "(cached) " >&6
13329 else
13330 case $PKG_CONFIG in
13331 [\\/]* | ?:[\\/]*)
13332 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13342 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13346 done
13347 done
13348 IFS=$as_save_IFS
13350 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13352 esac
13354 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13355 if test -n "$PKG_CONFIG"; then
13356 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13357 $as_echo "$PKG_CONFIG" >&6; }
13358 else
13359 { $as_echo "$as_me:$LINENO: result: no" >&5
13360 $as_echo "no" >&6; }
13365 if test "$PKG_CONFIG" = "no" ; then
13366 HAVE_XFT=no
13367 else
13368 PKG_CONFIG_MIN_VERSION=0.9.0
13369 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13370 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13371 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13373 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13374 { $as_echo "$as_me:$LINENO: result: yes" >&5
13375 $as_echo "yes" >&6; }
13376 succeeded=yes
13378 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13379 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13380 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13381 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13382 $as_echo "$XFT_CFLAGS" >&6; }
13384 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13385 $as_echo_n "checking XFT_LIBS... " >&6; }
13386 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13387 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13388 $as_echo "$XFT_LIBS" >&6; }
13389 else
13390 { $as_echo "$as_me:$LINENO: result: no" >&5
13391 $as_echo "no" >&6; }
13392 XFT_CFLAGS=""
13393 XFT_LIBS=""
13394 ## If we have a custom action on failure, don't print errors, but
13395 ## do set a variable so people can do so.
13396 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13402 else
13403 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13404 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13408 if test $succeeded = yes; then
13410 else
13411 HAVE_XFT=no
13414 if test "$HAVE_XFT" != no; then
13415 OLD_CPPFLAGS="$CPPFLAGS"
13416 OLD_CFLAGS="$CFLAGS"
13417 OLD_LIBS="$LIBS"
13418 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13419 CFLAGS="$CFLAGS $XFT_CFLAGS"
13420 LIBS="$XFT_LIBS $LIBS"
13421 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13422 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13423 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13424 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13425 $as_echo_n "(cached) " >&6
13427 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13428 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13429 else
13430 # Is the header compilable?
13431 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13432 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <X11/Xft/Xft.h>
13441 _ACEOF
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447 esac
13448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13449 $as_echo "$ac_try_echo") >&5
13450 (eval "$ac_compile") 2>conftest.er1
13451 ac_status=$?
13452 grep -v '^ *+' conftest.er1 >conftest.err
13453 rm -f conftest.er1
13454 cat conftest.err >&5
13455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && {
13457 test -z "$ac_c_werror_flag" ||
13458 test ! -s conftest.err
13459 } && test -s conftest.$ac_objext; then
13460 ac_header_compiler=yes
13461 else
13462 $as_echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 ac_header_compiler=no
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13470 $as_echo "$ac_header_compiler" >&6; }
13472 # Is the header present?
13473 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13474 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13475 cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h. */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13481 #include <X11/Xft/Xft.h>
13482 _ACEOF
13483 if { (ac_try="$ac_cpp conftest.$ac_ext"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487 esac
13488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13489 $as_echo "$ac_try_echo") >&5
13490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } >/dev/null && {
13497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13499 }; then
13500 ac_header_preproc=yes
13501 else
13502 $as_echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13505 ac_header_preproc=no
13508 rm -f conftest.err conftest.$ac_ext
13509 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13510 $as_echo "$ac_header_preproc" >&6; }
13512 # So? What about this header?
13513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13514 yes:no: )
13515 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13516 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13517 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13518 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13519 ac_header_preproc=yes
13521 no:yes:* )
13522 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13523 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13524 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13525 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13526 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13527 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13528 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13529 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13530 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13531 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13532 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13533 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13536 esac
13537 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13538 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13539 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13540 $as_echo_n "(cached) " >&6
13541 else
13542 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13544 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13545 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13548 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13549 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13550 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13551 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13552 $as_echo_n "(cached) " >&6
13553 else
13554 ac_check_lib_save_LIBS=$LIBS
13555 LIBS="-lXft $XFT_LIBS $LIBS"
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h. */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13563 /* Override any GCC internal prototype to avoid an error.
13564 Use char because int might match the return type of a GCC
13565 builtin and then its argument prototype would still apply. */
13566 #ifdef __cplusplus
13567 extern "C"
13568 #endif
13569 char XftFontOpen ();
13571 main ()
13573 return XftFontOpen ();
13575 return 0;
13577 _ACEOF
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (ac_try="$ac_link"
13580 case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13583 esac
13584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13585 $as_echo "$ac_try_echo") >&5
13586 (eval "$ac_link") 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } && {
13593 test -z "$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13595 } && test -s conftest$ac_exeext && {
13596 test "$cross_compiling" = yes ||
13597 $as_test_x conftest$ac_exeext
13598 }; then
13599 ac_cv_lib_Xft_XftFontOpen=yes
13600 else
13601 $as_echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13604 ac_cv_lib_Xft_XftFontOpen=no
13607 rm -rf conftest.dSYM
13608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13609 conftest$ac_exeext conftest.$ac_ext
13610 LIBS=$ac_check_lib_save_LIBS
13612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13613 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13614 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13615 HAVE_XFT=yes
13622 if test "${HAVE_XFT}" = "yes"; then
13624 cat >>confdefs.h <<\_ACEOF
13625 #define HAVE_XFT 1
13626 _ACEOF
13629 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13630 else
13631 CPPFLAGS="$OLD_CPPFLAGS"
13632 CFLAGS="$OLD_CFLAGS"
13633 LIBS="$OLD_LIBS"
13634 fi # "${HAVE_XFT}" = "yes"
13635 fi # "$HAVE_XFT" != no
13636 fi # "x${with_xft}" != "xno"
13638 if test "$HAVE_XFT" != "yes"; then
13639 HAVE_XFT=no
13643 HAVE_FREETYPE=no
13644 ## We used to allow building with FreeType and without Xft.
13645 ## However, the ftx font backend driver is not in good shape.
13646 if test "${HAVE_XFT}" = "yes"; then
13647 HAVE_FREETYPE=yes
13648 FONTCONFIG_CFLAGS=
13649 FONTCONFIG_LIBS=
13652 HAVE_LIBOTF=no
13653 if test "${HAVE_FREETYPE}" = "yes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_FREETYPE 1
13657 _ACEOF
13659 if test "${with_libotf}" != "no"; then
13661 succeeded=no
13663 # Extract the first word of "pkg-config", so it can be a program name with args.
13664 set dummy pkg-config; ac_word=$2
13665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13668 $as_echo_n "(cached) " >&6
13669 else
13670 case $PKG_CONFIG in
13671 [\\/]* | ?:[\\/]*)
13672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13686 done
13687 done
13688 IFS=$as_save_IFS
13690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13692 esac
13694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13695 if test -n "$PKG_CONFIG"; then
13696 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13697 $as_echo "$PKG_CONFIG" >&6; }
13698 else
13699 { $as_echo "$as_me:$LINENO: result: no" >&5
13700 $as_echo "no" >&6; }
13705 if test "$PKG_CONFIG" = "no" ; then
13706 HAVE_LIBOTF=no
13707 else
13708 PKG_CONFIG_MIN_VERSION=0.9.0
13709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13710 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13711 $as_echo_n "checking for libotf... " >&6; }
13713 if $PKG_CONFIG --exists "libotf" 2>&5; then
13714 { $as_echo "$as_me:$LINENO: result: yes" >&5
13715 $as_echo "yes" >&6; }
13716 succeeded=yes
13718 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13719 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13720 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13721 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13722 $as_echo "$LIBOTF_CFLAGS" >&6; }
13724 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13725 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13726 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13727 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13728 $as_echo "$LIBOTF_LIBS" >&6; }
13729 else
13730 { $as_echo "$as_me:$LINENO: result: no" >&5
13731 $as_echo "no" >&6; }
13732 LIBOTF_CFLAGS=""
13733 LIBOTF_LIBS=""
13734 ## If we have a custom action on failure, don't print errors, but
13735 ## do set a variable so people can do so.
13736 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13742 else
13743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13748 if test $succeeded = yes; then
13749 HAVE_LIBOTF=yes
13750 else
13751 HAVE_LIBOTF=no
13754 if test "$HAVE_LIBOTF" = "yes"; then
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_LIBOTF 1
13758 _ACEOF
13760 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13761 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13762 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13763 $as_echo_n "(cached) " >&6
13764 else
13765 ac_check_lib_save_LIBS=$LIBS
13766 LIBS="-lotf $LIBS"
13767 cat >conftest.$ac_ext <<_ACEOF
13768 /* confdefs.h. */
13769 _ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13777 #ifdef __cplusplus
13778 extern "C"
13779 #endif
13780 char OTF_get_variation_glyphs ();
13782 main ()
13784 return OTF_get_variation_glyphs ();
13786 return 0;
13788 _ACEOF
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794 esac
13795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13796 $as_echo "$ac_try_echo") >&5
13797 (eval "$ac_link") 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest$ac_exeext && {
13807 test "$cross_compiling" = yes ||
13808 $as_test_x conftest$ac_exeext
13809 }; then
13810 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13811 else
13812 $as_echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13818 rm -rf conftest.dSYM
13819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13820 conftest$ac_exeext conftest.$ac_ext
13821 LIBS=$ac_check_lib_save_LIBS
13823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13824 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13825 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13826 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13827 else
13828 HAVE_OTF_GET_VARIATION_GLYPHS=no
13831 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13833 cat >>confdefs.h <<\_ACEOF
13834 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13835 _ACEOF
13842 HAVE_M17N_FLT=no
13843 if test "${HAVE_LIBOTF}" = yes; then
13844 if test "${with_m17n_flt}" != "no"; then
13846 succeeded=no
13848 # Extract the first word of "pkg-config", so it can be a program name with args.
13849 set dummy pkg-config; ac_word=$2
13850 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13853 $as_echo_n "(cached) " >&6
13854 else
13855 case $PKG_CONFIG in
13856 [\\/]* | ?:[\\/]*)
13857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13863 IFS=$as_save_IFS
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13869 break 2
13871 done
13872 done
13873 IFS=$as_save_IFS
13875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13877 esac
13879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13880 if test -n "$PKG_CONFIG"; then
13881 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13882 $as_echo "$PKG_CONFIG" >&6; }
13883 else
13884 { $as_echo "$as_me:$LINENO: result: no" >&5
13885 $as_echo "no" >&6; }
13890 if test "$PKG_CONFIG" = "no" ; then
13891 HAVE_M17N_FLT=no
13892 else
13893 PKG_CONFIG_MIN_VERSION=0.9.0
13894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13895 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13896 $as_echo_n "checking for m17n-flt... " >&6; }
13898 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13899 { $as_echo "$as_me:$LINENO: result: yes" >&5
13900 $as_echo "yes" >&6; }
13901 succeeded=yes
13903 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13904 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13905 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13906 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13907 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13909 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13910 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13911 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13912 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13913 $as_echo "$M17N_FLT_LIBS" >&6; }
13914 else
13915 { $as_echo "$as_me:$LINENO: result: no" >&5
13916 $as_echo "no" >&6; }
13917 M17N_FLT_CFLAGS=""
13918 M17N_FLT_LIBS=""
13919 ## If we have a custom action on failure, don't print errors, but
13920 ## do set a variable so people can do so.
13921 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13927 else
13928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13933 if test $succeeded = yes; then
13934 HAVE_M17N_FLT=yes
13935 else
13936 HAVE_M17N_FLT=no
13939 if test "$HAVE_M17N_FLT" = "yes"; then
13941 cat >>confdefs.h <<\_ACEOF
13942 #define HAVE_M17N_FLT 1
13943 _ACEOF
13948 else
13949 HAVE_XFT=no
13950 HAVE_FREETYPE=no
13951 HAVE_LIBOTF=no
13952 HAVE_M17N_FLT=no
13954 ### End of font-backend (under X11) section.
13965 ### Use -lXpm if available, unless `--with-xpm=no'.
13966 HAVE_XPM=no
13967 if test "${HAVE_X11}" = "yes"; then
13968 if test "${with_xpm}" != "no"; then
13969 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13970 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13971 $as_echo_n "checking for X11/xpm.h... " >&6; }
13972 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13973 $as_echo_n "(cached) " >&6
13975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13976 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13977 else
13978 # Is the header compilable?
13979 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13980 $as_echo_n "checking X11/xpm.h usability... " >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h. */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 $ac_includes_default
13988 #include <X11/xpm.h>
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (ac_try="$ac_compile"
13992 case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995 esac
13996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13997 $as_echo "$ac_try_echo") >&5
13998 (eval "$ac_compile") 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } && {
14005 test -z "$ac_c_werror_flag" ||
14006 test ! -s conftest.err
14007 } && test -s conftest.$ac_objext; then
14008 ac_header_compiler=yes
14009 else
14010 $as_echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_compiler=no
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14018 $as_echo "$ac_header_compiler" >&6; }
14020 # Is the header present?
14021 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14022 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h. */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 #include <X11/xpm.h>
14030 _ACEOF
14031 if { (ac_try="$ac_cpp conftest.$ac_ext"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035 esac
14036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14037 $as_echo "$ac_try_echo") >&5
14038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } >/dev/null && {
14045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 }; then
14048 ac_header_preproc=yes
14049 else
14050 $as_echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_header_preproc=no
14056 rm -f conftest.err conftest.$ac_ext
14057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14058 $as_echo "$ac_header_preproc" >&6; }
14060 # So? What about this header?
14061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14062 yes:no: )
14063 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14064 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14065 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14066 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14067 ac_header_preproc=yes
14069 no:yes:* )
14070 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14071 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14072 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14073 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14074 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14075 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14076 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14077 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14078 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14079 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14080 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14081 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14084 esac
14085 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14086 $as_echo_n "checking for X11/xpm.h... " >&6; }
14087 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14088 $as_echo_n "(cached) " >&6
14089 else
14090 ac_cv_header_X11_xpm_h=$ac_header_preproc
14092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14093 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14096 if test $ac_cv_header_X11_xpm_h = yes; then
14097 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14098 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14099 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14100 $as_echo_n "(cached) " >&6
14101 else
14102 ac_check_lib_save_LIBS=$LIBS
14103 LIBS="-lXpm -lX11 $LIBS"
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14111 /* Override any GCC internal prototype to avoid an error.
14112 Use char because int might match the return type of a GCC
14113 builtin and then its argument prototype would still apply. */
14114 #ifdef __cplusplus
14115 extern "C"
14116 #endif
14117 char XpmReadFileToPixmap ();
14119 main ()
14121 return XpmReadFileToPixmap ();
14123 return 0;
14125 _ACEOF
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131 esac
14132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14133 $as_echo "$ac_try_echo") >&5
14134 (eval "$ac_link") 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && {
14141 test -z "$ac_c_werror_flag" ||
14142 test ! -s conftest.err
14143 } && test -s conftest$ac_exeext && {
14144 test "$cross_compiling" = yes ||
14145 $as_test_x conftest$ac_exeext
14146 }; then
14147 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14148 else
14149 $as_echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14155 rm -rf conftest.dSYM
14156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14157 conftest$ac_exeext conftest.$ac_ext
14158 LIBS=$ac_check_lib_save_LIBS
14160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14161 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14162 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14163 HAVE_XPM=yes
14169 if test "${HAVE_XPM}" = "yes"; then
14170 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14171 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h. */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include "X11/xpm.h"
14179 #ifndef XpmReturnAllocPixels
14180 no_return_alloc_pixels
14181 #endif
14183 _ACEOF
14184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14186 HAVE_XPM=no
14187 else
14188 HAVE_XPM=yes
14190 rm -f conftest*
14193 if test "${HAVE_XPM}" = "yes"; then
14194 { $as_echo "$as_me:$LINENO: result: yes" >&5
14195 $as_echo "yes" >&6; }
14196 else
14197 { $as_echo "$as_me:$LINENO: result: no" >&5
14198 $as_echo "no" >&6; }
14203 if test "${HAVE_XPM}" = "yes"; then
14205 cat >>confdefs.h <<\_ACEOF
14206 #define HAVE_XPM 1
14207 _ACEOF
14212 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14213 HAVE_JPEG=no
14214 if test "${HAVE_X11}" = "yes"; then
14215 if test "${with_jpeg}" != "no"; then
14216 if test "${ac_cv_header_jerror_h+set}" = set; then
14217 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14218 $as_echo_n "checking for jerror.h... " >&6; }
14219 if test "${ac_cv_header_jerror_h+set}" = set; then
14220 $as_echo_n "(cached) " >&6
14222 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14223 $as_echo "$ac_cv_header_jerror_h" >&6; }
14224 else
14225 # Is the header compilable?
14226 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14227 $as_echo_n "checking jerror.h usability... " >&6; }
14228 cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h. */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 $ac_includes_default
14235 #include <jerror.h>
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (ac_try="$ac_compile"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242 esac
14243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245 (eval "$ac_compile") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest.$ac_objext; then
14255 ac_header_compiler=yes
14256 else
14257 $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_header_compiler=no
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14265 $as_echo "$ac_header_compiler" >&6; }
14267 # Is the header present?
14268 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14269 $as_echo_n "checking jerror.h presence... " >&6; }
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #include <jerror.h>
14277 _ACEOF
14278 if { (ac_try="$ac_cpp conftest.$ac_ext"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282 esac
14283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14284 $as_echo "$ac_try_echo") >&5
14285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } >/dev/null && {
14292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14293 test ! -s conftest.err
14294 }; then
14295 ac_header_preproc=yes
14296 else
14297 $as_echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_header_preproc=no
14303 rm -f conftest.err conftest.$ac_ext
14304 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14305 $as_echo "$ac_header_preproc" >&6; }
14307 # So? What about this header?
14308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14309 yes:no: )
14310 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14311 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14312 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14313 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14314 ac_header_preproc=yes
14316 no:yes:* )
14317 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14318 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14319 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14320 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14321 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14322 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14323 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14324 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14325 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14326 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14327 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14328 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14331 esac
14332 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14333 $as_echo_n "checking for jerror.h... " >&6; }
14334 if test "${ac_cv_header_jerror_h+set}" = set; then
14335 $as_echo_n "(cached) " >&6
14336 else
14337 ac_cv_header_jerror_h=$ac_header_preproc
14339 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14340 $as_echo "$ac_cv_header_jerror_h" >&6; }
14343 if test $ac_cv_header_jerror_h = yes; then
14344 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14345 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14346 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14347 $as_echo_n "(cached) " >&6
14348 else
14349 ac_check_lib_save_LIBS=$LIBS
14350 LIBS="-ljpeg $LIBS"
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h. */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char jpeg_destroy_compress ();
14366 main ()
14368 return jpeg_destroy_compress ();
14370 return 0;
14372 _ACEOF
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (ac_try="$ac_link"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14378 esac
14379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14380 $as_echo "$ac_try_echo") >&5
14381 (eval "$ac_link") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest$ac_exeext && {
14391 test "$cross_compiling" = yes ||
14392 $as_test_x conftest$ac_exeext
14393 }; then
14394 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14395 else
14396 $as_echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14402 rm -rf conftest.dSYM
14403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LIBS=$ac_check_lib_save_LIBS
14407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14408 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14409 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14410 HAVE_JPEG=yes
14419 if test "${HAVE_JPEG}" = "yes"; then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define HAVE_JPEG 1
14422 _ACEOF
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 #include <jpeglib.h>
14431 version=JPEG_LIB_VERSION
14433 _ACEOF
14434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14435 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_JPEG 1
14438 _ACEOF
14440 else
14441 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14442 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14443 HAVE_JPEG=no
14445 rm -f conftest*
14450 ### Use -lpng if available, unless `--with-png=no'.
14451 HAVE_PNG=no
14452 if test "${HAVE_X11}" = "yes"; then
14453 if test "${with_png}" != "no"; then
14454 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14455 # in /usr/include/libpng.
14458 for ac_header in png.h libpng/png.h
14460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14463 $as_echo_n "checking for $ac_header... " >&6; }
14464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14465 $as_echo_n "(cached) " >&6
14467 ac_res=`eval 'as_val=${'$as_ac_Header'}
14468 $as_echo "$as_val"'`
14469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14470 $as_echo "$ac_res" >&6; }
14471 else
14472 # Is the header compilable?
14473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14474 $as_echo_n "checking $ac_header usability... " >&6; }
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14482 #include <$ac_header>
14483 _ACEOF
14484 rm -f conftest.$ac_objext
14485 if { (ac_try="$ac_compile"
14486 case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14489 esac
14490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14491 $as_echo "$ac_try_echo") >&5
14492 (eval "$ac_compile") 2>conftest.er1
14493 ac_status=$?
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
14497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } && {
14499 test -z "$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 } && test -s conftest.$ac_objext; then
14502 ac_header_compiler=yes
14503 else
14504 $as_echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_header_compiler=no
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14512 $as_echo "$ac_header_compiler" >&6; }
14514 # Is the header present?
14515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14516 $as_echo_n "checking $ac_header presence... " >&6; }
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <$ac_header>
14524 _ACEOF
14525 if { (ac_try="$ac_cpp conftest.$ac_ext"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529 esac
14530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14531 $as_echo "$ac_try_echo") >&5
14532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } >/dev/null && {
14539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14541 }; then
14542 ac_header_preproc=yes
14543 else
14544 $as_echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_header_preproc=no
14550 rm -f conftest.err conftest.$ac_ext
14551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14552 $as_echo "$ac_header_preproc" >&6; }
14554 # So? What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14556 yes:no: )
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14561 ac_header_preproc=yes
14563 no:yes:* )
14564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14567 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14571 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14578 esac
14579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 $as_echo_n "checking for $ac_header... " >&6; }
14581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14582 $as_echo_n "(cached) " >&6
14583 else
14584 eval "$as_ac_Header=\$ac_header_preproc"
14586 ac_res=`eval 'as_val=${'$as_ac_Header'}
14587 $as_echo "$as_val"'`
14588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14589 $as_echo "$ac_res" >&6; }
14592 if test `eval 'as_val=${'$as_ac_Header'}
14593 $as_echo "$as_val"'` = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14596 _ACEOF
14600 done
14602 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14603 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14604 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14605 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14606 $as_echo_n "(cached) " >&6
14607 else
14608 ac_check_lib_save_LIBS=$LIBS
14609 LIBS="-lpng -lz -lm $LIBS"
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h. */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14617 /* Override any GCC internal prototype to avoid an error.
14618 Use char because int might match the return type of a GCC
14619 builtin and then its argument prototype would still apply. */
14620 #ifdef __cplusplus
14621 extern "C"
14622 #endif
14623 char png_get_channels ();
14625 main ()
14627 return png_get_channels ();
14629 return 0;
14631 _ACEOF
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (ac_try="$ac_link"
14634 case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637 esac
14638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14639 $as_echo "$ac_try_echo") >&5
14640 (eval "$ac_link") 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && {
14647 test -z "$ac_c_werror_flag" ||
14648 test ! -s conftest.err
14649 } && test -s conftest$ac_exeext && {
14650 test "$cross_compiling" = yes ||
14651 $as_test_x conftest$ac_exeext
14652 }; then
14653 ac_cv_lib_png_png_get_channels=yes
14654 else
14655 $as_echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_cv_lib_png_png_get_channels=no
14661 rm -rf conftest.dSYM
14662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14663 conftest$ac_exeext conftest.$ac_ext
14664 LIBS=$ac_check_lib_save_LIBS
14666 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14667 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14668 if test $ac_cv_lib_png_png_get_channels = yes; then
14669 HAVE_PNG=yes
14675 if test "${HAVE_PNG}" = "yes"; then
14677 cat >>confdefs.h <<\_ACEOF
14678 #define HAVE_PNG 1
14679 _ACEOF
14684 ### Use -ltiff if available, unless `--with-tiff=no'.
14685 HAVE_TIFF=no
14686 if test "${HAVE_X11}" = "yes"; then
14687 if test "${with_tiff}" != "no"; then
14688 if test "${ac_cv_header_tiffio_h+set}" = set; then
14689 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14690 $as_echo_n "checking for tiffio.h... " >&6; }
14691 if test "${ac_cv_header_tiffio_h+set}" = set; then
14692 $as_echo_n "(cached) " >&6
14694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14695 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14696 else
14697 # Is the header compilable?
14698 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14699 $as_echo_n "checking tiffio.h usability... " >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14707 #include <tiffio.h>
14708 _ACEOF
14709 rm -f conftest.$ac_objext
14710 if { (ac_try="$ac_compile"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14714 esac
14715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14716 $as_echo "$ac_try_echo") >&5
14717 (eval "$ac_compile") 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && {
14724 test -z "$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 } && test -s conftest.$ac_objext; then
14727 ac_header_compiler=yes
14728 else
14729 $as_echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_header_compiler=no
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737 $as_echo "$ac_header_compiler" >&6; }
14739 # Is the header present?
14740 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14741 $as_echo_n "checking tiffio.h presence... " >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <tiffio.h>
14749 _ACEOF
14750 if { (ac_try="$ac_cpp conftest.$ac_ext"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } >/dev/null && {
14764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 }; then
14767 ac_header_preproc=yes
14768 else
14769 $as_echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_header_preproc=no
14775 rm -f conftest.err conftest.$ac_ext
14776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14777 $as_echo "$ac_header_preproc" >&6; }
14779 # So? What about this header?
14780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781 yes:no: )
14782 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14783 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14784 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14785 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14786 ac_header_preproc=yes
14788 no:yes:* )
14789 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14790 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14792 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14793 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14794 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14795 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14796 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14798 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14800 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14803 esac
14804 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14805 $as_echo_n "checking for tiffio.h... " >&6; }
14806 if test "${ac_cv_header_tiffio_h+set}" = set; then
14807 $as_echo_n "(cached) " >&6
14808 else
14809 ac_cv_header_tiffio_h=$ac_header_preproc
14811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14812 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14815 if test $ac_cv_header_tiffio_h = yes; then
14816 tifflibs="-lz -lm"
14817 # At least one tiff package requires the jpeg library.
14818 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14819 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14820 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14821 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14822 $as_echo_n "(cached) " >&6
14823 else
14824 ac_check_lib_save_LIBS=$LIBS
14825 LIBS="-ltiff $tifflibs $LIBS"
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14833 /* Override any GCC internal prototype to avoid an error.
14834 Use char because int might match the return type of a GCC
14835 builtin and then its argument prototype would still apply. */
14836 #ifdef __cplusplus
14837 extern "C"
14838 #endif
14839 char TIFFGetVersion ();
14841 main ()
14843 return TIFFGetVersion ();
14845 return 0;
14847 _ACEOF
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (ac_try="$ac_link"
14850 case "(($ac_try" in
14851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14853 esac
14854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14855 $as_echo "$ac_try_echo") >&5
14856 (eval "$ac_link") 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } && {
14863 test -z "$ac_c_werror_flag" ||
14864 test ! -s conftest.err
14865 } && test -s conftest$ac_exeext && {
14866 test "$cross_compiling" = yes ||
14867 $as_test_x conftest$ac_exeext
14868 }; then
14869 ac_cv_lib_tiff_TIFFGetVersion=yes
14870 else
14871 $as_echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_cv_lib_tiff_TIFFGetVersion=no
14877 rm -rf conftest.dSYM
14878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14879 conftest$ac_exeext conftest.$ac_ext
14880 LIBS=$ac_check_lib_save_LIBS
14882 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14883 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14884 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14885 HAVE_TIFF=yes
14893 if test "${HAVE_TIFF}" = "yes"; then
14895 cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_TIFF 1
14897 _ACEOF
14902 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14903 HAVE_GIF=no
14904 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14905 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14906 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14907 $as_echo_n "checking for gif_lib.h... " >&6; }
14908 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14909 $as_echo_n "(cached) " >&6
14911 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14912 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14913 else
14914 # Is the header compilable?
14915 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14916 $as_echo_n "checking gif_lib.h usability... " >&6; }
14917 cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h. */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 $ac_includes_default
14924 #include <gif_lib.h>
14925 _ACEOF
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931 esac
14932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14933 $as_echo "$ac_try_echo") >&5
14934 (eval "$ac_compile") 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest.$ac_objext; then
14944 ac_header_compiler=yes
14945 else
14946 $as_echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_header_compiler=no
14952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14954 $as_echo "$ac_header_compiler" >&6; }
14956 # Is the header present?
14957 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14958 $as_echo_n "checking gif_lib.h presence... " >&6; }
14959 cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h. */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14965 #include <gif_lib.h>
14966 _ACEOF
14967 if { (ac_try="$ac_cpp conftest.$ac_ext"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } >/dev/null && {
14981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 }; then
14984 ac_header_preproc=yes
14985 else
14986 $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_header_preproc=no
14992 rm -f conftest.err conftest.$ac_ext
14993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994 $as_echo "$ac_header_preproc" >&6; }
14996 # So? What about this header?
14997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14998 yes:no: )
14999 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15000 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15002 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15003 ac_header_preproc=yes
15005 no:yes:* )
15006 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15007 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15008 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15009 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15010 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15011 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15012 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15013 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15014 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15015 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15017 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15020 esac
15021 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15022 $as_echo_n "checking for gif_lib.h... " >&6; }
15023 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15024 $as_echo_n "(cached) " >&6
15025 else
15026 ac_cv_header_gif_lib_h=$ac_header_preproc
15028 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15029 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15032 if test $ac_cv_header_gif_lib_h = yes; then
15033 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15034 # Earlier versions can crash Emacs.
15035 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15036 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15037 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15038 $as_echo_n "(cached) " >&6
15039 else
15040 ac_check_lib_save_LIBS=$LIBS
15041 LIBS="-lgif $LIBS"
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h. */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15052 #ifdef __cplusplus
15053 extern "C"
15054 #endif
15055 char EGifPutExtensionLast ();
15057 main ()
15059 return EGifPutExtensionLast ();
15061 return 0;
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15069 esac
15070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15071 $as_echo "$ac_try_echo") >&5
15072 (eval "$ac_link") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest$ac_exeext && {
15082 test "$cross_compiling" = yes ||
15083 $as_test_x conftest$ac_exeext
15084 }; then
15085 ac_cv_lib_gif_EGifPutExtensionLast=yes
15086 else
15087 $as_echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_cv_lib_gif_EGifPutExtensionLast=no
15093 rm -rf conftest.dSYM
15094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15095 conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15099 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15100 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15101 HAVE_GIF=yes
15102 else
15103 try_libungif=yes
15110 if test "$HAVE_GIF" = yes; then
15111 ac_gif_lib_name="-lgif"
15114 # If gif_lib.h but no libgif, try libungif.
15115 if test x"$try_libungif" = xyes; then
15116 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15117 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15118 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15119 $as_echo_n "(cached) " >&6
15120 else
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-lungif $LIBS"
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 char EGifPutExtensionLast ();
15138 main ()
15140 return EGifPutExtensionLast ();
15142 return 0;
15144 _ACEOF
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150 esac
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext && {
15163 test "$cross_compiling" = yes ||
15164 $as_test_x conftest$ac_exeext
15165 }; then
15166 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15167 else
15168 $as_echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_ungif_EGifPutExtensionLast=no
15174 rm -rf conftest.dSYM
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15180 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15181 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15182 HAVE_GIF=yes
15186 if test "$HAVE_GIF" = yes; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define LIBGIF -lungif
15190 _ACEOF
15192 ac_gif_lib_name="-lungif"
15196 if test "${HAVE_GIF}" = "yes"; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_GIF 1
15200 _ACEOF
15205 if test "${HAVE_X11}" = "yes"; then
15206 MISSING=""
15207 WITH_NO=""
15208 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15209 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15210 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15211 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15212 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15213 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15214 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15215 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15216 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15217 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15219 if test "X${MISSING}" != X; then
15220 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15221 $MISSING
15222 Maybe some development libraries/packages are missing?
15223 If you don't want to link with them give
15224 $WITH_NO
15225 as options to configure" >&5
15226 $as_echo "$as_me: error: The following required libraries were not found:
15227 $MISSING
15228 Maybe some development libraries/packages are missing?
15229 If you don't want to link with them give
15230 $WITH_NO
15231 as options to configure" >&2;}
15232 { (exit 1); exit 1; }; }
15236 ### Use -lgpm if available, unless `--with-gpm=no'.
15237 HAVE_GPM=no
15238 if test "${with_gpm}" != "no"; then
15239 if test "${ac_cv_header_gpm_h+set}" = set; then
15240 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15241 $as_echo_n "checking for gpm.h... " >&6; }
15242 if test "${ac_cv_header_gpm_h+set}" = set; then
15243 $as_echo_n "(cached) " >&6
15245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15246 $as_echo "$ac_cv_header_gpm_h" >&6; }
15247 else
15248 # Is the header compilable?
15249 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15250 $as_echo_n "checking gpm.h usability... " >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 $ac_includes_default
15258 #include <gpm.h>
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
15278 ac_header_compiler=yes
15279 else
15280 $as_echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 ac_header_compiler=no
15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15288 $as_echo "$ac_header_compiler" >&6; }
15290 # Is the header present?
15291 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15292 $as_echo_n "checking gpm.h presence... " >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 #include <gpm.h>
15300 _ACEOF
15301 if { (ac_try="$ac_cpp conftest.$ac_ext"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15305 esac
15306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15307 $as_echo "$ac_try_echo") >&5
15308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15309 ac_status=$?
15310 grep -v '^ *+' conftest.er1 >conftest.err
15311 rm -f conftest.er1
15312 cat conftest.err >&5
15313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } >/dev/null && {
15315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15316 test ! -s conftest.err
15317 }; then
15318 ac_header_preproc=yes
15319 else
15320 $as_echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_header_preproc=no
15326 rm -f conftest.err conftest.$ac_ext
15327 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15328 $as_echo "$ac_header_preproc" >&6; }
15330 # So? What about this header?
15331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15332 yes:no: )
15333 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15334 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15336 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15337 ac_header_preproc=yes
15339 no:yes:* )
15340 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15341 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15342 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15343 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15344 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15345 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15346 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15347 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15348 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15349 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15350 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15351 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15354 esac
15355 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15356 $as_echo_n "checking for gpm.h... " >&6; }
15357 if test "${ac_cv_header_gpm_h+set}" = set; then
15358 $as_echo_n "(cached) " >&6
15359 else
15360 ac_cv_header_gpm_h=$ac_header_preproc
15362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15363 $as_echo "$ac_cv_header_gpm_h" >&6; }
15366 if test $ac_cv_header_gpm_h = yes; then
15367 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15368 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15369 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15370 $as_echo_n "(cached) " >&6
15371 else
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lgpm $LIBS"
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h. */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 char Gpm_Open ();
15389 main ()
15391 return Gpm_Open ();
15393 return 0;
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15403 $as_echo "$ac_try_echo") >&5
15404 (eval "$ac_link") 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext && {
15414 test "$cross_compiling" = yes ||
15415 $as_test_x conftest$ac_exeext
15416 }; then
15417 ac_cv_lib_gpm_Gpm_Open=yes
15418 else
15419 $as_echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15422 ac_cv_lib_gpm_Gpm_Open=no
15425 rm -rf conftest.dSYM
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15431 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15432 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15433 HAVE_GPM=yes
15441 if test "${HAVE_GPM}" = "yes"; then
15443 cat >>confdefs.h <<\_ACEOF
15444 #define HAVE_GPM 1
15445 _ACEOF
15449 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15450 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15451 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15452 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15453 $as_echo_n "(cached) " >&6
15455 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15456 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15457 else
15458 # Is the header compilable?
15459 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15460 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15461 cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467 $ac_includes_default
15468 #include <malloc/malloc.h>
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (ac_try="$ac_compile"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15477 $as_echo "$ac_try_echo") >&5
15478 (eval "$ac_compile") 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } && {
15485 test -z "$ac_c_werror_flag" ||
15486 test ! -s conftest.err
15487 } && test -s conftest.$ac_objext; then
15488 ac_header_compiler=yes
15489 else
15490 $as_echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_header_compiler=no
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15498 $as_echo "$ac_header_compiler" >&6; }
15500 # Is the header present?
15501 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15502 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <malloc/malloc.h>
15510 _ACEOF
15511 if { (ac_try="$ac_cpp conftest.$ac_ext"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515 esac
15516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15517 $as_echo "$ac_try_echo") >&5
15518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } >/dev/null && {
15525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15526 test ! -s conftest.err
15527 }; then
15528 ac_header_preproc=yes
15529 else
15530 $as_echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_header_preproc=no
15536 rm -f conftest.err conftest.$ac_ext
15537 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538 $as_echo "$ac_header_preproc" >&6; }
15540 # So? What about this header?
15541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15542 yes:no: )
15543 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15544 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15546 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15547 ac_header_preproc=yes
15549 no:yes:* )
15550 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15551 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15552 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15553 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15555 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15556 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15557 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15558 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15559 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15560 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15561 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15564 esac
15565 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15566 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15567 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15568 $as_echo_n "(cached) " >&6
15569 else
15570 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15573 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15576 if test $ac_cv_header_malloc_malloc_h = yes; then
15578 cat >>confdefs.h <<\_ACEOF
15579 #define HAVE_MALLOC_MALLOC_H 1
15580 _ACEOF
15586 ### Use NeXTstep API to implement GUI.
15587 if test "${HAVE_NS}" = "yes"; then
15589 cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_NS 1
15591 _ACEOF
15593 if test "${NS_IMPL_COCOA}" = "yes"; then
15595 cat >>confdefs.h <<\_ACEOF
15596 #define NS_IMPL_COCOA 1
15597 _ACEOF
15599 GNU_OBJC_CFLAGS=
15601 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define NS_IMPL_GNUSTEP 1
15605 _ACEOF
15607 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15609 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15611 cat >>confdefs.h <<\_ACEOF
15612 #define NS_HAVE_NSINTEGER 1
15613 _ACEOF
15616 # We also have mouse menus.
15617 HAVE_MENUS=yes
15621 ### Use session management (-lSM -lICE) if available
15622 HAVE_X_SM=no
15623 if test "${HAVE_X11}" = "yes"; then
15624 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15625 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15626 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15627 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15628 $as_echo_n "(cached) " >&6
15630 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15631 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15632 else
15633 # Is the header compilable?
15634 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15635 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 $ac_includes_default
15643 #include <X11/SM/SMlib.h>
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15650 esac
15651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15652 $as_echo "$ac_try_echo") >&5
15653 (eval "$ac_compile") 2>conftest.er1
15654 ac_status=$?
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
15658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } && {
15660 test -z "$ac_c_werror_flag" ||
15661 test ! -s conftest.err
15662 } && test -s conftest.$ac_objext; then
15663 ac_header_compiler=yes
15664 else
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_header_compiler=no
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15673 $as_echo "$ac_header_compiler" >&6; }
15675 # Is the header present?
15676 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15677 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 #include <X11/SM/SMlib.h>
15685 _ACEOF
15686 if { (ac_try="$ac_cpp conftest.$ac_ext"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15690 esac
15691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15692 $as_echo "$ac_try_echo") >&5
15693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15694 ac_status=$?
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
15698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } >/dev/null && {
15700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15701 test ! -s conftest.err
15702 }; then
15703 ac_header_preproc=yes
15704 else
15705 $as_echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_preproc=no
15711 rm -f conftest.err conftest.$ac_ext
15712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713 $as_echo "$ac_header_preproc" >&6; }
15715 # So? What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15717 yes:no: )
15718 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15719 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15721 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15722 ac_header_preproc=yes
15724 no:yes:* )
15725 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15726 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15727 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15728 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15729 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15730 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15731 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15732 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15734 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15735 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15736 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15739 esac
15740 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15741 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15742 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15743 $as_echo_n "(cached) " >&6
15744 else
15745 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15748 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15751 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15752 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15753 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15754 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15755 $as_echo_n "(cached) " >&6
15756 else
15757 ac_check_lib_save_LIBS=$LIBS
15758 LIBS="-lSM -lICE $LIBS"
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h. */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15766 /* Override any GCC internal prototype to avoid an error.
15767 Use char because int might match the return type of a GCC
15768 builtin and then its argument prototype would still apply. */
15769 #ifdef __cplusplus
15770 extern "C"
15771 #endif
15772 char SmcOpenConnection ();
15774 main ()
15776 return SmcOpenConnection ();
15778 return 0;
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786 esac
15787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15788 $as_echo "$ac_try_echo") >&5
15789 (eval "$ac_link") 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } && {
15796 test -z "$ac_c_werror_flag" ||
15797 test ! -s conftest.err
15798 } && test -s conftest$ac_exeext && {
15799 test "$cross_compiling" = yes ||
15800 $as_test_x conftest$ac_exeext
15801 }; then
15802 ac_cv_lib_SM_SmcOpenConnection=yes
15803 else
15804 $as_echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_cv_lib_SM_SmcOpenConnection=no
15810 rm -rf conftest.dSYM
15811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15812 conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15816 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15817 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15818 HAVE_X_SM=yes
15825 if test "${HAVE_X_SM}" = "yes"; then
15827 cat >>confdefs.h <<\_ACEOF
15828 #define HAVE_X_SM 1
15829 _ACEOF
15831 case "$LIBS" in
15832 *-lSM*) ;;
15833 *) LIBS="-lSM -lICE $LIBS" ;;
15834 esac
15838 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15839 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15840 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15841 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15842 $as_echo_n "(cached) " >&6
15843 else
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 #include <netdb.h>
15852 main ()
15854 return h_errno;
15856 return 0;
15858 _ACEOF
15859 rm -f conftest.$ac_objext conftest$ac_exeext
15860 if { (ac_try="$ac_link"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15864 esac
15865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15866 $as_echo "$ac_try_echo") >&5
15867 (eval "$ac_link") 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest$ac_exeext && {
15877 test "$cross_compiling" = yes ||
15878 $as_test_x conftest$ac_exeext
15879 }; then
15880 emacs_cv_netdb_declares_h_errno=yes
15881 else
15882 $as_echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 emacs_cv_netdb_declares_h_errno=no
15888 rm -rf conftest.dSYM
15889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15890 conftest$ac_exeext conftest.$ac_ext
15892 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15893 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15894 if test $emacs_cv_netdb_declares_h_errno = yes; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define HAVE_H_ERRNO 1
15898 _ACEOF
15902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15903 # for constant arguments. Useless!
15904 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15905 $as_echo_n "checking for working alloca.h... " >&6; }
15906 if test "${ac_cv_working_alloca_h+set}" = set; then
15907 $as_echo_n "(cached) " >&6
15908 else
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h. */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <alloca.h>
15917 main ()
15919 char *p = (char *) alloca (2 * sizeof (int));
15920 if (p) return 0;
15922 return 0;
15924 _ACEOF
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (ac_try="$ac_link"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15930 esac
15931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15932 $as_echo "$ac_try_echo") >&5
15933 (eval "$ac_link") 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest$ac_exeext && {
15943 test "$cross_compiling" = yes ||
15944 $as_test_x conftest$ac_exeext
15945 }; then
15946 ac_cv_working_alloca_h=yes
15947 else
15948 $as_echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 ac_cv_working_alloca_h=no
15954 rm -rf conftest.dSYM
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 conftest$ac_exeext conftest.$ac_ext
15958 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15959 $as_echo "$ac_cv_working_alloca_h" >&6; }
15960 if test $ac_cv_working_alloca_h = yes; then
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE_ALLOCA_H 1
15964 _ACEOF
15968 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
15969 $as_echo_n "checking for alloca... " >&6; }
15970 if test "${ac_cv_func_alloca_works+set}" = set; then
15971 $as_echo_n "(cached) " >&6
15972 else
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h. */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 #ifdef __GNUC__
15980 # define alloca __builtin_alloca
15981 #else
15982 # ifdef _MSC_VER
15983 # include <malloc.h>
15984 # define alloca _alloca
15985 # else
15986 # ifdef HAVE_ALLOCA_H
15987 # include <alloca.h>
15988 # else
15989 # ifdef _AIX
15990 #pragma alloca
15991 # else
15992 # ifndef alloca /* predefined by HP cc +Olibcalls */
15993 char *alloca ();
15994 # endif
15995 # endif
15996 # endif
15997 # endif
15998 #endif
16001 main ()
16003 char *p = (char *) alloca (1);
16004 if (p) return 0;
16006 return 0;
16008 _ACEOF
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (ac_try="$ac_link"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16014 esac
16015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16016 $as_echo "$ac_try_echo") >&5
16017 (eval "$ac_link") 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } && {
16024 test -z "$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16026 } && test -s conftest$ac_exeext && {
16027 test "$cross_compiling" = yes ||
16028 $as_test_x conftest$ac_exeext
16029 }; then
16030 ac_cv_func_alloca_works=yes
16031 else
16032 $as_echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_cv_func_alloca_works=no
16038 rm -rf conftest.dSYM
16039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16040 conftest$ac_exeext conftest.$ac_ext
16042 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16043 $as_echo "$ac_cv_func_alloca_works" >&6; }
16045 if test $ac_cv_func_alloca_works = yes; then
16047 cat >>confdefs.h <<\_ACEOF
16048 #define HAVE_ALLOCA 1
16049 _ACEOF
16051 else
16052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16053 # that cause trouble. Some versions do not even contain alloca or
16054 # contain a buggy version. If you still want to use their alloca,
16055 # use ar to extract alloca.o from them instead of compiling alloca.c.
16057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16059 cat >>confdefs.h <<\_ACEOF
16060 #define C_ALLOCA 1
16061 _ACEOF
16064 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16065 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16066 if test "${ac_cv_os_cray+set}" = set; then
16067 $as_echo_n "(cached) " >&6
16068 else
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #if defined CRAY && ! defined CRAY2
16076 webecray
16077 #else
16078 wenotbecray
16079 #endif
16081 _ACEOF
16082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16083 $EGREP "webecray" >/dev/null 2>&1; then
16084 ac_cv_os_cray=yes
16085 else
16086 ac_cv_os_cray=no
16088 rm -f conftest*
16091 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16092 $as_echo "$ac_cv_os_cray" >&6; }
16093 if test $ac_cv_os_cray = yes; then
16094 for ac_func in _getb67 GETB67 getb67; do
16095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16097 $as_echo_n "checking for $ac_func... " >&6; }
16098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16099 $as_echo_n "(cached) " >&6
16100 else
16101 cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h. */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16109 #define $ac_func innocuous_$ac_func
16111 /* System header to define __stub macros and hopefully few prototypes,
16112 which can conflict with char $ac_func (); below.
16113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16114 <limits.h> exists even on freestanding compilers. */
16116 #ifdef __STDC__
16117 # include <limits.h>
16118 #else
16119 # include <assert.h>
16120 #endif
16122 #undef $ac_func
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16127 #ifdef __cplusplus
16128 extern "C"
16129 #endif
16130 char $ac_func ();
16131 /* The GNU C library defines this for functions which it implements
16132 to always fail with ENOSYS. Some functions are actually named
16133 something starting with __ and the normal name is an alias. */
16134 #if defined __stub_$ac_func || defined __stub___$ac_func
16135 choke me
16136 #endif
16139 main ()
16141 return $ac_func ();
16143 return 0;
16145 _ACEOF
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (ac_try="$ac_link"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151 esac
16152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153 $as_echo "$ac_try_echo") >&5
16154 (eval "$ac_link") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && {
16161 test -z "$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 } && test -s conftest$ac_exeext && {
16164 test "$cross_compiling" = yes ||
16165 $as_test_x conftest$ac_exeext
16166 }; then
16167 eval "$as_ac_var=yes"
16168 else
16169 $as_echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 eval "$as_ac_var=no"
16175 rm -rf conftest.dSYM
16176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16177 conftest$ac_exeext conftest.$ac_ext
16179 ac_res=`eval 'as_val=${'$as_ac_var'}
16180 $as_echo "$as_val"'`
16181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16182 $as_echo "$ac_res" >&6; }
16183 if test `eval 'as_val=${'$as_ac_var'}
16184 $as_echo "$as_val"'` = yes; then
16186 cat >>confdefs.h <<_ACEOF
16187 #define CRAY_STACKSEG_END $ac_func
16188 _ACEOF
16190 break
16193 done
16196 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16197 $as_echo_n "checking stack direction for C alloca... " >&6; }
16198 if test "${ac_cv_c_stack_direction+set}" = set; then
16199 $as_echo_n "(cached) " >&6
16200 else
16201 if test "$cross_compiling" = yes; then
16202 ac_cv_c_stack_direction=0
16203 else
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16212 find_stack_direction ()
16214 static char *addr = 0;
16215 auto char dummy;
16216 if (addr == 0)
16218 addr = &dummy;
16219 return find_stack_direction ();
16221 else
16222 return (&dummy > addr) ? 1 : -1;
16226 main ()
16228 return find_stack_direction () < 0;
16230 _ACEOF
16231 rm -f conftest$ac_exeext
16232 if { (ac_try="$ac_link"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236 esac
16237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16238 $as_echo "$ac_try_echo") >&5
16239 (eval "$ac_link") 2>&5
16240 ac_status=$?
16241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246 esac
16247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16248 $as_echo "$ac_try_echo") >&5
16249 (eval "$ac_try") 2>&5
16250 ac_status=$?
16251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_cv_c_stack_direction=1
16254 else
16255 $as_echo "$as_me: program exited with status $ac_status" >&5
16256 $as_echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ( exit $ac_status )
16260 ac_cv_c_stack_direction=-1
16262 rm -rf conftest.dSYM
16263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16268 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16269 $as_echo "$ac_cv_c_stack_direction" >&6; }
16271 cat >>confdefs.h <<_ACEOF
16272 #define STACK_DIRECTION $ac_cv_c_stack_direction
16273 _ACEOF
16279 if test x"$ac_cv_func_alloca_works" != xyes; then
16280 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16281 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16282 { (exit 1); exit 1; }; }
16285 # fmod, logb, and frexp are found in -lm on most systems.
16286 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16288 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16289 $as_echo_n "checking for sqrt in -lm... " >&6; }
16290 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16291 $as_echo_n "(cached) " >&6
16292 else
16293 ac_check_lib_save_LIBS=$LIBS
16294 LIBS="-lm $LIBS"
16295 cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h. */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16302 /* Override any GCC internal prototype to avoid an error.
16303 Use char because int might match the return type of a GCC
16304 builtin and then its argument prototype would still apply. */
16305 #ifdef __cplusplus
16306 extern "C"
16307 #endif
16308 char sqrt ();
16310 main ()
16312 return sqrt ();
16314 return 0;
16316 _ACEOF
16317 rm -f conftest.$ac_objext conftest$ac_exeext
16318 if { (ac_try="$ac_link"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16322 esac
16323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16324 $as_echo "$ac_try_echo") >&5
16325 (eval "$ac_link") 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } && {
16332 test -z "$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 } && test -s conftest$ac_exeext && {
16335 test "$cross_compiling" = yes ||
16336 $as_test_x conftest$ac_exeext
16337 }; then
16338 ac_cv_lib_m_sqrt=yes
16339 else
16340 $as_echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_cv_lib_m_sqrt=no
16346 rm -rf conftest.dSYM
16347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348 conftest$ac_exeext conftest.$ac_ext
16349 LIBS=$ac_check_lib_save_LIBS
16351 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16352 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16353 if test $ac_cv_lib_m_sqrt = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_LIBM 1
16356 _ACEOF
16358 LIBS="-lm $LIBS"
16363 # Check for mail-locking functions in a "mail" library. Probably this should
16364 # have the same check as for liblockfile below.
16366 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16367 $as_echo_n "checking for maillock in -lmail... " >&6; }
16368 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16369 $as_echo_n "(cached) " >&6
16370 else
16371 ac_check_lib_save_LIBS=$LIBS
16372 LIBS="-lmail $LIBS"
16373 cat >conftest.$ac_ext <<_ACEOF
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16380 /* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
16383 #ifdef __cplusplus
16384 extern "C"
16385 #endif
16386 char maillock ();
16388 main ()
16390 return maillock ();
16392 return 0;
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400 esac
16401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16402 $as_echo "$ac_try_echo") >&5
16403 (eval "$ac_link") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest$ac_exeext && {
16413 test "$cross_compiling" = yes ||
16414 $as_test_x conftest$ac_exeext
16415 }; then
16416 ac_cv_lib_mail_maillock=yes
16417 else
16418 $as_echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 ac_cv_lib_mail_maillock=no
16424 rm -rf conftest.dSYM
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS
16429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16430 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16431 if test $ac_cv_lib_mail_maillock = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define HAVE_LIBMAIL 1
16434 _ACEOF
16436 LIBS="-lmail $LIBS"
16441 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16442 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16443 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16444 $as_echo_n "(cached) " >&6
16445 else
16446 ac_check_lib_save_LIBS=$LIBS
16447 LIBS="-llockfile $LIBS"
16448 cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h. */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16458 #ifdef __cplusplus
16459 extern "C"
16460 #endif
16461 char maillock ();
16463 main ()
16465 return maillock ();
16467 return 0;
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475 esac
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_link") 2>conftest.er1
16479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest$ac_exeext && {
16488 test "$cross_compiling" = yes ||
16489 $as_test_x conftest$ac_exeext
16490 }; then
16491 ac_cv_lib_lockfile_maillock=yes
16492 else
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_cv_lib_lockfile_maillock=no
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16502 LIBS=$ac_check_lib_save_LIBS
16504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16505 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16506 if test $ac_cv_lib_lockfile_maillock = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_LIBLOCKFILE 1
16509 _ACEOF
16511 LIBS="-llockfile $LIBS"
16515 # If we have the shared liblockfile, assume we must use it for mail
16516 # locking (e.g. Debian). If we couldn't link against liblockfile
16517 # (no liblockfile.a installed), ensure that we don't need to.
16518 if test "$ac_cv_lib_lockfile_maillock" = no; then
16519 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16520 set dummy liblockfile.so; ac_word=$2
16521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16522 $as_echo_n "checking for $ac_word... " >&6; }
16523 if test "${ac_cv_prog_liblockfile+set}" = set; then
16524 $as_echo_n "(cached) " >&6
16525 else
16526 if test -n "$liblockfile"; then
16527 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16528 else
16529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16530 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16531 for as_dir in $as_dummy
16533 IFS=$as_save_IFS
16534 test -z "$as_dir" && as_dir=.
16535 for ac_exec_ext in '' $ac_executable_extensions; do
16536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16537 ac_cv_prog_liblockfile="yes"
16538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16539 break 2
16541 done
16542 done
16543 IFS=$as_save_IFS
16545 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16548 liblockfile=$ac_cv_prog_liblockfile
16549 if test -n "$liblockfile"; then
16550 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16551 $as_echo "$liblockfile" >&6; }
16552 else
16553 { $as_echo "$as_me:$LINENO: result: no" >&5
16554 $as_echo "no" >&6; }
16558 if test $ac_cv_prog_liblockfile = yes; then
16559 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16560 This probably means that movemail could lose mail.
16561 There may be a \`development' package to install containing liblockfile." >&5
16562 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16563 This probably means that movemail could lose mail.
16564 There may be a \`development' package to install containing liblockfile." >&2;}
16565 { (exit 1); exit 1; }; }
16566 else :
16570 for ac_func in touchlock
16572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16573 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16574 $as_echo_n "checking for $ac_func... " >&6; }
16575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16576 $as_echo_n "(cached) " >&6
16577 else
16578 cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h. */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16586 #define $ac_func innocuous_$ac_func
16588 /* System header to define __stub macros and hopefully few prototypes,
16589 which can conflict with char $ac_func (); below.
16590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16591 <limits.h> exists even on freestanding compilers. */
16593 #ifdef __STDC__
16594 # include <limits.h>
16595 #else
16596 # include <assert.h>
16597 #endif
16599 #undef $ac_func
16601 /* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
16604 #ifdef __cplusplus
16605 extern "C"
16606 #endif
16607 char $ac_func ();
16608 /* The GNU C library defines this for functions which it implements
16609 to always fail with ENOSYS. Some functions are actually named
16610 something starting with __ and the normal name is an alias. */
16611 #if defined __stub_$ac_func || defined __stub___$ac_func
16612 choke me
16613 #endif
16616 main ()
16618 return $ac_func ();
16620 return 0;
16622 _ACEOF
16623 rm -f conftest.$ac_objext conftest$ac_exeext
16624 if { (ac_try="$ac_link"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628 esac
16629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16630 $as_echo "$ac_try_echo") >&5
16631 (eval "$ac_link") 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } && {
16638 test -z "$ac_c_werror_flag" ||
16639 test ! -s conftest.err
16640 } && test -s conftest$ac_exeext && {
16641 test "$cross_compiling" = yes ||
16642 $as_test_x conftest$ac_exeext
16643 }; then
16644 eval "$as_ac_var=yes"
16645 else
16646 $as_echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 eval "$as_ac_var=no"
16652 rm -rf conftest.dSYM
16653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16654 conftest$ac_exeext conftest.$ac_ext
16656 ac_res=`eval 'as_val=${'$as_ac_var'}
16657 $as_echo "$as_val"'`
16658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16659 $as_echo "$ac_res" >&6; }
16660 if test `eval 'as_val=${'$as_ac_var'}
16661 $as_echo "$as_val"'` = yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16664 _ACEOF
16667 done
16670 for ac_header in maillock.h
16672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16675 $as_echo_n "checking for $ac_header... " >&6; }
16676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677 $as_echo_n "(cached) " >&6
16679 ac_res=`eval 'as_val=${'$as_ac_Header'}
16680 $as_echo "$as_val"'`
16681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16682 $as_echo "$ac_res" >&6; }
16683 else
16684 # Is the header compilable?
16685 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16686 $as_echo_n "checking $ac_header usability... " >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h. */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 $ac_includes_default
16694 #include <$ac_header>
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (ac_try="$ac_compile"
16698 case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701 esac
16702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16703 $as_echo "$ac_try_echo") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.$ac_objext; then
16714 ac_header_compiler=yes
16715 else
16716 $as_echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_header_compiler=no
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16724 $as_echo "$ac_header_compiler" >&6; }
16726 # Is the header present?
16727 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16728 $as_echo_n "checking $ac_header presence... " >&6; }
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h. */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 #include <$ac_header>
16736 _ACEOF
16737 if { (ac_try="$ac_cpp conftest.$ac_ext"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741 esac
16742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16743 $as_echo "$ac_try_echo") >&5
16744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } >/dev/null && {
16751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 }; then
16754 ac_header_preproc=yes
16755 else
16756 $as_echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_header_preproc=no
16762 rm -f conftest.err conftest.$ac_ext
16763 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16764 $as_echo "$ac_header_preproc" >&6; }
16766 # So? What about this header?
16767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16768 yes:no: )
16769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16770 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16773 ac_header_preproc=yes
16775 no:yes:* )
16776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16777 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16779 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16781 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16783 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16785 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16787 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16790 esac
16791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16792 $as_echo_n "checking for $ac_header... " >&6; }
16793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16794 $as_echo_n "(cached) " >&6
16795 else
16796 eval "$as_ac_Header=\$ac_header_preproc"
16798 ac_res=`eval 'as_val=${'$as_ac_Header'}
16799 $as_echo "$as_val"'`
16800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16801 $as_echo "$ac_res" >&6; }
16804 if test `eval 'as_val=${'$as_ac_Header'}
16805 $as_echo "$as_val"'` = yes; then
16806 cat >>confdefs.h <<_ACEOF
16807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16808 _ACEOF
16812 done
16886 for ac_func in gethostname getdomainname dup2 \
16887 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16888 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16889 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16890 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16891 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16892 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16893 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16894 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16895 cfmakeraw cfsetspeed
16897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 $as_echo_n "checking for $ac_func... " >&6; }
16900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16901 $as_echo_n "(cached) " >&6
16902 else
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16918 #ifdef __STDC__
16919 # include <limits.h>
16920 #else
16921 # include <assert.h>
16922 #endif
16924 #undef $ac_func
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16929 #ifdef __cplusplus
16930 extern "C"
16931 #endif
16932 char $ac_func ();
16933 /* The GNU C library defines this for functions which it implements
16934 to always fail with ENOSYS. Some functions are actually named
16935 something starting with __ and the normal name is an alias. */
16936 #if defined __stub_$ac_func || defined __stub___$ac_func
16937 choke me
16938 #endif
16941 main ()
16943 return $ac_func ();
16945 return 0;
16947 _ACEOF
16948 rm -f conftest.$ac_objext conftest$ac_exeext
16949 if { (ac_try="$ac_link"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953 esac
16954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16955 $as_echo "$ac_try_echo") >&5
16956 (eval "$ac_link") 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && {
16963 test -z "$ac_c_werror_flag" ||
16964 test ! -s conftest.err
16965 } && test -s conftest$ac_exeext && {
16966 test "$cross_compiling" = yes ||
16967 $as_test_x conftest$ac_exeext
16968 }; then
16969 eval "$as_ac_var=yes"
16970 else
16971 $as_echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 eval "$as_ac_var=no"
16977 rm -rf conftest.dSYM
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16981 ac_res=`eval 'as_val=${'$as_ac_var'}
16982 $as_echo "$as_val"'`
16983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16984 $as_echo "$ac_res" >&6; }
16985 if test `eval 'as_val=${'$as_ac_var'}
16986 $as_echo "$as_val"'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 _ACEOF
16992 done
16996 for ac_header in sys/un.h
16998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17001 $as_echo_n "checking for $ac_header... " >&6; }
17002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 $as_echo_n "(cached) " >&6
17005 ac_res=`eval 'as_val=${'$as_ac_Header'}
17006 $as_echo "$as_val"'`
17007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17008 $as_echo "$ac_res" >&6; }
17009 else
17010 # Is the header compilable?
17011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17012 $as_echo_n "checking $ac_header usability... " >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h. */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <$ac_header>
17021 _ACEOF
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027 esac
17028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17029 $as_echo "$ac_try_echo") >&5
17030 (eval "$ac_compile") 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } && {
17037 test -z "$ac_c_werror_flag" ||
17038 test ! -s conftest.err
17039 } && test -s conftest.$ac_objext; then
17040 ac_header_compiler=yes
17041 else
17042 $as_echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_header_compiler=no
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050 $as_echo "$ac_header_compiler" >&6; }
17052 # Is the header present?
17053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054 $as_echo_n "checking $ac_header presence... " >&6; }
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <$ac_header>
17062 _ACEOF
17063 if { (ac_try="$ac_cpp conftest.$ac_ext"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067 esac
17068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17069 $as_echo "$ac_try_echo") >&5
17070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } >/dev/null && {
17077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 }; then
17080 ac_header_preproc=yes
17081 else
17082 $as_echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ac_header_preproc=no
17088 rm -f conftest.err conftest.$ac_ext
17089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 $as_echo "$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17094 yes:no: )
17095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc=yes
17101 no:yes:* )
17102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17116 esac
17117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17118 $as_echo_n "checking for $ac_header... " >&6; }
17119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17120 $as_echo_n "(cached) " >&6
17121 else
17122 eval "$as_ac_Header=\$ac_header_preproc"
17124 ac_res=`eval 'as_val=${'$as_ac_Header'}
17125 $as_echo "$as_val"'`
17126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17127 $as_echo "$ac_res" >&6; }
17130 if test `eval 'as_val=${'$as_ac_Header'}
17131 $as_echo "$as_val"'` = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17134 _ACEOF
17138 done
17145 for ac_header in $ac_header_list
17147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17150 $as_echo_n "checking for $ac_header... " >&6; }
17151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17152 $as_echo_n "(cached) " >&6
17154 ac_res=`eval 'as_val=${'$as_ac_Header'}
17155 $as_echo "$as_val"'`
17156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17157 $as_echo "$ac_res" >&6; }
17158 else
17159 # Is the header compilable?
17160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17161 $as_echo_n "checking $ac_header usability... " >&6; }
17162 cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h. */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 $ac_includes_default
17169 #include <$ac_header>
17170 _ACEOF
17171 rm -f conftest.$ac_objext
17172 if { (ac_try="$ac_compile"
17173 case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176 esac
17177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17178 $as_echo "$ac_try_echo") >&5
17179 (eval "$ac_compile") 2>conftest.er1
17180 ac_status=$?
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
17184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && {
17186 test -z "$ac_c_werror_flag" ||
17187 test ! -s conftest.err
17188 } && test -s conftest.$ac_objext; then
17189 ac_header_compiler=yes
17190 else
17191 $as_echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 ac_header_compiler=no
17197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17199 $as_echo "$ac_header_compiler" >&6; }
17201 # Is the header present?
17202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17203 $as_echo_n "checking $ac_header presence... " >&6; }
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 #include <$ac_header>
17211 _ACEOF
17212 if { (ac_try="$ac_cpp conftest.$ac_ext"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216 esac
17217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17218 $as_echo "$ac_try_echo") >&5
17219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } >/dev/null && {
17226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17227 test ! -s conftest.err
17228 }; then
17229 ac_header_preproc=yes
17230 else
17231 $as_echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17234 ac_header_preproc=no
17237 rm -f conftest.err conftest.$ac_ext
17238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17239 $as_echo "$ac_header_preproc" >&6; }
17241 # So? What about this header?
17242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17243 yes:no: )
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17248 ac_header_preproc=yes
17250 no:yes:* )
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17265 esac
17266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17267 $as_echo_n "checking for $ac_header... " >&6; }
17268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17269 $as_echo_n "(cached) " >&6
17270 else
17271 eval "$as_ac_Header=\$ac_header_preproc"
17273 ac_res=`eval 'as_val=${'$as_ac_Header'}
17274 $as_echo "$as_val"'`
17275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17276 $as_echo "$ac_res" >&6; }
17279 if test `eval 'as_val=${'$as_ac_Header'}
17280 $as_echo "$as_val"'` = yes; then
17281 cat >>confdefs.h <<_ACEOF
17282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17283 _ACEOF
17287 done
17297 for ac_func in $ac_func_list
17299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 $as_echo_n "checking for $ac_func... " >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303 $as_echo_n "(cached) " >&6
17304 else
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17313 #define $ac_func innocuous_$ac_func
17315 /* System header to define __stub macros and hopefully few prototypes,
17316 which can conflict with char $ac_func (); below.
17317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318 <limits.h> exists even on freestanding compilers. */
17320 #ifdef __STDC__
17321 # include <limits.h>
17322 #else
17323 # include <assert.h>
17324 #endif
17326 #undef $ac_func
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char $ac_func ();
17335 /* The GNU C library defines this for functions which it implements
17336 to always fail with ENOSYS. Some functions are actually named
17337 something starting with __ and the normal name is an alias. */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 choke me
17340 #endif
17343 main ()
17345 return $ac_func ();
17347 return 0;
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17355 esac
17356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17357 $as_echo "$ac_try_echo") >&5
17358 (eval "$ac_link") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest$ac_exeext && {
17368 test "$cross_compiling" = yes ||
17369 $as_test_x conftest$ac_exeext
17370 }; then
17371 eval "$as_ac_var=yes"
17372 else
17373 $as_echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 eval "$as_ac_var=no"
17379 rm -rf conftest.dSYM
17380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17381 conftest$ac_exeext conftest.$ac_ext
17383 ac_res=`eval 'as_val=${'$as_ac_var'}
17384 $as_echo "$as_val"'`
17385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17386 $as_echo "$ac_res" >&6; }
17387 if test `eval 'as_val=${'$as_ac_var'}
17388 $as_echo "$as_val"'` = yes; then
17389 cat >>confdefs.h <<_ACEOF
17390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17391 _ACEOF
17394 done
17412 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17413 $as_echo_n "checking for working mktime... " >&6; }
17414 if test "${ac_cv_func_working_mktime+set}" = set; then
17415 $as_echo_n "(cached) " >&6
17416 else
17417 if test "$cross_compiling" = yes; then
17418 ac_cv_func_working_mktime=no
17419 else
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Test program from Paul Eggert and Tony Leneis. */
17427 #ifdef TIME_WITH_SYS_TIME
17428 # include <sys/time.h>
17429 # include <time.h>
17430 #else
17431 # ifdef HAVE_SYS_TIME_H
17432 # include <sys/time.h>
17433 # else
17434 # include <time.h>
17435 # endif
17436 #endif
17438 #include <limits.h>
17439 #include <stdlib.h>
17441 #ifdef HAVE_UNISTD_H
17442 # include <unistd.h>
17443 #endif
17445 #ifndef HAVE_ALARM
17446 # define alarm(X) /* empty */
17447 #endif
17449 /* Work around redefinition to rpl_putenv by other config tests. */
17450 #undef putenv
17452 static time_t time_t_max;
17453 static time_t time_t_min;
17455 /* Values we'll use to set the TZ environment variable. */
17456 static char *tz_strings[] = {
17457 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17458 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17460 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17462 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17463 Based on a problem report from Andreas Jaeger. */
17464 static int
17465 spring_forward_gap ()
17467 /* glibc (up to about 1998-10-07) failed this test. */
17468 struct tm tm;
17470 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17471 instead of "TZ=America/Vancouver" in order to detect the bug even
17472 on systems that don't support the Olson extension, or don't have the
17473 full zoneinfo tables installed. */
17474 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17476 tm.tm_year = 98;
17477 tm.tm_mon = 3;
17478 tm.tm_mday = 5;
17479 tm.tm_hour = 2;
17480 tm.tm_min = 0;
17481 tm.tm_sec = 0;
17482 tm.tm_isdst = -1;
17483 return mktime (&tm) != (time_t) -1;
17486 static int
17487 mktime_test1 (now)
17488 time_t now;
17490 struct tm *lt;
17491 return ! (lt = localtime (&now)) || mktime (lt) == now;
17494 static int
17495 mktime_test (now)
17496 time_t now;
17498 return (mktime_test1 (now)
17499 && mktime_test1 ((time_t) (time_t_max - now))
17500 && mktime_test1 ((time_t) (time_t_min + now)));
17503 static int
17504 irix_6_4_bug ()
17506 /* Based on code from Ariel Faigon. */
17507 struct tm tm;
17508 tm.tm_year = 96;
17509 tm.tm_mon = 3;
17510 tm.tm_mday = 0;
17511 tm.tm_hour = 0;
17512 tm.tm_min = 0;
17513 tm.tm_sec = 0;
17514 tm.tm_isdst = -1;
17515 mktime (&tm);
17516 return tm.tm_mon == 2 && tm.tm_mday == 31;
17519 static int
17520 bigtime_test (j)
17521 int j;
17523 struct tm tm;
17524 time_t now;
17525 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17526 now = mktime (&tm);
17527 if (now != (time_t) -1)
17529 struct tm *lt = localtime (&now);
17530 if (! (lt
17531 && lt->tm_year == tm.tm_year
17532 && lt->tm_mon == tm.tm_mon
17533 && lt->tm_mday == tm.tm_mday
17534 && lt->tm_hour == tm.tm_hour
17535 && lt->tm_min == tm.tm_min
17536 && lt->tm_sec == tm.tm_sec
17537 && lt->tm_yday == tm.tm_yday
17538 && lt->tm_wday == tm.tm_wday
17539 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17540 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17541 return 0;
17543 return 1;
17546 static int
17547 year_2050_test ()
17549 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17550 ignoring leap seconds. */
17551 unsigned long int answer = 2527315200UL;
17553 struct tm tm;
17554 time_t t;
17555 tm.tm_year = 2050 - 1900;
17556 tm.tm_mon = 2 - 1;
17557 tm.tm_mday = 1;
17558 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17559 tm.tm_isdst = -1;
17561 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17562 instead of "TZ=America/Vancouver" in order to detect the bug even
17563 on systems that don't support the Olson extension, or don't have the
17564 full zoneinfo tables installed. */
17565 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17567 t = mktime (&tm);
17569 /* Check that the result is either a failure, or close enough
17570 to the correct answer that we can assume the discrepancy is
17571 due to leap seconds. */
17572 return (t == (time_t) -1
17573 || (0 < t && answer - 120 <= t && t <= answer + 120));
17577 main ()
17579 time_t t, delta;
17580 int i, j;
17582 /* This test makes some buggy mktime implementations loop.
17583 Give up after 60 seconds; a mktime slower than that
17584 isn't worth using anyway. */
17585 alarm (60);
17587 for (;;)
17589 t = (time_t_max << 1) + 1;
17590 if (t <= time_t_max)
17591 break;
17592 time_t_max = t;
17594 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17596 delta = time_t_max / 997; /* a suitable prime number */
17597 for (i = 0; i < N_STRINGS; i++)
17599 if (tz_strings[i])
17600 putenv (tz_strings[i]);
17602 for (t = 0; t <= time_t_max - delta; t += delta)
17603 if (! mktime_test (t))
17604 return 1;
17605 if (! (mktime_test ((time_t) 1)
17606 && mktime_test ((time_t) (60 * 60))
17607 && mktime_test ((time_t) (60 * 60 * 24))))
17608 return 1;
17610 for (j = 1; ; j <<= 1)
17611 if (! bigtime_test (j))
17612 return 1;
17613 else if (INT_MAX / 2 < j)
17614 break;
17615 if (! bigtime_test (INT_MAX))
17616 return 1;
17618 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17620 _ACEOF
17621 rm -f conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626 esac
17627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17628 $as_echo "$ac_try_echo") >&5
17629 (eval "$ac_link") 2>&5
17630 ac_status=$?
17631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17633 { (case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636 esac
17637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17638 $as_echo "$ac_try_echo") >&5
17639 (eval "$ac_try") 2>&5
17640 ac_status=$?
17641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 ac_cv_func_working_mktime=yes
17644 else
17645 $as_echo "$as_me: program exited with status $ac_status" >&5
17646 $as_echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ( exit $ac_status )
17650 ac_cv_func_working_mktime=no
17652 rm -rf conftest.dSYM
17653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17658 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17659 $as_echo "$ac_cv_func_working_mktime" >&6; }
17660 if test $ac_cv_func_working_mktime = no; then
17661 case " $LIBOBJS " in
17662 *" mktime.$ac_objext "* ) ;;
17663 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17665 esac
17669 if test "$ac_cv_func_working_mktime" = no; then
17671 cat >>confdefs.h <<\_ACEOF
17672 #define BROKEN_MKTIME 1
17673 _ACEOF
17677 ac_have_func=no # yes means we've found a way to get the load average.
17679 # Make sure getloadavg.c is where it belongs, at configure-time.
17680 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17681 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17682 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17683 { (exit 1); exit 1; }; }
17685 ac_save_LIBS=$LIBS
17687 # Check for getloadavg, but be sure not to touch the cache variable.
17688 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17689 $as_echo_n "checking for getloadavg... " >&6; }
17690 if test "${ac_cv_func_getloadavg+set}" = set; then
17691 $as_echo_n "(cached) " >&6
17692 else
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h. */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17699 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17701 #define getloadavg innocuous_getloadavg
17703 /* System header to define __stub macros and hopefully few prototypes,
17704 which can conflict with char getloadavg (); below.
17705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706 <limits.h> exists even on freestanding compilers. */
17708 #ifdef __STDC__
17709 # include <limits.h>
17710 #else
17711 # include <assert.h>
17712 #endif
17714 #undef getloadavg
17716 /* Override any GCC internal prototype to avoid an error.
17717 Use char because int might match the return type of a GCC
17718 builtin and then its argument prototype would still apply. */
17719 #ifdef __cplusplus
17720 extern "C"
17721 #endif
17722 char getloadavg ();
17723 /* The GNU C library defines this for functions which it implements
17724 to always fail with ENOSYS. Some functions are actually named
17725 something starting with __ and the normal name is an alias. */
17726 #if defined __stub_getloadavg || defined __stub___getloadavg
17727 choke me
17728 #endif
17731 main ()
17733 return getloadavg ();
17735 return 0;
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743 esac
17744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746 (eval "$ac_link") 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest$ac_exeext && {
17756 test "$cross_compiling" = yes ||
17757 $as_test_x conftest$ac_exeext
17758 }; then
17759 ac_cv_func_getloadavg=yes
17760 else
17761 $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_cv_func_getloadavg=no
17767 rm -rf conftest.dSYM
17768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17769 conftest$ac_exeext conftest.$ac_ext
17771 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17772 $as_echo "$ac_cv_func_getloadavg" >&6; }
17773 if test $ac_cv_func_getloadavg = yes; then
17774 exit 0
17775 else
17776 exit 1
17778 ) && ac_have_func=yes
17780 # On HPUX9, an unprivileged user can get load averages through this function.
17782 for ac_func in pstat_getdynamic
17784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17786 $as_echo_n "checking for $ac_func... " >&6; }
17787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17788 $as_echo_n "(cached) " >&6
17789 else
17790 cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798 #define $ac_func innocuous_$ac_func
17800 /* System header to define __stub macros and hopefully few prototypes,
17801 which can conflict with char $ac_func (); below.
17802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803 <limits.h> exists even on freestanding compilers. */
17805 #ifdef __STDC__
17806 # include <limits.h>
17807 #else
17808 # include <assert.h>
17809 #endif
17811 #undef $ac_func
17813 /* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
17816 #ifdef __cplusplus
17817 extern "C"
17818 #endif
17819 char $ac_func ();
17820 /* The GNU C library defines this for functions which it implements
17821 to always fail with ENOSYS. Some functions are actually named
17822 something starting with __ and the normal name is an alias. */
17823 #if defined __stub_$ac_func || defined __stub___$ac_func
17824 choke me
17825 #endif
17828 main ()
17830 return $ac_func ();
17832 return 0;
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840 esac
17841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842 $as_echo "$ac_try_echo") >&5
17843 (eval "$ac_link") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest$ac_exeext && {
17853 test "$cross_compiling" = yes ||
17854 $as_test_x conftest$ac_exeext
17855 }; then
17856 eval "$as_ac_var=yes"
17857 else
17858 $as_echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 eval "$as_ac_var=no"
17864 rm -rf conftest.dSYM
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17868 ac_res=`eval 'as_val=${'$as_ac_var'}
17869 $as_echo "$as_val"'`
17870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17871 $as_echo "$ac_res" >&6; }
17872 if test `eval 'as_val=${'$as_ac_var'}
17873 $as_echo "$as_val"'` = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17876 _ACEOF
17879 done
17882 # Solaris has libkstat which does not require root.
17884 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17885 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17886 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17887 $as_echo_n "(cached) " >&6
17888 else
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-lkstat $LIBS"
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char kstat_open ();
17906 main ()
17908 return kstat_open ();
17910 return 0;
17912 _ACEOF
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918 esac
17919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17920 $as_echo "$ac_try_echo") >&5
17921 (eval "$ac_link") 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } && {
17928 test -z "$ac_c_werror_flag" ||
17929 test ! -s conftest.err
17930 } && test -s conftest$ac_exeext && {
17931 test "$cross_compiling" = yes ||
17932 $as_test_x conftest$ac_exeext
17933 }; then
17934 ac_cv_lib_kstat_kstat_open=yes
17935 else
17936 $as_echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 ac_cv_lib_kstat_kstat_open=no
17942 rm -rf conftest.dSYM
17943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17944 conftest$ac_exeext conftest.$ac_ext
17945 LIBS=$ac_check_lib_save_LIBS
17947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17948 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17949 if test $ac_cv_lib_kstat_kstat_open = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define HAVE_LIBKSTAT 1
17952 _ACEOF
17954 LIBS="-lkstat $LIBS"
17958 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17960 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17961 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17962 # to get the right answer into the cache.
17963 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17964 if test $ac_have_func = no; then
17965 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17966 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17967 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17968 $as_echo_n "(cached) " >&6
17969 else
17970 ac_check_lib_save_LIBS=$LIBS
17971 LIBS="-lelf $LIBS"
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h. */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17979 /* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 char elf_begin ();
17987 main ()
17989 return elf_begin ();
17991 return 0;
17993 _ACEOF
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (ac_try="$ac_link"
17996 case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999 esac
18000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18001 $as_echo "$ac_try_echo") >&5
18002 (eval "$ac_link") 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest$ac_exeext && {
18012 test "$cross_compiling" = yes ||
18013 $as_test_x conftest$ac_exeext
18014 }; then
18015 ac_cv_lib_elf_elf_begin=yes
18016 else
18017 $as_echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 ac_cv_lib_elf_elf_begin=no
18023 rm -rf conftest.dSYM
18024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18025 conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18028 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18029 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18030 if test $ac_cv_lib_elf_elf_begin = yes; then
18031 LIBS="-lelf $LIBS"
18035 if test $ac_have_func = no; then
18036 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18037 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18038 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18039 $as_echo_n "(cached) " >&6
18040 else
18041 ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-lkvm $LIBS"
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18050 /* Override any GCC internal prototype to avoid an error.
18051 Use char because int might match the return type of a GCC
18052 builtin and then its argument prototype would still apply. */
18053 #ifdef __cplusplus
18054 extern "C"
18055 #endif
18056 char kvm_open ();
18058 main ()
18060 return kvm_open ();
18062 return 0;
18064 _ACEOF
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18070 esac
18071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18072 $as_echo "$ac_try_echo") >&5
18073 (eval "$ac_link") 2>conftest.er1
18074 ac_status=$?
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
18078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } && {
18080 test -z "$ac_c_werror_flag" ||
18081 test ! -s conftest.err
18082 } && test -s conftest$ac_exeext && {
18083 test "$cross_compiling" = yes ||
18084 $as_test_x conftest$ac_exeext
18085 }; then
18086 ac_cv_lib_kvm_kvm_open=yes
18087 else
18088 $as_echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_cv_lib_kvm_kvm_open=no
18094 rm -rf conftest.dSYM
18095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18096 conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_lib_save_LIBS
18099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18100 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18101 if test $ac_cv_lib_kvm_kvm_open = yes; then
18102 LIBS="-lkvm $LIBS"
18105 # Check for the 4.4BSD definition of getloadavg.
18106 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18107 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18108 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18109 $as_echo_n "(cached) " >&6
18110 else
18111 ac_check_lib_save_LIBS=$LIBS
18112 LIBS="-lutil $LIBS"
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18120 /* Override any GCC internal prototype to avoid an error.
18121 Use char because int might match the return type of a GCC
18122 builtin and then its argument prototype would still apply. */
18123 #ifdef __cplusplus
18124 extern "C"
18125 #endif
18126 char getloadavg ();
18128 main ()
18130 return getloadavg ();
18132 return 0;
18134 _ACEOF
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18140 esac
18141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18142 $as_echo "$ac_try_echo") >&5
18143 (eval "$ac_link") 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext && {
18153 test "$cross_compiling" = yes ||
18154 $as_test_x conftest$ac_exeext
18155 }; then
18156 ac_cv_lib_util_getloadavg=yes
18157 else
18158 $as_echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_cv_lib_util_getloadavg=no
18164 rm -rf conftest.dSYM
18165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18166 conftest$ac_exeext conftest.$ac_ext
18167 LIBS=$ac_check_lib_save_LIBS
18169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18170 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18171 if test $ac_cv_lib_util_getloadavg = yes; then
18172 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18177 if test $ac_have_func = no; then
18178 # There is a commonly available library for RS/6000 AIX.
18179 # Since it is not a standard part of AIX, it might be installed locally.
18180 ac_getloadavg_LIBS=$LIBS
18181 LIBS="-L/usr/local/lib $LIBS"
18182 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18183 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18184 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18185 $as_echo_n "(cached) " >&6
18186 else
18187 ac_check_lib_save_LIBS=$LIBS
18188 LIBS="-lgetloadavg $LIBS"
18189 cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h. */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18199 #ifdef __cplusplus
18200 extern "C"
18201 #endif
18202 char getloadavg ();
18204 main ()
18206 return getloadavg ();
18208 return 0;
18210 _ACEOF
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
18213 case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216 esac
18217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18218 $as_echo "$ac_try_echo") >&5
18219 (eval "$ac_link") 2>conftest.er1
18220 ac_status=$?
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
18224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } && {
18226 test -z "$ac_c_werror_flag" ||
18227 test ! -s conftest.err
18228 } && test -s conftest$ac_exeext && {
18229 test "$cross_compiling" = yes ||
18230 $as_test_x conftest$ac_exeext
18231 }; then
18232 ac_cv_lib_getloadavg_getloadavg=yes
18233 else
18234 $as_echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 ac_cv_lib_getloadavg_getloadavg=no
18240 rm -rf conftest.dSYM
18241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18242 conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18246 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18247 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18248 LIBS="-lgetloadavg $LIBS"
18249 else
18250 LIBS=$ac_getloadavg_LIBS
18255 # Make sure it is really in the library, if we think we found it,
18256 # otherwise set up the replacement function.
18258 for ac_func in getloadavg
18260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18262 $as_echo_n "checking for $ac_func... " >&6; }
18263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 $as_echo_n "(cached) " >&6
18265 else
18266 cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h. */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define $ac_func innocuous_$ac_func
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18281 #ifdef __STDC__
18282 # include <limits.h>
18283 #else
18284 # include <assert.h>
18285 #endif
18287 #undef $ac_func
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18292 #ifdef __cplusplus
18293 extern "C"
18294 #endif
18295 char $ac_func ();
18296 /* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299 #if defined __stub_$ac_func || defined __stub___$ac_func
18300 choke me
18301 #endif
18304 main ()
18306 return $ac_func ();
18308 return 0;
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316 esac
18317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18318 $as_echo "$ac_try_echo") >&5
18319 (eval "$ac_link") 2>conftest.er1
18320 ac_status=$?
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } && {
18326 test -z "$ac_c_werror_flag" ||
18327 test ! -s conftest.err
18328 } && test -s conftest$ac_exeext && {
18329 test "$cross_compiling" = yes ||
18330 $as_test_x conftest$ac_exeext
18331 }; then
18332 eval "$as_ac_var=yes"
18333 else
18334 $as_echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 eval "$as_ac_var=no"
18340 rm -rf conftest.dSYM
18341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18342 conftest$ac_exeext conftest.$ac_ext
18344 ac_res=`eval 'as_val=${'$as_ac_var'}
18345 $as_echo "$as_val"'`
18346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18347 $as_echo "$ac_res" >&6; }
18348 if test `eval 'as_val=${'$as_ac_var'}
18349 $as_echo "$as_val"'` = yes; then
18350 cat >>confdefs.h <<_ACEOF
18351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18352 _ACEOF
18354 else
18355 case " $LIBOBJS " in
18356 *" getloadavg.$ac_objext "* ) ;;
18357 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18359 esac
18362 cat >>confdefs.h <<\_ACEOF
18363 #define C_GETLOADAVG 1
18364 _ACEOF
18366 # Figure out what our getloadavg.c needs.
18367 ac_have_func=no
18368 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18369 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18370 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18371 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18372 $as_echo_n "(cached) " >&6
18374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18375 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18376 else
18377 # Is the header compilable?
18378 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18379 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 $ac_includes_default
18387 #include <sys/dg_sys_info.h>
18388 _ACEOF
18389 rm -f conftest.$ac_objext
18390 if { (ac_try="$ac_compile"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18394 esac
18395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18396 $as_echo "$ac_try_echo") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18398 ac_status=$?
18399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
18402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } && {
18404 test -z "$ac_c_werror_flag" ||
18405 test ! -s conftest.err
18406 } && test -s conftest.$ac_objext; then
18407 ac_header_compiler=yes
18408 else
18409 $as_echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_header_compiler=no
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 $as_echo "$ac_header_compiler" >&6; }
18419 # Is the header present?
18420 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18421 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h. */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <sys/dg_sys_info.h>
18429 _ACEOF
18430 if { (ac_try="$ac_cpp conftest.$ac_ext"
18431 case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434 esac
18435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18436 $as_echo "$ac_try_echo") >&5
18437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
18442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } >/dev/null && {
18444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18446 }; then
18447 ac_header_preproc=yes
18448 else
18449 $as_echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_header_preproc=no
18455 rm -f conftest.err conftest.$ac_ext
18456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 $as_echo "$ac_header_preproc" >&6; }
18459 # So? What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18461 yes:no: )
18462 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18463 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18465 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18466 ac_header_preproc=yes
18468 no:yes:* )
18469 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18470 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18471 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18472 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18473 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18474 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18475 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18476 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18477 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18478 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18479 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18480 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18483 esac
18484 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18485 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18486 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18487 $as_echo_n "(cached) " >&6
18488 else
18489 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18491 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18492 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18495 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18496 ac_have_func=yes
18498 cat >>confdefs.h <<\_ACEOF
18499 #define DGUX 1
18500 _ACEOF
18503 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18504 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18505 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18506 $as_echo_n "(cached) " >&6
18507 else
18508 ac_check_lib_save_LIBS=$LIBS
18509 LIBS="-ldgc $LIBS"
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18520 #ifdef __cplusplus
18521 extern "C"
18522 #endif
18523 char dg_sys_info ();
18525 main ()
18527 return dg_sys_info ();
18529 return 0;
18531 _ACEOF
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (ac_try="$ac_link"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18537 esac
18538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18539 $as_echo "$ac_try_echo") >&5
18540 (eval "$ac_link") 2>conftest.er1
18541 ac_status=$?
18542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -f conftest.er1
18544 cat conftest.err >&5
18545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } && {
18547 test -z "$ac_c_werror_flag" ||
18548 test ! -s conftest.err
18549 } && test -s conftest$ac_exeext && {
18550 test "$cross_compiling" = yes ||
18551 $as_test_x conftest$ac_exeext
18552 }; then
18553 ac_cv_lib_dgc_dg_sys_info=yes
18554 else
18555 $as_echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_cv_lib_dgc_dg_sys_info=no
18561 rm -rf conftest.dSYM
18562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18563 conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18567 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18568 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18569 cat >>confdefs.h <<_ACEOF
18570 #define HAVE_LIBDGC 1
18571 _ACEOF
18573 LIBS="-ldgc $LIBS"
18581 if test "${ac_cv_header_locale_h+set}" = set; then
18582 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18583 $as_echo_n "checking for locale.h... " >&6; }
18584 if test "${ac_cv_header_locale_h+set}" = set; then
18585 $as_echo_n "(cached) " >&6
18587 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18588 $as_echo "$ac_cv_header_locale_h" >&6; }
18589 else
18590 # Is the header compilable?
18591 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18592 $as_echo_n "checking locale.h usability... " >&6; }
18593 cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h. */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 $ac_includes_default
18600 #include <locale.h>
18601 _ACEOF
18602 rm -f conftest.$ac_objext
18603 if { (ac_try="$ac_compile"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607 esac
18608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18609 $as_echo "$ac_try_echo") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.$ac_objext; then
18620 ac_header_compiler=yes
18621 else
18622 $as_echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18625 ac_header_compiler=no
18628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18630 $as_echo "$ac_header_compiler" >&6; }
18632 # Is the header present?
18633 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18634 $as_echo_n "checking locale.h presence... " >&6; }
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 #include <locale.h>
18642 _ACEOF
18643 if { (ac_try="$ac_cpp conftest.$ac_ext"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647 esac
18648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18649 $as_echo "$ac_try_echo") >&5
18650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } >/dev/null && {
18657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 }; then
18660 ac_header_preproc=yes
18661 else
18662 $as_echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_header_preproc=no
18668 rm -f conftest.err conftest.$ac_ext
18669 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18670 $as_echo "$ac_header_preproc" >&6; }
18672 # So? What about this header?
18673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18674 yes:no: )
18675 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18676 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18677 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18678 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18679 ac_header_preproc=yes
18681 no:yes:* )
18682 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18683 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18684 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18685 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18686 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18687 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18688 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18689 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18690 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18691 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18692 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18693 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18696 esac
18697 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18698 $as_echo_n "checking for locale.h... " >&6; }
18699 if test "${ac_cv_header_locale_h+set}" = set; then
18700 $as_echo_n "(cached) " >&6
18701 else
18702 ac_cv_header_locale_h=$ac_header_preproc
18704 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18705 $as_echo "$ac_cv_header_locale_h" >&6; }
18711 for ac_func in setlocale
18713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18715 $as_echo_n "checking for $ac_func... " >&6; }
18716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18717 $as_echo_n "(cached) " >&6
18718 else
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727 #define $ac_func innocuous_$ac_func
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char $ac_func (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18734 #ifdef __STDC__
18735 # include <limits.h>
18736 #else
18737 # include <assert.h>
18738 #endif
18740 #undef $ac_func
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18745 #ifdef __cplusplus
18746 extern "C"
18747 #endif
18748 char $ac_func ();
18749 /* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752 #if defined __stub_$ac_func || defined __stub___$ac_func
18753 choke me
18754 #endif
18757 main ()
18759 return $ac_func ();
18761 return 0;
18763 _ACEOF
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (ac_try="$ac_link"
18766 case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769 esac
18770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18771 $as_echo "$ac_try_echo") >&5
18772 (eval "$ac_link") 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext && {
18782 test "$cross_compiling" = yes ||
18783 $as_test_x conftest$ac_exeext
18784 }; then
18785 eval "$as_ac_var=yes"
18786 else
18787 $as_echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 eval "$as_ac_var=no"
18793 rm -rf conftest.dSYM
18794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18795 conftest$ac_exeext conftest.$ac_ext
18797 ac_res=`eval 'as_val=${'$as_ac_var'}
18798 $as_echo "$as_val"'`
18799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18800 $as_echo "$ac_res" >&6; }
18801 if test `eval 'as_val=${'$as_ac_var'}
18802 $as_echo "$as_val"'` = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18805 _ACEOF
18808 done
18811 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18812 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18813 # Irix 4.0.5F has the header but not the library.
18814 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18815 ac_have_func=yes
18817 cat >>confdefs.h <<\_ACEOF
18818 #define SVR4 1
18819 _ACEOF
18823 if test $ac_have_func = no; then
18824 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18825 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18826 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18827 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18828 $as_echo_n "(cached) " >&6
18830 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18831 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18832 else
18833 # Is the header compilable?
18834 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18835 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h. */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18842 $ac_includes_default
18843 #include <inq_stats/cpustats.h>
18844 _ACEOF
18845 rm -f conftest.$ac_objext
18846 if { (ac_try="$ac_compile"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850 esac
18851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18852 $as_echo "$ac_try_echo") >&5
18853 (eval "$ac_compile") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest.$ac_objext; then
18863 ac_header_compiler=yes
18864 else
18865 $as_echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ac_header_compiler=no
18871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18873 $as_echo "$ac_header_compiler" >&6; }
18875 # Is the header present?
18876 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18877 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h. */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 #include <inq_stats/cpustats.h>
18885 _ACEOF
18886 if { (ac_try="$ac_cpp conftest.$ac_ext"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18890 esac
18891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18892 $as_echo "$ac_try_echo") >&5
18893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18894 ac_status=$?
18895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
18898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } >/dev/null && {
18900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 }; then
18903 ac_header_preproc=yes
18904 else
18905 $as_echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_header_preproc=no
18911 rm -f conftest.err conftest.$ac_ext
18912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18913 $as_echo "$ac_header_preproc" >&6; }
18915 # So? What about this header?
18916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18917 yes:no: )
18918 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18919 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18922 ac_header_preproc=yes
18924 no:yes:* )
18925 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18926 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18927 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18928 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18929 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18930 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18931 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18932 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18933 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18934 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18935 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18936 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18939 esac
18940 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18941 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18942 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18943 $as_echo_n "(cached) " >&6
18944 else
18945 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18948 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18951 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18952 ac_have_func=yes
18954 cat >>confdefs.h <<\_ACEOF
18955 #define UMAX 1
18956 _ACEOF
18959 cat >>confdefs.h <<\_ACEOF
18960 #define UMAX4_3 1
18961 _ACEOF
18968 if test $ac_have_func = no; then
18969 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18970 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18971 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18972 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18973 $as_echo_n "(cached) " >&6
18975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18976 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18977 else
18978 # Is the header compilable?
18979 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18980 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18981 cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h. */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 $ac_includes_default
18988 #include <sys/cpustats.h>
18989 _ACEOF
18990 rm -f conftest.$ac_objext
18991 if { (ac_try="$ac_compile"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995 esac
18996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18997 $as_echo "$ac_try_echo") >&5
18998 (eval "$ac_compile") 2>conftest.er1
18999 ac_status=$?
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
19003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } && {
19005 test -z "$ac_c_werror_flag" ||
19006 test ! -s conftest.err
19007 } && test -s conftest.$ac_objext; then
19008 ac_header_compiler=yes
19009 else
19010 $as_echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 ac_header_compiler=no
19016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19018 $as_echo "$ac_header_compiler" >&6; }
19020 # Is the header present?
19021 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19022 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #include <sys/cpustats.h>
19030 _ACEOF
19031 if { (ac_try="$ac_cpp conftest.$ac_ext"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035 esac
19036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19037 $as_echo "$ac_try_echo") >&5
19038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } >/dev/null && {
19045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 }; then
19048 ac_header_preproc=yes
19049 else
19050 $as_echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_header_preproc=no
19056 rm -f conftest.err conftest.$ac_ext
19057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19058 $as_echo "$ac_header_preproc" >&6; }
19060 # So? What about this header?
19061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19062 yes:no: )
19063 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19064 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19066 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19067 ac_header_preproc=yes
19069 no:yes:* )
19070 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19071 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19072 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19073 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19074 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19075 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19076 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19077 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19078 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19079 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19080 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19081 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19084 esac
19085 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19086 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19087 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19088 $as_echo_n "(cached) " >&6
19089 else
19090 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19093 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19096 if test $ac_cv_header_sys_cpustats_h = yes; then
19097 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19098 #define UMAX 1
19099 _ACEOF
19106 if test $ac_have_func = no; then
19108 for ac_header in mach/mach.h
19110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19113 $as_echo_n "checking for $ac_header... " >&6; }
19114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19115 $as_echo_n "(cached) " >&6
19117 ac_res=`eval 'as_val=${'$as_ac_Header'}
19118 $as_echo "$as_val"'`
19119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19120 $as_echo "$ac_res" >&6; }
19121 else
19122 # Is the header compilable?
19123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19124 $as_echo_n "checking $ac_header usability... " >&6; }
19125 cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h. */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 $ac_includes_default
19132 #include <$ac_header>
19133 _ACEOF
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19139 esac
19140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19141 $as_echo "$ac_try_echo") >&5
19142 (eval "$ac_compile") 2>conftest.er1
19143 ac_status=$?
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
19147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } && {
19149 test -z "$ac_c_werror_flag" ||
19150 test ! -s conftest.err
19151 } && test -s conftest.$ac_objext; then
19152 ac_header_compiler=yes
19153 else
19154 $as_echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19157 ac_header_compiler=no
19160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19162 $as_echo "$ac_header_compiler" >&6; }
19164 # Is the header present?
19165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19166 $as_echo_n "checking $ac_header presence... " >&6; }
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 #include <$ac_header>
19174 _ACEOF
19175 if { (ac_try="$ac_cpp conftest.$ac_ext"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19181 $as_echo "$ac_try_echo") >&5
19182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19183 ac_status=$?
19184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
19187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } >/dev/null && {
19189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19190 test ! -s conftest.err
19191 }; then
19192 ac_header_preproc=yes
19193 else
19194 $as_echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_header_preproc=no
19200 rm -f conftest.err conftest.$ac_ext
19201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19202 $as_echo "$ac_header_preproc" >&6; }
19204 # So? What about this header?
19205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19206 yes:no: )
19207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19211 ac_header_preproc=yes
19213 no:yes:* )
19214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19228 esac
19229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19230 $as_echo_n "checking for $ac_header... " >&6; }
19231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19232 $as_echo_n "(cached) " >&6
19233 else
19234 eval "$as_ac_Header=\$ac_header_preproc"
19236 ac_res=`eval 'as_val=${'$as_ac_Header'}
19237 $as_echo "$as_val"'`
19238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19239 $as_echo "$ac_res" >&6; }
19242 if test `eval 'as_val=${'$as_ac_Header'}
19243 $as_echo "$as_val"'` = yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19246 _ACEOF
19250 done
19255 for ac_header in nlist.h
19257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19260 $as_echo_n "checking for $ac_header... " >&6; }
19261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19262 $as_echo_n "(cached) " >&6
19264 ac_res=`eval 'as_val=${'$as_ac_Header'}
19265 $as_echo "$as_val"'`
19266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19267 $as_echo "$ac_res" >&6; }
19268 else
19269 # Is the header compilable?
19270 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19271 $as_echo_n "checking $ac_header usability... " >&6; }
19272 cat >conftest.$ac_ext <<_ACEOF
19273 /* confdefs.h. */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19278 $ac_includes_default
19279 #include <$ac_header>
19280 _ACEOF
19281 rm -f conftest.$ac_objext
19282 if { (ac_try="$ac_compile"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286 esac
19287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19288 $as_echo "$ac_try_echo") >&5
19289 (eval "$ac_compile") 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest.$ac_objext; then
19299 ac_header_compiler=yes
19300 else
19301 $as_echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ac_header_compiler=no
19307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19309 $as_echo "$ac_header_compiler" >&6; }
19311 # Is the header present?
19312 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19313 $as_echo_n "checking $ac_header presence... " >&6; }
19314 cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h. */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19320 #include <$ac_header>
19321 _ACEOF
19322 if { (ac_try="$ac_cpp conftest.$ac_ext"
19323 case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326 esac
19327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19328 $as_echo "$ac_try_echo") >&5
19329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } >/dev/null && {
19336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 }; then
19339 ac_header_preproc=yes
19340 else
19341 $as_echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ac_header_preproc=no
19347 rm -f conftest.err conftest.$ac_ext
19348 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19349 $as_echo "$ac_header_preproc" >&6; }
19351 # So? What about this header?
19352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19353 yes:no: )
19354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19355 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19358 ac_header_preproc=yes
19360 no:yes:* )
19361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19362 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19364 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19366 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19368 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19372 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19375 esac
19376 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19377 $as_echo_n "checking for $ac_header... " >&6; }
19378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19379 $as_echo_n "(cached) " >&6
19380 else
19381 eval "$as_ac_Header=\$ac_header_preproc"
19383 ac_res=`eval 'as_val=${'$as_ac_Header'}
19384 $as_echo "$as_val"'`
19385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19386 $as_echo "$ac_res" >&6; }
19389 if test `eval 'as_val=${'$as_ac_Header'}
19390 $as_echo "$as_val"'` = yes; then
19391 cat >>confdefs.h <<_ACEOF
19392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19393 _ACEOF
19394 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19395 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19396 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19397 $as_echo_n "(cached) " >&6
19398 else
19399 cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <nlist.h>
19408 main ()
19410 static struct nlist ac_aggr;
19411 if (ac_aggr.n_un.n_name)
19412 return 0;
19414 return 0;
19416 _ACEOF
19417 rm -f conftest.$ac_objext
19418 if { (ac_try="$ac_compile"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422 esac
19423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19424 $as_echo "$ac_try_echo") >&5
19425 (eval "$ac_compile") 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } && {
19432 test -z "$ac_c_werror_flag" ||
19433 test ! -s conftest.err
19434 } && test -s conftest.$ac_objext; then
19435 ac_cv_member_struct_nlist_n_un_n_name=yes
19436 else
19437 $as_echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h. */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19446 #include <nlist.h>
19449 main ()
19451 static struct nlist ac_aggr;
19452 if (sizeof ac_aggr.n_un.n_name)
19453 return 0;
19455 return 0;
19457 _ACEOF
19458 rm -f conftest.$ac_objext
19459 if { (ac_try="$ac_compile"
19460 case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19463 esac
19464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19465 $as_echo "$ac_try_echo") >&5
19466 (eval "$ac_compile") 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && {
19473 test -z "$ac_c_werror_flag" ||
19474 test ! -s conftest.err
19475 } && test -s conftest.$ac_objext; then
19476 ac_cv_member_struct_nlist_n_un_n_name=yes
19477 else
19478 $as_echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_cv_member_struct_nlist_n_un_n_name=no
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19490 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19491 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19493 cat >>confdefs.h <<_ACEOF
19494 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19495 _ACEOF
19498 cat >>confdefs.h <<\_ACEOF
19499 #define NLIST_NAME_UNION 1
19500 _ACEOF
19507 done
19510 done
19513 # Some definitions of getloadavg require that the program be installed setgid.
19514 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19515 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19516 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19517 $as_echo_n "(cached) " >&6
19518 else
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19526 #ifdef LDAV_PRIVILEGED
19527 Yowza Am I SETGID yet
19528 #endif
19529 _ACEOF
19530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19531 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19532 ac_cv_func_getloadavg_setgid=yes
19533 else
19534 ac_cv_func_getloadavg_setgid=no
19536 rm -f conftest*
19539 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19540 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19541 if test $ac_cv_func_getloadavg_setgid = yes; then
19542 NEED_SETGID=true
19544 cat >>confdefs.h <<\_ACEOF
19545 #define GETLOADAVG_PRIVILEGED 1
19546 _ACEOF
19548 else
19549 NEED_SETGID=false
19552 if test $ac_cv_func_getloadavg_setgid = yes; then
19553 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19554 $as_echo_n "checking group of /dev/kmem... " >&6; }
19555 if test "${ac_cv_group_kmem+set}" = set; then
19556 $as_echo_n "(cached) " >&6
19557 else
19558 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19559 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19560 # If we got an error (system does not support symlinks), try without -L.
19561 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19562 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19563 | sed -ne 's/[ ][ ]*/ /g;
19564 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19565 / /s/.* //;p;'`
19568 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19569 $as_echo "$ac_cv_group_kmem" >&6; }
19570 KMEM_GROUP=$ac_cv_group_kmem
19572 if test "x$ac_save_LIBS" = x; then
19573 GETLOADAVG_LIBS=$LIBS
19574 else
19575 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19577 LIBS=$ac_save_LIBS
19581 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19582 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19583 if test "${ac_cv_sys_largefile_source+set}" = set; then
19584 $as_echo_n "(cached) " >&6
19585 else
19586 while :; do
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 #include <sys/types.h> /* for off_t */
19594 #include <stdio.h>
19596 main ()
19598 int (*fp) (FILE *, off_t, int) = fseeko;
19599 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19601 return 0;
19603 _ACEOF
19604 rm -f conftest.$ac_objext conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609 esac
19610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19611 $as_echo "$ac_try_echo") >&5
19612 (eval "$ac_link") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest$ac_exeext && {
19622 test "$cross_compiling" = yes ||
19623 $as_test_x conftest$ac_exeext
19624 }; then
19625 ac_cv_sys_largefile_source=no; break
19626 else
19627 $as_echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19633 rm -rf conftest.dSYM
19634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19635 conftest$ac_exeext conftest.$ac_ext
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 #define _LARGEFILE_SOURCE 1
19643 #include <sys/types.h> /* for off_t */
19644 #include <stdio.h>
19646 main ()
19648 int (*fp) (FILE *, off_t, int) = fseeko;
19649 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19651 return 0;
19653 _ACEOF
19654 rm -f conftest.$ac_objext conftest$ac_exeext
19655 if { (ac_try="$ac_link"
19656 case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659 esac
19660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19661 $as_echo "$ac_try_echo") >&5
19662 (eval "$ac_link") 2>conftest.er1
19663 ac_status=$?
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
19667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest$ac_exeext && {
19672 test "$cross_compiling" = yes ||
19673 $as_test_x conftest$ac_exeext
19674 }; then
19675 ac_cv_sys_largefile_source=1; break
19676 else
19677 $as_echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19683 rm -rf conftest.dSYM
19684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19685 conftest$ac_exeext conftest.$ac_ext
19686 ac_cv_sys_largefile_source=unknown
19687 break
19688 done
19690 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19691 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19692 case $ac_cv_sys_largefile_source in #(
19693 no | unknown) ;;
19695 cat >>confdefs.h <<_ACEOF
19696 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19697 _ACEOF
19699 esac
19700 rm -rf conftest*
19702 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19703 # in glibc 2.1.3, but that breaks too many other things.
19704 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19705 if test $ac_cv_sys_largefile_source != unknown; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_FSEEKO 1
19709 _ACEOF
19714 # Configure getopt.
19715 # getopt.m4 serial 10
19717 # The getopt module assume you want GNU getopt, with getopt_long etc,
19718 # rather than vanilla POSIX getopt. This means your your code should
19719 # always include <getopt.h> for the getopt prototypes.
19731 # Prerequisites of lib/getopt*.
19736 GETOPT_H=
19738 for ac_header in getopt.h
19740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19743 $as_echo_n "checking for $ac_header... " >&6; }
19744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19745 $as_echo_n "(cached) " >&6
19747 ac_res=`eval 'as_val=${'$as_ac_Header'}
19748 $as_echo "$as_val"'`
19749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19750 $as_echo "$ac_res" >&6; }
19751 else
19752 # Is the header compilable?
19753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19754 $as_echo_n "checking $ac_header usability... " >&6; }
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h. */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 $ac_includes_default
19762 #include <$ac_header>
19763 _ACEOF
19764 rm -f conftest.$ac_objext
19765 if { (ac_try="$ac_compile"
19766 case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769 esac
19770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19771 $as_echo "$ac_try_echo") >&5
19772 (eval "$ac_compile") 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest.$ac_objext; then
19782 ac_header_compiler=yes
19783 else
19784 $as_echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_header_compiler=no
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19792 $as_echo "$ac_header_compiler" >&6; }
19794 # Is the header present?
19795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19796 $as_echo_n "checking $ac_header presence... " >&6; }
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 #include <$ac_header>
19804 _ACEOF
19805 if { (ac_try="$ac_cpp conftest.$ac_ext"
19806 case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809 esac
19810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19811 $as_echo "$ac_try_echo") >&5
19812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } >/dev/null && {
19819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 }; then
19822 ac_header_preproc=yes
19823 else
19824 $as_echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_header_preproc=no
19830 rm -f conftest.err conftest.$ac_ext
19831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19832 $as_echo "$ac_header_preproc" >&6; }
19834 # So? What about this header?
19835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19836 yes:no: )
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19841 ac_header_preproc=yes
19843 no:yes:* )
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19851 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19858 esac
19859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 $as_echo_n "checking for $ac_header... " >&6; }
19861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862 $as_echo_n "(cached) " >&6
19863 else
19864 eval "$as_ac_Header=\$ac_header_preproc"
19866 ac_res=`eval 'as_val=${'$as_ac_Header'}
19867 $as_echo "$as_val"'`
19868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19869 $as_echo "$ac_res" >&6; }
19872 if test `eval 'as_val=${'$as_ac_Header'}
19873 $as_echo "$as_val"'` = yes; then
19874 cat >>confdefs.h <<_ACEOF
19875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19876 _ACEOF
19878 else
19879 GETOPT_H=getopt.h
19882 done
19884 if test -z "$GETOPT_H"; then
19886 for ac_func in getopt_long_only
19888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19890 $as_echo_n "checking for $ac_func... " >&6; }
19891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19892 $as_echo_n "(cached) " >&6
19893 else
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h. */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19902 #define $ac_func innocuous_$ac_func
19904 /* System header to define __stub macros and hopefully few prototypes,
19905 which can conflict with char $ac_func (); below.
19906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19907 <limits.h> exists even on freestanding compilers. */
19909 #ifdef __STDC__
19910 # include <limits.h>
19911 #else
19912 # include <assert.h>
19913 #endif
19915 #undef $ac_func
19917 /* Override any GCC internal prototype to avoid an error.
19918 Use char because int might match the return type of a GCC
19919 builtin and then its argument prototype would still apply. */
19920 #ifdef __cplusplus
19921 extern "C"
19922 #endif
19923 char $ac_func ();
19924 /* The GNU C library defines this for functions which it implements
19925 to always fail with ENOSYS. Some functions are actually named
19926 something starting with __ and the normal name is an alias. */
19927 #if defined __stub_$ac_func || defined __stub___$ac_func
19928 choke me
19929 #endif
19932 main ()
19934 return $ac_func ();
19936 return 0;
19938 _ACEOF
19939 rm -f conftest.$ac_objext conftest$ac_exeext
19940 if { (ac_try="$ac_link"
19941 case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19944 esac
19945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19946 $as_echo "$ac_try_echo") >&5
19947 (eval "$ac_link") 2>conftest.er1
19948 ac_status=$?
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest$ac_exeext && {
19957 test "$cross_compiling" = yes ||
19958 $as_test_x conftest$ac_exeext
19959 }; then
19960 eval "$as_ac_var=yes"
19961 else
19962 $as_echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 eval "$as_ac_var=no"
19968 rm -rf conftest.dSYM
19969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19970 conftest$ac_exeext conftest.$ac_ext
19972 ac_res=`eval 'as_val=${'$as_ac_var'}
19973 $as_echo "$as_val"'`
19974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19975 $as_echo "$ac_res" >&6; }
19976 if test `eval 'as_val=${'$as_ac_var'}
19977 $as_echo "$as_val"'` = yes; then
19978 cat >>confdefs.h <<_ACEOF
19979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19980 _ACEOF
19982 else
19983 GETOPT_H=getopt.h
19985 done
19989 if test -z "$GETOPT_H"; then
19990 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19991 $as_echo_n "checking whether optreset is declared... " >&6; }
19992 if test "${ac_cv_have_decl_optreset+set}" = set; then
19993 $as_echo_n "(cached) " >&6
19994 else
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h. */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 #include <getopt.h>
20004 main ()
20006 #ifndef optreset
20007 (void) optreset;
20008 #endif
20011 return 0;
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (ac_try="$ac_compile"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20019 esac
20020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20021 $as_echo "$ac_try_echo") >&5
20022 (eval "$ac_compile") 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } && {
20029 test -z "$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20031 } && test -s conftest.$ac_objext; then
20032 ac_cv_have_decl_optreset=yes
20033 else
20034 $as_echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_have_decl_optreset=no
20040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20042 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20043 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20044 if test $ac_cv_have_decl_optreset = yes; then
20045 GETOPT_H=getopt.h
20050 if test -z "$GETOPT_H"; then
20051 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20052 $as_echo_n "checking for working GNU getopt function... " >&6; }
20053 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20054 $as_echo_n "(cached) " >&6
20055 else
20056 if test "$cross_compiling" = yes; then
20057 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20058 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20059 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20060 $as_echo_n "(cached) " >&6
20061 else
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h. */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <getopt.h>
20071 main ()
20073 #ifndef getopt_clip
20074 (void) getopt_clip;
20075 #endif
20078 return 0;
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086 esac
20087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20088 $as_echo "$ac_try_echo") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.$ac_objext; then
20099 ac_cv_have_decl_getopt_clip=yes
20100 else
20101 $as_echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ac_cv_have_decl_getopt_clip=no
20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20110 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20111 if test $ac_cv_have_decl_getopt_clip = yes; then
20112 gl_cv_func_gnu_getopt=no
20113 else
20114 gl_cv_func_gnu_getopt=yes
20117 else
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #include <getopt.h>
20126 main ()
20129 char *myargv[3];
20130 myargv[0] = "conftest";
20131 myargv[1] = "-+";
20132 myargv[2] = 0;
20133 return getopt (2, myargv, "+a") != '?';
20136 return 0;
20138 _ACEOF
20139 rm -f conftest$ac_exeext
20140 if { (ac_try="$ac_link"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20144 esac
20145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20146 $as_echo "$ac_try_echo") >&5
20147 (eval "$ac_link") 2>&5
20148 ac_status=$?
20149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20151 { (case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20154 esac
20155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20156 $as_echo "$ac_try_echo") >&5
20157 (eval "$ac_try") 2>&5
20158 ac_status=$?
20159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 gl_cv_func_gnu_getopt=yes
20162 else
20163 $as_echo "$as_me: program exited with status $ac_status" >&5
20164 $as_echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ( exit $ac_status )
20168 gl_cv_func_gnu_getopt=no
20170 rm -rf conftest.dSYM
20171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20176 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20177 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20178 if test "$gl_cv_func_gnu_getopt" = "no"; then
20179 GETOPT_H=getopt.h
20185 if test -n "$GETOPT_H"; then
20188 GETOPT_H=getopt.h
20190 cat >>confdefs.h <<\_ACEOF
20191 #define __GETOPT_PREFIX rpl_
20192 _ACEOF
20197 GETOPTOBJS='getopt.o getopt1.o'
20204 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20205 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20206 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20208 else
20209 # Use it with a single arg.
20210 cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 $ac_includes_default
20218 main ()
20220 getpgrp (0);
20222 return 0;
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (ac_try="$ac_compile"
20227 case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230 esac
20231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20232 $as_echo "$ac_try_echo") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_cv_func_getpgrp_void=no
20244 else
20245 $as_echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_cv_func_getpgrp_void=yes
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20254 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20255 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20256 if test $ac_cv_func_getpgrp_void = yes; then
20258 cat >>confdefs.h <<\_ACEOF
20259 #define GETPGRP_VOID 1
20260 _ACEOF
20266 for ac_func in strftime
20268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20270 $as_echo_n "checking for $ac_func... " >&6; }
20271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20272 $as_echo_n "(cached) " >&6
20273 else
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20282 #define $ac_func innocuous_$ac_func
20284 /* System header to define __stub macros and hopefully few prototypes,
20285 which can conflict with char $ac_func (); below.
20286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20287 <limits.h> exists even on freestanding compilers. */
20289 #ifdef __STDC__
20290 # include <limits.h>
20291 #else
20292 # include <assert.h>
20293 #endif
20295 #undef $ac_func
20297 /* Override any GCC internal prototype to avoid an error.
20298 Use char because int might match the return type of a GCC
20299 builtin and then its argument prototype would still apply. */
20300 #ifdef __cplusplus
20301 extern "C"
20302 #endif
20303 char $ac_func ();
20304 /* The GNU C library defines this for functions which it implements
20305 to always fail with ENOSYS. Some functions are actually named
20306 something starting with __ and the normal name is an alias. */
20307 #if defined __stub_$ac_func || defined __stub___$ac_func
20308 choke me
20309 #endif
20312 main ()
20314 return $ac_func ();
20316 return 0;
20318 _ACEOF
20319 rm -f conftest.$ac_objext conftest$ac_exeext
20320 if { (ac_try="$ac_link"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324 esac
20325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327 (eval "$ac_link") 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest$ac_exeext && {
20337 test "$cross_compiling" = yes ||
20338 $as_test_x conftest$ac_exeext
20339 }; then
20340 eval "$as_ac_var=yes"
20341 else
20342 $as_echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 eval "$as_ac_var=no"
20348 rm -rf conftest.dSYM
20349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20350 conftest$ac_exeext conftest.$ac_ext
20352 ac_res=`eval 'as_val=${'$as_ac_var'}
20353 $as_echo "$as_val"'`
20354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20355 $as_echo "$ac_res" >&6; }
20356 if test `eval 'as_val=${'$as_ac_var'}
20357 $as_echo "$as_val"'` = yes; then
20358 cat >>confdefs.h <<_ACEOF
20359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20360 _ACEOF
20362 else
20363 # strftime is in -lintl on SCO UNIX.
20364 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20365 $as_echo_n "checking for strftime in -lintl... " >&6; }
20366 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20367 $as_echo_n "(cached) " >&6
20368 else
20369 ac_check_lib_save_LIBS=$LIBS
20370 LIBS="-lintl $LIBS"
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 char strftime ();
20386 main ()
20388 return strftime ();
20390 return 0;
20392 _ACEOF
20393 rm -f conftest.$ac_objext conftest$ac_exeext
20394 if { (ac_try="$ac_link"
20395 case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398 esac
20399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20400 $as_echo "$ac_try_echo") >&5
20401 (eval "$ac_link") 2>conftest.er1
20402 ac_status=$?
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
20406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } && {
20408 test -z "$ac_c_werror_flag" ||
20409 test ! -s conftest.err
20410 } && test -s conftest$ac_exeext && {
20411 test "$cross_compiling" = yes ||
20412 $as_test_x conftest$ac_exeext
20413 }; then
20414 ac_cv_lib_intl_strftime=yes
20415 else
20416 $as_echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_intl_strftime=no
20422 rm -rf conftest.dSYM
20423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20424 conftest$ac_exeext conftest.$ac_ext
20425 LIBS=$ac_check_lib_save_LIBS
20427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20428 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20429 if test $ac_cv_lib_intl_strftime = yes; then
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE_STRFTIME 1
20432 _ACEOF
20434 LIBS="-lintl $LIBS"
20438 done
20441 # UNIX98 PTYs.
20443 for ac_func in grantpt
20445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20447 $as_echo_n "checking for $ac_func... " >&6; }
20448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20449 $as_echo_n "(cached) " >&6
20450 else
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20459 #define $ac_func innocuous_$ac_func
20461 /* System header to define __stub macros and hopefully few prototypes,
20462 which can conflict with char $ac_func (); below.
20463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20464 <limits.h> exists even on freestanding compilers. */
20466 #ifdef __STDC__
20467 # include <limits.h>
20468 #else
20469 # include <assert.h>
20470 #endif
20472 #undef $ac_func
20474 /* Override any GCC internal prototype to avoid an error.
20475 Use char because int might match the return type of a GCC
20476 builtin and then its argument prototype would still apply. */
20477 #ifdef __cplusplus
20478 extern "C"
20479 #endif
20480 char $ac_func ();
20481 /* The GNU C library defines this for functions which it implements
20482 to always fail with ENOSYS. Some functions are actually named
20483 something starting with __ and the normal name is an alias. */
20484 #if defined __stub_$ac_func || defined __stub___$ac_func
20485 choke me
20486 #endif
20489 main ()
20491 return $ac_func ();
20493 return 0;
20495 _ACEOF
20496 rm -f conftest.$ac_objext conftest$ac_exeext
20497 if { (ac_try="$ac_link"
20498 case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501 esac
20502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20503 $as_echo "$ac_try_echo") >&5
20504 (eval "$ac_link") 2>conftest.er1
20505 ac_status=$?
20506 grep -v '^ *+' conftest.er1 >conftest.err
20507 rm -f conftest.er1
20508 cat conftest.err >&5
20509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && {
20511 test -z "$ac_c_werror_flag" ||
20512 test ! -s conftest.err
20513 } && test -s conftest$ac_exeext && {
20514 test "$cross_compiling" = yes ||
20515 $as_test_x conftest$ac_exeext
20516 }; then
20517 eval "$as_ac_var=yes"
20518 else
20519 $as_echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 eval "$as_ac_var=no"
20525 rm -rf conftest.dSYM
20526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20527 conftest$ac_exeext conftest.$ac_ext
20529 ac_res=`eval 'as_val=${'$as_ac_var'}
20530 $as_echo "$as_val"'`
20531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20532 $as_echo "$ac_res" >&6; }
20533 if test `eval 'as_val=${'$as_ac_var'}
20534 $as_echo "$as_val"'` = yes; then
20535 cat >>confdefs.h <<_ACEOF
20536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20537 _ACEOF
20540 done
20543 # PTY-related GNU extensions.
20545 for ac_func in getpt
20547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20548 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20549 $as_echo_n "checking for $ac_func... " >&6; }
20550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20551 $as_echo_n "(cached) " >&6
20552 else
20553 cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h. */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20561 #define $ac_func innocuous_$ac_func
20563 /* System header to define __stub macros and hopefully few prototypes,
20564 which can conflict with char $ac_func (); below.
20565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20566 <limits.h> exists even on freestanding compilers. */
20568 #ifdef __STDC__
20569 # include <limits.h>
20570 #else
20571 # include <assert.h>
20572 #endif
20574 #undef $ac_func
20576 /* Override any GCC internal prototype to avoid an error.
20577 Use char because int might match the return type of a GCC
20578 builtin and then its argument prototype would still apply. */
20579 #ifdef __cplusplus
20580 extern "C"
20581 #endif
20582 char $ac_func ();
20583 /* The GNU C library defines this for functions which it implements
20584 to always fail with ENOSYS. Some functions are actually named
20585 something starting with __ and the normal name is an alias. */
20586 #if defined __stub_$ac_func || defined __stub___$ac_func
20587 choke me
20588 #endif
20591 main ()
20593 return $ac_func ();
20595 return 0;
20597 _ACEOF
20598 rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603 esac
20604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20605 $as_echo "$ac_try_echo") >&5
20606 (eval "$ac_link") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest$ac_exeext && {
20616 test "$cross_compiling" = yes ||
20617 $as_test_x conftest$ac_exeext
20618 }; then
20619 eval "$as_ac_var=yes"
20620 else
20621 $as_echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 eval "$as_ac_var=no"
20627 rm -rf conftest.dSYM
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629 conftest$ac_exeext conftest.$ac_ext
20631 ac_res=`eval 'as_val=${'$as_ac_var'}
20632 $as_echo "$as_val"'`
20633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20634 $as_echo "$ac_res" >&6; }
20635 if test `eval 'as_val=${'$as_ac_var'}
20636 $as_echo "$as_val"'` = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20639 _ACEOF
20642 done
20645 # Check this now, so that we will NOT find the above functions in ncurses.
20646 # That is because we have not set up to link ncurses in lib-src.
20647 # It's better to believe a function is not available
20648 # than to expect to find it in ncurses.
20650 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20651 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20652 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20653 $as_echo_n "(cached) " >&6
20654 else
20655 ac_check_lib_save_LIBS=$LIBS
20656 LIBS="-lncurses $LIBS"
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h. */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20664 /* Override any GCC internal prototype to avoid an error.
20665 Use char because int might match the return type of a GCC
20666 builtin and then its argument prototype would still apply. */
20667 #ifdef __cplusplus
20668 extern "C"
20669 #endif
20670 char tparm ();
20672 main ()
20674 return tparm ();
20676 return 0;
20678 _ACEOF
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20686 $as_echo "$ac_try_echo") >&5
20687 (eval "$ac_link") 2>conftest.er1
20688 ac_status=$?
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
20692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest$ac_exeext && {
20697 test "$cross_compiling" = yes ||
20698 $as_test_x conftest$ac_exeext
20699 }; then
20700 ac_cv_lib_ncurses_tparm=yes
20701 else
20702 $as_echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_lib_ncurses_tparm=no
20708 rm -rf conftest.dSYM
20709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20710 conftest$ac_exeext conftest.$ac_ext
20711 LIBS=$ac_check_lib_save_LIBS
20713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20714 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20715 if test $ac_cv_lib_ncurses_tparm = yes; then
20716 cat >>confdefs.h <<_ACEOF
20717 #define HAVE_LIBNCURSES 1
20718 _ACEOF
20720 LIBS="-lncurses $LIBS"
20725 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20727 resolv=no
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 #include <netinet/in.h>
20735 #include <arpa/nameser.h>
20736 #include <resolv.h>
20738 main ()
20740 return res_init();
20742 return 0;
20744 _ACEOF
20745 rm -f conftest.$ac_objext conftest$ac_exeext
20746 if { (ac_try="$ac_link"
20747 case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20750 esac
20751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20752 $as_echo "$ac_try_echo") >&5
20753 (eval "$ac_link") 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest$ac_exeext && {
20763 test "$cross_compiling" = yes ||
20764 $as_test_x conftest$ac_exeext
20765 }; then
20766 have_res_init=yes
20767 else
20768 $as_echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 have_res_init=no
20774 rm -rf conftest.dSYM
20775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20776 conftest$ac_exeext conftest.$ac_ext
20777 if test "$have_res_init" = no; then
20778 OLIBS="$LIBS"
20779 LIBS="$LIBS -lresolv"
20780 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20781 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h. */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <netinet/in.h>
20789 #include <arpa/nameser.h>
20790 #include <resolv.h>
20792 main ()
20794 return res_init();
20796 return 0;
20798 _ACEOF
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20806 $as_echo "$ac_try_echo") >&5
20807 (eval "$ac_link") 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && {
20814 test -z "$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest$ac_exeext && {
20817 test "$cross_compiling" = yes ||
20818 $as_test_x conftest$ac_exeext
20819 }; then
20820 have_res_init=yes
20821 else
20822 $as_echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 have_res_init=no
20828 rm -rf conftest.dSYM
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830 conftest$ac_exeext conftest.$ac_ext
20831 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20832 $as_echo "$have_res_init" >&6; }
20833 if test "$have_res_init" = yes ; then
20834 resolv=yes
20836 LIBS="$OLIBS"
20839 if test "$have_res_init" = yes; then
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_RES_INIT 1
20843 _ACEOF
20847 # Do we need the Hesiod library to provide the support routines?
20848 if test "$with_hesiod" != no ; then
20849 # Don't set $LIBS here -- see comments above.
20850 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20851 $as_echo_n "checking for res_send... " >&6; }
20852 if test "${ac_cv_func_res_send+set}" = set; then
20853 $as_echo_n "(cached) " >&6
20854 else
20855 cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h. */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20863 #define res_send innocuous_res_send
20865 /* System header to define __stub macros and hopefully few prototypes,
20866 which can conflict with char res_send (); below.
20867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20868 <limits.h> exists even on freestanding compilers. */
20870 #ifdef __STDC__
20871 # include <limits.h>
20872 #else
20873 # include <assert.h>
20874 #endif
20876 #undef res_send
20878 /* Override any GCC internal prototype to avoid an error.
20879 Use char because int might match the return type of a GCC
20880 builtin and then its argument prototype would still apply. */
20881 #ifdef __cplusplus
20882 extern "C"
20883 #endif
20884 char res_send ();
20885 /* The GNU C library defines this for functions which it implements
20886 to always fail with ENOSYS. Some functions are actually named
20887 something starting with __ and the normal name is an alias. */
20888 #if defined __stub_res_send || defined __stub___res_send
20889 choke me
20890 #endif
20893 main ()
20895 return res_send ();
20897 return 0;
20899 _ACEOF
20900 rm -f conftest.$ac_objext conftest$ac_exeext
20901 if { (ac_try="$ac_link"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20905 esac
20906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20907 $as_echo "$ac_try_echo") >&5
20908 (eval "$ac_link") 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } && {
20915 test -z "$ac_c_werror_flag" ||
20916 test ! -s conftest.err
20917 } && test -s conftest$ac_exeext && {
20918 test "$cross_compiling" = yes ||
20919 $as_test_x conftest$ac_exeext
20920 }; then
20921 ac_cv_func_res_send=yes
20922 else
20923 $as_echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 ac_cv_func_res_send=no
20929 rm -rf conftest.dSYM
20930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20931 conftest$ac_exeext conftest.$ac_ext
20933 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20934 $as_echo "$ac_cv_func_res_send" >&6; }
20935 if test $ac_cv_func_res_send = yes; then
20937 else
20938 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20939 $as_echo_n "checking for __res_send... " >&6; }
20940 if test "${ac_cv_func___res_send+set}" = set; then
20941 $as_echo_n "(cached) " >&6
20942 else
20943 cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h. */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20951 #define __res_send innocuous___res_send
20953 /* System header to define __stub macros and hopefully few prototypes,
20954 which can conflict with char __res_send (); below.
20955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20956 <limits.h> exists even on freestanding compilers. */
20958 #ifdef __STDC__
20959 # include <limits.h>
20960 #else
20961 # include <assert.h>
20962 #endif
20964 #undef __res_send
20966 /* Override any GCC internal prototype to avoid an error.
20967 Use char because int might match the return type of a GCC
20968 builtin and then its argument prototype would still apply. */
20969 #ifdef __cplusplus
20970 extern "C"
20971 #endif
20972 char __res_send ();
20973 /* The GNU C library defines this for functions which it implements
20974 to always fail with ENOSYS. Some functions are actually named
20975 something starting with __ and the normal name is an alias. */
20976 #if defined __stub___res_send || defined __stub_____res_send
20977 choke me
20978 #endif
20981 main ()
20983 return __res_send ();
20985 return 0;
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996 (eval "$ac_link") 2>conftest.er1
20997 ac_status=$?
20998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
21001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest$ac_exeext && {
21006 test "$cross_compiling" = yes ||
21007 $as_test_x conftest$ac_exeext
21008 }; then
21009 ac_cv_func___res_send=yes
21010 else
21011 $as_echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_func___res_send=no
21017 rm -rf conftest.dSYM
21018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21019 conftest$ac_exeext conftest.$ac_ext
21021 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21022 $as_echo "$ac_cv_func___res_send" >&6; }
21023 if test $ac_cv_func___res_send = yes; then
21025 else
21026 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21027 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21028 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21029 $as_echo_n "(cached) " >&6
21030 else
21031 ac_check_lib_save_LIBS=$LIBS
21032 LIBS="-lresolv $LIBS"
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21040 /* Override any GCC internal prototype to avoid an error.
21041 Use char because int might match the return type of a GCC
21042 builtin and then its argument prototype would still apply. */
21043 #ifdef __cplusplus
21044 extern "C"
21045 #endif
21046 char res_send ();
21048 main ()
21050 return res_send ();
21052 return 0;
21054 _ACEOF
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (ac_try="$ac_link"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21060 esac
21061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21062 $as_echo "$ac_try_echo") >&5
21063 (eval "$ac_link") 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest$ac_exeext && {
21073 test "$cross_compiling" = yes ||
21074 $as_test_x conftest$ac_exeext
21075 }; then
21076 ac_cv_lib_resolv_res_send=yes
21077 else
21078 $as_echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_cv_lib_resolv_res_send=no
21084 rm -rf conftest.dSYM
21085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21086 conftest$ac_exeext conftest.$ac_ext
21087 LIBS=$ac_check_lib_save_LIBS
21089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21090 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21091 if test $ac_cv_lib_resolv_res_send = yes; then
21092 resolv=yes
21093 else
21094 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21095 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21096 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21097 $as_echo_n "(cached) " >&6
21098 else
21099 ac_check_lib_save_LIBS=$LIBS
21100 LIBS="-lresolv $LIBS"
21101 cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h. */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21108 /* Override any GCC internal prototype to avoid an error.
21109 Use char because int might match the return type of a GCC
21110 builtin and then its argument prototype would still apply. */
21111 #ifdef __cplusplus
21112 extern "C"
21113 #endif
21114 char __res_send ();
21116 main ()
21118 return __res_send ();
21120 return 0;
21122 _ACEOF
21123 rm -f conftest.$ac_objext conftest$ac_exeext
21124 if { (ac_try="$ac_link"
21125 case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21128 esac
21129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21130 $as_echo "$ac_try_echo") >&5
21131 (eval "$ac_link") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest$ac_exeext && {
21141 test "$cross_compiling" = yes ||
21142 $as_test_x conftest$ac_exeext
21143 }; then
21144 ac_cv_lib_resolv___res_send=yes
21145 else
21146 $as_echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21149 ac_cv_lib_resolv___res_send=no
21152 rm -rf conftest.dSYM
21153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21154 conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21157 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21158 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21159 if test $ac_cv_lib_resolv___res_send = yes; then
21160 resolv=yes
21169 if test "$resolv" = yes ; then
21170 RESOLVLIB=-lresolv
21171 else
21172 RESOLVLIB=
21174 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21175 $as_echo_n "checking for hes_getmailhost... " >&6; }
21176 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21177 $as_echo_n "(cached) " >&6
21178 else
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21187 #define hes_getmailhost innocuous_hes_getmailhost
21189 /* System header to define __stub macros and hopefully few prototypes,
21190 which can conflict with char hes_getmailhost (); below.
21191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21192 <limits.h> exists even on freestanding compilers. */
21194 #ifdef __STDC__
21195 # include <limits.h>
21196 #else
21197 # include <assert.h>
21198 #endif
21200 #undef hes_getmailhost
21202 /* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
21205 #ifdef __cplusplus
21206 extern "C"
21207 #endif
21208 char hes_getmailhost ();
21209 /* The GNU C library defines this for functions which it implements
21210 to always fail with ENOSYS. Some functions are actually named
21211 something starting with __ and the normal name is an alias. */
21212 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21213 choke me
21214 #endif
21217 main ()
21219 return hes_getmailhost ();
21221 return 0;
21223 _ACEOF
21224 rm -f conftest.$ac_objext conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21231 $as_echo "$ac_try_echo") >&5
21232 (eval "$ac_link") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest$ac_exeext && {
21242 test "$cross_compiling" = yes ||
21243 $as_test_x conftest$ac_exeext
21244 }; then
21245 ac_cv_func_hes_getmailhost=yes
21246 else
21247 $as_echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_func_hes_getmailhost=no
21253 rm -rf conftest.dSYM
21254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21255 conftest$ac_exeext conftest.$ac_ext
21257 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21258 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21259 if test $ac_cv_func_hes_getmailhost = yes; then
21261 else
21262 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21263 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21264 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21265 $as_echo_n "(cached) " >&6
21266 else
21267 ac_check_lib_save_LIBS=$LIBS
21268 LIBS="-lhesiod $RESOLVLIB $LIBS"
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h. */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21276 /* Override any GCC internal prototype to avoid an error.
21277 Use char because int might match the return type of a GCC
21278 builtin and then its argument prototype would still apply. */
21279 #ifdef __cplusplus
21280 extern "C"
21281 #endif
21282 char hes_getmailhost ();
21284 main ()
21286 return hes_getmailhost ();
21288 return 0;
21290 _ACEOF
21291 rm -f conftest.$ac_objext conftest$ac_exeext
21292 if { (ac_try="$ac_link"
21293 case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21296 esac
21297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21298 $as_echo "$ac_try_echo") >&5
21299 (eval "$ac_link") 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest$ac_exeext && {
21309 test "$cross_compiling" = yes ||
21310 $as_test_x conftest$ac_exeext
21311 }; then
21312 ac_cv_lib_hesiod_hes_getmailhost=yes
21313 else
21314 $as_echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 ac_cv_lib_hesiod_hes_getmailhost=no
21320 rm -rf conftest.dSYM
21321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21322 conftest$ac_exeext conftest.$ac_ext
21323 LIBS=$ac_check_lib_save_LIBS
21325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21326 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21327 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21329 cat >>confdefs.h <<\_ACEOF
21330 #define HAVE_LIBHESIOD 1
21331 _ACEOF
21333 else
21341 # Do we need libresolv (due to res_init or Hesiod)?
21342 if test "$resolv" = yes ; then
21344 cat >>confdefs.h <<\_ACEOF
21345 #define HAVE_LIBRESOLV 1
21346 _ACEOF
21350 # These tell us which Kerberos-related libraries to use.
21351 if test "${with_kerberos}" != no; then
21353 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21354 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21355 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21356 $as_echo_n "(cached) " >&6
21357 else
21358 ac_check_lib_save_LIBS=$LIBS
21359 LIBS="-lcom_err $LIBS"
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h. */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21370 #ifdef __cplusplus
21371 extern "C"
21372 #endif
21373 char com_err ();
21375 main ()
21377 return com_err ();
21379 return 0;
21381 _ACEOF
21382 rm -f conftest.$ac_objext conftest$ac_exeext
21383 if { (ac_try="$ac_link"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21387 esac
21388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21389 $as_echo "$ac_try_echo") >&5
21390 (eval "$ac_link") 2>conftest.er1
21391 ac_status=$?
21392 grep -v '^ *+' conftest.er1 >conftest.err
21393 rm -f conftest.er1
21394 cat conftest.err >&5
21395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest$ac_exeext && {
21400 test "$cross_compiling" = yes ||
21401 $as_test_x conftest$ac_exeext
21402 }; then
21403 ac_cv_lib_com_err_com_err=yes
21404 else
21405 $as_echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_cv_lib_com_err_com_err=no
21411 rm -rf conftest.dSYM
21412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21413 conftest$ac_exeext conftest.$ac_ext
21414 LIBS=$ac_check_lib_save_LIBS
21416 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21417 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21418 if test $ac_cv_lib_com_err_com_err = yes; then
21419 cat >>confdefs.h <<_ACEOF
21420 #define HAVE_LIBCOM_ERR 1
21421 _ACEOF
21423 LIBS="-lcom_err $LIBS"
21428 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21429 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21430 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21431 $as_echo_n "(cached) " >&6
21432 else
21433 ac_check_lib_save_LIBS=$LIBS
21434 LIBS="-lk5crypto $LIBS"
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21442 /* Override any GCC internal prototype to avoid an error.
21443 Use char because int might match the return type of a GCC
21444 builtin and then its argument prototype would still apply. */
21445 #ifdef __cplusplus
21446 extern "C"
21447 #endif
21448 char mit_des_cbc_encrypt ();
21450 main ()
21452 return mit_des_cbc_encrypt ();
21454 return 0;
21456 _ACEOF
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (ac_try="$ac_link"
21459 case "(($ac_try" in
21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21462 esac
21463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21464 $as_echo "$ac_try_echo") >&5
21465 (eval "$ac_link") 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest$ac_exeext && {
21475 test "$cross_compiling" = yes ||
21476 $as_test_x conftest$ac_exeext
21477 }; then
21478 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21479 else
21480 $as_echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21483 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21486 rm -rf conftest.dSYM
21487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21488 conftest$ac_exeext conftest.$ac_ext
21489 LIBS=$ac_check_lib_save_LIBS
21491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21492 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21493 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_LIBK5CRYPTO 1
21496 _ACEOF
21498 LIBS="-lk5crypto $LIBS"
21503 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21504 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21505 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21506 $as_echo_n "(cached) " >&6
21507 else
21508 ac_check_lib_save_LIBS=$LIBS
21509 LIBS="-lcrypto $LIBS"
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21520 #ifdef __cplusplus
21521 extern "C"
21522 #endif
21523 char mit_des_cbc_encrypt ();
21525 main ()
21527 return mit_des_cbc_encrypt ();
21529 return 0;
21531 _ACEOF
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (ac_try="$ac_link"
21534 case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21537 esac
21538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21539 $as_echo "$ac_try_echo") >&5
21540 (eval "$ac_link") 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest$ac_exeext && {
21550 test "$cross_compiling" = yes ||
21551 $as_test_x conftest$ac_exeext
21552 }; then
21553 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21554 else
21555 $as_echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21561 rm -rf conftest.dSYM
21562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21563 conftest$ac_exeext conftest.$ac_ext
21564 LIBS=$ac_check_lib_save_LIBS
21566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21567 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21568 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21569 cat >>confdefs.h <<_ACEOF
21570 #define HAVE_LIBCRYPTO 1
21571 _ACEOF
21573 LIBS="-lcrypto $LIBS"
21578 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21579 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21580 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21581 $as_echo_n "(cached) " >&6
21582 else
21583 ac_check_lib_save_LIBS=$LIBS
21584 LIBS="-lkrb5 $LIBS"
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h. */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21595 #ifdef __cplusplus
21596 extern "C"
21597 #endif
21598 char krb5_init_context ();
21600 main ()
21602 return krb5_init_context ();
21604 return 0;
21606 _ACEOF
21607 rm -f conftest.$ac_objext conftest$ac_exeext
21608 if { (ac_try="$ac_link"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21612 esac
21613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21614 $as_echo "$ac_try_echo") >&5
21615 (eval "$ac_link") 2>conftest.er1
21616 ac_status=$?
21617 grep -v '^ *+' conftest.er1 >conftest.err
21618 rm -f conftest.er1
21619 cat conftest.err >&5
21620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest$ac_exeext && {
21625 test "$cross_compiling" = yes ||
21626 $as_test_x conftest$ac_exeext
21627 }; then
21628 ac_cv_lib_krb5_krb5_init_context=yes
21629 else
21630 $as_echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 ac_cv_lib_krb5_krb5_init_context=no
21636 rm -rf conftest.dSYM
21637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21638 conftest$ac_exeext conftest.$ac_ext
21639 LIBS=$ac_check_lib_save_LIBS
21641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21642 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21643 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21644 cat >>confdefs.h <<_ACEOF
21645 #define HAVE_LIBKRB5 1
21646 _ACEOF
21648 LIBS="-lkrb5 $LIBS"
21652 if test "${with_kerberos5}" = no; then
21654 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21655 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21656 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21657 $as_echo_n "(cached) " >&6
21658 else
21659 ac_check_lib_save_LIBS=$LIBS
21660 LIBS="-ldes425 $LIBS"
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* Override any GCC internal prototype to avoid an error.
21669 Use char because int might match the return type of a GCC
21670 builtin and then its argument prototype would still apply. */
21671 #ifdef __cplusplus
21672 extern "C"
21673 #endif
21674 char des_cbc_encrypt ();
21676 main ()
21678 return des_cbc_encrypt ();
21680 return 0;
21682 _ACEOF
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688 esac
21689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690 $as_echo "$ac_try_echo") >&5
21691 (eval "$ac_link") 2>conftest.er1
21692 ac_status=$?
21693 grep -v '^ *+' conftest.er1 >conftest.err
21694 rm -f conftest.er1
21695 cat conftest.err >&5
21696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest$ac_exeext && {
21701 test "$cross_compiling" = yes ||
21702 $as_test_x conftest$ac_exeext
21703 }; then
21704 ac_cv_lib_des425_des_cbc_encrypt=yes
21705 else
21706 $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_cv_lib_des425_des_cbc_encrypt=no
21712 rm -rf conftest.dSYM
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21718 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21719 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21720 cat >>confdefs.h <<_ACEOF
21721 #define HAVE_LIBDES425 1
21722 _ACEOF
21724 LIBS="-ldes425 $LIBS"
21726 else
21728 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21729 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21730 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21731 $as_echo_n "(cached) " >&6
21732 else
21733 ac_check_lib_save_LIBS=$LIBS
21734 LIBS="-ldes $LIBS"
21735 cat >conftest.$ac_ext <<_ACEOF
21736 /* confdefs.h. */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21742 /* Override any GCC internal prototype to avoid an error.
21743 Use char because int might match the return type of a GCC
21744 builtin and then its argument prototype would still apply. */
21745 #ifdef __cplusplus
21746 extern "C"
21747 #endif
21748 char des_cbc_encrypt ();
21750 main ()
21752 return des_cbc_encrypt ();
21754 return 0;
21756 _ACEOF
21757 rm -f conftest.$ac_objext conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21762 esac
21763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21764 $as_echo "$ac_try_echo") >&5
21765 (eval "$ac_link") 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } && {
21772 test -z "$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 } && test -s conftest$ac_exeext && {
21775 test "$cross_compiling" = yes ||
21776 $as_test_x conftest$ac_exeext
21777 }; then
21778 ac_cv_lib_des_des_cbc_encrypt=yes
21779 else
21780 $as_echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ac_cv_lib_des_des_cbc_encrypt=no
21786 rm -rf conftest.dSYM
21787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21788 conftest$ac_exeext conftest.$ac_ext
21789 LIBS=$ac_check_lib_save_LIBS
21791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21792 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21793 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21794 cat >>confdefs.h <<_ACEOF
21795 #define HAVE_LIBDES 1
21796 _ACEOF
21798 LIBS="-ldes $LIBS"
21805 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21806 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21807 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21808 $as_echo_n "(cached) " >&6
21809 else
21810 ac_check_lib_save_LIBS=$LIBS
21811 LIBS="-lkrb4 $LIBS"
21812 cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h. */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21819 /* Override any GCC internal prototype to avoid an error.
21820 Use char because int might match the return type of a GCC
21821 builtin and then its argument prototype would still apply. */
21822 #ifdef __cplusplus
21823 extern "C"
21824 #endif
21825 char krb_get_cred ();
21827 main ()
21829 return krb_get_cred ();
21831 return 0;
21833 _ACEOF
21834 rm -f conftest.$ac_objext conftest$ac_exeext
21835 if { (ac_try="$ac_link"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21841 $as_echo "$ac_try_echo") >&5
21842 (eval "$ac_link") 2>conftest.er1
21843 ac_status=$?
21844 grep -v '^ *+' conftest.er1 >conftest.err
21845 rm -f conftest.er1
21846 cat conftest.err >&5
21847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest$ac_exeext && {
21852 test "$cross_compiling" = yes ||
21853 $as_test_x conftest$ac_exeext
21854 }; then
21855 ac_cv_lib_krb4_krb_get_cred=yes
21856 else
21857 $as_echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_cv_lib_krb4_krb_get_cred=no
21863 rm -rf conftest.dSYM
21864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21865 conftest$ac_exeext conftest.$ac_ext
21866 LIBS=$ac_check_lib_save_LIBS
21868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21869 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21870 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_LIBKRB4 1
21873 _ACEOF
21875 LIBS="-lkrb4 $LIBS"
21877 else
21879 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21880 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21881 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21882 $as_echo_n "(cached) " >&6
21883 else
21884 ac_check_lib_save_LIBS=$LIBS
21885 LIBS="-lkrb $LIBS"
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h. */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21893 /* Override any GCC internal prototype to avoid an error.
21894 Use char because int might match the return type of a GCC
21895 builtin and then its argument prototype would still apply. */
21896 #ifdef __cplusplus
21897 extern "C"
21898 #endif
21899 char krb_get_cred ();
21901 main ()
21903 return krb_get_cred ();
21905 return 0;
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21913 esac
21914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21915 $as_echo "$ac_try_echo") >&5
21916 (eval "$ac_link") 2>conftest.er1
21917 ac_status=$?
21918 grep -v '^ *+' conftest.er1 >conftest.err
21919 rm -f conftest.er1
21920 cat conftest.err >&5
21921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } && {
21923 test -z "$ac_c_werror_flag" ||
21924 test ! -s conftest.err
21925 } && test -s conftest$ac_exeext && {
21926 test "$cross_compiling" = yes ||
21927 $as_test_x conftest$ac_exeext
21928 }; then
21929 ac_cv_lib_krb_krb_get_cred=yes
21930 else
21931 $as_echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_cv_lib_krb_krb_get_cred=no
21937 rm -rf conftest.dSYM
21938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21939 conftest$ac_exeext conftest.$ac_ext
21940 LIBS=$ac_check_lib_save_LIBS
21942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21943 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21944 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21945 cat >>confdefs.h <<_ACEOF
21946 #define HAVE_LIBKRB 1
21947 _ACEOF
21949 LIBS="-lkrb $LIBS"
21957 if test "${with_kerberos5}" != no; then
21959 for ac_header in krb5.h
21961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21964 $as_echo_n "checking for $ac_header... " >&6; }
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966 $as_echo_n "(cached) " >&6
21968 ac_res=`eval 'as_val=${'$as_ac_Header'}
21969 $as_echo "$as_val"'`
21970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21971 $as_echo "$ac_res" >&6; }
21972 else
21973 # Is the header compilable?
21974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21975 $as_echo_n "checking $ac_header usability... " >&6; }
21976 cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h. */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 $ac_includes_default
21983 #include <$ac_header>
21984 _ACEOF
21985 rm -f conftest.$ac_objext
21986 if { (ac_try="$ac_compile"
21987 case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21990 esac
21991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21992 $as_echo "$ac_try_echo") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21994 ac_status=$?
21995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
21998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } && {
22000 test -z "$ac_c_werror_flag" ||
22001 test ! -s conftest.err
22002 } && test -s conftest.$ac_objext; then
22003 ac_header_compiler=yes
22004 else
22005 $as_echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22008 ac_header_compiler=no
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22013 $as_echo "$ac_header_compiler" >&6; }
22015 # Is the header present?
22016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22017 $as_echo_n "checking $ac_header presence... " >&6; }
22018 cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h. */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 #include <$ac_header>
22025 _ACEOF
22026 if { (ac_try="$ac_cpp conftest.$ac_ext"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030 esac
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } >/dev/null && {
22040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 }; then
22043 ac_header_preproc=yes
22044 else
22045 $as_echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_header_preproc=no
22051 rm -f conftest.err conftest.$ac_ext
22052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22053 $as_echo "$ac_header_preproc" >&6; }
22055 # So? What about this header?
22056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22057 yes:no: )
22058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22062 ac_header_preproc=yes
22064 no:yes:* )
22065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22079 esac
22080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22081 $as_echo_n "checking for $ac_header... " >&6; }
22082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083 $as_echo_n "(cached) " >&6
22084 else
22085 eval "$as_ac_Header=\$ac_header_preproc"
22087 ac_res=`eval 'as_val=${'$as_ac_Header'}
22088 $as_echo "$as_val"'`
22089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22090 $as_echo "$ac_res" >&6; }
22093 if test `eval 'as_val=${'$as_ac_Header'}
22094 $as_echo "$as_val"'` = yes; then
22095 cat >>confdefs.h <<_ACEOF
22096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22097 _ACEOF
22098 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22099 $as_echo_n "checking for krb5_error.text... " >&6; }
22100 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22101 $as_echo_n "(cached) " >&6
22102 else
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h. */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <krb5.h>
22112 main ()
22114 static krb5_error ac_aggr;
22115 if (ac_aggr.text)
22116 return 0;
22118 return 0;
22120 _ACEOF
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22126 esac
22127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22128 $as_echo "$ac_try_echo") >&5
22129 (eval "$ac_compile") 2>conftest.er1
22130 ac_status=$?
22131 grep -v '^ *+' conftest.er1 >conftest.err
22132 rm -f conftest.er1
22133 cat conftest.err >&5
22134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && {
22136 test -z "$ac_c_werror_flag" ||
22137 test ! -s conftest.err
22138 } && test -s conftest.$ac_objext; then
22139 ac_cv_member_krb5_error_text=yes
22140 else
22141 $as_echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h. */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 #include <krb5.h>
22153 main ()
22155 static krb5_error ac_aggr;
22156 if (sizeof ac_aggr.text)
22157 return 0;
22159 return 0;
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22167 esac
22168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22169 $as_echo "$ac_try_echo") >&5
22170 (eval "$ac_compile") 2>conftest.er1
22171 ac_status=$?
22172 grep -v '^ *+' conftest.er1 >conftest.err
22173 rm -f conftest.er1
22174 cat conftest.err >&5
22175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } && {
22177 test -z "$ac_c_werror_flag" ||
22178 test ! -s conftest.err
22179 } && test -s conftest.$ac_objext; then
22180 ac_cv_member_krb5_error_text=yes
22181 else
22182 $as_echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 ac_cv_member_krb5_error_text=no
22188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22194 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22195 if test $ac_cv_member_krb5_error_text = yes; then
22197 cat >>confdefs.h <<_ACEOF
22198 #define HAVE_KRB5_ERROR_TEXT 1
22199 _ACEOF
22203 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22204 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22205 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22206 $as_echo_n "(cached) " >&6
22207 else
22208 cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h. */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22214 #include <krb5.h>
22217 main ()
22219 static krb5_error ac_aggr;
22220 if (ac_aggr.e_text)
22221 return 0;
22223 return 0;
22225 _ACEOF
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22231 esac
22232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22233 $as_echo "$ac_try_echo") >&5
22234 (eval "$ac_compile") 2>conftest.er1
22235 ac_status=$?
22236 grep -v '^ *+' conftest.er1 >conftest.err
22237 rm -f conftest.er1
22238 cat conftest.err >&5
22239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
22244 ac_cv_member_krb5_error_e_text=yes
22245 else
22246 $as_echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h. */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 #include <krb5.h>
22258 main ()
22260 static krb5_error ac_aggr;
22261 if (sizeof ac_aggr.e_text)
22262 return 0;
22264 return 0;
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272 esac
22273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22274 $as_echo "$ac_try_echo") >&5
22275 (eval "$ac_compile") 2>conftest.er1
22276 ac_status=$?
22277 grep -v '^ *+' conftest.er1 >conftest.err
22278 rm -f conftest.er1
22279 cat conftest.err >&5
22280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest.$ac_objext; then
22285 ac_cv_member_krb5_error_e_text=yes
22286 else
22287 $as_echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ac_cv_member_krb5_error_e_text=no
22293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22299 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22300 if test $ac_cv_member_krb5_error_e_text = yes; then
22302 cat >>confdefs.h <<_ACEOF
22303 #define HAVE_KRB5_ERROR_E_TEXT 1
22304 _ACEOF
22311 done
22313 else
22315 for ac_header in des.h
22317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22320 $as_echo_n "checking for $ac_header... " >&6; }
22321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22322 $as_echo_n "(cached) " >&6
22324 ac_res=`eval 'as_val=${'$as_ac_Header'}
22325 $as_echo "$as_val"'`
22326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22327 $as_echo "$ac_res" >&6; }
22328 else
22329 # Is the header compilable?
22330 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22331 $as_echo_n "checking $ac_header usability... " >&6; }
22332 cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h. */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 $ac_includes_default
22339 #include <$ac_header>
22340 _ACEOF
22341 rm -f conftest.$ac_objext
22342 if { (ac_try="$ac_compile"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346 esac
22347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22348 $as_echo "$ac_try_echo") >&5
22349 (eval "$ac_compile") 2>conftest.er1
22350 ac_status=$?
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
22354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } && {
22356 test -z "$ac_c_werror_flag" ||
22357 test ! -s conftest.err
22358 } && test -s conftest.$ac_objext; then
22359 ac_header_compiler=yes
22360 else
22361 $as_echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 ac_header_compiler=no
22367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22369 $as_echo "$ac_header_compiler" >&6; }
22371 # Is the header present?
22372 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22373 $as_echo_n "checking $ac_header presence... " >&6; }
22374 cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h. */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 #include <$ac_header>
22381 _ACEOF
22382 if { (ac_try="$ac_cpp conftest.$ac_ext"
22383 case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22386 esac
22387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22388 $as_echo "$ac_try_echo") >&5
22389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22390 ac_status=$?
22391 grep -v '^ *+' conftest.er1 >conftest.err
22392 rm -f conftest.er1
22393 cat conftest.err >&5
22394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } >/dev/null && {
22396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22398 }; then
22399 ac_header_preproc=yes
22400 else
22401 $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 ac_header_preproc=no
22407 rm -f conftest.err conftest.$ac_ext
22408 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22409 $as_echo "$ac_header_preproc" >&6; }
22411 # So? What about this header?
22412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22413 yes:no: )
22414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22415 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22418 ac_header_preproc=yes
22420 no:yes:* )
22421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22422 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22424 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22426 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22428 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22432 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22435 esac
22436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22437 $as_echo_n "checking for $ac_header... " >&6; }
22438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22439 $as_echo_n "(cached) " >&6
22440 else
22441 eval "$as_ac_Header=\$ac_header_preproc"
22443 ac_res=`eval 'as_val=${'$as_ac_Header'}
22444 $as_echo "$as_val"'`
22445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22446 $as_echo "$ac_res" >&6; }
22449 if test `eval 'as_val=${'$as_ac_Header'}
22450 $as_echo "$as_val"'` = yes; then
22451 cat >>confdefs.h <<_ACEOF
22452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22453 _ACEOF
22455 else
22457 for ac_header in kerberosIV/des.h
22459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22462 $as_echo_n "checking for $ac_header... " >&6; }
22463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22464 $as_echo_n "(cached) " >&6
22466 ac_res=`eval 'as_val=${'$as_ac_Header'}
22467 $as_echo "$as_val"'`
22468 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22469 $as_echo "$ac_res" >&6; }
22470 else
22471 # Is the header compilable?
22472 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22473 $as_echo_n "checking $ac_header usability... " >&6; }
22474 cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h. */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 $ac_includes_default
22481 #include <$ac_header>
22482 _ACEOF
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22488 esac
22489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22490 $as_echo "$ac_try_echo") >&5
22491 (eval "$ac_compile") 2>conftest.er1
22492 ac_status=$?
22493 grep -v '^ *+' conftest.er1 >conftest.err
22494 rm -f conftest.er1
22495 cat conftest.err >&5
22496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } && {
22498 test -z "$ac_c_werror_flag" ||
22499 test ! -s conftest.err
22500 } && test -s conftest.$ac_objext; then
22501 ac_header_compiler=yes
22502 else
22503 $as_echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22506 ac_header_compiler=no
22509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22511 $as_echo "$ac_header_compiler" >&6; }
22513 # Is the header present?
22514 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22515 $as_echo_n "checking $ac_header presence... " >&6; }
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 #include <$ac_header>
22523 _ACEOF
22524 if { (ac_try="$ac_cpp conftest.$ac_ext"
22525 case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22528 esac
22529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22530 $as_echo "$ac_try_echo") >&5
22531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22532 ac_status=$?
22533 grep -v '^ *+' conftest.er1 >conftest.err
22534 rm -f conftest.er1
22535 cat conftest.err >&5
22536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } >/dev/null && {
22538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22540 }; then
22541 ac_header_preproc=yes
22542 else
22543 $as_echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22546 ac_header_preproc=no
22549 rm -f conftest.err conftest.$ac_ext
22550 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22551 $as_echo "$ac_header_preproc" >&6; }
22553 # So? What about this header?
22554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22555 yes:no: )
22556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22557 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22559 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22560 ac_header_preproc=yes
22562 no:yes:* )
22563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22564 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22568 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22570 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22574 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22577 esac
22578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22579 $as_echo_n "checking for $ac_header... " >&6; }
22580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22581 $as_echo_n "(cached) " >&6
22582 else
22583 eval "$as_ac_Header=\$ac_header_preproc"
22585 ac_res=`eval 'as_val=${'$as_ac_Header'}
22586 $as_echo "$as_val"'`
22587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22588 $as_echo "$ac_res" >&6; }
22591 if test `eval 'as_val=${'$as_ac_Header'}
22592 $as_echo "$as_val"'` = yes; then
22593 cat >>confdefs.h <<_ACEOF
22594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22595 _ACEOF
22597 else
22599 for ac_header in kerberos/des.h
22601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22604 $as_echo_n "checking for $ac_header... " >&6; }
22605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22606 $as_echo_n "(cached) " >&6
22608 ac_res=`eval 'as_val=${'$as_ac_Header'}
22609 $as_echo "$as_val"'`
22610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22611 $as_echo "$ac_res" >&6; }
22612 else
22613 # Is the header compilable?
22614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22615 $as_echo_n "checking $ac_header usability... " >&6; }
22616 cat >conftest.$ac_ext <<_ACEOF
22617 /* confdefs.h. */
22618 _ACEOF
22619 cat confdefs.h >>conftest.$ac_ext
22620 cat >>conftest.$ac_ext <<_ACEOF
22621 /* end confdefs.h. */
22622 $ac_includes_default
22623 #include <$ac_header>
22624 _ACEOF
22625 rm -f conftest.$ac_objext
22626 if { (ac_try="$ac_compile"
22627 case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22630 esac
22631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22632 $as_echo "$ac_try_echo") >&5
22633 (eval "$ac_compile") 2>conftest.er1
22634 ac_status=$?
22635 grep -v '^ *+' conftest.er1 >conftest.err
22636 rm -f conftest.er1
22637 cat conftest.err >&5
22638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && {
22640 test -z "$ac_c_werror_flag" ||
22641 test ! -s conftest.err
22642 } && test -s conftest.$ac_objext; then
22643 ac_header_compiler=yes
22644 else
22645 $as_echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 ac_header_compiler=no
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22653 $as_echo "$ac_header_compiler" >&6; }
22655 # Is the header present?
22656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22657 $as_echo_n "checking $ac_header presence... " >&6; }
22658 cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h. */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 #include <$ac_header>
22665 _ACEOF
22666 if { (ac_try="$ac_cpp conftest.$ac_ext"
22667 case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22670 esac
22671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22672 $as_echo "$ac_try_echo") >&5
22673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22674 ac_status=$?
22675 grep -v '^ *+' conftest.er1 >conftest.err
22676 rm -f conftest.er1
22677 cat conftest.err >&5
22678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } >/dev/null && {
22680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22681 test ! -s conftest.err
22682 }; then
22683 ac_header_preproc=yes
22684 else
22685 $as_echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22688 ac_header_preproc=no
22691 rm -f conftest.err conftest.$ac_ext
22692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22693 $as_echo "$ac_header_preproc" >&6; }
22695 # So? What about this header?
22696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22697 yes:no: )
22698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22702 ac_header_preproc=yes
22704 no:yes:* )
22705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22719 esac
22720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22721 $as_echo_n "checking for $ac_header... " >&6; }
22722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22723 $as_echo_n "(cached) " >&6
22724 else
22725 eval "$as_ac_Header=\$ac_header_preproc"
22727 ac_res=`eval 'as_val=${'$as_ac_Header'}
22728 $as_echo "$as_val"'`
22729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22730 $as_echo "$ac_res" >&6; }
22733 if test `eval 'as_val=${'$as_ac_Header'}
22734 $as_echo "$as_val"'` = yes; then
22735 cat >>confdefs.h <<_ACEOF
22736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22737 _ACEOF
22741 done
22745 done
22749 done
22752 for ac_header in krb.h
22754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22757 $as_echo_n "checking for $ac_header... " >&6; }
22758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22759 $as_echo_n "(cached) " >&6
22761 ac_res=`eval 'as_val=${'$as_ac_Header'}
22762 $as_echo "$as_val"'`
22763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22764 $as_echo "$ac_res" >&6; }
22765 else
22766 # Is the header compilable?
22767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22768 $as_echo_n "checking $ac_header usability... " >&6; }
22769 cat >conftest.$ac_ext <<_ACEOF
22770 /* confdefs.h. */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22775 $ac_includes_default
22776 #include <$ac_header>
22777 _ACEOF
22778 rm -f conftest.$ac_objext
22779 if { (ac_try="$ac_compile"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22783 esac
22784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22785 $as_echo "$ac_try_echo") >&5
22786 (eval "$ac_compile") 2>conftest.er1
22787 ac_status=$?
22788 grep -v '^ *+' conftest.er1 >conftest.err
22789 rm -f conftest.er1
22790 cat conftest.err >&5
22791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest.$ac_objext; then
22796 ac_header_compiler=yes
22797 else
22798 $as_echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801 ac_header_compiler=no
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22806 $as_echo "$ac_header_compiler" >&6; }
22808 # Is the header present?
22809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22810 $as_echo_n "checking $ac_header presence... " >&6; }
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 #include <$ac_header>
22818 _ACEOF
22819 if { (ac_try="$ac_cpp conftest.$ac_ext"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22823 esac
22824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22825 $as_echo "$ac_try_echo") >&5
22826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22827 ac_status=$?
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
22831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } >/dev/null && {
22833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 }; then
22836 ac_header_preproc=yes
22837 else
22838 $as_echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_header_preproc=no
22844 rm -f conftest.err conftest.$ac_ext
22845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22846 $as_echo "$ac_header_preproc" >&6; }
22848 # So? What about this header?
22849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22850 yes:no: )
22851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22855 ac_header_preproc=yes
22857 no:yes:* )
22858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22872 esac
22873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22874 $as_echo_n "checking for $ac_header... " >&6; }
22875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22876 $as_echo_n "(cached) " >&6
22877 else
22878 eval "$as_ac_Header=\$ac_header_preproc"
22880 ac_res=`eval 'as_val=${'$as_ac_Header'}
22881 $as_echo "$as_val"'`
22882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22883 $as_echo "$ac_res" >&6; }
22886 if test `eval 'as_val=${'$as_ac_Header'}
22887 $as_echo "$as_val"'` = yes; then
22888 cat >>confdefs.h <<_ACEOF
22889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22890 _ACEOF
22892 else
22894 for ac_header in kerberosIV/krb.h
22896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22899 $as_echo_n "checking for $ac_header... " >&6; }
22900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22901 $as_echo_n "(cached) " >&6
22903 ac_res=`eval 'as_val=${'$as_ac_Header'}
22904 $as_echo "$as_val"'`
22905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22906 $as_echo "$ac_res" >&6; }
22907 else
22908 # Is the header compilable?
22909 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22910 $as_echo_n "checking $ac_header usability... " >&6; }
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 $ac_includes_default
22918 #include <$ac_header>
22919 _ACEOF
22920 rm -f conftest.$ac_objext
22921 if { (ac_try="$ac_compile"
22922 case "(($ac_try" in
22923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22925 esac
22926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22927 $as_echo "$ac_try_echo") >&5
22928 (eval "$ac_compile") 2>conftest.er1
22929 ac_status=$?
22930 grep -v '^ *+' conftest.er1 >conftest.err
22931 rm -f conftest.er1
22932 cat conftest.err >&5
22933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && {
22935 test -z "$ac_c_werror_flag" ||
22936 test ! -s conftest.err
22937 } && test -s conftest.$ac_objext; then
22938 ac_header_compiler=yes
22939 else
22940 $as_echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22943 ac_header_compiler=no
22946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22947 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22948 $as_echo "$ac_header_compiler" >&6; }
22950 # Is the header present?
22951 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22952 $as_echo_n "checking $ac_header presence... " >&6; }
22953 cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h. */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 #include <$ac_header>
22960 _ACEOF
22961 if { (ac_try="$ac_cpp conftest.$ac_ext"
22962 case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22965 esac
22966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22967 $as_echo "$ac_try_echo") >&5
22968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22969 ac_status=$?
22970 grep -v '^ *+' conftest.er1 >conftest.err
22971 rm -f conftest.er1
22972 cat conftest.err >&5
22973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } >/dev/null && {
22975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 }; then
22978 ac_header_preproc=yes
22979 else
22980 $as_echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ac_header_preproc=no
22986 rm -f conftest.err conftest.$ac_ext
22987 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22988 $as_echo "$ac_header_preproc" >&6; }
22990 # So? What about this header?
22991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22992 yes:no: )
22993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22994 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22996 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22997 ac_header_preproc=yes
22999 no:yes:* )
23000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23001 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23003 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23007 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23009 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23011 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23014 esac
23015 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23016 $as_echo_n "checking for $ac_header... " >&6; }
23017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23018 $as_echo_n "(cached) " >&6
23019 else
23020 eval "$as_ac_Header=\$ac_header_preproc"
23022 ac_res=`eval 'as_val=${'$as_ac_Header'}
23023 $as_echo "$as_val"'`
23024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23025 $as_echo "$ac_res" >&6; }
23028 if test `eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'` = yes; then
23030 cat >>confdefs.h <<_ACEOF
23031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23032 _ACEOF
23034 else
23036 for ac_header in kerberos/krb.h
23038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23041 $as_echo_n "checking for $ac_header... " >&6; }
23042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23043 $as_echo_n "(cached) " >&6
23045 ac_res=`eval 'as_val=${'$as_ac_Header'}
23046 $as_echo "$as_val"'`
23047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23048 $as_echo "$ac_res" >&6; }
23049 else
23050 # Is the header compilable?
23051 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23052 $as_echo_n "checking $ac_header usability... " >&6; }
23053 cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h. */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 $ac_includes_default
23060 #include <$ac_header>
23061 _ACEOF
23062 rm -f conftest.$ac_objext
23063 if { (ac_try="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23067 esac
23068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23069 $as_echo "$ac_try_echo") >&5
23070 (eval "$ac_compile") 2>conftest.er1
23071 ac_status=$?
23072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
23075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest.$ac_objext; then
23080 ac_header_compiler=yes
23081 else
23082 $as_echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ac_header_compiler=no
23088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23090 $as_echo "$ac_header_compiler" >&6; }
23092 # Is the header present?
23093 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23094 $as_echo_n "checking $ac_header presence... " >&6; }
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 #include <$ac_header>
23102 _ACEOF
23103 if { (ac_try="$ac_cpp conftest.$ac_ext"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107 esac
23108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23109 $as_echo "$ac_try_echo") >&5
23110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } >/dev/null && {
23117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 }; then
23120 ac_header_preproc=yes
23121 else
23122 $as_echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_header_preproc=no
23128 rm -f conftest.err conftest.$ac_ext
23129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 $as_echo "$ac_header_preproc" >&6; }
23132 # So? What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23134 yes:no: )
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23139 ac_header_preproc=yes
23141 no:yes:* )
23142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23143 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23145 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23149 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23153 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23156 esac
23157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23158 $as_echo_n "checking for $ac_header... " >&6; }
23159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23160 $as_echo_n "(cached) " >&6
23161 else
23162 eval "$as_ac_Header=\$ac_header_preproc"
23164 ac_res=`eval 'as_val=${'$as_ac_Header'}
23165 $as_echo "$as_val"'`
23166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23167 $as_echo "$ac_res" >&6; }
23170 if test `eval 'as_val=${'$as_ac_Header'}
23171 $as_echo "$as_val"'` = yes; then
23172 cat >>confdefs.h <<_ACEOF
23173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23174 _ACEOF
23178 done
23182 done
23186 done
23190 for ac_header in com_err.h
23192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23195 $as_echo_n "checking for $ac_header... " >&6; }
23196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23197 $as_echo_n "(cached) " >&6
23199 ac_res=`eval 'as_val=${'$as_ac_Header'}
23200 $as_echo "$as_val"'`
23201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23202 $as_echo "$ac_res" >&6; }
23203 else
23204 # Is the header compilable?
23205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23206 $as_echo_n "checking $ac_header usability... " >&6; }
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 $ac_includes_default
23214 #include <$ac_header>
23215 _ACEOF
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23221 esac
23222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23223 $as_echo "$ac_try_echo") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23225 ac_status=$?
23226 grep -v '^ *+' conftest.er1 >conftest.err
23227 rm -f conftest.er1
23228 cat conftest.err >&5
23229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 ac_header_compiler=yes
23235 else
23236 $as_echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_header_compiler=no
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23244 $as_echo "$ac_header_compiler" >&6; }
23246 # Is the header present?
23247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23248 $as_echo_n "checking $ac_header presence... " >&6; }
23249 cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h. */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255 #include <$ac_header>
23256 _ACEOF
23257 if { (ac_try="$ac_cpp conftest.$ac_ext"
23258 case "(($ac_try" in
23259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23260 *) ac_try_echo=$ac_try;;
23261 esac
23262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23263 $as_echo "$ac_try_echo") >&5
23264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } >/dev/null && {
23271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 }; then
23274 ac_header_preproc=yes
23275 else
23276 $as_echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ac_header_preproc=no
23282 rm -f conftest.err conftest.$ac_ext
23283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23284 $as_echo "$ac_header_preproc" >&6; }
23286 # So? What about this header?
23287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23288 yes:no: )
23289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23293 ac_header_preproc=yes
23295 no:yes:* )
23296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23310 esac
23311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23312 $as_echo_n "checking for $ac_header... " >&6; }
23313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23314 $as_echo_n "(cached) " >&6
23315 else
23316 eval "$as_ac_Header=\$ac_header_preproc"
23318 ac_res=`eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'`
23320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23321 $as_echo "$ac_res" >&6; }
23324 if test `eval 'as_val=${'$as_ac_Header'}
23325 $as_echo "$as_val"'` = yes; then
23326 cat >>confdefs.h <<_ACEOF
23327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23328 _ACEOF
23332 done
23336 # Solaris requires -lintl if you want strerror (which calls dgettext)
23337 # to return localized messages.
23339 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23340 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23341 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23342 $as_echo_n "(cached) " >&6
23343 else
23344 ac_check_lib_save_LIBS=$LIBS
23345 LIBS="-lintl $LIBS"
23346 cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h. */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23353 /* Override any GCC internal prototype to avoid an error.
23354 Use char because int might match the return type of a GCC
23355 builtin and then its argument prototype would still apply. */
23356 #ifdef __cplusplus
23357 extern "C"
23358 #endif
23359 char dgettext ();
23361 main ()
23363 return dgettext ();
23365 return 0;
23367 _ACEOF
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (ac_try="$ac_link"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373 esac
23374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23375 $as_echo "$ac_try_echo") >&5
23376 (eval "$ac_link") 2>conftest.er1
23377 ac_status=$?
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
23380 cat conftest.err >&5
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && {
23383 test -z "$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23385 } && test -s conftest$ac_exeext && {
23386 test "$cross_compiling" = yes ||
23387 $as_test_x conftest$ac_exeext
23388 }; then
23389 ac_cv_lib_intl_dgettext=yes
23390 else
23391 $as_echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_cv_lib_intl_dgettext=no
23397 rm -rf conftest.dSYM
23398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23399 conftest$ac_exeext conftest.$ac_ext
23400 LIBS=$ac_check_lib_save_LIBS
23402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23403 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23404 if test $ac_cv_lib_intl_dgettext = yes; then
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_LIBINTL 1
23407 _ACEOF
23409 LIBS="-lintl $LIBS"
23414 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23415 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23416 if test "${emacs_cv_localtime_cache+set}" = set; then
23417 $as_echo_n "(cached) " >&6
23418 else
23419 if test x$ac_cv_func_tzset = xyes; then
23420 if test "$cross_compiling" = yes; then
23421 # If we have tzset, assume the worst when cross-compiling.
23422 emacs_cv_localtime_cache=yes
23423 else
23424 cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h. */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 #include <time.h>
23431 extern char **environ;
23432 unset_TZ ()
23434 char **from, **to;
23435 for (to = from = environ; (*to = *from); from++)
23436 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23437 to++;
23439 char TZ_GMT0[] = "TZ=GMT0";
23440 char TZ_PST8[] = "TZ=PST8";
23441 main()
23443 time_t now = time ((time_t *) 0);
23444 int hour_GMT0, hour_unset;
23445 if (putenv (TZ_GMT0) != 0)
23446 exit (1);
23447 hour_GMT0 = localtime (&now)->tm_hour;
23448 unset_TZ ();
23449 hour_unset = localtime (&now)->tm_hour;
23450 if (putenv (TZ_PST8) != 0)
23451 exit (1);
23452 if (localtime (&now)->tm_hour == hour_GMT0)
23453 exit (1);
23454 unset_TZ ();
23455 if (localtime (&now)->tm_hour != hour_unset)
23456 exit (1);
23457 exit (0);
23459 _ACEOF
23460 rm -f conftest$ac_exeext
23461 if { (ac_try="$ac_link"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465 esac
23466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23467 $as_echo "$ac_try_echo") >&5
23468 (eval "$ac_link") 2>&5
23469 ac_status=$?
23470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23472 { (case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23475 esac
23476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478 (eval "$ac_try") 2>&5
23479 ac_status=$?
23480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 emacs_cv_localtime_cache=no
23483 else
23484 $as_echo "$as_me: program exited with status $ac_status" >&5
23485 $as_echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ( exit $ac_status )
23489 emacs_cv_localtime_cache=yes
23491 rm -rf conftest.dSYM
23492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23496 else
23497 # If we lack tzset, report that localtime does not cache TZ,
23498 # since we can't invalidate the cache if we don't have tzset.
23499 emacs_cv_localtime_cache=no
23502 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23503 $as_echo "$emacs_cv_localtime_cache" >&6; }
23504 if test $emacs_cv_localtime_cache = yes; then
23506 cat >>confdefs.h <<\_ACEOF
23507 #define LOCALTIME_CACHE 1
23508 _ACEOF
23512 if test "x$HAVE_TIMEVAL" = xyes; then
23514 for ac_func in gettimeofday
23516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23518 $as_echo_n "checking for $ac_func... " >&6; }
23519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23520 $as_echo_n "(cached) " >&6
23521 else
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23530 #define $ac_func innocuous_$ac_func
23532 /* System header to define __stub macros and hopefully few prototypes,
23533 which can conflict with char $ac_func (); below.
23534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23535 <limits.h> exists even on freestanding compilers. */
23537 #ifdef __STDC__
23538 # include <limits.h>
23539 #else
23540 # include <assert.h>
23541 #endif
23543 #undef $ac_func
23545 /* Override any GCC internal prototype to avoid an error.
23546 Use char because int might match the return type of a GCC
23547 builtin and then its argument prototype would still apply. */
23548 #ifdef __cplusplus
23549 extern "C"
23550 #endif
23551 char $ac_func ();
23552 /* The GNU C library defines this for functions which it implements
23553 to always fail with ENOSYS. Some functions are actually named
23554 something starting with __ and the normal name is an alias. */
23555 #if defined __stub_$ac_func || defined __stub___$ac_func
23556 choke me
23557 #endif
23560 main ()
23562 return $ac_func ();
23564 return 0;
23566 _ACEOF
23567 rm -f conftest.$ac_objext conftest$ac_exeext
23568 if { (ac_try="$ac_link"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23572 esac
23573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23574 $as_echo "$ac_try_echo") >&5
23575 (eval "$ac_link") 2>conftest.er1
23576 ac_status=$?
23577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
23580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } && {
23582 test -z "$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 } && test -s conftest$ac_exeext && {
23585 test "$cross_compiling" = yes ||
23586 $as_test_x conftest$ac_exeext
23587 }; then
23588 eval "$as_ac_var=yes"
23589 else
23590 $as_echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 eval "$as_ac_var=no"
23596 rm -rf conftest.dSYM
23597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23598 conftest$ac_exeext conftest.$ac_ext
23600 ac_res=`eval 'as_val=${'$as_ac_var'}
23601 $as_echo "$as_val"'`
23602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23603 $as_echo "$ac_res" >&6; }
23604 if test `eval 'as_val=${'$as_ac_var'}
23605 $as_echo "$as_val"'` = yes; then
23606 cat >>confdefs.h <<_ACEOF
23607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23608 _ACEOF
23611 done
23613 if test $ac_cv_func_gettimeofday = yes; then
23614 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23615 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23616 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23617 $as_echo_n "(cached) " >&6
23618 else
23619 cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h. */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23626 #ifdef TIME_WITH_SYS_TIME
23627 #include <sys/time.h>
23628 #include <time.h>
23629 #else
23630 #ifdef HAVE_SYS_TIME_H
23631 #include <sys/time.h>
23632 #else
23633 #include <time.h>
23634 #endif
23635 #endif
23637 main ()
23639 struct timeval time;
23640 gettimeofday (&time, 0);
23642 return 0;
23644 _ACEOF
23645 rm -f conftest.$ac_objext
23646 if { (ac_try="$ac_compile"
23647 case "(($ac_try" in
23648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23650 esac
23651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23652 $as_echo "$ac_try_echo") >&5
23653 (eval "$ac_compile") 2>conftest.er1
23654 ac_status=$?
23655 grep -v '^ *+' conftest.er1 >conftest.err
23656 rm -f conftest.er1
23657 cat conftest.err >&5
23658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && {
23660 test -z "$ac_c_werror_flag" ||
23661 test ! -s conftest.err
23662 } && test -s conftest.$ac_objext; then
23663 emacs_cv_gettimeofday_two_arguments=yes
23664 else
23665 $as_echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 emacs_cv_gettimeofday_two_arguments=no
23671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23673 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23674 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23675 if test $emacs_cv_gettimeofday_two_arguments = no; then
23677 cat >>confdefs.h <<\_ACEOF
23678 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23679 _ACEOF
23685 ok_so_far=yes
23686 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23687 $as_echo_n "checking for socket... " >&6; }
23688 if test "${ac_cv_func_socket+set}" = set; then
23689 $as_echo_n "(cached) " >&6
23690 else
23691 cat >conftest.$ac_ext <<_ACEOF
23692 /* confdefs.h. */
23693 _ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23697 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23699 #define socket innocuous_socket
23701 /* System header to define __stub macros and hopefully few prototypes,
23702 which can conflict with char socket (); below.
23703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23704 <limits.h> exists even on freestanding compilers. */
23706 #ifdef __STDC__
23707 # include <limits.h>
23708 #else
23709 # include <assert.h>
23710 #endif
23712 #undef socket
23714 /* Override any GCC internal prototype to avoid an error.
23715 Use char because int might match the return type of a GCC
23716 builtin and then its argument prototype would still apply. */
23717 #ifdef __cplusplus
23718 extern "C"
23719 #endif
23720 char socket ();
23721 /* The GNU C library defines this for functions which it implements
23722 to always fail with ENOSYS. Some functions are actually named
23723 something starting with __ and the normal name is an alias. */
23724 #if defined __stub_socket || defined __stub___socket
23725 choke me
23726 #endif
23729 main ()
23731 return socket ();
23733 return 0;
23735 _ACEOF
23736 rm -f conftest.$ac_objext conftest$ac_exeext
23737 if { (ac_try="$ac_link"
23738 case "(($ac_try" in
23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740 *) ac_try_echo=$ac_try;;
23741 esac
23742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23743 $as_echo "$ac_try_echo") >&5
23744 (eval "$ac_link") 2>conftest.er1
23745 ac_status=$?
23746 grep -v '^ *+' conftest.er1 >conftest.err
23747 rm -f conftest.er1
23748 cat conftest.err >&5
23749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } && {
23751 test -z "$ac_c_werror_flag" ||
23752 test ! -s conftest.err
23753 } && test -s conftest$ac_exeext && {
23754 test "$cross_compiling" = yes ||
23755 $as_test_x conftest$ac_exeext
23756 }; then
23757 ac_cv_func_socket=yes
23758 else
23759 $as_echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23762 ac_cv_func_socket=no
23765 rm -rf conftest.dSYM
23766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23767 conftest$ac_exeext conftest.$ac_ext
23769 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23770 $as_echo "$ac_cv_func_socket" >&6; }
23771 if test $ac_cv_func_socket = yes; then
23773 else
23774 ok_so_far=no
23777 if test $ok_so_far = yes; then
23778 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23779 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23780 $as_echo_n "checking for netinet/in.h... " >&6; }
23781 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23782 $as_echo_n "(cached) " >&6
23784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23785 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23786 else
23787 # Is the header compilable?
23788 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23789 $as_echo_n "checking netinet/in.h usability... " >&6; }
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 $ac_includes_default
23797 #include <netinet/in.h>
23798 _ACEOF
23799 rm -f conftest.$ac_objext
23800 if { (ac_try="$ac_compile"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23804 esac
23805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23806 $as_echo "$ac_try_echo") >&5
23807 (eval "$ac_compile") 2>conftest.er1
23808 ac_status=$?
23809 grep -v '^ *+' conftest.er1 >conftest.err
23810 rm -f conftest.er1
23811 cat conftest.err >&5
23812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest.$ac_objext; then
23817 ac_header_compiler=yes
23818 else
23819 $as_echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 ac_header_compiler=no
23825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23826 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23827 $as_echo "$ac_header_compiler" >&6; }
23829 # Is the header present?
23830 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23831 $as_echo_n "checking netinet/in.h presence... " >&6; }
23832 cat >conftest.$ac_ext <<_ACEOF
23833 /* confdefs.h. */
23834 _ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h. */
23838 #include <netinet/in.h>
23839 _ACEOF
23840 if { (ac_try="$ac_cpp conftest.$ac_ext"
23841 case "(($ac_try" in
23842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843 *) ac_try_echo=$ac_try;;
23844 esac
23845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23846 $as_echo "$ac_try_echo") >&5
23847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23848 ac_status=$?
23849 grep -v '^ *+' conftest.er1 >conftest.err
23850 rm -f conftest.er1
23851 cat conftest.err >&5
23852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } >/dev/null && {
23854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23855 test ! -s conftest.err
23856 }; then
23857 ac_header_preproc=yes
23858 else
23859 $as_echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ac_header_preproc=no
23865 rm -f conftest.err conftest.$ac_ext
23866 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23867 $as_echo "$ac_header_preproc" >&6; }
23869 # So? What about this header?
23870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23871 yes:no: )
23872 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23873 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23874 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23875 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23876 ac_header_preproc=yes
23878 no:yes:* )
23879 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23880 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23881 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23882 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23883 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23884 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23885 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23886 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23887 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23888 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23889 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23890 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23893 esac
23894 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23895 $as_echo_n "checking for netinet/in.h... " >&6; }
23896 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23897 $as_echo_n "(cached) " >&6
23898 else
23899 ac_cv_header_netinet_in_h=$ac_header_preproc
23901 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23902 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23905 if test $ac_cv_header_netinet_in_h = yes; then
23907 else
23908 ok_so_far=no
23913 if test $ok_so_far = yes; then
23914 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23915 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23916 $as_echo_n "checking for arpa/inet.h... " >&6; }
23917 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23918 $as_echo_n "(cached) " >&6
23920 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23921 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23922 else
23923 # Is the header compilable?
23924 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23925 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h. */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 $ac_includes_default
23933 #include <arpa/inet.h>
23934 _ACEOF
23935 rm -f conftest.$ac_objext
23936 if { (ac_try="$ac_compile"
23937 case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23940 esac
23941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23942 $as_echo "$ac_try_echo") >&5
23943 (eval "$ac_compile") 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } && {
23950 test -z "$ac_c_werror_flag" ||
23951 test ! -s conftest.err
23952 } && test -s conftest.$ac_objext; then
23953 ac_header_compiler=yes
23954 else
23955 $as_echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23958 ac_header_compiler=no
23961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23963 $as_echo "$ac_header_compiler" >&6; }
23965 # Is the header present?
23966 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23967 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23968 cat >conftest.$ac_ext <<_ACEOF
23969 /* confdefs.h. */
23970 _ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h. */
23974 #include <arpa/inet.h>
23975 _ACEOF
23976 if { (ac_try="$ac_cpp conftest.$ac_ext"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23980 esac
23981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23982 $as_echo "$ac_try_echo") >&5
23983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23984 ac_status=$?
23985 grep -v '^ *+' conftest.er1 >conftest.err
23986 rm -f conftest.er1
23987 cat conftest.err >&5
23988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } >/dev/null && {
23990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23991 test ! -s conftest.err
23992 }; then
23993 ac_header_preproc=yes
23994 else
23995 $as_echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23998 ac_header_preproc=no
24001 rm -f conftest.err conftest.$ac_ext
24002 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24003 $as_echo "$ac_header_preproc" >&6; }
24005 # So? What about this header?
24006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24007 yes:no: )
24008 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24009 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24010 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24011 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24012 ac_header_preproc=yes
24014 no:yes:* )
24015 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24016 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24017 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24018 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24019 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24020 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24021 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24022 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24023 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24024 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24025 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24026 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24029 esac
24030 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24031 $as_echo_n "checking for arpa/inet.h... " >&6; }
24032 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24033 $as_echo_n "(cached) " >&6
24034 else
24035 ac_cv_header_arpa_inet_h=$ac_header_preproc
24037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24038 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24041 if test $ac_cv_header_arpa_inet_h = yes; then
24043 else
24044 ok_so_far=no
24049 if test $ok_so_far = yes; then
24051 cat >>confdefs.h <<\_ACEOF
24052 #define HAVE_INET_SOCKETS 1
24053 _ACEOF
24058 for ac_header in sys/ioctl.h
24060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24063 $as_echo_n "checking for $ac_header... " >&6; }
24064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24065 $as_echo_n "(cached) " >&6
24067 ac_res=`eval 'as_val=${'$as_ac_Header'}
24068 $as_echo "$as_val"'`
24069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24070 $as_echo "$ac_res" >&6; }
24071 else
24072 # Is the header compilable?
24073 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24074 $as_echo_n "checking $ac_header usability... " >&6; }
24075 cat >conftest.$ac_ext <<_ACEOF
24076 /* confdefs.h. */
24077 _ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h. */
24081 $ac_includes_default
24082 #include <$ac_header>
24083 _ACEOF
24084 rm -f conftest.$ac_objext
24085 if { (ac_try="$ac_compile"
24086 case "(($ac_try" in
24087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24089 esac
24090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24091 $as_echo "$ac_try_echo") >&5
24092 (eval "$ac_compile") 2>conftest.er1
24093 ac_status=$?
24094 grep -v '^ *+' conftest.er1 >conftest.err
24095 rm -f conftest.er1
24096 cat conftest.err >&5
24097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest.$ac_objext; then
24102 ac_header_compiler=yes
24103 else
24104 $as_echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24107 ac_header_compiler=no
24110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24111 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24112 $as_echo "$ac_header_compiler" >&6; }
24114 # Is the header present?
24115 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24116 $as_echo_n "checking $ac_header presence... " >&6; }
24117 cat >conftest.$ac_ext <<_ACEOF
24118 /* confdefs.h. */
24119 _ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24123 #include <$ac_header>
24124 _ACEOF
24125 if { (ac_try="$ac_cpp conftest.$ac_ext"
24126 case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24129 esac
24130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24131 $as_echo "$ac_try_echo") >&5
24132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24133 ac_status=$?
24134 grep -v '^ *+' conftest.er1 >conftest.err
24135 rm -f conftest.er1
24136 cat conftest.err >&5
24137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } >/dev/null && {
24139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24140 test ! -s conftest.err
24141 }; then
24142 ac_header_preproc=yes
24143 else
24144 $as_echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24147 ac_header_preproc=no
24150 rm -f conftest.err conftest.$ac_ext
24151 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24152 $as_echo "$ac_header_preproc" >&6; }
24154 # So? What about this header?
24155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24156 yes:no: )
24157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24158 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24161 ac_header_preproc=yes
24163 no:yes:* )
24164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24165 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24167 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24169 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24171 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24175 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24178 esac
24179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24180 $as_echo_n "checking for $ac_header... " >&6; }
24181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24182 $as_echo_n "(cached) " >&6
24183 else
24184 eval "$as_ac_Header=\$ac_header_preproc"
24186 ac_res=`eval 'as_val=${'$as_ac_Header'}
24187 $as_echo "$as_val"'`
24188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24189 $as_echo "$ac_res" >&6; }
24192 if test `eval 'as_val=${'$as_ac_Header'}
24193 $as_echo "$as_val"'` = yes; then
24194 cat >>confdefs.h <<_ACEOF
24195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24196 _ACEOF
24200 done
24203 if test -f /usr/lpp/X11/bin/smt.exp; then
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_AIX_SMT_EXP 1
24207 _ACEOF
24211 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24212 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24213 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24214 { $as_echo "$as_me:$LINENO: result: yes" >&5
24215 $as_echo "yes" >&6; }
24217 cat >>confdefs.h <<\_ACEOF
24218 #define HAVE_DEV_PTMX 1
24219 _ACEOF
24221 else
24222 { $as_echo "$as_me:$LINENO: result: no" >&5
24223 $as_echo "no" >&6; }
24226 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24227 $as_echo_n "checking for pid_t... " >&6; }
24228 if test "${ac_cv_type_pid_t+set}" = set; then
24229 $as_echo_n "(cached) " >&6
24230 else
24231 ac_cv_type_pid_t=no
24232 cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h. */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24238 $ac_includes_default
24240 main ()
24242 if (sizeof (pid_t))
24243 return 0;
24245 return 0;
24247 _ACEOF
24248 rm -f conftest.$ac_objext
24249 if { (ac_try="$ac_compile"
24250 case "(($ac_try" in
24251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252 *) ac_try_echo=$ac_try;;
24253 esac
24254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24255 $as_echo "$ac_try_echo") >&5
24256 (eval "$ac_compile") 2>conftest.er1
24257 ac_status=$?
24258 grep -v '^ *+' conftest.er1 >conftest.err
24259 rm -f conftest.er1
24260 cat conftest.err >&5
24261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && {
24263 test -z "$ac_c_werror_flag" ||
24264 test ! -s conftest.err
24265 } && test -s conftest.$ac_objext; then
24266 cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h. */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24274 main ()
24276 if (sizeof ((pid_t)))
24277 return 0;
24279 return 0;
24281 _ACEOF
24282 rm -f conftest.$ac_objext
24283 if { (ac_try="$ac_compile"
24284 case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24287 esac
24288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24289 $as_echo "$ac_try_echo") >&5
24290 (eval "$ac_compile") 2>conftest.er1
24291 ac_status=$?
24292 grep -v '^ *+' conftest.er1 >conftest.err
24293 rm -f conftest.er1
24294 cat conftest.err >&5
24295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); } && {
24297 test -z "$ac_c_werror_flag" ||
24298 test ! -s conftest.err
24299 } && test -s conftest.$ac_objext; then
24301 else
24302 $as_echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 ac_cv_type_pid_t=yes
24308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 else
24310 $as_echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24319 $as_echo "$ac_cv_type_pid_t" >&6; }
24320 if test $ac_cv_type_pid_t = yes; then
24322 else
24324 cat >>confdefs.h <<_ACEOF
24325 #define pid_t int
24326 _ACEOF
24331 for ac_header in vfork.h
24333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24336 $as_echo_n "checking for $ac_header... " >&6; }
24337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24338 $as_echo_n "(cached) " >&6
24340 ac_res=`eval 'as_val=${'$as_ac_Header'}
24341 $as_echo "$as_val"'`
24342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24343 $as_echo "$ac_res" >&6; }
24344 else
24345 # Is the header compilable?
24346 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24347 $as_echo_n "checking $ac_header usability... " >&6; }
24348 cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h. */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 $ac_includes_default
24355 #include <$ac_header>
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24362 esac
24363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364 $as_echo "$ac_try_echo") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24366 ac_status=$?
24367 grep -v '^ *+' conftest.er1 >conftest.err
24368 rm -f conftest.er1
24369 cat conftest.err >&5
24370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } && {
24372 test -z "$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24374 } && test -s conftest.$ac_objext; then
24375 ac_header_compiler=yes
24376 else
24377 $as_echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_header_compiler=no
24383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24385 $as_echo "$ac_header_compiler" >&6; }
24387 # Is the header present?
24388 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24389 $as_echo_n "checking $ac_header presence... " >&6; }
24390 cat >conftest.$ac_ext <<_ACEOF
24391 /* confdefs.h. */
24392 _ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24396 #include <$ac_header>
24397 _ACEOF
24398 if { (ac_try="$ac_cpp conftest.$ac_ext"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24402 esac
24403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24404 $as_echo "$ac_try_echo") >&5
24405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24406 ac_status=$?
24407 grep -v '^ *+' conftest.er1 >conftest.err
24408 rm -f conftest.er1
24409 cat conftest.err >&5
24410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } >/dev/null && {
24412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24413 test ! -s conftest.err
24414 }; then
24415 ac_header_preproc=yes
24416 else
24417 $as_echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24420 ac_header_preproc=no
24423 rm -f conftest.err conftest.$ac_ext
24424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24425 $as_echo "$ac_header_preproc" >&6; }
24427 # So? What about this header?
24428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24429 yes:no: )
24430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24431 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24434 ac_header_preproc=yes
24436 no:yes:* )
24437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24438 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24440 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24442 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24444 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24448 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24451 esac
24452 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24453 $as_echo_n "checking for $ac_header... " >&6; }
24454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24455 $as_echo_n "(cached) " >&6
24456 else
24457 eval "$as_ac_Header=\$ac_header_preproc"
24459 ac_res=`eval 'as_val=${'$as_ac_Header'}
24460 $as_echo "$as_val"'`
24461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24462 $as_echo "$ac_res" >&6; }
24465 if test `eval 'as_val=${'$as_ac_Header'}
24466 $as_echo "$as_val"'` = yes; then
24467 cat >>confdefs.h <<_ACEOF
24468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24469 _ACEOF
24473 done
24477 for ac_func in fork vfork
24479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24480 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24481 $as_echo_n "checking for $ac_func... " >&6; }
24482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24483 $as_echo_n "(cached) " >&6
24484 else
24485 cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24493 #define $ac_func innocuous_$ac_func
24495 /* System header to define __stub macros and hopefully few prototypes,
24496 which can conflict with char $ac_func (); below.
24497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24498 <limits.h> exists even on freestanding compilers. */
24500 #ifdef __STDC__
24501 # include <limits.h>
24502 #else
24503 # include <assert.h>
24504 #endif
24506 #undef $ac_func
24508 /* Override any GCC internal prototype to avoid an error.
24509 Use char because int might match the return type of a GCC
24510 builtin and then its argument prototype would still apply. */
24511 #ifdef __cplusplus
24512 extern "C"
24513 #endif
24514 char $ac_func ();
24515 /* The GNU C library defines this for functions which it implements
24516 to always fail with ENOSYS. Some functions are actually named
24517 something starting with __ and the normal name is an alias. */
24518 #if defined __stub_$ac_func || defined __stub___$ac_func
24519 choke me
24520 #endif
24523 main ()
24525 return $ac_func ();
24527 return 0;
24529 _ACEOF
24530 rm -f conftest.$ac_objext conftest$ac_exeext
24531 if { (ac_try="$ac_link"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24535 esac
24536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24537 $as_echo "$ac_try_echo") >&5
24538 (eval "$ac_link") 2>conftest.er1
24539 ac_status=$?
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
24543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } && {
24545 test -z "$ac_c_werror_flag" ||
24546 test ! -s conftest.err
24547 } && test -s conftest$ac_exeext && {
24548 test "$cross_compiling" = yes ||
24549 $as_test_x conftest$ac_exeext
24550 }; then
24551 eval "$as_ac_var=yes"
24552 else
24553 $as_echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24556 eval "$as_ac_var=no"
24559 rm -rf conftest.dSYM
24560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24561 conftest$ac_exeext conftest.$ac_ext
24563 ac_res=`eval 'as_val=${'$as_ac_var'}
24564 $as_echo "$as_val"'`
24565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24566 $as_echo "$ac_res" >&6; }
24567 if test `eval 'as_val=${'$as_ac_var'}
24568 $as_echo "$as_val"'` = yes; then
24569 cat >>confdefs.h <<_ACEOF
24570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24571 _ACEOF
24574 done
24576 if test "x$ac_cv_func_fork" = xyes; then
24577 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24578 $as_echo_n "checking for working fork... " >&6; }
24579 if test "${ac_cv_func_fork_works+set}" = set; then
24580 $as_echo_n "(cached) " >&6
24581 else
24582 if test "$cross_compiling" = yes; then
24583 ac_cv_func_fork_works=cross
24584 else
24585 cat >conftest.$ac_ext <<_ACEOF
24586 /* confdefs.h. */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 $ac_includes_default
24593 main ()
24596 /* By Ruediger Kuhlmann. */
24597 return fork () < 0;
24600 return 0;
24602 _ACEOF
24603 rm -f conftest$ac_exeext
24604 if { (ac_try="$ac_link"
24605 case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24608 esac
24609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24610 $as_echo "$ac_try_echo") >&5
24611 (eval "$ac_link") 2>&5
24612 ac_status=$?
24613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24615 { (case "(($ac_try" in
24616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617 *) ac_try_echo=$ac_try;;
24618 esac
24619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24620 $as_echo "$ac_try_echo") >&5
24621 (eval "$ac_try") 2>&5
24622 ac_status=$?
24623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; }; then
24625 ac_cv_func_fork_works=yes
24626 else
24627 $as_echo "$as_me: program exited with status $ac_status" >&5
24628 $as_echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 ( exit $ac_status )
24632 ac_cv_func_fork_works=no
24634 rm -rf conftest.dSYM
24635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24641 $as_echo "$ac_cv_func_fork_works" >&6; }
24643 else
24644 ac_cv_func_fork_works=$ac_cv_func_fork
24646 if test "x$ac_cv_func_fork_works" = xcross; then
24647 case $host in
24648 *-*-amigaos* | *-*-msdosdjgpp*)
24649 # Override, as these systems have only a dummy fork() stub
24650 ac_cv_func_fork_works=no
24653 ac_cv_func_fork_works=yes
24655 esac
24656 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24657 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24659 ac_cv_func_vfork_works=$ac_cv_func_vfork
24660 if test "x$ac_cv_func_vfork" = xyes; then
24661 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24662 $as_echo_n "checking for working vfork... " >&6; }
24663 if test "${ac_cv_func_vfork_works+set}" = set; then
24664 $as_echo_n "(cached) " >&6
24665 else
24666 if test "$cross_compiling" = yes; then
24667 ac_cv_func_vfork_works=cross
24668 else
24669 cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h. */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 /* Thanks to Paul Eggert for this test. */
24676 $ac_includes_default
24677 #include <sys/wait.h>
24678 #ifdef HAVE_VFORK_H
24679 # include <vfork.h>
24680 #endif
24681 /* On some sparc systems, changes by the child to local and incoming
24682 argument registers are propagated back to the parent. The compiler
24683 is told about this with #include <vfork.h>, but some compilers
24684 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24685 static variable whose address is put into a register that is
24686 clobbered by the vfork. */
24687 static void
24688 #ifdef __cplusplus
24689 sparc_address_test (int arg)
24690 # else
24691 sparc_address_test (arg) int arg;
24692 #endif
24694 static pid_t child;
24695 if (!child) {
24696 child = vfork ();
24697 if (child < 0) {
24698 perror ("vfork");
24699 _exit(2);
24701 if (!child) {
24702 arg = getpid();
24703 write(-1, "", 0);
24704 _exit (arg);
24710 main ()
24712 pid_t parent = getpid ();
24713 pid_t child;
24715 sparc_address_test (0);
24717 child = vfork ();
24719 if (child == 0) {
24720 /* Here is another test for sparc vfork register problems. This
24721 test uses lots of local variables, at least as many local
24722 variables as main has allocated so far including compiler
24723 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24724 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24725 reuse the register of parent for one of the local variables,
24726 since it will think that parent can't possibly be used any more
24727 in this routine. Assigning to the local variable will thus
24728 munge parent in the parent process. */
24729 pid_t
24730 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24731 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24732 /* Convince the compiler that p..p7 are live; otherwise, it might
24733 use the same hardware register for all 8 local variables. */
24734 if (p != p1 || p != p2 || p != p3 || p != p4
24735 || p != p5 || p != p6 || p != p7)
24736 _exit(1);
24738 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24739 from child file descriptors. If the child closes a descriptor
24740 before it execs or exits, this munges the parent's descriptor
24741 as well. Test for this by closing stdout in the child. */
24742 _exit(close(fileno(stdout)) != 0);
24743 } else {
24744 int status;
24745 struct stat st;
24747 while (wait(&status) != child)
24749 return (
24750 /* Was there some problem with vforking? */
24751 child < 0
24753 /* Did the child fail? (This shouldn't happen.) */
24754 || status
24756 /* Did the vfork/compiler bug occur? */
24757 || parent != getpid()
24759 /* Did the file descriptor bug occur? */
24760 || fstat(fileno(stdout), &st) != 0
24764 _ACEOF
24765 rm -f conftest$ac_exeext
24766 if { (ac_try="$ac_link"
24767 case "(($ac_try" in
24768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769 *) ac_try_echo=$ac_try;;
24770 esac
24771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24772 $as_echo "$ac_try_echo") >&5
24773 (eval "$ac_link") 2>&5
24774 ac_status=$?
24775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24777 { (case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24780 esac
24781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24782 $as_echo "$ac_try_echo") >&5
24783 (eval "$ac_try") 2>&5
24784 ac_status=$?
24785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); }; }; then
24787 ac_cv_func_vfork_works=yes
24788 else
24789 $as_echo "$as_me: program exited with status $ac_status" >&5
24790 $as_echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24793 ( exit $ac_status )
24794 ac_cv_func_vfork_works=no
24796 rm -rf conftest.dSYM
24797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24802 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24803 $as_echo "$ac_cv_func_vfork_works" >&6; }
24806 if test "x$ac_cv_func_fork_works" = xcross; then
24807 ac_cv_func_vfork_works=$ac_cv_func_vfork
24808 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24809 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24812 if test "x$ac_cv_func_vfork_works" = xyes; then
24814 cat >>confdefs.h <<\_ACEOF
24815 #define HAVE_WORKING_VFORK 1
24816 _ACEOF
24818 else
24820 cat >>confdefs.h <<\_ACEOF
24821 #define vfork fork
24822 _ACEOF
24825 if test "x$ac_cv_func_fork_works" = xyes; then
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_WORKING_FORK 1
24829 _ACEOF
24834 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24835 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24836 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24837 $as_echo_n "(cached) " >&6
24838 else
24839 cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h. */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 #include <langinfo.h>
24847 main ()
24849 char* cs = nl_langinfo(CODESET);
24851 return 0;
24853 _ACEOF
24854 rm -f conftest.$ac_objext conftest$ac_exeext
24855 if { (ac_try="$ac_link"
24856 case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24859 esac
24860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24861 $as_echo "$ac_try_echo") >&5
24862 (eval "$ac_link") 2>conftest.er1
24863 ac_status=$?
24864 grep -v '^ *+' conftest.er1 >conftest.err
24865 rm -f conftest.er1
24866 cat conftest.err >&5
24867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); } && {
24869 test -z "$ac_c_werror_flag" ||
24870 test ! -s conftest.err
24871 } && test -s conftest$ac_exeext && {
24872 test "$cross_compiling" = yes ||
24873 $as_test_x conftest$ac_exeext
24874 }; then
24875 emacs_cv_langinfo_codeset=yes
24876 else
24877 $as_echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24880 emacs_cv_langinfo_codeset=no
24883 rm -rf conftest.dSYM
24884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24885 conftest$ac_exeext conftest.$ac_ext
24888 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24889 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24890 if test $emacs_cv_langinfo_codeset = yes; then
24892 cat >>confdefs.h <<\_ACEOF
24893 #define HAVE_LANGINFO_CODESET 1
24894 _ACEOF
24898 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24899 $as_echo_n "checking for size_t... " >&6; }
24900 if test "${ac_cv_type_size_t+set}" = set; then
24901 $as_echo_n "(cached) " >&6
24902 else
24903 ac_cv_type_size_t=no
24904 cat >conftest.$ac_ext <<_ACEOF
24905 /* confdefs.h. */
24906 _ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h. */
24910 $ac_includes_default
24912 main ()
24914 if (sizeof (size_t))
24915 return 0;
24917 return 0;
24919 _ACEOF
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24925 esac
24926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24927 $as_echo "$ac_try_echo") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24929 ac_status=$?
24930 grep -v '^ *+' conftest.er1 >conftest.err
24931 rm -f conftest.er1
24932 cat conftest.err >&5
24933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest.$ac_objext; then
24938 cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h. */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 $ac_includes_default
24946 main ()
24948 if (sizeof ((size_t)))
24949 return 0;
24951 return 0;
24953 _ACEOF
24954 rm -f conftest.$ac_objext
24955 if { (ac_try="$ac_compile"
24956 case "(($ac_try" in
24957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958 *) ac_try_echo=$ac_try;;
24959 esac
24960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24961 $as_echo "$ac_try_echo") >&5
24962 (eval "$ac_compile") 2>conftest.er1
24963 ac_status=$?
24964 grep -v '^ *+' conftest.er1 >conftest.err
24965 rm -f conftest.er1
24966 cat conftest.err >&5
24967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); } && {
24969 test -z "$ac_c_werror_flag" ||
24970 test ! -s conftest.err
24971 } && test -s conftest.$ac_objext; then
24973 else
24974 $as_echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24977 ac_cv_type_size_t=yes
24980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24981 else
24982 $as_echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24990 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24991 $as_echo "$ac_cv_type_size_t" >&6; }
24992 if test $ac_cv_type_size_t = yes; then
24994 cat >>confdefs.h <<_ACEOF
24995 #define HAVE_SIZE_T 1
24996 _ACEOF
25002 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25003 $as_echo_n "checking for mbstate_t... " >&6; }
25004 if test "${ac_cv_type_mbstate_t+set}" = set; then
25005 $as_echo_n "(cached) " >&6
25006 else
25007 cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h. */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25013 $ac_includes_default
25014 # include <wchar.h>
25016 main ()
25018 mbstate_t x; return sizeof x;
25020 return 0;
25022 _ACEOF
25023 rm -f conftest.$ac_objext
25024 if { (ac_try="$ac_compile"
25025 case "(($ac_try" in
25026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027 *) ac_try_echo=$ac_try;;
25028 esac
25029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25030 $as_echo "$ac_try_echo") >&5
25031 (eval "$ac_compile") 2>conftest.er1
25032 ac_status=$?
25033 grep -v '^ *+' conftest.er1 >conftest.err
25034 rm -f conftest.er1
25035 cat conftest.err >&5
25036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } && {
25038 test -z "$ac_c_werror_flag" ||
25039 test ! -s conftest.err
25040 } && test -s conftest.$ac_objext; then
25041 ac_cv_type_mbstate_t=yes
25042 else
25043 $as_echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 ac_cv_type_mbstate_t=no
25049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25052 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25053 if test $ac_cv_type_mbstate_t = yes; then
25055 cat >>confdefs.h <<\_ACEOF
25056 #define HAVE_MBSTATE_T 1
25057 _ACEOF
25059 else
25061 cat >>confdefs.h <<\_ACEOF
25062 #define mbstate_t int
25063 _ACEOF
25067 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25068 $as_echo_n "checking for C restrict keyword... " >&6; }
25069 if test "${emacs_cv_c_restrict+set}" = set; then
25070 $as_echo_n "(cached) " >&6
25071 else
25072 cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h. */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h. */
25078 void fred (int *restrict x);
25080 main ()
25084 return 0;
25086 _ACEOF
25087 rm -f conftest.$ac_objext
25088 if { (ac_try="$ac_compile"
25089 case "(($ac_try" in
25090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25092 esac
25093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25094 $as_echo "$ac_try_echo") >&5
25095 (eval "$ac_compile") 2>conftest.er1
25096 ac_status=$?
25097 grep -v '^ *+' conftest.er1 >conftest.err
25098 rm -f conftest.er1
25099 cat conftest.err >&5
25100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } && {
25102 test -z "$ac_c_werror_flag" ||
25103 test ! -s conftest.err
25104 } && test -s conftest.$ac_objext; then
25105 emacs_cv_c_restrict=yes
25106 else
25107 $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h. */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 void fred (int *__restrict x);
25118 main ()
25122 return 0;
25124 _ACEOF
25125 rm -f conftest.$ac_objext
25126 if { (ac_try="$ac_compile"
25127 case "(($ac_try" in
25128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25129 *) ac_try_echo=$ac_try;;
25130 esac
25131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25132 $as_echo "$ac_try_echo") >&5
25133 (eval "$ac_compile") 2>conftest.er1
25134 ac_status=$?
25135 grep -v '^ *+' conftest.er1 >conftest.err
25136 rm -f conftest.er1
25137 cat conftest.err >&5
25138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } && {
25140 test -z "$ac_c_werror_flag" ||
25141 test ! -s conftest.err
25142 } && test -s conftest.$ac_objext; then
25143 emacs_cv_c_restrict=__restrict
25144 else
25145 $as_echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25148 emacs_cv_c_restrict=no
25151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25156 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25157 $as_echo "$emacs_cv_c_restrict" >&6; }
25158 case "$emacs_cv_c_restrict" in
25159 yes) emacs_restrict=restrict;;
25160 no) emacs_restrict="";;
25161 *) emacs_restrict="$emacs_cv_c_restrict";;
25162 esac
25163 if test "$emacs_restrict" != __restrict; then
25165 cat >>confdefs.h <<_ACEOF
25166 #define __restrict $emacs_restrict
25167 _ACEOF
25171 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25172 $as_echo_n "checking for C restricted array declarations... " >&6; }
25173 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25174 $as_echo_n "(cached) " >&6
25175 else
25176 cat >conftest.$ac_ext <<_ACEOF
25177 /* confdefs.h. */
25178 _ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h. */
25182 void fred (int x[__restrict]);
25184 main ()
25188 return 0;
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (ac_try="$ac_compile"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25196 esac
25197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25198 $as_echo "$ac_try_echo") >&5
25199 (eval "$ac_compile") 2>conftest.er1
25200 ac_status=$?
25201 grep -v '^ *+' conftest.er1 >conftest.err
25202 rm -f conftest.er1
25203 cat conftest.err >&5
25204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); } && {
25206 test -z "$ac_c_werror_flag" ||
25207 test ! -s conftest.err
25208 } && test -s conftest.$ac_objext; then
25209 emacs_cv_c_restrict_arr=yes
25210 else
25211 $as_echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25214 emacs_cv_c_restrict_arr=no
25217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25220 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25221 if test "$emacs_cv_c_restrict_arr" = yes; then
25223 cat >>confdefs.h <<\_ACEOF
25224 #define __restrict_arr __restrict
25225 _ACEOF
25231 # Set up the CFLAGS for real compilation, so we can substitute it.
25232 CFLAGS="$REAL_CFLAGS"
25233 CPPFLAGS="$REAL_CPPFLAGS"
25235 #### Find out which version of Emacs this is.
25236 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25237 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25238 if test x"${version}" = x; then
25239 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25240 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25241 { (exit 1); exit 1; }; }
25243 if test x"${version}" != x"$PACKAGE_VERSION"; then
25244 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25245 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25248 ### Specify what sort of things we'll be editing into Makefile and config.h.
25249 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25293 cat >>confdefs.h <<_ACEOF
25294 #define EMACS_CONFIGURATION "${canonical}"
25295 _ACEOF
25298 cat >>confdefs.h <<_ACEOF
25299 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25300 _ACEOF
25303 cat >>confdefs.h <<_ACEOF
25304 #define config_machfile "${machfile}"
25305 _ACEOF
25308 cat >>confdefs.h <<_ACEOF
25309 #define config_opsysfile "${opsysfile}"
25310 _ACEOF
25313 cat >>confdefs.h <<_ACEOF
25314 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25315 _ACEOF
25318 cat >>confdefs.h <<_ACEOF
25319 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25320 _ACEOF
25323 cat >>confdefs.h <<_ACEOF
25324 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25325 _ACEOF
25328 cat >>confdefs.h <<_ACEOF
25329 #define UNEXEC_SRC ${UNEXEC_SRC}
25330 _ACEOF
25333 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_X_WINDOWS 1
25337 _ACEOF
25340 if test "${USE_X_TOOLKIT}" != "none" ; then
25342 cat >>confdefs.h <<\_ACEOF
25343 #define USE_X_TOOLKIT 1
25344 _ACEOF
25346 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25348 cat >>confdefs.h <<\_ACEOF
25349 #define USE_LUCID 1
25350 _ACEOF
25352 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25354 cat >>confdefs.h <<\_ACEOF
25355 #define USE_MOTIF 1
25356 _ACEOF
25360 if test "${HAVE_X11}" = "yes" ; then
25362 cat >>confdefs.h <<\_ACEOF
25363 #define HAVE_X11 1
25364 _ACEOF
25367 if test "${HAVE_MENUS}" = "yes" ; then
25369 cat >>confdefs.h <<\_ACEOF
25370 #define HAVE_MENUS 1
25371 _ACEOF
25374 if test "${GNU_MALLOC}" = "yes" ; then
25376 cat >>confdefs.h <<\_ACEOF
25377 #define GNU_MALLOC 1
25378 _ACEOF
25381 if test "${REL_ALLOC}" = "yes" ; then
25383 cat >>confdefs.h <<\_ACEOF
25384 #define REL_ALLOC 1
25385 _ACEOF
25394 #### Report on what we decided to do.
25395 #### Report GTK as a toolkit, even if it doesn't use Xt.
25396 #### It makes printing result more understandable as using GTK sets
25397 #### toolkit_scroll_bars to yes by default.
25398 if test "${HAVE_GTK}" = "yes"; then
25399 USE_X_TOOLKIT=GTK
25402 echo "
25403 Configured for \`${canonical}'.
25405 Where should the build process find the source code? ${srcdir}
25406 What operating system and machine description files should Emacs use?
25407 \`${opsysfile}' and \`${machfile}'
25408 What compiler should emacs be built with? ${CC} ${CFLAGS}
25409 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25410 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25411 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25412 What window system should Emacs use? ${window_system}
25413 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25415 if test -n "${x_includes}"; then
25416 echo " Where do we find X Windows header files? ${x_includes}"
25417 else
25418 echo " Where do we find X Windows header files? Standard dirs"
25420 if test -n "${x_libraries}"; then
25421 echo " Where do we find X Windows libraries? ${x_libraries}"
25422 else
25423 echo " Where do we find X Windows libraries? Standard dirs"
25426 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25427 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25428 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25429 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25430 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25431 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25432 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25433 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25434 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25436 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25437 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25438 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25439 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25441 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25442 echo
25444 if test $USE_XASSERTS = yes; then
25445 echo " Compiling with asserts turned on."
25446 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25449 echo
25451 if test "$USE_X_TOOLKIT" = GTK; then
25452 case "$canonical" in
25453 *cygwin*)
25454 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25455 will probably get a crash on startup. If this happens, please use another
25456 toolkit for Emacs. See etc/PROBLEMS for more information."
25458 esac
25461 if test "$HAVE_NS" = "yes"; then
25462 echo
25463 echo "You must run \"make install\" in order to test the built application.
25464 The installed application will go to nextstep/Emacs.app and can be
25465 run or moved from there."
25466 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25467 echo "The application will be fully self-contained."
25468 else
25469 echo "The lisp resources for the application will be installed under ${prefix}.
25470 You may need to run \"make install\" with sudo. The application will fail
25471 to run if these resources are not installed."
25473 echo
25476 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25477 echo "D-Bus integration has been tested for GNU/Linux only."
25478 echo
25482 # Remove any trailing slashes in these variables.
25483 test "${prefix}" != NONE &&
25484 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25485 test "${exec_prefix}" != NONE &&
25486 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25488 # Now get this: Some word that is part of the ${srcdir} directory name
25489 # or the ${configuration} value might, just might, happen to be an
25490 # identifier like `sun4' or `i386' or something, and be predefined by
25491 # the C preprocessor to some helpful value like 1, or maybe the empty
25492 # string. Needless to say consequent macro substitutions are less
25493 # than conducive to the makefile finding the correct directory.
25494 cpp_undefs="`echo $srcdir $configuration $canonical |
25495 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25496 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25498 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25499 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25500 ## from Makefile.c can correctly provide the arg `-traditional' to the
25501 ## C preprocessor.
25503 cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h. */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h. */
25509 yes..yes
25510 _ACEOF
25511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25512 $EGREP "yes..yes" >/dev/null 2>&1; then
25513 CPP_NEED_TRADITIONAL=no
25514 else
25515 CPP_NEED_TRADITIONAL=yes
25517 rm -f conftest*
25520 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"
25522 ac_config_commands="$ac_config_commands default"
25524 cat >confcache <<\_ACEOF
25525 # This file is a shell script that caches the results of configure
25526 # tests run on this system so they can be shared between configure
25527 # scripts and configure runs, see configure's option --config-cache.
25528 # It is not useful on other systems. If it contains results you don't
25529 # want to keep, you may remove or edit it.
25531 # config.status only pays attention to the cache file if you give it
25532 # the --recheck option to rerun configure.
25534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25536 # following values.
25538 _ACEOF
25540 # The following way of writing the cache mishandles newlines in values,
25541 # but we know of no workaround that is simple, portable, and efficient.
25542 # So, we kill variables containing newlines.
25543 # Ultrix sh set writes to stderr and can't be redirected directly,
25544 # and sets the high bit in the cache file unless we assign to the vars.
25546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25547 eval ac_val=\$$ac_var
25548 case $ac_val in #(
25549 *${as_nl}*)
25550 case $ac_var in #(
25551 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25552 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25553 esac
25554 case $ac_var in #(
25555 _ | IFS | as_nl) ;; #(
25556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25557 *) $as_unset $ac_var ;;
25558 esac ;;
25559 esac
25560 done
25562 (set) 2>&1 |
25563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25564 *${as_nl}ac_space=\ *)
25565 # `set' does not quote correctly, so add quotes (double-quote
25566 # substitution turns \\\\ into \\, and sed turns \\ into \).
25567 sed -n \
25568 "s/'/'\\\\''/g;
25569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25570 ;; #(
25572 # `set' quotes correctly as required by POSIX, so do not add quotes.
25573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25575 esac |
25576 sort
25578 sed '
25579 /^ac_cv_env_/b end
25580 t clear
25581 :clear
25582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25583 t end
25584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25585 :end' >>confcache
25586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25587 if test -w "$cache_file"; then
25588 test "x$cache_file" != "x/dev/null" &&
25589 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25590 $as_echo "$as_me: updating cache $cache_file" >&6;}
25591 cat confcache >$cache_file
25592 else
25593 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25597 rm -f confcache
25599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25600 # Let make expand exec_prefix.
25601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25603 DEFS=-DHAVE_CONFIG_H
25605 ac_libobjs=
25606 ac_ltlibobjs=
25607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25608 # 1. Remove the extension, and $U if already installed.
25609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25612 # will be set to the directory where LIBOBJS objects are built.
25613 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25614 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25615 done
25616 LIBOBJS=$ac_libobjs
25618 LTLIBOBJS=$ac_ltlibobjs
25622 : ${CONFIG_STATUS=./config.status}
25623 ac_write_fail=0
25624 ac_clean_files_save=$ac_clean_files
25625 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25626 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25627 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25628 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25629 #! $SHELL
25630 # Generated by $as_me.
25631 # Run this file to recreate the current configuration.
25632 # Compiler output produced by configure, useful for debugging
25633 # configure, is in config.log if it exists.
25635 debug=false
25636 ac_cs_recheck=false
25637 ac_cs_silent=false
25638 SHELL=\${CONFIG_SHELL-$SHELL}
25639 _ACEOF
25641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25642 ## --------------------- ##
25643 ## M4sh Initialization. ##
25644 ## --------------------- ##
25646 # Be more Bourne compatible
25647 DUALCASE=1; export DUALCASE # for MKS sh
25648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25649 emulate sh
25650 NULLCMD=:
25651 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25652 # is contrary to our usage. Disable this feature.
25653 alias -g '${1+"$@"}'='"$@"'
25654 setopt NO_GLOB_SUBST
25655 else
25656 case `(set -o) 2>/dev/null` in
25657 *posix*) set -o posix ;;
25658 esac
25665 # PATH needs CR
25666 # Avoid depending upon Character Ranges.
25667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25670 as_cr_digits='0123456789'
25671 as_cr_alnum=$as_cr_Letters$as_cr_digits
25673 as_nl='
25675 export as_nl
25676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25680 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25681 as_echo='printf %s\n'
25682 as_echo_n='printf %s'
25683 else
25684 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25685 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25686 as_echo_n='/usr/ucb/echo -n'
25687 else
25688 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25689 as_echo_n_body='eval
25690 arg=$1;
25691 case $arg in
25692 *"$as_nl"*)
25693 expr "X$arg" : "X\\(.*\\)$as_nl";
25694 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25695 esac;
25696 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25698 export as_echo_n_body
25699 as_echo_n='sh -c $as_echo_n_body as_echo'
25701 export as_echo_body
25702 as_echo='sh -c $as_echo_body as_echo'
25705 # The user is always right.
25706 if test "${PATH_SEPARATOR+set}" != set; then
25707 PATH_SEPARATOR=:
25708 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25709 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25710 PATH_SEPARATOR=';'
25714 # Support unset when possible.
25715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25716 as_unset=unset
25717 else
25718 as_unset=false
25722 # IFS
25723 # We need space, tab and new line, in precisely that order. Quoting is
25724 # there to prevent editors from complaining about space-tab.
25725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25726 # splitting by setting IFS to empty value.)
25727 IFS=" "" $as_nl"
25729 # Find who we are. Look in the path if we contain no directory separator.
25730 case $0 in
25731 *[\\/]* ) as_myself=$0 ;;
25732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25733 for as_dir in $PATH
25735 IFS=$as_save_IFS
25736 test -z "$as_dir" && as_dir=.
25737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25738 done
25739 IFS=$as_save_IFS
25742 esac
25743 # We did not find ourselves, most probably we were run as `sh COMMAND'
25744 # in which case we are not to be found in the path.
25745 if test "x$as_myself" = x; then
25746 as_myself=$0
25748 if test ! -f "$as_myself"; then
25749 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25750 { (exit 1); exit 1; }
25753 # Work around bugs in pre-3.0 UWIN ksh.
25754 for as_var in ENV MAIL MAILPATH
25755 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25756 done
25757 PS1='$ '
25758 PS2='> '
25759 PS4='+ '
25761 # NLS nuisances.
25762 LC_ALL=C
25763 export LC_ALL
25764 LANGUAGE=C
25765 export LANGUAGE
25767 # Required to use basename.
25768 if expr a : '\(a\)' >/dev/null 2>&1 &&
25769 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25770 as_expr=expr
25771 else
25772 as_expr=false
25775 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25776 as_basename=basename
25777 else
25778 as_basename=false
25782 # Name of the executable.
25783 as_me=`$as_basename -- "$0" ||
25784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25785 X"$0" : 'X\(//\)$' \| \
25786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25787 $as_echo X/"$0" |
25788 sed '/^.*\/\([^/][^/]*\)\/*$/{
25789 s//\1/
25792 /^X\/\(\/\/\)$/{
25793 s//\1/
25796 /^X\/\(\/\).*/{
25797 s//\1/
25800 s/.*/./; q'`
25802 # CDPATH.
25803 $as_unset CDPATH
25807 as_lineno_1=$LINENO
25808 as_lineno_2=$LINENO
25809 test "x$as_lineno_1" != "x$as_lineno_2" &&
25810 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25812 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25813 # uniformly replaced by the line number. The first 'sed' inserts a
25814 # line-number line after each line using $LINENO; the second 'sed'
25815 # does the real work. The second script uses 'N' to pair each
25816 # line-number line with the line containing $LINENO, and appends
25817 # trailing '-' during substitution so that $LINENO is not a special
25818 # case at line end.
25819 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25820 # scripts with optimization help from Paolo Bonzini. Blame Lee
25821 # E. McMahon (1931-1989) for sed's syntax. :-)
25822 sed -n '
25824 /[$]LINENO/=
25825 ' <$as_myself |
25826 sed '
25827 s/[$]LINENO.*/&-/
25828 t lineno
25830 :lineno
25832 :loop
25833 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25834 t loop
25835 s/-\n.*//
25836 ' >$as_me.lineno &&
25837 chmod +x "$as_me.lineno" ||
25838 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25839 { (exit 1); exit 1; }; }
25841 # Don't try to exec as it changes $[0], causing all sort of problems
25842 # (the dirname of $[0] is not the place where we might find the
25843 # original and so on. Autoconf is especially sensitive to this).
25844 . "./$as_me.lineno"
25845 # Exit status is that of the last command.
25846 exit
25850 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25851 as_dirname=dirname
25852 else
25853 as_dirname=false
25856 ECHO_C= ECHO_N= ECHO_T=
25857 case `echo -n x` in
25858 -n*)
25859 case `echo 'x\c'` in
25860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25861 *) ECHO_C='\c';;
25862 esac;;
25864 ECHO_N='-n';;
25865 esac
25866 if expr a : '\(a\)' >/dev/null 2>&1 &&
25867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25868 as_expr=expr
25869 else
25870 as_expr=false
25873 rm -f conf$$ conf$$.exe conf$$.file
25874 if test -d conf$$.dir; then
25875 rm -f conf$$.dir/conf$$.file
25876 else
25877 rm -f conf$$.dir
25878 mkdir conf$$.dir 2>/dev/null
25880 if (echo >conf$$.file) 2>/dev/null; then
25881 if ln -s conf$$.file conf$$ 2>/dev/null; then
25882 as_ln_s='ln -s'
25883 # ... but there are two gotchas:
25884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25886 # In both cases, we have to default to `cp -p'.
25887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25888 as_ln_s='cp -p'
25889 elif ln conf$$.file conf$$ 2>/dev/null; then
25890 as_ln_s=ln
25891 else
25892 as_ln_s='cp -p'
25894 else
25895 as_ln_s='cp -p'
25897 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25898 rmdir conf$$.dir 2>/dev/null
25900 if mkdir -p . 2>/dev/null; then
25901 as_mkdir_p=:
25902 else
25903 test -d ./-p && rmdir ./-p
25904 as_mkdir_p=false
25907 if test -x / >/dev/null 2>&1; then
25908 as_test_x='test -x'
25909 else
25910 if ls -dL / >/dev/null 2>&1; then
25911 as_ls_L_option=L
25912 else
25913 as_ls_L_option=
25915 as_test_x='
25916 eval sh -c '\''
25917 if test -d "$1"; then
25918 test -d "$1/.";
25919 else
25920 case $1 in
25921 -*)set "./$1";;
25922 esac;
25923 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25924 ???[sx]*):;;*)false;;esac;fi
25925 '\'' sh
25928 as_executable_p=$as_test_x
25930 # Sed expression to map a string onto a valid CPP name.
25931 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25933 # Sed expression to map a string onto a valid variable name.
25934 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25937 exec 6>&1
25939 # Save the log message, to keep $[0] and so on meaningful, and to
25940 # report actual input values of CONFIG_FILES etc. instead of their
25941 # values after options handling.
25942 ac_log="
25943 This file was extended by emacs $as_me 23.1.50, which was
25944 generated by GNU Autoconf 2.62. Invocation command line was
25946 CONFIG_FILES = $CONFIG_FILES
25947 CONFIG_HEADERS = $CONFIG_HEADERS
25948 CONFIG_LINKS = $CONFIG_LINKS
25949 CONFIG_COMMANDS = $CONFIG_COMMANDS
25950 $ $0 $@
25952 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25955 _ACEOF
25957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25958 # Files that config.status was made for.
25959 config_files="$ac_config_files"
25960 config_headers="$ac_config_headers"
25961 config_commands="$ac_config_commands"
25963 _ACEOF
25965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25966 ac_cs_usage="\
25967 \`$as_me' instantiates files from templates according to the
25968 current configuration.
25970 Usage: $0 [OPTIONS] [FILE]...
25972 -h, --help print this help, then exit
25973 -V, --version print version number and configuration settings, then exit
25974 -q, --quiet do not print progress messages
25975 -d, --debug don't remove temporary files
25976 --recheck update $as_me by reconfiguring in the same conditions
25977 --file=FILE[:TEMPLATE]
25978 instantiate the configuration file FILE
25979 --header=FILE[:TEMPLATE]
25980 instantiate the configuration header FILE
25982 Configuration files:
25983 $config_files
25985 Configuration headers:
25986 $config_headers
25988 Configuration commands:
25989 $config_commands
25991 Report bugs to <bug-autoconf@gnu.org>."
25993 _ACEOF
25994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25995 ac_cs_version="\\
25996 emacs config.status 23.1.50
25997 configured by $0, generated by GNU Autoconf 2.62,
25998 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26000 Copyright (C) 2008 Free Software Foundation, Inc.
26001 This config.status script is free software; the Free Software Foundation
26002 gives unlimited permission to copy, distribute and modify it."
26004 ac_pwd='$ac_pwd'
26005 srcdir='$srcdir'
26006 INSTALL='$INSTALL'
26007 test -n "\$AWK" || AWK=awk
26008 _ACEOF
26010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26011 # The default lists apply if the user does not specify any file.
26012 ac_need_defaults=:
26013 while test $# != 0
26015 case $1 in
26016 --*=*)
26017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26019 ac_shift=:
26022 ac_option=$1
26023 ac_optarg=$2
26024 ac_shift=shift
26026 esac
26028 case $ac_option in
26029 # Handling of the options.
26030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26031 ac_cs_recheck=: ;;
26032 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26033 $as_echo "$ac_cs_version"; exit ;;
26034 --debug | --debu | --deb | --de | --d | -d )
26035 debug=: ;;
26036 --file | --fil | --fi | --f )
26037 $ac_shift
26038 case $ac_optarg in
26039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26040 esac
26041 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26042 ac_need_defaults=false;;
26043 --header | --heade | --head | --hea )
26044 $ac_shift
26045 case $ac_optarg in
26046 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26047 esac
26048 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26049 ac_need_defaults=false;;
26050 --he | --h)
26051 # Conflict between --help and --header
26052 { $as_echo "$as_me: error: ambiguous option: $1
26053 Try \`$0 --help' for more information." >&2
26054 { (exit 1); exit 1; }; };;
26055 --help | --hel | -h )
26056 $as_echo "$ac_cs_usage"; exit ;;
26057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26058 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26059 ac_cs_silent=: ;;
26061 # This is an error.
26062 -*) { $as_echo "$as_me: error: unrecognized option: $1
26063 Try \`$0 --help' for more information." >&2
26064 { (exit 1); exit 1; }; } ;;
26066 *) ac_config_targets="$ac_config_targets $1"
26067 ac_need_defaults=false ;;
26069 esac
26070 shift
26071 done
26073 ac_configure_extra_args=
26075 if $ac_cs_silent; then
26076 exec 6>/dev/null
26077 ac_configure_extra_args="$ac_configure_extra_args --silent"
26080 _ACEOF
26081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26082 if \$ac_cs_recheck; then
26083 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26084 shift
26085 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26086 CONFIG_SHELL='$SHELL'
26087 export CONFIG_SHELL
26088 exec "\$@"
26091 _ACEOF
26092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26093 exec 5>>config.log
26095 echo
26096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26097 ## Running $as_me. ##
26098 _ASBOX
26099 $as_echo "$ac_log"
26100 } >&5
26102 _ACEOF
26103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26105 # INIT-COMMANDS
26107 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26109 _ACEOF
26111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26113 # Handling of arguments.
26114 for ac_config_target in $ac_config_targets
26116 case $ac_config_target in
26117 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26119 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26120 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26121 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26122 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26123 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26124 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26125 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26126 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26127 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26128 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26129 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26131 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26132 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26133 { (exit 1); exit 1; }; };;
26134 esac
26135 done
26138 # If the user did not use the arguments to specify the items to instantiate,
26139 # then the envvar interface is used. Set only those that are not.
26140 # We use the long form for the default assignment because of an extremely
26141 # bizarre bug on SunOS 4.1.3.
26142 if $ac_need_defaults; then
26143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26148 # Have a temporary directory for convenience. Make it in the build tree
26149 # simply because there is no reason against having it here, and in addition,
26150 # creating and moving files from /tmp can sometimes cause problems.
26151 # Hook for its removal unless debugging.
26152 # Note that there is a small window in which the directory will not be cleaned:
26153 # after its creation but before its name has been assigned to `$tmp'.
26154 $debug ||
26156 tmp=
26157 trap 'exit_status=$?
26158 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26160 trap '{ (exit 1); exit 1; }' 1 2 13 15
26162 # Create a (secure) tmp directory for tmp files.
26165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26166 test -n "$tmp" && test -d "$tmp"
26167 } ||
26169 tmp=./conf$$-$RANDOM
26170 (umask 077 && mkdir "$tmp")
26171 } ||
26173 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26174 { (exit 1); exit 1; }
26177 # Set up the scripts for CONFIG_FILES section.
26178 # No need to generate them if there are no CONFIG_FILES.
26179 # This happens for instance with `./config.status config.h'.
26180 if test -n "$CONFIG_FILES"; then
26183 ac_cr=' '
26184 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26185 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26186 ac_cs_awk_cr='\\r'
26187 else
26188 ac_cs_awk_cr=$ac_cr
26191 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26192 _ACEOF
26196 echo "cat >conf$$subs.awk <<_ACEOF" &&
26197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26198 echo "_ACEOF"
26199 } >conf$$subs.sh ||
26200 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26201 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26202 { (exit 1); exit 1; }; }
26203 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26204 ac_delim='%!_!# '
26205 for ac_last_try in false false false false false :; do
26206 . ./conf$$subs.sh ||
26207 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26208 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26209 { (exit 1); exit 1; }; }
26211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26212 break
26213 elif $ac_last_try; then
26214 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26215 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26216 { (exit 1); exit 1; }; }
26217 else
26218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26220 done
26221 rm -f conf$$subs.sh
26223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26224 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26225 _ACEOF
26226 sed -n '
26228 s/^/S["/; s/!.*/"]=/
26231 s/^[^!]*!//
26232 :repl
26233 t repl
26234 s/'"$ac_delim"'$//
26235 t delim
26238 s/\(.\{148\}\).*/\1/
26239 t more1
26240 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26243 b repl
26244 :more1
26245 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26248 s/.\{148\}//
26249 t nl
26250 :delim
26252 s/\(.\{148\}\).*/\1/
26253 t more2
26254 s/["\\]/\\&/g; s/^/"/; s/$/"/
26257 :more2
26258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26261 s/.\{148\}//
26262 t delim
26263 ' <conf$$subs.awk | sed '
26264 /^[^""]/{
26266 s/\n//
26268 ' >>$CONFIG_STATUS || ac_write_fail=1
26269 rm -f conf$$subs.awk
26270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26271 _ACAWK
26272 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26273 for (key in S) S_is_set[key] = 1
26274 FS = "\a"
26278 line = $ 0
26279 nfields = split(line, field, "@")
26280 substed = 0
26281 len = length(field[1])
26282 for (i = 2; i < nfields; i++) {
26283 key = field[i]
26284 keylen = length(key)
26285 if (S_is_set[key]) {
26286 value = S[key]
26287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26288 len += length(value) + length(field[++i])
26289 substed = 1
26290 } else
26291 len += 1 + keylen
26294 print line
26297 _ACAWK
26298 _ACEOF
26299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26301 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26302 else
26304 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26305 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26306 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26307 { (exit 1); exit 1; }; }
26308 _ACEOF
26310 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26311 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26312 # trailing colons and then remove the whole line if VPATH becomes empty
26313 # (actually we leave an empty line to preserve line numbers).
26314 if test "x$srcdir" = x.; then
26315 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26316 s/:*\$(srcdir):*/:/
26317 s/:*\${srcdir}:*/:/
26318 s/:*@srcdir@:*/:/
26319 s/^\([^=]*=[ ]*\):*/\1/
26320 s/:*$//
26321 s/^[^=]*=[ ]*$//
26325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26326 fi # test -n "$CONFIG_FILES"
26328 # Set up the scripts for CONFIG_HEADERS section.
26329 # No need to generate them if there are no CONFIG_HEADERS.
26330 # This happens for instance with `./config.status Makefile'.
26331 if test -n "$CONFIG_HEADERS"; then
26332 cat >"$tmp/defines.awk" <<\_ACAWK ||
26333 BEGIN {
26334 _ACEOF
26336 # Transform confdefs.h into an awk script `defines.awk', embedded as
26337 # here-document in config.status, that substitutes the proper values into
26338 # config.h.in to produce config.h.
26340 # Create a delimiter string that does not exist in confdefs.h, to ease
26341 # handling of long lines.
26342 ac_delim='%!_!# '
26343 for ac_last_try in false false :; do
26344 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26345 if test -z "$ac_t"; then
26346 break
26347 elif $ac_last_try; then
26348 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26349 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26350 { (exit 1); exit 1; }; }
26351 else
26352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26354 done
26356 # For the awk script, D is an array of macro values keyed by name,
26357 # likewise P contains macro parameters if any. Preserve backslash
26358 # newline sequences.
26360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26361 sed -n '
26362 s/.\{148\}/&'"$ac_delim"'/g
26363 t rset
26364 :rset
26365 s/^[ ]*#[ ]*define[ ][ ]*/ /
26366 t def
26368 :def
26369 s/\\$//
26370 t bsnl
26371 s/["\\]/\\&/g
26372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26373 D["\1"]=" \3"/p
26374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26376 :bsnl
26377 s/["\\]/\\&/g
26378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26379 D["\1"]=" \3\\\\\\n"\\/p
26380 t cont
26381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26382 t cont
26384 :cont
26386 s/.\{148\}/&'"$ac_delim"'/g
26387 t clear
26388 :clear
26389 s/\\$//
26390 t bsnlc
26391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26393 :bsnlc
26394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26395 b cont
26396 ' <confdefs.h | sed '
26397 s/'"$ac_delim"'/"\\\
26398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26401 for (key in D) D_is_set[key] = 1
26402 FS = "\a"
26404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26405 line = \$ 0
26406 split(line, arg, " ")
26407 if (arg[1] == "#") {
26408 defundef = arg[2]
26409 mac1 = arg[3]
26410 } else {
26411 defundef = substr(arg[1], 2)
26412 mac1 = arg[2]
26414 split(mac1, mac2, "(") #)
26415 macro = mac2[1]
26416 if (D_is_set[macro]) {
26417 # Preserve the white space surrounding the "#".
26418 prefix = substr(line, 1, index(line, defundef) - 1)
26419 print prefix "define", macro P[macro] D[macro]
26420 next
26421 } else {
26422 # Replace #undef with comments. This is necessary, for example,
26423 # in the case of _POSIX_SOURCE, which is predefined and required
26424 # on some systems where configure will not decide to define it.
26425 if (defundef == "undef") {
26426 print "/*", line, "*/"
26427 next
26431 { print }
26432 _ACAWK
26433 _ACEOF
26434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26435 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26436 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26437 { (exit 1); exit 1; }; }
26438 fi # test -n "$CONFIG_HEADERS"
26441 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26442 shift
26443 for ac_tag
26445 case $ac_tag in
26446 :[FHLC]) ac_mode=$ac_tag; continue;;
26447 esac
26448 case $ac_mode$ac_tag in
26449 :[FHL]*:*);;
26450 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26451 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26452 { (exit 1); exit 1; }; };;
26453 :[FH]-) ac_tag=-:-;;
26454 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26455 esac
26456 ac_save_IFS=$IFS
26457 IFS=:
26458 set x $ac_tag
26459 IFS=$ac_save_IFS
26460 shift
26461 ac_file=$1
26462 shift
26464 case $ac_mode in
26465 :L) ac_source=$1;;
26466 :[FH])
26467 ac_file_inputs=
26468 for ac_f
26470 case $ac_f in
26471 -) ac_f="$tmp/stdin";;
26472 *) # Look for the file first in the build tree, then in the source tree
26473 # (if the path is not absolute). The absolute path cannot be DOS-style,
26474 # because $ac_f cannot contain `:'.
26475 test -f "$ac_f" ||
26476 case $ac_f in
26477 [\\/$]*) false;;
26478 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26479 esac ||
26480 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26481 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26482 { (exit 1); exit 1; }; };;
26483 esac
26484 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26485 ac_file_inputs="$ac_file_inputs '$ac_f'"
26486 done
26488 # Let's still pretend it is `configure' which instantiates (i.e., don't
26489 # use $as_me), people would be surprised to read:
26490 # /* config.h. Generated by config.status. */
26491 configure_input='Generated from '`
26492 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26493 `' by configure.'
26494 if test x"$ac_file" != x-; then
26495 configure_input="$ac_file. $configure_input"
26496 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26497 $as_echo "$as_me: creating $ac_file" >&6;}
26499 # Neutralize special characters interpreted by sed in replacement strings.
26500 case $configure_input in #(
26501 *\&* | *\|* | *\\* )
26502 ac_sed_conf_input=`$as_echo "$configure_input" |
26503 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26504 *) ac_sed_conf_input=$configure_input;;
26505 esac
26507 case $ac_tag in
26508 *:-:* | *:-) cat >"$tmp/stdin" \
26509 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26510 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26511 { (exit 1); exit 1; }; } ;;
26512 esac
26514 esac
26516 ac_dir=`$as_dirname -- "$ac_file" ||
26517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26518 X"$ac_file" : 'X\(//\)[^/]' \| \
26519 X"$ac_file" : 'X\(//\)$' \| \
26520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26521 $as_echo X"$ac_file" |
26522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26523 s//\1/
26526 /^X\(\/\/\)[^/].*/{
26527 s//\1/
26530 /^X\(\/\/\)$/{
26531 s//\1/
26534 /^X\(\/\).*/{
26535 s//\1/
26538 s/.*/./; q'`
26539 { as_dir="$ac_dir"
26540 case $as_dir in #(
26541 -*) as_dir=./$as_dir;;
26542 esac
26543 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26544 as_dirs=
26545 while :; do
26546 case $as_dir in #(
26547 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26548 *) as_qdir=$as_dir;;
26549 esac
26550 as_dirs="'$as_qdir' $as_dirs"
26551 as_dir=`$as_dirname -- "$as_dir" ||
26552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26553 X"$as_dir" : 'X\(//\)[^/]' \| \
26554 X"$as_dir" : 'X\(//\)$' \| \
26555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26556 $as_echo X"$as_dir" |
26557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26558 s//\1/
26561 /^X\(\/\/\)[^/].*/{
26562 s//\1/
26565 /^X\(\/\/\)$/{
26566 s//\1/
26569 /^X\(\/\).*/{
26570 s//\1/
26573 s/.*/./; q'`
26574 test -d "$as_dir" && break
26575 done
26576 test -z "$as_dirs" || eval "mkdir $as_dirs"
26577 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26578 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26579 { (exit 1); exit 1; }; }; }
26580 ac_builddir=.
26582 case "$ac_dir" in
26583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26586 # A ".." for each directory in $ac_dir_suffix.
26587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26588 case $ac_top_builddir_sub in
26589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26591 esac ;;
26592 esac
26593 ac_abs_top_builddir=$ac_pwd
26594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26595 # for backward compatibility:
26596 ac_top_builddir=$ac_top_build_prefix
26598 case $srcdir in
26599 .) # We are building in place.
26600 ac_srcdir=.
26601 ac_top_srcdir=$ac_top_builddir_sub
26602 ac_abs_top_srcdir=$ac_pwd ;;
26603 [\\/]* | ?:[\\/]* ) # Absolute name.
26604 ac_srcdir=$srcdir$ac_dir_suffix;
26605 ac_top_srcdir=$srcdir
26606 ac_abs_top_srcdir=$srcdir ;;
26607 *) # Relative name.
26608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26609 ac_top_srcdir=$ac_top_build_prefix$srcdir
26610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26611 esac
26612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26615 case $ac_mode in
26618 # CONFIG_FILE
26621 case $INSTALL in
26622 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26623 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26624 esac
26625 _ACEOF
26627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26628 # If the template does not know about datarootdir, expand it.
26629 # FIXME: This hack should be removed a few years after 2.60.
26630 ac_datarootdir_hack=; ac_datarootdir_seen=
26632 ac_sed_dataroot='
26633 /datarootdir/ {
26637 /@datadir@/p
26638 /@docdir@/p
26639 /@infodir@/p
26640 /@localedir@/p
26641 /@mandir@/p
26643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26644 *datarootdir*) ac_datarootdir_seen=yes;;
26645 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26646 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26648 _ACEOF
26649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 ac_datarootdir_hack='
26651 s&@datadir@&$datadir&g
26652 s&@docdir@&$docdir&g
26653 s&@infodir@&$infodir&g
26654 s&@localedir@&$localedir&g
26655 s&@mandir@&$mandir&g
26656 s&\\\${datarootdir}&$datarootdir&g' ;;
26657 esac
26658 _ACEOF
26660 # Neutralize VPATH when `$srcdir' = `.'.
26661 # Shell code in configure.ac might set extrasub.
26662 # FIXME: do we really want to maintain this feature?
26663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26664 ac_sed_extra="$ac_vpsub
26665 $extrasub
26666 _ACEOF
26667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26670 s|@configure_input@|$ac_sed_conf_input|;t t
26671 s&@top_builddir@&$ac_top_builddir_sub&;t t
26672 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26673 s&@srcdir@&$ac_srcdir&;t t
26674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26675 s&@top_srcdir@&$ac_top_srcdir&;t t
26676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26677 s&@builddir@&$ac_builddir&;t t
26678 s&@abs_builddir@&$ac_abs_builddir&;t t
26679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26680 s&@INSTALL@&$ac_INSTALL&;t t
26681 $ac_datarootdir_hack
26683 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26684 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26685 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26686 { (exit 1); exit 1; }; }
26688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26689 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26690 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26691 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26692 which seems to be undefined. Please make sure it is defined." >&5
26693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26694 which seems to be undefined. Please make sure it is defined." >&2;}
26696 rm -f "$tmp/stdin"
26697 case $ac_file in
26698 -) cat "$tmp/out" && rm -f "$tmp/out";;
26699 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26700 esac \
26701 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26702 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26703 { (exit 1); exit 1; }; }
26707 # CONFIG_HEADER
26709 if test x"$ac_file" != x-; then
26711 $as_echo "/* $configure_input */" \
26712 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26713 } >"$tmp/config.h" \
26714 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26715 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26716 { (exit 1); exit 1; }; }
26717 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26718 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26720 else
26721 rm -f "$ac_file"
26722 mv "$tmp/config.h" "$ac_file" \
26723 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26724 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26725 { (exit 1); exit 1; }; }
26727 else
26728 $as_echo "/* $configure_input */" \
26729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26730 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26731 $as_echo "$as_me: error: could not create -" >&2;}
26732 { (exit 1); exit 1; }; }
26736 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26737 $as_echo "$as_me: executing $ac_file commands" >&6;}
26739 esac
26742 case $ac_file$ac_mode in
26743 "default":C)
26745 ### Make the necessary directories, if they don't exist.
26746 for dir in etc lisp ; do
26747 test -d ${dir} || mkdir ${dir}
26748 done
26750 # Build src/Makefile from ${srcdir}/src/Makefile.c
26751 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26752 # This must be done after src/config.h is built, since we rely on that file.
26754 echo creating src/epaths.h
26755 ${MAKE-make} epaths-force
26757 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26758 # `..' to `. .' unless invoked with -traditional
26760 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26761 CPPFLAGS="$CPPFLAGS -traditional"
26764 echo creating lib-src/Makefile
26765 ( cd lib-src
26766 rm -f junk.c junk1.c junk2.c
26767 sed -e '/start of cpp stuff/q' \
26768 < Makefile.c > junk1.c
26769 sed -e '1,/start of cpp stuff/d'\
26770 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26771 < Makefile.c > junk.c
26772 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26773 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26774 cat junk1.c junk2.c > Makefile.new
26775 rm -f junk.c junk1.c junk2.c
26776 chmod 444 Makefile.new
26777 mv -f Makefile.new Makefile
26780 echo creating src/Makefile
26781 ( cd src
26782 rm -f junk.c junk1.c junk2.c
26783 sed -e '/start of cpp stuff/q' \
26784 < Makefile.c > junk1.c
26785 sed -e '1,/start of cpp stuff/d'\
26786 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26787 < Makefile.c > junk.c
26788 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26789 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26790 cat junk1.c junk2.c > Makefile.new
26791 rm -f junk.c junk1.c junk2.c
26792 chmod 444 Makefile.new
26793 mv -f Makefile.new Makefile
26796 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26797 echo creating src/.gdbinit
26798 echo source $srcdir/src/.gdbinit > src/.gdbinit
26803 esac
26804 done # for ac_tag
26807 { (exit 0); exit 0; }
26808 _ACEOF
26809 chmod +x $CONFIG_STATUS
26810 ac_clean_files=$ac_clean_files_save
26812 test $ac_write_fail = 0 ||
26813 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26814 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26815 { (exit 1); exit 1; }; }
26818 # configure is writing to config.log, and then calls config.status.
26819 # config.status does its own redirection, appending to config.log.
26820 # Unfortunately, on DOS this fails, as config.log is still kept open
26821 # by configure, so config.status won't be able to write to it; its
26822 # output is simply discarded. So we exec the FD to /dev/null,
26823 # effectively closing config.log, so it can be properly (re)opened and
26824 # appended to by config.status. When coming back to configure, we
26825 # need to make the FD available again.
26826 if test "$no_create" != yes; then
26827 ac_cs_success=:
26828 ac_config_status_args=
26829 test "$silent" = yes &&
26830 ac_config_status_args="$ac_config_status_args --quiet"
26831 exec 5>/dev/null
26832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26833 exec 5>>config.log
26834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26835 # would make configure fail if this is the last instruction.
26836 $ac_cs_success || { (exit 1); exit 1; }
26838 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26839 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26840 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}