imagemagick patch5 + minor mods
[emacs.git] / configure
blobbd8007cc712080f1789842ce70a1aeefd93751a2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='LTLIBOBJS
642 OTHER_FILES
643 LIB_SRC_EXTRA_INSTALLABLES
644 GNU_OBJC_CFLAGS
645 GNUSTEP_SYSTEM_LIBRARIES
646 GNUSTEP_SYSTEM_HEADERS
647 GNUSTEP_MAKEFILES
648 ns_appsrc
649 ns_appresdir
650 ns_appbindir
651 ns_appdir
652 opsysfile
653 machfile
654 X_TOOLKIT_TYPE
655 C_SWITCH_X_SITE
656 LD_SWITCH_X_SITE_AUX
657 LD_SWITCH_X_SITE
658 c_switch_machine
659 c_switch_system
660 gameuser
661 gamedir
662 bitmapdir
663 archlibdir
664 etcdir
665 x_default_search_path
666 lisppath
667 locallisppath
668 lispdir
669 srcdir
670 canonical
671 configuration
672 version
673 KRB4LIB
674 DESLIB
675 KRB5LIB
676 CRYPTOLIB
677 COM_ERRLIB
678 LIBRESOLV
679 LIBHESIOD
680 GETOPTOBJS
681 GETOPT_H
682 GETLOADAVG_LIBS
683 KMEM_GROUP
684 NEED_SETGID
685 LIBOBJS
686 LIBS_MAIL
687 liblockfile
688 ALLOCA
689 LIBGPM
690 LIBGIF
691 LIBTIFF
692 LIBPNG
693 LIBJPEG
694 LIBXPM
695 FREETYPE_LIBS
696 FREETYPE_CFLAGS
697 M17N_FLT_LIBS
698 M17N_FLT_CFLAGS
699 LIBOTF_LIBS
700 LIBOTF_CFLAGS
701 XFT_LIBS
702 XFT_CFLAGS
703 FONTCONFIG_LIBS
704 FONTCONFIG_CFLAGS
705 GCONF_LIBS
706 GCONF_CFLAGS
707 DBUS_LIBS
708 DBUS_CFLAGS
709 GTK_LIBS
710 GTK_CFLAGS
711 IMAGEMAGICK_LIBS
712 IMAGEMAGICK_CFLAGS
713 RSVG_LIBS
714 RSVG_CFLAGS
715 HAVE_XSERVER
716 XMKMF
717 SET_MAKE
718 CFLAGS_SOUND
719 ALSA_LIBS
720 ALSA_CFLAGS
721 PKG_CONFIG
722 LIBSOUND
723 MAKEINFO
724 GZIP_PROG
725 INSTALL_INFO
726 RANLIB
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 LN_S
731 EGREP
732 GREP
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 MAINT
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 with_pop
791 with_kerberos
792 with_kerberos5
793 with_hesiod
794 with_mmdf
795 with_mail_unlink
796 with_mailhost
797 with_sound
798 with_sync_input
799 with_x_toolkit
800 with_xpm
801 with_jpeg
802 with_tiff
803 with_gif
804 with_png
805 with_rsvg
806 with_imagemagick
807 with_xft
808 with_libotf
809 with_m17n_flt
810 with_toolkit_scroll_bars
811 with_xaw3d
812 with_xim
813 with_ns
814 with_gpm
815 with_dbus
816 with_gconf
817 with_makeinfo
818 with_gtk
819 with_gcc
820 with_pkg_config_prog
821 with_gnustep_conf
822 enable_ns_self_contained
823 enable_asserts
824 enable_maintainer_mode
825 enable_locallisppath
826 enable_checking
827 enable_profiling
828 enable_autodepend
829 enable_largefile
830 with_x
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
841 XMKMF'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
951 { (exit 1); exit 1; }; }
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
978 { (exit 1); exit 1; }; }
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 esac
1253 done
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1265 { (exit 1); exit 1; }; } ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1290 done
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1344 /^X\(\/\/\)$/{
1345 s//\1/
1348 /^X\(\/\).*/{
1349 s//\1/
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1357 else
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1449 cat <<\_ACEOF
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 X features:
1457 --x-includes=DIR X include files are in DIR
1458 --x-libraries=DIR X library files are in DIR
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1469 esac
1470 cat <<\_ACEOF
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --disable-ns-self-contained
1477 disable self contained build under NeXTstep
1478 --enable-asserts compile code with asserts enabled
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-locallisppath=PATH
1483 directories Emacs should search for lisp files
1484 specific to this site
1485 --enable-checking[=LIST]
1486 enable expensive run-time checks. With LIST, enable
1487 only specific categories of checks. Categories are:
1488 all,yes,no. Flags are: stringbytes, stringoverrun,
1489 stringfreelist, xmallocoverrun, conslist
1490 --enable-profiling build emacs with profiling support. This might not
1491 work on all platforms
1492 --enable-autodepend automatically generate dependencies to .h-files.
1493 Requires GNU Make and Gcc. Enabled if GNU Make and
1494 Gcc is found
1495 --disable-largefile omit support for large files
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --without-pop don't support POP mail retrieval with movemail
1501 --with-kerberos support Kerberos-authenticated POP
1502 --with-kerberos5 support Kerberos version 5 authenticated POP
1503 --with-hesiod support Hesiod to get the POP server host
1504 --with-mmdf support MMDF mailboxes
1505 --with-mail-unlink unlink, rather than empty, mail spool after reading
1506 --with-mailhost=HOSTNAME
1507 string giving default POP mail host
1508 --without-sound don't compile with sound support
1509 --without-sync-input process async input synchronously
1510 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1511 athena, motif, no)
1512 --without-xpm don't compile with XPM image support
1513 --without-jpeg don't compile with JPEG image support
1514 --without-tiff don't compile with TIFF image support
1515 --without-gif don't compile with GIF image support
1516 --without-png don't compile with PNG image support
1517 --without-rsvg don't compile with SVG image support
1518 --with-imagemagick compile with ImageMagick image support
1519 --without-xft don't use XFT for anti aliased fonts
1520 --without-libotf don't use libotf for OpenType font support
1521 --without-m17n-flt don't use m17n-flt for text shaping
1522 --without-toolkit-scroll-bars
1523 don't use Motif or Xaw3d scroll bars
1524 --without-xaw3d don't use Xaw3d
1525 --without-xim don't use X11 XIM
1526 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1527 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1528 console
1529 --without-dbus don't compile with D-Bus support
1530 --without-gconf don't compile with GConf support
1531 --without-makeinfo don't require makeinfo for building manuals
1533 --with-pkg-config-prog=PATH
1534 path to pkg-config for finding GTK and librsvg
1535 --with-gnustep-conf=PATH
1536 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1537 or /etc/GNUstep/GNUstep.conf
1538 --with-x use the X Window System
1540 Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
1545 LIBS libraries to pass to the linker, e.g. -l<library>
1546 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1547 you have headers in a nonstandard directory <include dir>
1548 CPP C preprocessor
1549 XMKMF Path to xmkmf, Makefile generator for X Window System
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1554 _ACEOF
1555 ac_status=$?
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 continue
1564 ac_builddir=.
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1582 case $srcdir in
1583 .) # We are building in place.
1584 ac_srcdir=.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1606 else
1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1610 done
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615 cat <<\_ACEOF
1616 emacs configure 24.0.50
1617 generated by GNU Autoconf 2.63
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by emacs $as_me 24.0.50, which was
1631 generated by GNU Autoconf 2.63. Invocation command line was
1633 $ $0 $@
1635 _ACEOF
1636 exec 5>>config.log
1638 cat <<_ASUNAME
1639 ## --------- ##
1640 ## Platform. ##
1641 ## --------- ##
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1652 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1653 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1656 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1657 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1658 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1660 _ASUNAME
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 $as_echo "PATH: $as_dir"
1668 done
1669 IFS=$as_save_IFS
1671 } >&5
1673 cat >&5 <<_ACEOF
1676 ## ----------- ##
1677 ## Core tests. ##
1678 ## ----------- ##
1680 _ACEOF
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_configure_args=
1689 ac_configure_args0=
1690 ac_configure_args1=
1691 ac_must_keep_next=false
1692 for ac_pass in 1 2
1694 for ac_arg
1696 case $ac_arg in
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1700 continue ;;
1701 *\'*)
1702 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703 esac
1704 case $ac_pass in
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1710 else
1711 case $ac_arg in
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718 esac
1720 -* ) ac_must_keep_next=true ;;
1721 esac
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1725 esac
1726 done
1727 done
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1739 echo
1741 cat <<\_ASBOX
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1745 _ASBOX
1746 echo
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750 eval ac_val=\$$ac_var
1751 case $ac_val in #(
1752 *${as_nl}*)
1753 case $ac_var in #(
1754 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1756 esac
1757 case $ac_var in #(
1758 _ | IFS | as_nl) ;; #(
1759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1760 *) $as_unset $ac_var ;;
1761 esac ;;
1762 esac
1763 done
1764 (set) 2>&1 |
1765 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1766 *${as_nl}ac_space=\ *)
1767 sed -n \
1768 "s/'\''/'\''\\\\'\'''\''/g;
1769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1770 ;; #(
1772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1774 esac |
1775 sort
1777 echo
1779 cat <<\_ASBOX
1780 ## ----------------- ##
1781 ## Output variables. ##
1782 ## ----------------- ##
1783 _ASBOX
1784 echo
1785 for ac_var in $ac_subst_vars
1787 eval ac_val=\$$ac_var
1788 case $ac_val in
1789 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 esac
1791 $as_echo "$ac_var='\''$ac_val'\''"
1792 done | sort
1793 echo
1795 if test -n "$ac_subst_files"; then
1796 cat <<\_ASBOX
1797 ## ------------------- ##
1798 ## File substitutions. ##
1799 ## ------------------- ##
1800 _ASBOX
1801 echo
1802 for ac_var in $ac_subst_files
1804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 $as_echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1813 if test -s confdefs.h; then
1814 cat <<\_ASBOX
1815 ## ----------- ##
1816 ## confdefs.h. ##
1817 ## ----------- ##
1818 _ASBOX
1819 echo
1820 cat confdefs.h
1821 echo
1823 test "$ac_signal" != 0 &&
1824 $as_echo "$as_me: caught signal $ac_signal"
1825 $as_echo "$as_me: exit $exit_status"
1826 } >&5
1827 rm -f core *.core core.conftest.* &&
1828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829 exit $exit_status
1831 for ac_signal in 1 2 13 15; do
1832 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833 done
1834 ac_signal=0
1836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1837 rm -f -r conftest* confdefs.h
1839 # Predefined preprocessor variables.
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_NAME "$PACKAGE_NAME"
1843 _ACEOF
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848 _ACEOF
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1853 _ACEOF
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_STRING "$PACKAGE_STRING"
1858 _ACEOF
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863 _ACEOF
1866 # Let the site file select an alternate cache file if it wants to.
1867 # Prefer an explicitly selected file to automatically selected ones.
1868 ac_site_file1=NONE
1869 ac_site_file2=NONE
1870 if test -n "$CONFIG_SITE"; then
1871 ac_site_file1=$CONFIG_SITE
1872 elif test "x$prefix" != xNONE; then
1873 ac_site_file1=$prefix/share/config.site
1874 ac_site_file2=$prefix/etc/config.site
1875 else
1876 ac_site_file1=$ac_default_prefix/share/config.site
1877 ac_site_file2=$ac_default_prefix/etc/config.site
1879 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1881 test "x$ac_site_file" = xNONE && continue
1882 if test -r "$ac_site_file"; then
1883 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1885 sed 's/^/| /' "$ac_site_file" >&5
1886 . "$ac_site_file"
1888 done
1890 if test -r "$cache_file"; then
1891 # Some versions of bash will fail to source /dev/null (special
1892 # files actually), so we avoid doing that.
1893 if test -f "$cache_file"; then
1894 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 $as_echo "$as_me: loading cache $cache_file" >&6;}
1896 case $cache_file in
1897 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898 *) . "./$cache_file";;
1899 esac
1901 else
1902 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 $as_echo "$as_me: creating cache $cache_file" >&6;}
1904 >$cache_file
1907 ac_header_list="$ac_header_list sys/time.h"
1908 ac_header_list="$ac_header_list unistd.h"
1909 ac_func_list="$ac_func_list alarm"
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1919 set,)
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,set)
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,);;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 # differences in whitespace do not lead to failure.
1931 ac_old_val_w=`echo x $ac_old_val`
1932 ac_new_val_w=`echo x $ac_new_val`
1933 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1936 ac_cache_corrupted=:
1937 else
1938 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1940 eval $ac_var=\$ac_old_val
1942 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1943 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1944 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1945 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1946 fi;;
1947 esac
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1950 case $ac_new_val in
1951 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1953 esac
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957 esac
1959 done
1960 if $ac_cache_corrupted; then
1961 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1963 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2005 test "$program_prefix" != NONE &&
2006 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2007 # Use a double $ so make ignores it.
2008 test "$program_suffix" != NONE &&
2009 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2010 # Double any \ or $.
2011 # By default was `s,x,x', remove it if useless.
2012 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2013 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2016 lispdir='${datadir}/emacs/${version}/lisp'
2017 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2018 '${datadir}/emacs/site-lisp'
2019 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2020 etcdir='${datadir}/emacs/${version}/etc'
2021 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2022 docdir='${datadir}/emacs/${version}/etc'
2023 gamedir='${localstatedir}/games/emacs'
2025 gameuser=games
2030 # Check whether --with-pop was given.
2031 if test "${with_pop+set}" = set; then
2032 withval=$with_pop;
2033 else
2034 with_pop=yes
2037 if test "$with_pop" = yes; then
2038 cat >>confdefs.h <<\_ACEOF
2039 #define MAIL_USE_POP 1
2040 _ACEOF
2046 # Check whether --with-kerberos was given.
2047 if test "${with_kerberos+set}" = set; then
2048 withval=$with_kerberos;
2049 else
2050 with_kerberos=no
2053 if test "$with_kerberos" != no; then
2054 cat >>confdefs.h <<\_ACEOF
2055 #define KERBEROS 1
2056 _ACEOF
2062 # Check whether --with-kerberos5 was given.
2063 if test "${with_kerberos5+set}" = set; then
2064 withval=$with_kerberos5;
2065 else
2066 with_kerberos5=no
2069 if test "${with_kerberos5}" != no; then
2070 if test "${with_kerberos}" = no; then
2071 with_kerberos=yes
2072 cat >>confdefs.h <<\_ACEOF
2073 #define KERBEROS 1
2074 _ACEOF
2078 cat >>confdefs.h <<\_ACEOF
2079 #define KERBEROS5 1
2080 _ACEOF
2085 # Check whether --with-hesiod was given.
2086 if test "${with_hesiod+set}" = set; then
2087 withval=$with_hesiod;
2088 else
2089 with_hesiod=no
2092 if test "$with_hesiod" != no; then
2094 cat >>confdefs.h <<\_ACEOF
2095 #define HESIOD 1
2096 _ACEOF
2101 # Check whether --with-mmdf was given.
2102 if test "${with_mmdf+set}" = set; then
2103 withval=$with_mmdf;
2104 else
2105 with_mmdf=no
2108 if test "$with_mmdf" != no; then
2110 cat >>confdefs.h <<\_ACEOF
2111 #define MAIL_USE_MMDF 1
2112 _ACEOF
2117 # Check whether --with-mail-unlink was given.
2118 if test "${with_mail_unlink+set}" = set; then
2119 withval=$with_mail_unlink;
2120 else
2121 with_mail_unlink=no
2124 if test "$with_mail_unlink" != no; then
2126 cat >>confdefs.h <<\_ACEOF
2127 #define MAIL_UNLINK_SPOOL 1
2128 _ACEOF
2133 # Check whether --with-mailhost was given.
2134 if test "${with_mailhost+set}" = set; then
2135 withval=$with_mailhost;
2136 cat >>confdefs.h <<_ACEOF
2137 #define MAILHOST "$withval"
2138 _ACEOF
2144 # Check whether --with-sound was given.
2145 if test "${with_sound+set}" = set; then
2146 withval=$with_sound;
2147 else
2148 with_sound=yes
2153 # Check whether --with-sync-input was given.
2154 if test "${with_sync_input+set}" = set; then
2155 withval=$with_sync_input;
2156 else
2157 with_sync_input=yes
2160 if test "$with_sync_input" = yes; then
2162 cat >>confdefs.h <<\_ACEOF
2163 #define SYNC_INPUT 1
2164 _ACEOF
2169 # Check whether --with-x-toolkit was given.
2170 if test "${with_x_toolkit+set}" = set; then
2171 withval=$with_x_toolkit; case "${withval}" in
2172 y | ye | yes ) val=gtk ;;
2173 n | no ) val=no ;;
2174 l | lu | luc | luci | lucid ) val=lucid ;;
2175 a | at | ath | athe | athen | athena ) val=athena ;;
2176 m | mo | mot | moti | motif ) val=motif ;;
2177 g | gt | gtk ) val=gtk ;;
2179 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2180 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2181 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2182 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2183 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2184 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2185 { (exit 1); exit 1; }; }
2187 esac
2188 with_x_toolkit=$val
2194 # Check whether --with-xpm was given.
2195 if test "${with_xpm+set}" = set; then
2196 withval=$with_xpm;
2197 else
2198 with_xpm=yes
2202 # Check whether --with-jpeg was given.
2203 if test "${with_jpeg+set}" = set; then
2204 withval=$with_jpeg;
2205 else
2206 with_jpeg=yes
2210 # Check whether --with-tiff was given.
2211 if test "${with_tiff+set}" = set; then
2212 withval=$with_tiff;
2213 else
2214 with_tiff=yes
2218 # Check whether --with-gif was given.
2219 if test "${with_gif+set}" = set; then
2220 withval=$with_gif;
2221 else
2222 with_gif=yes
2226 # Check whether --with-png was given.
2227 if test "${with_png+set}" = set; then
2228 withval=$with_png;
2229 else
2230 with_png=yes
2234 # Check whether --with-rsvg was given.
2235 if test "${with_rsvg+set}" = set; then
2236 withval=$with_rsvg;
2237 else
2238 with_rsvg=yes
2242 # Check whether --with-imagemagick was given.
2243 if test "${with_imagemagick+set}" = set; then
2244 withval=$with_imagemagick;
2245 else
2246 with_imagemagick=no
2251 # Check whether --with-xft was given.
2252 if test "${with_xft+set}" = set; then
2253 withval=$with_xft;
2254 else
2255 with_xft=yes
2259 # Check whether --with-libotf was given.
2260 if test "${with_libotf+set}" = set; then
2261 withval=$with_libotf;
2262 else
2263 with_libotf=yes
2267 # Check whether --with-m17n-flt was given.
2268 if test "${with_m17n_flt+set}" = set; then
2269 withval=$with_m17n_flt;
2270 else
2271 with_m17n_flt=yes
2276 # Check whether --with-toolkit-scroll-bars was given.
2277 if test "${with_toolkit_scroll_bars+set}" = set; then
2278 withval=$with_toolkit_scroll_bars;
2279 else
2280 with_toolkit_scroll_bars=yes
2284 # Check whether --with-xaw3d was given.
2285 if test "${with_xaw3d+set}" = set; then
2286 withval=$with_xaw3d;
2287 else
2288 with_xaw3d=yes
2292 # Check whether --with-xim was given.
2293 if test "${with_xim+set}" = set; then
2294 withval=$with_xim;
2295 else
2296 with_xim=yes
2300 # Check whether --with-ns was given.
2301 if test "${with_ns+set}" = set; then
2302 withval=$with_ns;
2303 else
2304 with_ns=no
2309 # Check whether --with-gpm was given.
2310 if test "${with_gpm+set}" = set; then
2311 withval=$with_gpm;
2312 else
2313 with_gpm=yes
2317 # Check whether --with-dbus was given.
2318 if test "${with_dbus+set}" = set; then
2319 withval=$with_dbus;
2320 else
2321 with_dbus=yes
2325 # Check whether --with-gconf was given.
2326 if test "${with_gconf+set}" = set; then
2327 withval=$with_gconf;
2328 else
2329 with_gconf=yes
2333 ## For the times when you want to build Emacs but don't have
2334 ## a suitable makeinfo, and can live without the manuals.
2336 # Check whether --with-makeinfo was given.
2337 if test "${with_makeinfo+set}" = set; then
2338 withval=$with_makeinfo;
2339 else
2340 with_makeinfo=yes
2345 # Check whether --with-gtk was given.
2346 if test "${with_gtk+set}" = set; then
2347 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2348 specify a toolkit." >&5
2349 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2350 specify a toolkit." >&2;}
2351 { (exit 1); exit 1; }; }
2356 # Check whether --with-gcc was given.
2357 if test "${with_gcc+set}" = set; then
2358 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2359 variable to specify a compiler." >&5
2360 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2361 variable to specify a compiler." >&2;}
2362 { (exit 1); exit 1; }; }
2367 # Check whether --with-pkg-config-prog was given.
2368 if test "${with_pkg_config_prog+set}" = set; then
2369 withval=$with_pkg_config_prog;
2372 if test "X${with_pkg_config_prog}" != X; then
2373 if test "${with_pkg_config_prog}" != yes; then
2374 PKG_CONFIG="${with_pkg_config_prog}"
2379 # Check whether --with-gnustep-conf was given.
2380 if test "${with_gnustep_conf+set}" = set; then
2381 withval=$with_gnustep_conf;
2384 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2385 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2386 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2387 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2389 # Check whether --enable-ns-self-contained was given.
2390 if test "${enable_ns_self_contained+set}" = set; then
2391 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2392 else
2393 EN_NS_SELF_CONTAINED=yes
2397 # Check whether --enable-asserts was given.
2398 if test "${enable_asserts+set}" = set; then
2399 enableval=$enable_asserts; USE_XASSERTS=$enableval
2400 else
2401 USE_XASSERTS=no
2405 # Check whether --enable-maintainer-mode was given.
2406 if test "${enable_maintainer_mode+set}" = set; then
2407 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2408 else
2409 USE_MAINTAINER_MODE=no
2412 if test $USE_MAINTAINER_MODE = yes; then
2413 MAINT=
2414 else
2415 MAINT=#
2419 # Check whether --enable-locallisppath was given.
2420 if test "${enable_locallisppath+set}" = set; then
2421 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2422 locallisppath=
2423 elif test "${enableval}" != "yes"; then
2424 locallisppath=${enableval}
2429 # Check whether --enable-checking was given.
2430 if test "${enable_checking+set}" = set; then
2431 enableval=$enable_checking; ac_checking_flags="${enableval}"
2434 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2435 for check in $ac_checking_flags
2437 case $check in
2438 # these set all the flags to specific states
2439 yes) ac_enable_checking=1 ;;
2440 no) ac_enable_checking= ;
2441 ac_gc_check_stringbytes= ;
2442 ac_gc_check_string_overrun= ;
2443 ac_gc_check_string_free_list= ;
2444 ac_xmalloc_overrun= ;
2445 ac_gc_check_cons_list= ;;
2446 all) ac_enable_checking=1 ;
2447 ac_gc_check_stringbytes=1 ;
2448 ac_gc_check_string_overrun=1 ;
2449 ac_gc_check_string_free_list=1 ;
2450 ac_xmalloc_overrun=1 ;
2451 ac_gc_check_cons_list=1 ;;
2452 # these enable particular checks
2453 stringbytes) ac_gc_check_stringbytes=1 ;;
2454 stringoverrun) ac_gc_check_string_overrun=1 ;;
2455 stringfreelist) ac_gc_check_string_free_list=1 ;;
2456 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2457 conslist) ac_gc_check_cons_list=1 ;;
2458 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2459 $as_echo "$as_me: error: unknown check category $check" >&2;}
2460 { (exit 1); exit 1; }; } ;;
2461 esac
2462 done
2463 IFS="$ac_save_IFS"
2465 if test x$ac_enable_checking != x ; then
2467 cat >>confdefs.h <<\_ACEOF
2468 #define ENABLE_CHECKING 1
2469 _ACEOF
2472 if test x$ac_gc_check_stringbytes != x ; then
2474 cat >>confdefs.h <<\_ACEOF
2475 #define GC_CHECK_STRING_BYTES 1
2476 _ACEOF
2479 if test x$ac_gc_check_stringoverrun != x ; then
2481 cat >>confdefs.h <<\_ACEOF
2482 #define GC_CHECK_STRING_OVERRUN 1
2483 _ACEOF
2486 if test x$ac_gc_check_string_free_list != x ; then
2488 cat >>confdefs.h <<\_ACEOF
2489 #define GC_CHECK_STRING_FREE_LIST 1
2490 _ACEOF
2493 if test x$ac_xmalloc_overrun != x ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define XMALLOC_OVERRUN_CHECK 1
2497 _ACEOF
2500 if test x$ac_gc_check_cons_list != x ; then
2502 cat >>confdefs.h <<\_ACEOF
2503 #define GC_CHECK_CONS_LIST 1
2504 _ACEOF
2508 # Check whether --enable-profiling was given.
2509 if test "${enable_profiling+set}" = set; then
2510 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2513 if test x$ac_enable_profiling != x ; then
2514 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2515 PROFILING_LDFLAGS="-pg"
2516 else
2517 PROFILING_CFLAGS=
2518 PROFILING_LDFLAGS=
2521 # Check whether --enable-autodepend was given.
2522 if test "${enable_autodepend+set}" = set; then
2523 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2524 else
2525 ac_enable_autodepend=yes
2529 #### Make srcdir absolute, if it isn't already. It's important to
2530 #### avoid running the path through pwd unnecessarily, since pwd can
2531 #### give you automounter prefixes, which can go away. We do all this
2532 #### so Emacs can find its files when run uninstalled.
2533 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2534 unset CDPATH
2535 case "${srcdir}" in
2536 /* ) ;;
2538 ## We may be able to use the $PWD environment variable to make this
2539 ## absolute. But sometimes PWD is inaccurate.
2540 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2541 ## but that tested only for a well-formed and valid PWD,
2542 ## it did not object when PWD was well-formed and valid but just wrong.
2543 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2544 then
2545 srcdir="$PWD"
2546 else
2547 srcdir="`(cd ${srcdir}; pwd)`"
2550 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2551 esac
2553 #### Check if the source directory already has a configured system in it.
2554 if test `pwd` != `(cd ${srcdir} && pwd)` \
2555 && test -f "${srcdir}/src/config.h" ; then
2556 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2557 as a build directory right now; it has been configured in its own
2558 right. To configure in another directory as well, you MUST
2559 use GNU make. If you do not have GNU make, then you must
2560 now do \`make distclean' in ${srcdir},
2561 and then run $0 again." >&5
2562 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2563 as a build directory right now; it has been configured in its own
2564 right. To configure in another directory as well, you MUST
2565 use GNU make. If you do not have GNU make, then you must
2566 now do \`make distclean' in ${srcdir},
2567 and then run $0 again." >&2;}
2570 #### Given the configuration name, set machfile and opsysfile to the
2571 #### names of the m/*.h and s/*.h files we should use.
2573 ### Canonicalize the configuration name.
2575 ac_aux_dir=
2576 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2577 if test -f "$ac_dir/install-sh"; then
2578 ac_aux_dir=$ac_dir
2579 ac_install_sh="$ac_aux_dir/install-sh -c"
2580 break
2581 elif test -f "$ac_dir/install.sh"; then
2582 ac_aux_dir=$ac_dir
2583 ac_install_sh="$ac_aux_dir/install.sh -c"
2584 break
2585 elif test -f "$ac_dir/shtool"; then
2586 ac_aux_dir=$ac_dir
2587 ac_install_sh="$ac_aux_dir/shtool install -c"
2588 break
2590 done
2591 if test -z "$ac_aux_dir"; then
2592 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2593 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2594 { (exit 1); exit 1; }; }
2597 # These three variables are undocumented and unsupported,
2598 # and are intended to be withdrawn in a future Autoconf release.
2599 # They can cause serious problems if a builder's source tree is in a directory
2600 # whose full name contains unusual characters.
2601 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2602 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2603 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606 # Make sure we can run config.sub.
2607 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2608 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2609 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2610 { (exit 1); exit 1; }; }
2612 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2613 $as_echo_n "checking build system type... " >&6; }
2614 if test "${ac_cv_build+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2616 else
2617 ac_build_alias=$build_alias
2618 test "x$ac_build_alias" = x &&
2619 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2620 test "x$ac_build_alias" = x &&
2621 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2622 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2623 { (exit 1); exit 1; }; }
2624 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2625 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2626 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2627 { (exit 1); exit 1; }; }
2630 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2631 $as_echo "$ac_cv_build" >&6; }
2632 case $ac_cv_build in
2633 *-*-*) ;;
2634 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2635 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2636 { (exit 1); exit 1; }; };;
2637 esac
2638 build=$ac_cv_build
2639 ac_save_IFS=$IFS; IFS='-'
2640 set x $ac_cv_build
2641 shift
2642 build_cpu=$1
2643 build_vendor=$2
2644 shift; shift
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2647 build_os=$*
2648 IFS=$ac_save_IFS
2649 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2653 $as_echo_n "checking host system type... " >&6; }
2654 if test "${ac_cv_host+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test "x$host_alias" = x; then
2658 ac_cv_host=$ac_cv_build
2659 else
2660 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2661 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2662 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2663 { (exit 1); exit 1; }; }
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2668 $as_echo "$ac_cv_host" >&6; }
2669 case $ac_cv_host in
2670 *-*-*) ;;
2671 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2672 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2673 { (exit 1); exit 1; }; };;
2674 esac
2675 host=$ac_cv_host
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_host
2678 shift
2679 host_cpu=$1
2680 host_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 host_os=$*
2685 IFS=$ac_save_IFS
2686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2689 canonical=$host
2690 configuration=${host_alias-${build_alias-$host}}
2694 ### If you add support for a new configuration, add code to this
2695 ### switch statement to recognize your configuration name and select
2696 ### the appropriate operating system and machine description files.
2698 ### You would hope that you could choose an m/*.h file pretty much
2699 ### based on the machine portion of the configuration name, and an s-
2700 ### file based on the operating system portion. However, it turns out
2701 ### that each m/*.h file is pretty manufacturer-specific - for
2702 ### example mips.h is MIPS
2703 ### So we basically have to have a special case for each
2704 ### configuration name.
2706 ### As far as handling version numbers on operating systems is
2707 ### concerned, make sure things will fail in a fixable way. If
2708 ### /etc/MACHINES doesn't say anything about version numbers, be
2709 ### prepared to handle anything reasonably. If version numbers
2710 ### matter, be sure /etc/MACHINES says something about it.
2712 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2713 ### "System V Release 4"; he writes, "The old convention encouraged
2714 ### confusion between `system' and `release' levels'."
2716 machine='' opsys='' unported=no
2717 case "${canonical}" in
2719 ## FreeBSD ports
2720 *-*-freebsd* )
2721 opsys=freebsd
2722 case "${canonical}" in
2723 alpha*-*-freebsd*) machine=alpha ;;
2724 arm*-*-freebsd*) machine=arm ;;
2725 ia64-*-freebsd*) machine=ia64 ;;
2726 sparc-*-freebsd*) machine=sparc ;;
2727 sparc64-*-freebsd*) machine=sparc ;;
2728 powerpc-*-freebsd*) machine=macppc ;;
2729 i[3456]86-*-freebsd*) machine=intel386 ;;
2730 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2731 esac
2734 ## FreeBSD kernel + glibc based userland
2735 *-*-kfreebsd*gnu* )
2736 opsys=gnu-kfreebsd
2737 case "${canonical}" in
2738 alpha*-*-kfreebsd*) machine=alpha ;;
2739 ia64-*-kfreebsd*) machine=ia64 ;;
2740 sparc-*-kfreebsd*) machine=sparc ;;
2741 sparc64-*-kfreebsd*) machine=sparc ;;
2742 powerpc-*-kfreebsd*) machine=macppc ;;
2743 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2744 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2745 esac
2748 ## NetBSD ports
2749 *-*-netbsd* )
2750 opsys=netbsd
2751 if test -f /usr/lib/crti.o; then
2753 cat >>confdefs.h <<\_ACEOF
2754 #define HAVE_CRTIN /**/
2755 _ACEOF
2759 case "${canonical}" in
2760 alpha*-*-netbsd*) machine=alpha ;;
2761 i[3456]86-*-netbsd*) machine=intel386 ;;
2762 mips-*-netbsd*) machine=mips ;;
2763 mipsel-*-netbsd*) machine=mips ;;
2764 mipseb-*-netbsd*) machine=mips ;;
2765 powerpc-*-netbsd*) machine=macppc ;;
2766 sparc*-*-netbsd*) machine=sparc ;;
2767 vax-*-netbsd*) machine=vax ;;
2768 arm-*-netbsd*) machine=arm ;;
2769 x86_64-*-netbsd*) machine=amdx86-64 ;;
2770 hppa-*-netbsd*) machine=hp800 ;;
2771 m68k-*-netbsd*) machine=m68k ;;
2772 esac
2775 ## OpenBSD ports
2776 *-*-openbsd* )
2777 opsys=openbsd
2778 case "${canonical}" in
2779 alpha*-*-openbsd*) machine=alpha ;;
2780 arm-*-openbsd*) machine=arm ;;
2781 i386-*-openbsd*) machine=intel386 ;;
2782 powerpc-*-openbsd*) machine=macppc ;;
2783 sparc*-*-openbsd*) machine=sparc ;;
2784 vax-*-openbsd*) machine=vax ;;
2785 x86_64-*-openbsd*) machine=amdx86-64 ;;
2786 hppa-*-openbsd*) machine=hp800 ;;
2787 esac
2790 alpha*-*-linux-gnu* )
2791 machine=alpha opsys=gnu-linux
2794 arm*-*-linux-gnu* )
2795 machine=arm opsys=gnu-linux
2798 ## Apple Darwin / Mac OS X
2799 *-apple-darwin* )
2800 case "${canonical}" in
2801 i[3456]86-* ) machine=intel386 ;;
2802 powerpc-* ) machine=macppc ;;
2803 x86_64-* ) machine=amdx86-64 ;;
2804 * ) unported=yes ;;
2805 esac
2806 opsys=darwin
2807 # Define CPP as follows to make autoconf work correctly.
2808 CPP="${CC-cc} -E -no-cpp-precomp"
2809 # Use fink packages if available.
2810 if test -d /sw/include && test -d /sw/lib; then
2811 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2812 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2813 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2817 ## HP 9000 series 700 and 800, running HP/UX
2818 hppa*-hp-hpux10.2* )
2819 machine=hp800 opsys=hpux10-20
2821 hppa*-hp-hpux1[1-9]* )
2822 machine=hp800 opsys=hpux11
2823 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2826 hppa*-*-linux-gnu* )
2827 machine=hp800 opsys=gnu-linux
2830 ## IBM machines
2831 s390-*-linux-gnu* )
2832 machine=ibms390 opsys=gnu-linux
2834 s390x-*-linux-gnu* )
2835 machine=ibms390x opsys=gnu-linux
2837 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2838 machine=ibmrs6000 opsys=aix4-2
2840 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2841 machine=ibmrs6000 opsys=aix4-2
2843 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2844 machine=ibmrs6000 opsys=aix4-2
2846 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2847 machine=ibmrs6000 opsys=aix4-2
2850 ## Macintosh PowerPC
2851 powerpc*-*-linux-gnu* )
2852 machine=macppc opsys=gnu-linux
2855 ## Silicon Graphics machines
2856 ## Iris 4D
2857 mips-sgi-irix6.5 )
2858 machine=iris4d opsys=irix6-5
2859 # Without defining _LANGUAGE_C, things get masked out in the headers
2860 # so that, for instance, grepping for `free' in stdlib.h fails and
2861 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2862 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2863 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2866 ## Suns
2867 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2868 machine=sparc opsys=gnu-linux
2871 *-sun-solaris* \
2872 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2873 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2874 case "${canonical}" in
2875 i[3456]86-*-* ) machine=intel386 ;;
2876 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2877 sparc* ) machine=sparc ;;
2878 * ) unported=yes ;;
2879 esac
2880 case "${canonical}" in
2881 *-sunos5.6* | *-solaris2.6* )
2882 opsys=sol2-6
2883 NON_GNU_CPP=/usr/ccs/lib/cpp
2884 RANLIB="ar -ts"
2886 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2887 opsys=sol2-6
2888 emacs_check_sunpro_c=yes
2889 NON_GNU_CPP=/usr/ccs/lib/cpp
2891 *-sunos5* | *-solaris* )
2892 opsys=sol2-10
2893 emacs_check_sunpro_c=yes
2894 NON_GNU_CPP=/usr/ccs/lib/cpp
2896 esac
2897 ## Watch out for a compiler that we know will not work.
2898 case "${canonical}" in
2899 *-solaris* | *-sunos5* )
2900 if [ "x$CC" = x/usr/ucb/cc ]; then
2901 ## /usr/ucb/cc doesn't work;
2902 ## we should find some other compiler that does work.
2903 unset CC
2906 *) ;;
2907 esac
2910 ## IA-64
2911 ia64*-*-linux* )
2912 machine=ia64 opsys=gnu-linux
2915 ## Intel 386 machines where we don't care about the manufacturer
2916 i[3456]86-*-* )
2917 machine=intel386
2918 case "${canonical}" in
2919 *-cygwin ) opsys=cygwin ;;
2920 *-darwin* ) opsys=darwin
2921 CPP="${CC-cc} -E -no-cpp-precomp"
2923 *-linux-gnu* ) opsys=gnu-linux ;;
2924 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2925 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2926 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2927 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2928 esac
2931 ## m68k Linux-based GNU system
2932 m68k-*-linux-gnu* )
2933 machine=m68k opsys=gnu-linux
2936 ## Mips Linux-based GNU system
2937 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2938 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2939 machine=mips opsys=gnu-linux
2942 ## AMD x86-64 Linux-based GNU system
2943 x86_64-*-linux-gnu* )
2944 machine=amdx86-64 opsys=gnu-linux
2947 ## Tensilica Xtensa Linux-based GNU system
2948 xtensa*-*-linux-gnu* )
2949 machine=xtensa opsys=gnu-linux
2952 ## SuperH Linux-based GNU system
2953 sh[34]*-*-linux-gnu* )
2954 machine=sh3 opsys=gnu-linux
2958 unported=yes
2960 esac
2962 ### If the code above didn't choose an operating system, just choose
2963 ### an operating system based on the configuration name. You really
2964 ### only want to use this when you have no idea what the right
2965 ### operating system is; if you know what operating systems a machine
2966 ### runs, it's cleaner to make it explicit in the case statement
2967 ### above.
2968 if test x"${opsys}" = x; then
2969 case "${canonical}" in
2970 *-gnu* ) opsys=gnu ;;
2972 unported=yes
2974 esac
2979 if test $unported = yes; then
2980 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2981 Check \`etc/MACHINES' for recognized configuration names." >&5
2982 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2983 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2984 { (exit 1); exit 1; }; }
2987 machfile="m/${machine}.h"
2988 opsysfile="s/${opsys}.h"
2991 #### Choose a compiler.
2992 test -n "$CC" && cc_specified=yes
2994 # Save the value of CFLAGS that the user specified.
2995 SPECIFIED_CFLAGS="$CFLAGS"
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035 { $as_echo "$as_me:$LINENO: result: no" >&5
3036 $as_echo "no" >&6; }
3041 if test -z "$ac_cv_prog_CC"; then
3042 ac_ct_CC=$CC
3043 # Extract the first word of "gcc", so it can be a program name with args.
3044 set dummy gcc; ac_word=$2
3045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_CC="gcc"
3061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3064 done
3065 done
3066 IFS=$as_save_IFS
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 $as_echo "$ac_ct_CC" >&6; }
3074 else
3075 { $as_echo "$as_me:$LINENO: result: no" >&5
3076 $as_echo "no" >&6; }
3079 if test "x$ac_ct_CC" = x; then
3080 CC=""
3081 else
3082 case $cross_compiling:$ac_tool_warned in
3083 yes:)
3084 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088 CC=$ac_ct_CC
3090 else
3091 CC="$ac_cv_prog_CC"
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}cc; ac_word=$2
3098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC="${ac_tool_prefix}cc"
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3119 IFS=$as_save_IFS
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3135 if test -z "$CC"; then
3136 # Extract the first word of "cc", so it can be a program name with args.
3137 set dummy cc; ac_word=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146 ac_prog_rejected=no
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3155 ac_prog_rejected=yes
3156 continue
3158 ac_cv_prog_CC="cc"
3159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3162 done
3163 done
3164 IFS=$as_save_IFS
3166 if test $ac_prog_rejected = yes; then
3167 # We found a bogon in the path, so make sure we never use it.
3168 set dummy $ac_cv_prog_CC
3169 shift
3170 if test $# != 0; then
3171 # We chose a different compiler from the bogus one.
3172 # However, it has the same basename, so the bogon will be chosen
3173 # first if we set CC to just the basename; use the full file name.
3174 shift
3175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185 { $as_echo "$as_me:$LINENO: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 for ac_prog in cl.exe
3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:$LINENO: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$CC" && break
3233 done
3235 if test -z "$CC"; then
3236 ac_ct_CC=$CC
3237 for ac_prog in cl.exe
3239 # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy $ac_prog; ac_word=$2
3241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3244 $as_echo_n "(cached) " >&6
3245 else
3246 if test -n "$ac_ct_CC"; then
3247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_ac_ct_CC="$ac_prog"
3257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3260 done
3261 done
3262 IFS=$as_save_IFS
3266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3269 $as_echo "$ac_ct_CC" >&6; }
3270 else
3271 { $as_echo "$as_me:$LINENO: result: no" >&5
3272 $as_echo "no" >&6; }
3276 test -n "$ac_ct_CC" && break
3277 done
3279 if test "x$ac_ct_CC" = x; then
3280 CC=""
3281 else
3282 case $cross_compiling:$ac_tool_warned in
3283 yes:)
3284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned=yes ;;
3287 esac
3288 CC=$ac_ct_CC
3295 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3300 See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }; }
3303 # Provide some information about the compiler.
3304 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3305 set X $ac_compile
3306 ac_compiler=$2
3307 { (ac_try="$ac_compiler --version >&5"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3313 $as_echo "$ac_try_echo") >&5
3314 (eval "$ac_compiler --version >&5") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3318 { (ac_try="$ac_compiler -v >&5"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_compiler -v >&5") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }
3329 { (ac_try="$ac_compiler -V >&5"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335 $as_echo "$ac_try_echo") >&5
3336 (eval "$ac_compiler -V >&5") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3349 main ()
3353 return 0;
3355 _ACEOF
3356 ac_clean_files_save=$ac_clean_files
3357 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3358 # Try to create an executable without -o first, disregard a.out.
3359 # It will help us diagnose broken compilers, and finding out an intuition
3360 # of exeext.
3361 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3362 $as_echo_n "checking for C compiler default output file name... " >&6; }
3363 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3365 # The possible output files:
3366 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3368 ac_rmfiles=
3369 for ac_file in $ac_files
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3374 esac
3375 done
3376 rm -f $ac_rmfiles
3378 if { (ac_try="$ac_link_default"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_link_default") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; then
3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3390 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3392 # so that the user can short-circuit this test for compilers unknown to
3393 # Autoconf.
3394 for ac_file in $ac_files ''
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3400 [ab].out )
3401 # We found the default executable, but exeext='' is most
3402 # certainly right.
3403 break;;
3404 *.* )
3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3406 then :; else
3407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 # We set ac_cv_exeext here because the later test for it is not
3410 # safe: cross compilers may not add the suffix if given an `-o'
3411 # argument, so we may need to know it at that point already.
3412 # Even if this section looks crufty: it has the advantage of
3413 # actually working.
3414 break;;
3416 break;;
3417 esac
3418 done
3419 test "$ac_cv_exeext" = no && ac_cv_exeext=
3421 else
3422 ac_file=''
3425 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3426 $as_echo "$ac_file" >&6; }
3427 if test -z "$ac_file"; then
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3434 See \`config.log' for more details." >&5
3435 $as_echo "$as_me: error: C compiler cannot create executables
3436 See \`config.log' for more details." >&2;}
3437 { (exit 77); exit 77; }; }; }
3440 ac_exeext=$ac_cv_exeext
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3445 $as_echo_n "checking whether the C compiler works... " >&6; }
3446 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3447 # If not cross compiling, check that we can run a simple program.
3448 if test "$cross_compiling" != yes; then
3449 if { ac_try='./$ac_file'
3450 { (case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_try") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 cross_compiling=no
3461 else
3462 if test "$cross_compiling" = maybe; then
3463 cross_compiling=yes
3464 else
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3468 If you meant to cross compile, use \`--host'.
3469 See \`config.log' for more details." >&5
3470 $as_echo "$as_me: error: cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }; }
3477 { $as_echo "$as_me:$LINENO: result: yes" >&5
3478 $as_echo "yes" >&6; }
3480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481 ac_clean_files=$ac_clean_files_save
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3485 $as_echo_n "checking whether we are cross compiling... " >&6; }
3486 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3487 $as_echo "$cross_compiling" >&6; }
3489 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3490 $as_echo_n "checking for suffix of executables... " >&6; }
3491 if { (ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; then
3502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3504 # work properly (i.e., refer to `conftest.exe'), while it won't with
3505 # `rm'.
3506 for ac_file in conftest.exe conftest conftest.*; do
3507 test -f "$ac_file" || continue
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3511 break;;
3512 * ) break;;
3513 esac
3514 done
3515 else
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3525 rm -f conftest$ac_cv_exeext
3526 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3527 $as_echo "$ac_cv_exeext" >&6; }
3529 rm -f conftest.$ac_ext
3530 EXEEXT=$ac_cv_exeext
3531 ac_exeext=$EXEEXT
3532 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3533 $as_echo_n "checking for suffix of object files... " >&6; }
3534 if test "${ac_cv_objext+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3545 main ()
3549 return 0;
3551 _ACEOF
3552 rm -f conftest.o conftest.obj
3553 if { (ac_try="$ac_compile"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559 $as_echo "$ac_try_echo") >&5
3560 (eval "$ac_compile") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; then
3564 for ac_file in conftest.o conftest.obj conftest.*; do
3565 test -f "$ac_file" || continue;
3566 case $ac_file in
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3569 break;;
3570 esac
3571 done
3572 else
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3579 See \`config.log' for more details." >&5
3580 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }; }
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3590 ac_objext=$OBJEXT
3591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3604 main ()
3606 #ifndef __GNUC__
3607 choke me
3608 #endif
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 ac_compiler_gnu=yes
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 ac_compiler_gnu=no
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648 else
3649 GCC=
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if test "${ac_cv_prog_cc_g+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 main ()
3674 return 0;
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3695 ac_cv_prog_cc_g=yes
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 CFLAGS=""
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3709 main ()
3713 return 0;
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3735 else
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740 CFLAGS="-g"
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3749 main ()
3753 return 0;
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3774 ac_cv_prog_cc_g=yes
3775 else
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3797 CFLAGS="-g -O2"
3798 else
3799 CFLAGS="-g"
3801 else
3802 if test "$GCC" = yes; then
3803 CFLAGS="-O2"
3804 else
3805 CFLAGS=
3808 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then
3811 $as_echo_n "(cached) " >&6
3812 else
3813 ac_cv_prog_cc_c89=no
3814 ac_save_CC=$CC
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829 char **p;
3830 int i;
3832 return p[i];
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3836 char *s;
3837 va_list v;
3838 va_start (v,p);
3839 s = g (p, va_arg (v,int));
3840 va_end (v);
3841 return s;
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3845 function prototypes and stuff, but not '\xHH' hex character constants.
3846 These don't provoke an error unfortunately, instead are silently treated
3847 as 'x'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3849 array size at least. It's necessary to write '\x00'==0 to get something
3850 that's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3855 #define FOO(x) 'x'
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 int argc;
3863 char **argv;
3865 main ()
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3869 return 0;
3871 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg
3895 else
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break
3904 done
3905 rm -f conftest.$ac_ext
3906 CC=$ac_save_CC
3909 # AC_CACHE_VAL
3910 case "x$ac_cv_prog_cc_c89" in
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3914 xno)
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3921 esac
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3933 CPP=
3936 ## If not using gcc, and on Solaris, and no CPP specified, see if
3937 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3938 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3941 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3943 if test "${emacs_cv_sunpro_c+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3945 else
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3954 main ()
3956 #ifndef __SUNPRO_C
3957 fail;
3958 #endif
3961 return 0;
3963 _ACEOF
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3984 }; then
3985 emacs_cv_sunpro_c=yes
3986 else
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 emacs_cv_sunpro_c=no
3993 rm -rf conftest.dSYM
3994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3999 $as_echo "$emacs_cv_sunpro_c" >&6; }
4001 if test x"$emacs_cv_sunpro_c" = xyes; then
4002 NON_GNU_CPP="$CC -E -Xs"
4006 #### Some systems specify a CPP to use unless we are using GCC.
4007 #### Now that we know whether we are using GCC, we can decide whether
4008 #### to use that one.
4009 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4010 then
4011 CPP="$NON_GNU_CPP"
4014 #### Some systems specify a CC to use unless we are using GCC.
4015 #### Now that we know whether we are using GCC, we can decide whether
4016 #### to use that one.
4017 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4018 test x$cc_specified != xyes
4019 then
4020 CC="$NON_GNU_CC"
4023 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4024 then
4025 CC="$CC $GCC_TEST_OPTIONS"
4028 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4029 then
4030 CC="$CC $NON_GCC_TEST_OPTIONS"
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4042 CPP=
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 $as_echo_n "(cached) " >&6
4047 else
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 }; then
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Broken: fails on valid input.
4096 continue
4099 rm -f conftest.err conftest.$ac_ext
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if { (ac_try="$ac_cpp conftest.$ac_ext"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4139 rm -f conftest.err conftest.$ac_ext
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 break
4148 done
4149 ac_cv_prog_CPP=$CPP
4152 CPP=$ac_cv_prog_CPP
4153 else
4154 ac_cv_prog_CPP=$CPP
4156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 }; then
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Broken: fails on valid input.
4203 continue
4206 rm -f conftest.err conftest.$ac_ext
4208 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if { (ac_try="$ac_cpp conftest.$ac_ext"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 }; then
4235 # Broken: success on invalid input.
4236 continue
4237 else
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 # Passes both tests.
4242 ac_preproc_ok=:
4243 break
4246 rm -f conftest.err conftest.$ac_ext
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then
4253 else
4254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&5
4258 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4259 See \`config.log' for more details." >&2;}
4260 { (exit 1); exit 1; }; }; }
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if test "${ac_cv_path_GREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in grep ggrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4290 *GNU*)
4291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 ac_count=`expr $ac_count + 1`
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP="$ac_path_GREP"
4307 ac_path_GREP_max=$ac_count
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4315 $ac_path_GREP_found && break 3
4316 done
4317 done
4318 done
4319 IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_GREP"; then
4321 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4322 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4323 { (exit 1); exit 1; }; }
4325 else
4326 ac_cv_path_GREP=$GREP
4330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4331 $as_echo "$ac_cv_path_GREP" >&6; }
4332 GREP="$ac_cv_path_GREP"
4335 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4336 $as_echo_n "checking for egrep... " >&6; }
4337 if test "${ac_cv_path_EGREP+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4341 then ac_cv_path_EGREP="$GREP -E"
4342 else
4343 if test -z "$EGREP"; then
4344 ac_path_EGREP_found=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_prog in egrep; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4355 # Check for GNU ac_path_EGREP and select it if it is found.
4356 # Check for GNU $ac_path_EGREP
4357 case `"$ac_path_EGREP" --version 2>&1` in
4358 *GNU*)
4359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4361 ac_count=0
4362 $as_echo_n 0123456789 >"conftest.in"
4363 while :
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'EGREP' >> "conftest.nl"
4369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371 ac_count=`expr $ac_count + 1`
4372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_EGREP="$ac_path_EGREP"
4375 ac_path_EGREP_max=$ac_count
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4379 done
4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381 esac
4383 $ac_path_EGREP_found && break 3
4384 done
4385 done
4386 done
4387 IFS=$as_save_IFS
4388 if test -z "$ac_cv_path_EGREP"; then
4389 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4390 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4391 { (exit 1); exit 1; }; }
4393 else
4394 ac_cv_path_EGREP=$EGREP
4399 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP="$ac_cv_path_EGREP"
4404 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4405 $as_echo_n "checking for ANSI C header files... " >&6; }
4406 if test "${ac_cv_header_stdc+set}" = set; then
4407 $as_echo_n "(cached) " >&6
4408 else
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4421 main ()
4425 return 0;
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4435 $as_echo "$ac_try_echo") >&5
4436 (eval "$ac_compile") 2>conftest.er1
4437 ac_status=$?
4438 grep -v '^ *+' conftest.er1 >conftest.err
4439 rm -f conftest.er1
4440 cat conftest.err >&5
4441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && {
4443 test -z "$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4445 } && test -s conftest.$ac_objext; then
4446 ac_cv_header_stdc=yes
4447 else
4448 $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 ac_cv_header_stdc=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 if test $ac_cv_header_stdc = yes; then
4457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <string.h>
4466 _ACEOF
4467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468 $EGREP "memchr" >/dev/null 2>&1; then
4470 else
4471 ac_cv_header_stdc=no
4473 rm -f conftest*
4477 if test $ac_cv_header_stdc = yes; then
4478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <stdlib.h>
4487 _ACEOF
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "free" >/dev/null 2>&1; then
4491 else
4492 ac_cv_header_stdc=no
4494 rm -f conftest*
4498 if test $ac_cv_header_stdc = yes; then
4499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4500 if test "$cross_compiling" = yes; then
4502 else
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h. */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509 #include <ctype.h>
4510 #include <stdlib.h>
4511 #if ((' ' & 0x0FF) == 0x020)
4512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4514 #else
4515 # define ISLOWER(c) \
4516 (('a' <= (c) && (c) <= 'i') \
4517 || ('j' <= (c) && (c) <= 'r') \
4518 || ('s' <= (c) && (c) <= 'z'))
4519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4520 #endif
4522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4524 main ()
4526 int i;
4527 for (i = 0; i < 256; i++)
4528 if (XOR (islower (i), ISLOWER (i))
4529 || toupper (i) != TOUPPER (i))
4530 return 2;
4531 return 0;
4533 _ACEOF
4534 rm -f conftest$ac_exeext
4535 if { (ac_try="$ac_link"
4536 case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4541 $as_echo "$ac_try_echo") >&5
4542 (eval "$ac_link") 2>&5
4543 ac_status=$?
4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_try") 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4557 else
4558 $as_echo "$as_me: program exited with status $ac_status" >&5
4559 $as_echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 ( exit $ac_status )
4563 ac_cv_header_stdc=no
4565 rm -rf conftest.dSYM
4566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4573 $as_echo "$ac_cv_header_stdc" >&6; }
4574 if test $ac_cv_header_stdc = yes; then
4576 cat >>confdefs.h <<\_ACEOF
4577 #define STDC_HEADERS 1
4578 _ACEOF
4582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4593 inttypes.h stdint.h unistd.h
4595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 $as_echo_n "checking for $ac_header... " >&6; }
4598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599 $as_echo_n "(cached) " >&6
4600 else
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4609 #include <$ac_header>
4610 _ACEOF
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4613 case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616 esac
4617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.$ac_objext; then
4629 eval "$as_ac_Header=yes"
4630 else
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 eval "$as_ac_Header=no"
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_res=`eval 'as_val=${'$as_ac_Header'}
4640 $as_echo "$as_val"'`
4641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4642 $as_echo "$ac_res" >&6; }
4643 as_val=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 if test "x$as_val" = x""yes; then
4646 cat >>confdefs.h <<_ACEOF
4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648 _ACEOF
4652 done
4656 if test "${ac_cv_header_minix_config_h+set}" = set; then
4657 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4658 $as_echo_n "checking for minix/config.h... " >&6; }
4659 if test "${ac_cv_header_minix_config_h+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4663 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4664 else
4665 # Is the header compilable?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4667 $as_echo_n "checking minix/config.h usability... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <minix/config.h>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682 esac
4683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4684 $as_echo "$ac_try_echo") >&5
4685 (eval "$ac_compile") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && {
4692 test -z "$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 } && test -s conftest.$ac_objext; then
4695 ac_header_compiler=yes
4696 else
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 ac_header_compiler=no
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4705 $as_echo "$ac_header_compiler" >&6; }
4707 # Is the header present?
4708 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4709 $as_echo_n "checking minix/config.h presence... " >&6; }
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <minix/config.h>
4717 _ACEOF
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 }; then
4735 ac_header_preproc=yes
4736 else
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 ac_header_preproc=no
4743 rm -f conftest.err conftest.$ac_ext
4744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4745 $as_echo "$ac_header_preproc" >&6; }
4747 # So? What about this header?
4748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4749 yes:no: )
4750 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4751 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4753 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4754 ac_header_preproc=yes
4756 no:yes:* )
4757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4760 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4761 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4762 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4763 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4764 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4766 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4771 esac
4772 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4773 $as_echo_n "checking for minix/config.h... " >&6; }
4774 if test "${ac_cv_header_minix_config_h+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4776 else
4777 ac_cv_header_minix_config_h=$ac_header_preproc
4779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4780 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4783 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4784 MINIX=yes
4785 else
4786 MINIX=
4790 if test "$MINIX" = yes; then
4792 cat >>confdefs.h <<\_ACEOF
4793 #define _POSIX_SOURCE 1
4794 _ACEOF
4797 cat >>confdefs.h <<\_ACEOF
4798 #define _POSIX_1_SOURCE 2
4799 _ACEOF
4802 cat >>confdefs.h <<\_ACEOF
4803 #define _MINIX 1
4804 _ACEOF
4810 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4811 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4812 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4813 $as_echo_n "(cached) " >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4822 # define __EXTENSIONS__ 1
4823 $ac_includes_default
4825 main ()
4829 return 0;
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 ac_cv_safe_to_define___extensions__=yes
4851 else
4852 $as_echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 ac_cv_safe_to_define___extensions__=no
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4861 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4862 test $ac_cv_safe_to_define___extensions__ = yes &&
4863 cat >>confdefs.h <<\_ACEOF
4864 #define __EXTENSIONS__ 1
4865 _ACEOF
4867 cat >>confdefs.h <<\_ACEOF
4868 #define _ALL_SOURCE 1
4869 _ACEOF
4871 cat >>confdefs.h <<\_ACEOF
4872 #define _GNU_SOURCE 1
4873 _ACEOF
4875 cat >>confdefs.h <<\_ACEOF
4876 #define _POSIX_PTHREAD_SEMANTICS 1
4877 _ACEOF
4879 cat >>confdefs.h <<\_ACEOF
4880 #define _TANDEM_SOURCE 1
4881 _ACEOF
4885 ### Use -Wno-pointer-sign if the compiler supports it
4886 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4887 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4888 SAVE_CFLAGS="$CFLAGS"
4889 CFLAGS="$CFLAGS -Wno-pointer-sign"
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4898 main ()
4902 return 0;
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_compile") 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest.$ac_objext; then
4923 has_option=yes
4924 else
4925 $as_echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 has_option=no
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 if test $has_option = yes; then
4933 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4935 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4936 $as_echo "$has_option" >&6; }
4937 CFLAGS="$SAVE_CFLAGS"
4938 unset has_option
4939 unset SAVE_CFLAGS
4941 ### Use -Wdeclaration-after-statement if the compiler supports it
4942 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4943 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4944 SAVE_CFLAGS="$CFLAGS"
4945 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4954 main ()
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968 $as_echo "$ac_try_echo") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 has_option=yes
4980 else
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 has_option=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 if test $has_option = yes; then
4989 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4991 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4992 $as_echo "$has_option" >&6; }
4993 CFLAGS="$SAVE_CFLAGS"
4994 unset has_option
4995 unset SAVE_CFLAGS
4997 #### Some other nice autoconf tests.
4999 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5000 $as_echo_n "checking whether ln -s works... " >&6; }
5001 LN_S=$as_ln_s
5002 if test "$LN_S" = "ln -s"; then
5003 { $as_echo "$as_me:$LINENO: result: yes" >&5
5004 $as_echo "yes" >&6; }
5005 else
5006 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5007 $as_echo "no, using $LN_S" >&6; }
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5017 # On Suns, sometimes $CPP names a directory.
5018 if test -n "$CPP" && test -d "$CPP"; then
5019 CPP=
5021 if test -z "$CPP"; then
5022 if test "${ac_cv_prog_CPP+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5024 else
5025 # Double quotes because CPP needs to be expanded
5026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028 ac_preproc_ok=false
5029 for ac_c_preproc_warn_flag in '' yes
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #ifdef __STDC__
5044 # include <limits.h>
5045 #else
5046 # include <assert.h>
5047 #endif
5048 Syntax error
5049 _ACEOF
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null && {
5064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 }; then
5068 else
5069 $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Broken: fails on valid input.
5073 continue
5076 rm -f conftest.err conftest.$ac_ext
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <ac_nonexistent.h>
5087 _ACEOF
5088 if { (ac_try="$ac_cpp conftest.$ac_ext"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null && {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 }; then
5105 # Broken: success on invalid input.
5106 continue
5107 else
5108 $as_echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5116 rm -f conftest.err conftest.$ac_ext
5118 done
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.err conftest.$ac_ext
5121 if $ac_preproc_ok; then
5122 break
5125 done
5126 ac_cv_prog_CPP=$CPP
5129 CPP=$ac_cv_prog_CPP
5130 else
5131 ac_cv_prog_CPP=$CPP
5133 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5134 $as_echo "$CPP" >&6; }
5135 ac_preproc_ok=false
5136 for ac_c_preproc_warn_flag in '' yes
5138 # Use a header file that comes with gcc, so configuring glibc
5139 # with a fresh cross-compiler works.
5140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 # <limits.h> exists even on freestanding compilers.
5142 # On the NeXT, cc -E runs the code through the compiler's parser,
5143 # not just through cpp. "Syntax error" is here to catch this case.
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #ifdef __STDC__
5151 # include <limits.h>
5152 #else
5153 # include <assert.h>
5154 #endif
5155 Syntax error
5156 _ACEOF
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163 $as_echo "$ac_try_echo") >&5
5164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null && {
5171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 }; then
5175 else
5176 $as_echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Broken: fails on valid input.
5180 continue
5183 rm -f conftest.err conftest.$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if { (ac_try="$ac_cpp conftest.$ac_ext"
5196 case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199 esac
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev/null && {
5209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5211 }; then
5212 # Broken: success on invalid input.
5213 continue
5214 else
5215 $as_echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5223 rm -f conftest.err conftest.$ac_ext
5225 done
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.err conftest.$ac_ext
5228 if $ac_preproc_ok; then
5230 else
5231 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5234 See \`config.log' for more details." >&5
5235 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&2;}
5237 { (exit 1); exit 1; }; }; }
5240 ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246 # Find a good install program. We prefer a C program (faster),
5247 # so one script is as good as another. But avoid the broken or
5248 # incompatible versions:
5249 # SysV /etc/install, /usr/sbin/install
5250 # SunOS /usr/etc/install
5251 # IRIX /sbin/install
5252 # AIX /bin/install
5253 # AmigaOS /C/install, which installs bootblocks on floppy discs
5254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5257 # OS/2's system install, which has a completely different semantic
5258 # ./install, which can be erroneously created by make from ./install.sh.
5259 # Reject install programs that cannot install multiple files.
5260 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5262 if test -z "$INSTALL"; then
5263 if test "${ac_cv_path_install+set}" = set; then
5264 $as_echo_n "(cached) " >&6
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 # Account for people who put trailing slashes in PATH elements.
5272 case $as_dir/ in
5273 ./ | .// | /cC/* | \
5274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5276 /usr/ucb/* ) ;;
5278 # OSF1 and SCO ODT 3.0 have their own names for install.
5279 # Don't use installbsd from OSF since it installs stuff as root
5280 # by default.
5281 for ac_prog in ginstall scoinst install; do
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5284 if test $ac_prog = install &&
5285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5286 # AIX install. It has an incompatible calling convention.
5288 elif test $ac_prog = install &&
5289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5290 # program-specific install script used by HP pwplus--don't use.
5292 else
5293 rm -rf conftest.one conftest.two conftest.dir
5294 echo one > conftest.one
5295 echo two > conftest.two
5296 mkdir conftest.dir
5297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5298 test -s conftest.one && test -s conftest.two &&
5299 test -s conftest.dir/conftest.one &&
5300 test -s conftest.dir/conftest.two
5301 then
5302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5303 break 3
5307 done
5308 done
5310 esac
5312 done
5313 IFS=$as_save_IFS
5315 rm -rf conftest.one conftest.two conftest.dir
5318 if test "${ac_cv_path_install+set}" = set; then
5319 INSTALL=$ac_cv_path_install
5320 else
5321 # As a last resort, use the slow shell script. Don't cache a
5322 # value for INSTALL within a source directory, because that will
5323 # break other packages using the cache if that directory is
5324 # removed, or if the value is a relative name.
5325 INSTALL=$ac_install_sh
5328 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5329 $as_echo "$INSTALL" >&6; }
5331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5332 # It thinks the first close brace ends the variable substitution.
5333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5339 if test "x$RANLIB" = x; then
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_RANLIB+set}" = set; then
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -n "$RANLIB"; then
5349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5362 done
5363 done
5364 IFS=$as_save_IFS
5368 RANLIB=$ac_cv_prog_RANLIB
5369 if test -n "$RANLIB"; then
5370 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5371 $as_echo "$RANLIB" >&6; }
5372 else
5373 { $as_echo "$as_me:$LINENO: result: no" >&5
5374 $as_echo "no" >&6; }
5379 if test -z "$ac_cv_prog_RANLIB"; then
5380 ac_ct_RANLIB=$RANLIB
5381 # Extract the first word of "ranlib", so it can be a program name with args.
5382 set dummy ranlib; ac_word=$2
5383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$ac_ct_RANLIB"; then
5389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_prog_ac_ct_RANLIB="ranlib"
5399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5402 done
5403 done
5404 IFS=$as_save_IFS
5408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5409 if test -n "$ac_ct_RANLIB"; then
5410 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5411 $as_echo "$ac_ct_RANLIB" >&6; }
5412 else
5413 { $as_echo "$as_me:$LINENO: result: no" >&5
5414 $as_echo "no" >&6; }
5417 if test "x$ac_ct_RANLIB" = x; then
5418 RANLIB=":"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 RANLIB=$ac_ct_RANLIB
5428 else
5429 RANLIB="$ac_cv_prog_RANLIB"
5433 # Extract the first word of "install-info", so it can be a program name with args.
5434 set dummy install-info; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439 else
5440 case $INSTALL_INFO in
5441 [\\/]* | ?:[\\/]*)
5442 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5456 done
5457 done
5458 IFS=$as_save_IFS
5461 esac
5463 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5464 if test -n "$INSTALL_INFO"; then
5465 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5466 $as_echo "$INSTALL_INFO" >&6; }
5467 else
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5473 # Extract the first word of "install-info", so it can be a program name with args.
5474 set dummy install-info; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479 else
5480 case $INSTALL_INFO in
5481 [\\/]* | ?:[\\/]*)
5482 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in /usr/sbin
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5501 esac
5503 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5504 if test -n "$INSTALL_INFO"; then
5505 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5506 $as_echo "$INSTALL_INFO" >&6; }
5507 else
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5513 # Extract the first word of "install-info", so it can be a program name with args.
5514 set dummy install-info; ac_word=$2
5515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5519 else
5520 case $INSTALL_INFO in
5521 [\\/]* | ?:[\\/]*)
5522 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in /sbin
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5540 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5542 esac
5544 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5545 if test -n "$INSTALL_INFO"; then
5546 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5547 $as_echo "$INSTALL_INFO" >&6; }
5548 else
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5554 # Extract the first word of "gzip", so it can be a program name with args.
5555 set dummy gzip; ac_word=$2
5556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5559 $as_echo_n "(cached) " >&6
5560 else
5561 case $GZIP_PROG in
5562 [\\/]* | ?:[\\/]*)
5563 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5577 done
5578 done
5579 IFS=$as_save_IFS
5582 esac
5584 GZIP_PROG=$ac_cv_path_GZIP_PROG
5585 if test -n "$GZIP_PROG"; then
5586 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5587 $as_echo "$GZIP_PROG" >&6; }
5588 else
5589 { $as_echo "$as_me:$LINENO: result: no" >&5
5590 $as_echo "no" >&6; }
5596 ## Need makeinfo >= 4.6 (?) to build the manuals.
5597 # Extract the first word of "makeinfo", so it can be a program name with args.
5598 set dummy makeinfo; ac_word=$2
5599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5602 $as_echo_n "(cached) " >&6
5603 else
5604 case $MAKEINFO in
5605 [\\/]* | ?:[\\/]*)
5606 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5620 done
5621 done
5622 IFS=$as_save_IFS
5624 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5626 esac
5628 MAKEINFO=$ac_cv_path_MAKEINFO
5629 if test -n "$MAKEINFO"; then
5630 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5631 $as_echo "$MAKEINFO" >&6; }
5632 else
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$MAKEINFO" != "no" && \
5639 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
5640 MAKEINFO=no
5643 ## Makeinfo is unusual. For a released Emacs, the manuals are
5644 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5645 ## therefore in the category of "special tools" not normally required, which
5646 ## configure does not have to check for (eg autoconf itself).
5647 ## In a Bazaar checkout on the other hand, the manuals are not included.
5648 ## So makeinfo is a requirement to build from Bazaar, and configure
5649 ## should test for it as it does for any other build requirement.
5650 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5651 ## with pre-built manuals, from a Bazaar checkout.
5652 if test "$MAKEINFO" = "no"; then
5653 if test "x${with_makeinfo}" = "xno"; then
5654 MAKEINFO=off
5655 elif ! test -e $srcdir/info/emacs; then
5656 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5657 source tree does not seem to have pre-built manuals in the \`info' directory.
5658 Either install a suitable version of makeinfo, or re-run configure
5659 with the \`--without-makeinfo' option to build without the manuals. " >&5
5660 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5661 source tree does not seem to have pre-built manuals in the \`info' directory.
5662 Either install a suitable version of makeinfo, or re-run configure
5663 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5664 { (exit 1); exit 1; }; }
5669 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5670 then
5671 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5674 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5675 then
5676 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5680 late_LDFLAGS=$LDFLAGS
5681 if test "$GCC" = yes; then
5682 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5683 else
5684 LDFLAGS="$LDFLAGS -znocombreloc"
5687 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5688 $as_echo_n "checking for -znocombreloc... " >&6; }
5689 cat >conftest.$ac_ext <<_ACEOF
5690 main(){return 0;}
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (ac_try="$ac_link"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699 $as_echo "$ac_try_echo") >&5
5700 (eval "$ac_link") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext && {
5710 test "$cross_compiling" = yes ||
5711 $as_test_x conftest$ac_exeext
5712 }; then
5713 { $as_echo "$as_me:$LINENO: result: yes" >&5
5714 $as_echo "yes" >&6; }
5715 else
5716 $as_echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 LDFLAGS=$late_LDFLAGS
5720 { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5724 rm -rf conftest.dSYM
5725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5726 conftest$ac_exeext conftest.$ac_ext
5728 #### Extract some information from the operating system and machine files.
5730 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5731 - which libraries the lib-src programs will want, and
5732 - whether the GNU malloc routines are usable..." >&5
5733 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5734 - which libraries the lib-src programs will want, and
5735 - whether the GNU malloc routines are usable..." >&6;}
5737 ### First figure out CFLAGS (which we use for running the compiler here)
5738 ### and REAL_CFLAGS (which we use for real compilation).
5739 ### The two are the same except on a few systems, where they are made
5740 ### different to work around various lossages. For example,
5741 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5742 ### as implying static linking.
5744 ### If the CFLAGS env var is specified, we use that value
5745 ### instead of the default.
5747 ### It's not important that this name contain the PID; you can't run
5748 ### two configures in the same directory and have anything work
5749 ### anyway.
5750 tempcname="conftest.c"
5752 echo '
5753 #include "'${srcdir}'/src/'${opsysfile}'"
5754 #include "'${srcdir}'/src/'${machfile}'"
5755 #ifndef LIBS_MACHINE
5756 #define LIBS_MACHINE
5757 #endif
5758 #ifndef LIBS_SYSTEM
5759 #define LIBS_SYSTEM
5760 #endif
5761 #ifndef C_SWITCH_SYSTEM
5762 #define C_SWITCH_SYSTEM
5763 #endif
5764 #ifndef C_SWITCH_MACHINE
5765 #define C_SWITCH_MACHINE
5766 #endif
5767 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5768 configure___ c_switch_system=C_SWITCH_SYSTEM
5769 configure___ c_switch_machine=C_SWITCH_MACHINE
5771 #ifndef LIB_X11_LIB
5772 #define LIB_X11_LIB -lX11
5773 #endif
5775 #ifndef LIBX11_SYSTEM
5776 #define LIBX11_SYSTEM
5777 #endif
5778 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5780 #ifdef UNEXEC
5781 configure___ unexec=UNEXEC
5782 #else
5783 configure___ unexec=unexec.o
5784 #endif
5786 #ifdef SYSTEM_MALLOC
5787 configure___ system_malloc=yes
5788 #else
5789 configure___ system_malloc=no
5790 #endif
5792 #ifdef USE_MMAP_FOR_BUFFERS
5793 configure___ use_mmap_for_buffers=yes
5794 #else
5795 configure___ use_mmap_for_buffers=no
5796 #endif
5798 #ifndef C_OPTIMIZE_SWITCH
5799 #ifdef __GNUC__
5800 #define C_OPTIMIZE_SWITCH -O2
5801 #else
5802 #define C_OPTIMIZE_SWITCH -O
5803 #endif
5804 #endif
5806 #ifndef C_WARNINGS_SWITCH
5807 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5808 #endif
5810 #ifndef LD_SWITCH_MACHINE
5811 #define LD_SWITCH_MACHINE
5812 #endif
5814 #ifndef LD_SWITCH_SYSTEM
5815 #define LD_SWITCH_SYSTEM
5816 #endif
5818 #ifndef LD_SWITCH_X_SITE_AUX
5819 #define LD_SWITCH_X_SITE_AUX
5820 #endif
5822 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5823 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5825 #ifdef THIS_IS_CONFIGURE
5827 /* Get the CFLAGS for tests in configure. */
5828 #ifdef __GNUC__
5829 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5830 #else
5831 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5832 #endif
5834 #else /* not THIS_IS_CONFIGURE */
5836 /* Get the CFLAGS for real compilation. */
5837 #ifdef __GNUC__
5838 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5839 #else
5840 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5841 #endif
5843 #endif /* not THIS_IS_CONFIGURE */
5844 ' > ${tempcname}
5846 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5848 # The value of CPP is a quoted variable reference, so we need to do this
5849 # to get its actual value...
5850 CPP=`eval "echo $CPP"`
5851 eval `${CPP} -Isrc ${tempcname} \
5852 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5853 if test "x$SPECIFIED_CFLAGS" = x; then
5854 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5855 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5856 else
5857 REAL_CFLAGS="$CFLAGS"
5859 rm ${tempcname}
5861 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5863 ### Make sure subsequent tests use flags consistent with the build flags.
5865 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5866 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5867 else
5868 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5873 # Check whether --enable-largefile was given.
5874 if test "${enable_largefile+set}" = set; then
5875 enableval=$enable_largefile;
5878 if test "$enable_largefile" != no; then
5880 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5881 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5882 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5883 $as_echo_n "(cached) " >&6
5884 else
5885 ac_cv_sys_largefile_CC=no
5886 if test "$GCC" != yes; then
5887 ac_save_CC=$CC
5888 while :; do
5889 # IRIX 6.2 and later do not support large files by default,
5890 # so use the C compiler's -n32 option if that helps.
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h. */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #include <sys/types.h>
5898 /* Check that off_t can represent 2**63 - 1 correctly.
5899 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5900 since some C++ compilers masquerading as C compilers
5901 incorrectly reject 9223372036854775807. */
5902 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5903 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5904 && LARGE_OFF_T % 2147483647 == 1)
5905 ? 1 : -1];
5907 main ()
5911 return 0;
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5916 case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919 esac
5920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5921 $as_echo "$ac_try_echo") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.$ac_objext; then
5932 break
5933 else
5934 $as_echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5940 rm -f core conftest.err conftest.$ac_objext
5941 CC="$CC -n32"
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5949 $as_echo "$ac_try_echo") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 ac_cv_sys_largefile_CC=' -n32'; break
5961 else
5962 $as_echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5968 rm -f core conftest.err conftest.$ac_objext
5969 break
5970 done
5971 CC=$ac_save_CC
5972 rm -f conftest.$ac_ext
5975 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5976 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5977 if test "$ac_cv_sys_largefile_CC" != no; then
5978 CC=$CC$ac_cv_sys_largefile_CC
5981 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5982 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5983 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5984 $as_echo_n "(cached) " >&6
5985 else
5986 while :; do
5987 cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h. */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #include <sys/types.h>
5994 /* Check that off_t can represent 2**63 - 1 correctly.
5995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5996 since some C++ compilers masquerading as C compilers
5997 incorrectly reject 9223372036854775807. */
5998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6000 && LARGE_OFF_T % 2147483647 == 1)
6001 ? 1 : -1];
6003 main ()
6007 return 0;
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (ac_try="$ac_compile"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018 (eval "$ac_compile") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.$ac_objext; then
6028 ac_cv_sys_file_offset_bits=no; break
6029 else
6030 $as_echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h. */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #define _FILE_OFFSET_BITS 64
6044 #include <sys/types.h>
6045 /* Check that off_t can represent 2**63 - 1 correctly.
6046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6047 since some C++ compilers masquerading as C compilers
6048 incorrectly reject 9223372036854775807. */
6049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6051 && LARGE_OFF_T % 2147483647 == 1)
6052 ? 1 : -1];
6054 main ()
6058 return 0;
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (ac_try="$ac_compile"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068 $as_echo "$ac_try_echo") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
6079 ac_cv_sys_file_offset_bits=64; break
6080 else
6081 $as_echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 ac_cv_sys_file_offset_bits=unknown
6089 break
6090 done
6092 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6093 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6094 case $ac_cv_sys_file_offset_bits in #(
6095 no | unknown) ;;
6097 cat >>confdefs.h <<_ACEOF
6098 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6099 _ACEOF
6101 esac
6102 rm -rf conftest*
6103 if test $ac_cv_sys_file_offset_bits = unknown; then
6104 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6105 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6106 if test "${ac_cv_sys_large_files+set}" = set; then
6107 $as_echo_n "(cached) " >&6
6108 else
6109 while :; do
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #include <sys/types.h>
6117 /* Check that off_t can represent 2**63 - 1 correctly.
6118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6119 since some C++ compilers masquerading as C compilers
6120 incorrectly reject 9223372036854775807. */
6121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6123 && LARGE_OFF_T % 2147483647 == 1)
6124 ? 1 : -1];
6126 main ()
6130 return 0;
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_cv_sys_large_files=no; break
6152 else
6153 $as_echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 #define _LARGE_FILES 1
6167 #include <sys/types.h>
6168 /* Check that off_t can represent 2**63 - 1 correctly.
6169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6170 since some C++ compilers masquerading as C compilers
6171 incorrectly reject 9223372036854775807. */
6172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6174 && LARGE_OFF_T % 2147483647 == 1)
6175 ? 1 : -1];
6177 main ()
6181 return 0;
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6186 case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191 $as_echo "$ac_try_echo") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.$ac_objext; then
6202 ac_cv_sys_large_files=1; break
6203 else
6204 $as_echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_cv_sys_large_files=unknown
6212 break
6213 done
6215 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6216 $as_echo "$ac_cv_sys_large_files" >&6; }
6217 case $ac_cv_sys_large_files in #(
6218 no | unknown) ;;
6220 cat >>confdefs.h <<_ACEOF
6221 #define _LARGE_FILES $ac_cv_sys_large_files
6222 _ACEOF
6224 esac
6225 rm -rf conftest*
6231 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6232 ### be located in either /usr/lib64 or /usr/lib.
6233 ### In some rare cases, /usr/lib64 exists but does not contain the
6234 ### relevant files (bug#1287). Hence test for crtn.o.
6235 case "${canonical}" in
6236 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6237 if test -e /usr/lib64/crtn.o; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define HAVE_LIB64_DIR 1
6241 _ACEOF
6244 esac
6249 if test "${with_sound}" != "no"; then
6250 # Sound support for GNU/Linux and the free BSDs.
6254 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6259 $as_echo_n "checking for $ac_header... " >&6; }
6260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 $as_echo_n "(cached) " >&6
6263 ac_res=`eval 'as_val=${'$as_ac_Header'}
6264 $as_echo "$as_val"'`
6265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6266 $as_echo "$ac_res" >&6; }
6267 else
6268 # Is the header compilable?
6269 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6270 $as_echo_n "checking $ac_header usability... " >&6; }
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6278 #include <$ac_header>
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (ac_try="$ac_compile"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6287 $as_echo "$ac_try_echo") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest.$ac_objext; then
6298 ac_header_compiler=yes
6299 else
6300 $as_echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_header_compiler=no
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6308 $as_echo "$ac_header_compiler" >&6; }
6310 # Is the header present?
6311 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6312 $as_echo_n "checking $ac_header presence... " >&6; }
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <$ac_header>
6320 _ACEOF
6321 if { (ac_try="$ac_cpp conftest.$ac_ext"
6322 case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325 esac
6326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6327 $as_echo "$ac_try_echo") >&5
6328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } >/dev/null && {
6335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 }; then
6338 ac_header_preproc=yes
6339 else
6340 $as_echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 ac_header_preproc=no
6346 rm -f conftest.err conftest.$ac_ext
6347 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6348 $as_echo "$ac_header_preproc" >&6; }
6350 # So? What about this header?
6351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6352 yes:no: )
6353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6354 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6357 ac_header_preproc=yes
6359 no:yes:* )
6360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6361 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6363 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6365 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6367 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6371 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6374 esac
6375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 $as_echo_n "checking for $ac_header... " >&6; }
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 $as_echo_n "(cached) " >&6
6379 else
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 ac_res=`eval 'as_val=${'$as_ac_Header'}
6383 $as_echo "$as_val"'`
6384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6385 $as_echo "$ac_res" >&6; }
6388 as_val=`eval 'as_val=${'$as_ac_Header'}
6389 $as_echo "$as_val"'`
6390 if test "x$as_val" = x""yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6393 _ACEOF
6397 done
6399 # Emulation library used on NetBSD.
6400 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6401 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6402 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6403 $as_echo_n "(cached) " >&6
6404 else
6405 ac_check_lib_save_LIBS=$LIBS
6406 LIBS="-lossaudio $LIBS"
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 char _oss_ioctl ();
6422 main ()
6424 return _oss_ioctl ();
6426 return 0;
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (ac_try="$ac_link"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6436 $as_echo "$ac_try_echo") >&5
6437 (eval "$ac_link") 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && {
6444 test -z "$ac_c_werror_flag" ||
6445 test ! -s conftest.err
6446 } && test -s conftest$ac_exeext && {
6447 test "$cross_compiling" = yes ||
6448 $as_test_x conftest$ac_exeext
6449 }; then
6450 ac_cv_lib_ossaudio__oss_ioctl=yes
6451 else
6452 $as_echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_cv_lib_ossaudio__oss_ioctl=no
6458 rm -rf conftest.dSYM
6459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6460 conftest$ac_exeext conftest.$ac_ext
6461 LIBS=$ac_check_lib_save_LIBS
6463 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6464 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6465 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then
6466 LIBSOUND=-lossaudio
6467 else
6468 LIBSOUND=
6473 ALSA_REQUIRED=1.0.0
6474 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6476 succeeded=no
6478 # Extract the first word of "pkg-config", so it can be a program name with args.
6479 set dummy pkg-config; ac_word=$2
6480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6483 $as_echo_n "(cached) " >&6
6484 else
6485 case $PKG_CONFIG in
6486 [\\/]* | ?:[\\/]*)
6487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6501 done
6502 done
6503 IFS=$as_save_IFS
6505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6507 esac
6509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6510 if test -n "$PKG_CONFIG"; then
6511 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6512 $as_echo "$PKG_CONFIG" >&6; }
6513 else
6514 { $as_echo "$as_me:$LINENO: result: no" >&5
6515 $as_echo "no" >&6; }
6520 if test "$PKG_CONFIG" = "no" ; then
6521 HAVE_ALSA=no
6522 else
6523 PKG_CONFIG_MIN_VERSION=0.9.0
6524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6525 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6526 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6528 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6529 { $as_echo "$as_me:$LINENO: result: yes" >&5
6530 $as_echo "yes" >&6; }
6531 succeeded=yes
6533 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6534 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6535 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6536 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6537 $as_echo "$ALSA_CFLAGS" >&6; }
6539 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6540 $as_echo_n "checking ALSA_LIBS... " >&6; }
6541 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6542 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6543 $as_echo "$ALSA_LIBS" >&6; }
6544 else
6545 { $as_echo "$as_me:$LINENO: result: no" >&5
6546 $as_echo "no" >&6; }
6547 ALSA_CFLAGS=""
6548 ALSA_LIBS=""
6549 ## If we have a custom action on failure, don't print errors, but
6550 ## do set a variable so people can do so.
6551 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6557 else
6558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6563 if test $succeeded = yes; then
6564 HAVE_ALSA=yes
6565 else
6566 HAVE_ALSA=no
6569 if test $HAVE_ALSA = yes; then
6570 SAVE_CFLAGS="$CFLAGS"
6571 SAVE_LDFLAGS="$LDFLAGS"
6572 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6573 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <asoundlib.h>
6582 main ()
6584 snd_lib_error_set_handler (0);
6586 return 0;
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (ac_try="$ac_compile"
6591 case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594 esac
6595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6596 $as_echo "$ac_try_echo") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 emacs_alsa_normal=yes
6608 else
6609 $as_echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 emacs_alsa_normal=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 if test "$emacs_alsa_normal" != yes; then
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h. */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <alsa/asoundlib.h>
6625 main ()
6627 snd_lib_error_set_handler (0);
6629 return 0;
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_compile") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest.$ac_objext; then
6650 emacs_alsa_subdir=yes
6651 else
6652 $as_echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6655 emacs_alsa_subdir=no
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 if test "$emacs_alsa_subdir" != yes; then
6660 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6661 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6662 { (exit 1); exit 1; }; }
6664 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6667 CFLAGS="$SAVE_CFLAGS"
6668 LDFLAGS="$SAVE_LDFLAGS"
6669 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6670 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_ALSA 1
6674 _ACEOF
6705 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6706 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6707 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6708 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6709 sys/utsname.h pwd.h utmp.h
6711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 $as_echo_n "checking for $ac_header... " >&6; }
6715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6716 $as_echo_n "(cached) " >&6
6718 ac_res=`eval 'as_val=${'$as_ac_Header'}
6719 $as_echo "$as_val"'`
6720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6721 $as_echo "$ac_res" >&6; }
6722 else
6723 # Is the header compilable?
6724 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6725 $as_echo_n "checking $ac_header usability... " >&6; }
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 $ac_includes_default
6733 #include <$ac_header>
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (ac_try="$ac_compile"
6737 case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740 esac
6741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6742 $as_echo "$ac_try_echo") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
6753 ac_header_compiler=yes
6754 else
6755 $as_echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_header_compiler=no
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6763 $as_echo "$ac_header_compiler" >&6; }
6765 # Is the header present?
6766 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6767 $as_echo_n "checking $ac_header presence... " >&6; }
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <$ac_header>
6775 _ACEOF
6776 if { (ac_try="$ac_cpp conftest.$ac_ext"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } >/dev/null && {
6790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 }; then
6793 ac_header_preproc=yes
6794 else
6795 $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 ac_header_preproc=no
6801 rm -f conftest.err conftest.$ac_ext
6802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6803 $as_echo "$ac_header_preproc" >&6; }
6805 # So? What about this header?
6806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6807 yes:no: )
6808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6809 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6812 ac_header_preproc=yes
6814 no:yes:* )
6815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6816 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6818 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6820 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6822 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6826 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6829 esac
6830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6831 $as_echo_n "checking for $ac_header... " >&6; }
6832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6833 $as_echo_n "(cached) " >&6
6834 else
6835 eval "$as_ac_Header=\$ac_header_preproc"
6837 ac_res=`eval 'as_val=${'$as_ac_Header'}
6838 $as_echo "$as_val"'`
6839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6840 $as_echo "$ac_res" >&6; }
6843 as_val=`eval 'as_val=${'$as_ac_Header'}
6844 $as_echo "$as_val"'`
6845 if test "x$as_val" = x""yes; then
6846 cat >>confdefs.h <<_ACEOF
6847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6848 _ACEOF
6852 done
6855 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6856 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h. */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 #include <sys/personality.h>
6865 main ()
6867 personality (PER_LINUX32)
6869 return 0;
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (ac_try="$ac_compile"
6874 case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6877 esac
6878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6879 $as_echo "$ac_try_echo") >&5
6880 (eval "$ac_compile") 2>conftest.er1
6881 ac_status=$?
6882 grep -v '^ *+' conftest.er1 >conftest.err
6883 rm -f conftest.er1
6884 cat conftest.err >&5
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && {
6887 test -z "$ac_c_werror_flag" ||
6888 test ! -s conftest.err
6889 } && test -s conftest.$ac_objext; then
6890 emacs_cv_personality_linux32=yes
6891 else
6892 $as_echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 emacs_cv_personality_linux32=no
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6900 $as_echo "$emacs_cv_personality_linux32" >&6; }
6902 if test $emacs_cv_personality_linux32 = yes; then
6904 cat >>confdefs.h <<\_ACEOF
6905 #define HAVE_PERSONALITY_LINUX32 1
6906 _ACEOF
6911 for ac_header in term.h
6913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6915 $as_echo_n "checking for $ac_header... " >&6; }
6916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6917 $as_echo_n "(cached) " >&6
6918 else
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <$ac_header>
6926 _ACEOF
6927 if { (ac_try="$ac_cpp conftest.$ac_ext"
6928 case "(($ac_try" in
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6931 esac
6932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6933 $as_echo "$ac_try_echo") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 }; then
6944 eval "$as_ac_Header=yes"
6945 else
6946 $as_echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 eval "$as_ac_Header=no"
6952 rm -f conftest.err conftest.$ac_ext
6954 ac_res=`eval 'as_val=${'$as_ac_Header'}
6955 $as_echo "$as_val"'`
6956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6957 $as_echo "$ac_res" >&6; }
6958 as_val=`eval 'as_val=${'$as_ac_Header'}
6959 $as_echo "$as_val"'`
6960 if test "x$as_val" = x""yes; then
6961 cat >>confdefs.h <<_ACEOF
6962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6963 _ACEOF
6967 done
6969 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6970 $as_echo_n "checking for ANSI C header files... " >&6; }
6971 if test "${ac_cv_header_stdc+set}" = set; then
6972 $as_echo_n "(cached) " >&6
6973 else
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 #include <stdlib.h>
6981 #include <stdarg.h>
6982 #include <string.h>
6983 #include <float.h>
6986 main ()
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (ac_try="$ac_compile"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000 $as_echo "$ac_try_echo") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 ac_cv_header_stdc=yes
7012 else
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_header_stdc=no
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 if test $ac_cv_header_stdc = yes; then
7022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <string.h>
7031 _ACEOF
7032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7033 $EGREP "memchr" >/dev/null 2>&1; then
7035 else
7036 ac_cv_header_stdc=no
7038 rm -f conftest*
7042 if test $ac_cv_header_stdc = yes; then
7043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7044 cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h. */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 #include <stdlib.h>
7052 _ACEOF
7053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7054 $EGREP "free" >/dev/null 2>&1; then
7056 else
7057 ac_cv_header_stdc=no
7059 rm -f conftest*
7063 if test $ac_cv_header_stdc = yes; then
7064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7065 if test "$cross_compiling" = yes; then
7067 else
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <ctype.h>
7075 #include <stdlib.h>
7076 #if ((' ' & 0x0FF) == 0x020)
7077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7079 #else
7080 # define ISLOWER(c) \
7081 (('a' <= (c) && (c) <= 'i') \
7082 || ('j' <= (c) && (c) <= 'r') \
7083 || ('s' <= (c) && (c) <= 'z'))
7084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7085 #endif
7087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7089 main ()
7091 int i;
7092 for (i = 0; i < 256; i++)
7093 if (XOR (islower (i), ISLOWER (i))
7094 || toupper (i) != TOUPPER (i))
7095 return 2;
7096 return 0;
7098 _ACEOF
7099 rm -f conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7101 case "(($ac_try" in
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7104 esac
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_link") 2>&5
7108 ac_status=$?
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7111 { (case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7116 $as_echo "$ac_try_echo") >&5
7117 (eval "$ac_try") 2>&5
7118 ac_status=$?
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7122 else
7123 $as_echo "$as_me: program exited with status $ac_status" >&5
7124 $as_echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ( exit $ac_status )
7128 ac_cv_header_stdc=no
7130 rm -rf conftest.dSYM
7131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7138 $as_echo "$ac_cv_header_stdc" >&6; }
7139 if test $ac_cv_header_stdc = yes; then
7141 cat >>confdefs.h <<\_ACEOF
7142 #define STDC_HEADERS 1
7143 _ACEOF
7147 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7148 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7149 if test "${ac_cv_header_time+set}" = set; then
7150 $as_echo_n "(cached) " >&6
7151 else
7152 cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <sys/types.h>
7159 #include <sys/time.h>
7160 #include <time.h>
7163 main ()
7165 if ((struct tm *) 0)
7166 return 0;
7168 return 0;
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && {
7186 test -z "$ac_c_werror_flag" ||
7187 test ! -s conftest.err
7188 } && test -s conftest.$ac_objext; then
7189 ac_cv_header_time=yes
7190 else
7191 $as_echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 ac_cv_header_time=no
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7200 $as_echo "$ac_cv_header_time" >&6; }
7201 if test $ac_cv_header_time = yes; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define TIME_WITH_SYS_TIME 1
7205 _ACEOF
7209 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7210 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7211 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7212 $as_echo_n "(cached) " >&6
7213 else
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 $ac_includes_default
7222 main ()
7224 #ifndef sys_siglist
7225 (void) sys_siglist;
7226 #endif
7229 return 0;
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (ac_try="$ac_compile"
7234 case "(($ac_try" in
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7237 esac
7238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7239 $as_echo "$ac_try_echo") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.$ac_objext; then
7250 ac_cv_have_decl_sys_siglist=yes
7251 else
7252 $as_echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_cv_have_decl_sys_siglist=no
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7261 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7262 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7264 cat >>confdefs.h <<_ACEOF
7265 #define HAVE_DECL_SYS_SIGLIST 1
7266 _ACEOF
7269 else
7270 cat >>confdefs.h <<_ACEOF
7271 #define HAVE_DECL_SYS_SIGLIST 0
7272 _ACEOF
7278 if test $ac_cv_have_decl_sys_siglist != yes; then
7279 # For Tru64, at least:
7280 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7281 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7282 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h. */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7293 main ()
7295 #ifndef __sys_siglist
7296 (void) __sys_siglist;
7297 #endif
7300 return 0;
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308 esac
7309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7310 $as_echo "$ac_try_echo") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7321 ac_cv_have_decl___sys_siglist=yes
7322 else
7323 $as_echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_cv_have_decl___sys_siglist=no
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7332 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7333 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then
7335 cat >>confdefs.h <<_ACEOF
7336 #define HAVE_DECL___SYS_SIGLIST 1
7337 _ACEOF
7340 else
7341 cat >>confdefs.h <<_ACEOF
7342 #define HAVE_DECL___SYS_SIGLIST 0
7343 _ACEOF
7349 if test $ac_cv_have_decl___sys_siglist = yes; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define sys_siglist __sys_siglist
7353 _ACEOF
7357 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7358 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7359 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7360 $as_echo_n "(cached) " >&6
7361 else
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h. */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 #include <sys/types.h>
7369 #include <sys/wait.h>
7370 #ifndef WEXITSTATUS
7371 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7372 #endif
7373 #ifndef WIFEXITED
7374 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7375 #endif
7378 main ()
7380 int s;
7381 wait (&s);
7382 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7384 return 0;
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (ac_try="$ac_compile"
7389 case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392 esac
7393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7394 $as_echo "$ac_try_echo") >&5
7395 (eval "$ac_compile") 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest.$ac_objext; then
7405 ac_cv_header_sys_wait_h=yes
7406 else
7407 $as_echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7410 ac_cv_header_sys_wait_h=no
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7416 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7417 if test $ac_cv_header_sys_wait_h = yes; then
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_SYS_WAIT_H 1
7421 _ACEOF
7426 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7427 $as_echo_n "checking for struct utimbuf... " >&6; }
7428 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7429 $as_echo_n "(cached) " >&6
7430 else
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #ifdef TIME_WITH_SYS_TIME
7438 #include <sys/time.h>
7439 #include <time.h>
7440 #else
7441 #ifdef HAVE_SYS_TIME_H
7442 #include <sys/time.h>
7443 #else
7444 #include <time.h>
7445 #endif
7446 #endif
7447 #ifdef HAVE_UTIME_H
7448 #include <utime.h>
7449 #endif
7451 main ()
7453 static struct utimbuf x; x.actime = x.modtime;
7455 return 0;
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (ac_try="$ac_compile"
7460 case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7463 esac
7464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7465 $as_echo "$ac_try_echo") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.$ac_objext; then
7476 emacs_cv_struct_utimbuf=yes
7477 else
7478 $as_echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 emacs_cv_struct_utimbuf=no
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7487 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7488 if test $emacs_cv_struct_utimbuf = yes; then
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_STRUCT_UTIMBUF 1
7492 _ACEOF
7496 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7497 $as_echo_n "checking return type of signal handlers... " >&6; }
7498 if test "${ac_cv_type_signal+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7500 else
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 #include <sys/types.h>
7508 #include <signal.h>
7511 main ()
7513 return *(signal (0, 0)) (0) == 1;
7515 return 0;
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7520 case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523 esac
7524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7525 $as_echo "$ac_try_echo") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 ac_cv_type_signal=int
7537 else
7538 $as_echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 ac_cv_type_signal=void
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7547 $as_echo "$ac_cv_type_signal" >&6; }
7549 cat >>confdefs.h <<_ACEOF
7550 #define RETSIGTYPE $ac_cv_type_signal
7551 _ACEOF
7555 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7556 $as_echo_n "checking for speed_t... " >&6; }
7557 if test "${emacs_cv_speed_t+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <termios.h>
7568 main ()
7570 speed_t x = 1;
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7577 case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583 (eval "$ac_compile") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest.$ac_objext; then
7593 emacs_cv_speed_t=yes
7594 else
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 emacs_cv_speed_t=no
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7604 $as_echo "$emacs_cv_speed_t" >&6; }
7605 if test $emacs_cv_speed_t = yes; then
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_SPEED_T 1
7609 _ACEOF
7613 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7614 $as_echo_n "checking for struct timeval... " >&6; }
7615 if test "${emacs_cv_struct_timeval+set}" = set; then
7616 $as_echo_n "(cached) " >&6
7617 else
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 #ifdef TIME_WITH_SYS_TIME
7625 #include <sys/time.h>
7626 #include <time.h>
7627 #else
7628 #ifdef HAVE_SYS_TIME_H
7629 #include <sys/time.h>
7630 #else
7631 #include <time.h>
7632 #endif
7633 #endif
7635 main ()
7637 static struct timeval x; x.tv_sec = x.tv_usec;
7639 return 0;
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 emacs_cv_struct_timeval=yes
7661 else
7662 $as_echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 emacs_cv_struct_timeval=no
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7671 $as_echo "$emacs_cv_struct_timeval" >&6; }
7672 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7673 if test $emacs_cv_struct_timeval = yes; then
7675 cat >>confdefs.h <<\_ACEOF
7676 #define HAVE_TIMEVAL 1
7677 _ACEOF
7681 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7682 $as_echo_n "checking for struct exception... " >&6; }
7683 if test "${emacs_cv_struct_exception+set}" = set; then
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 #include <math.h>
7694 main ()
7696 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7698 return 0;
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7708 $as_echo "$ac_try_echo") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 emacs_cv_struct_exception=yes
7720 else
7721 $as_echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 emacs_cv_struct_exception=no
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7730 $as_echo "$emacs_cv_struct_exception" >&6; }
7731 HAVE_EXCEPTION=$emacs_cv_struct_exception
7732 if test $emacs_cv_struct_exception != yes; then
7734 cat >>confdefs.h <<\_ACEOF
7735 #define NO_MATHERR 1
7736 _ACEOF
7741 for ac_header in sys/socket.h
7743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7745 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 $as_echo_n "checking for $ac_header... " >&6; }
7747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7748 $as_echo_n "(cached) " >&6
7750 ac_res=`eval 'as_val=${'$as_ac_Header'}
7751 $as_echo "$as_val"'`
7752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7753 $as_echo "$ac_res" >&6; }
7754 else
7755 # Is the header compilable?
7756 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7757 $as_echo_n "checking $ac_header usability... " >&6; }
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 $ac_includes_default
7765 #include <$ac_header>
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (ac_try="$ac_compile"
7769 case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772 esac
7773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7774 $as_echo "$ac_try_echo") >&5
7775 (eval "$ac_compile") 2>conftest.er1
7776 ac_status=$?
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
7780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && {
7782 test -z "$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 } && test -s conftest.$ac_objext; then
7785 ac_header_compiler=yes
7786 else
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_header_compiler=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 $as_echo "$ac_header_compiler" >&6; }
7797 # Is the header present?
7798 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 $as_echo_n "checking $ac_header presence... " >&6; }
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 #include <$ac_header>
7807 _ACEOF
7808 if { (ac_try="$ac_cpp conftest.$ac_ext"
7809 case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812 esac
7813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7814 $as_echo "$ac_try_echo") >&5
7815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7816 ac_status=$?
7817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
7820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } >/dev/null && {
7822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7823 test ! -s conftest.err
7824 }; then
7825 ac_header_preproc=yes
7826 else
7827 $as_echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_header_preproc=no
7833 rm -f conftest.err conftest.$ac_ext
7834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7835 $as_echo "$ac_header_preproc" >&6; }
7837 # So? What about this header?
7838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7839 yes:no: )
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7841 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7843 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7844 ac_header_preproc=yes
7846 no:yes:* )
7847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7848 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7850 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7852 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7854 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7858 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7861 esac
7862 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7863 $as_echo_n "checking for $ac_header... " >&6; }
7864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7865 $as_echo_n "(cached) " >&6
7866 else
7867 eval "$as_ac_Header=\$ac_header_preproc"
7869 ac_res=`eval 'as_val=${'$as_ac_Header'}
7870 $as_echo "$as_val"'`
7871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7872 $as_echo "$ac_res" >&6; }
7875 as_val=`eval 'as_val=${'$as_ac_Header'}
7876 $as_echo "$as_val"'`
7877 if test "x$as_val" = x""yes; then
7878 cat >>confdefs.h <<_ACEOF
7879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7880 _ACEOF
7884 done
7887 for ac_header in net/if.h
7889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7891 $as_echo_n "checking for $ac_header... " >&6; }
7892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7893 $as_echo_n "(cached) " >&6
7894 else
7895 cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 $ac_includes_default
7902 #if HAVE_SYS_SOCKET_H
7903 #include <sys/socket.h>
7904 #endif
7906 #include <$ac_header>
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916 (eval "$ac_compile") 2>conftest.er1
7917 ac_status=$?
7918 grep -v '^ *+' conftest.er1 >conftest.err
7919 rm -f conftest.er1
7920 cat conftest.err >&5
7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest.$ac_objext; then
7926 eval "$as_ac_Header=yes"
7927 else
7928 $as_echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7931 eval "$as_ac_Header=no"
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 ac_res=`eval 'as_val=${'$as_ac_Header'}
7937 $as_echo "$as_val"'`
7938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7939 $as_echo "$ac_res" >&6; }
7940 as_val=`eval 'as_val=${'$as_ac_Header'}
7941 $as_echo "$as_val"'`
7942 if test "x$as_val" = x""yes; then
7943 cat >>confdefs.h <<_ACEOF
7944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7945 _ACEOF
7949 done
7952 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7953 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7954 if test "${ac_cv_struct_tm+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7956 else
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 #include <sys/types.h>
7964 #include <time.h>
7967 main ()
7969 struct tm tm;
7970 int *p = &tm.tm_sec;
7971 return !p;
7973 return 0;
7975 _ACEOF
7976 rm -f conftest.$ac_objext
7977 if { (ac_try="$ac_compile"
7978 case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981 esac
7982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7983 $as_echo "$ac_try_echo") >&5
7984 (eval "$ac_compile") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest.$ac_objext; then
7994 ac_cv_struct_tm=time.h
7995 else
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 ac_cv_struct_tm=sys/time.h
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8005 $as_echo "$ac_cv_struct_tm" >&6; }
8006 if test $ac_cv_struct_tm = sys/time.h; then
8008 cat >>confdefs.h <<\_ACEOF
8009 #define TM_IN_SYS_TIME 1
8010 _ACEOF
8014 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8015 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8016 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8017 $as_echo_n "(cached) " >&6
8018 else
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <sys/types.h>
8026 #include <$ac_cv_struct_tm>
8030 main ()
8032 static struct tm ac_aggr;
8033 if (ac_aggr.tm_zone)
8034 return 0;
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8041 case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044 esac
8045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 $as_echo "$ac_try_echo") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8057 ac_cv_member_struct_tm_tm_zone=yes
8058 else
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <sys/types.h>
8069 #include <$ac_cv_struct_tm>
8073 main ()
8075 static struct tm ac_aggr;
8076 if (sizeof ac_aggr.tm_zone)
8077 return 0;
8079 return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8089 $as_echo "$ac_try_echo") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8100 ac_cv_member_struct_tm_tm_zone=yes
8101 else
8102 $as_echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_cv_member_struct_tm_tm_zone=no
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8114 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8115 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
8117 cat >>confdefs.h <<_ACEOF
8118 #define HAVE_STRUCT_TM_TM_ZONE 1
8119 _ACEOF
8124 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8126 cat >>confdefs.h <<\_ACEOF
8127 #define HAVE_TM_ZONE 1
8128 _ACEOF
8130 else
8131 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8132 $as_echo_n "checking whether tzname is declared... " >&6; }
8133 if test "${ac_cv_have_decl_tzname+set}" = set; then
8134 $as_echo_n "(cached) " >&6
8135 else
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 #include <time.h>
8145 main ()
8147 #ifndef tzname
8148 (void) tzname;
8149 #endif
8152 return 0;
8154 _ACEOF
8155 rm -f conftest.$ac_objext
8156 if { (ac_try="$ac_compile"
8157 case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160 esac
8161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8162 $as_echo "$ac_try_echo") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 ac_cv_have_decl_tzname=yes
8174 else
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_cv_have_decl_tzname=no
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8184 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8185 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8187 cat >>confdefs.h <<_ACEOF
8188 #define HAVE_DECL_TZNAME 1
8189 _ACEOF
8192 else
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_DECL_TZNAME 0
8195 _ACEOF
8201 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8202 $as_echo_n "checking for tzname... " >&6; }
8203 if test "${ac_cv_var_tzname+set}" = set; then
8204 $as_echo_n "(cached) " >&6
8205 else
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 #include <time.h>
8213 #if !HAVE_DECL_TZNAME
8214 extern char *tzname[];
8215 #endif
8218 main ()
8220 return tzname[0][0];
8222 return 0;
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (ac_try="$ac_link"
8227 case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230 esac
8231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8232 $as_echo "$ac_try_echo") >&5
8233 (eval "$ac_link") 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest$ac_exeext && {
8243 test "$cross_compiling" = yes ||
8244 $as_test_x conftest$ac_exeext
8245 }; then
8246 ac_cv_var_tzname=yes
8247 else
8248 $as_echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ac_cv_var_tzname=no
8254 rm -rf conftest.dSYM
8255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8256 conftest$ac_exeext conftest.$ac_ext
8258 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8259 $as_echo "$ac_cv_var_tzname" >&6; }
8260 if test $ac_cv_var_tzname = yes; then
8262 cat >>confdefs.h <<\_ACEOF
8263 #define HAVE_TZNAME 1
8264 _ACEOF
8269 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8270 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8271 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8272 $as_echo_n "(cached) " >&6
8273 else
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 #include <time.h>
8283 main ()
8285 static struct tm ac_aggr;
8286 if (ac_aggr.tm_gmtoff)
8287 return 0;
8289 return 0;
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_member_struct_tm_tm_gmtoff=yes
8311 else
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h. */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 #include <time.h>
8324 main ()
8326 static struct tm ac_aggr;
8327 if (sizeof ac_aggr.tm_gmtoff)
8328 return 0;
8330 return 0;
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8340 $as_echo "$ac_try_echo") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 ac_cv_member_struct_tm_tm_gmtoff=yes
8352 else
8353 $as_echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 ac_cv_member_struct_tm_tm_gmtoff=no
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8365 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8366 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_TM_GMTOFF 1
8370 _ACEOF
8374 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8375 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8376 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8377 $as_echo_n "(cached) " >&6
8378 else
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #if HAVE_SYS_SOCKET_H
8387 #include <sys/socket.h>
8388 #endif
8389 #if HAVE_NET_IF_H
8390 #include <net/if.h>
8391 #endif
8394 main ()
8396 static struct ifreq ac_aggr;
8397 if (ac_aggr.ifr_flags)
8398 return 0;
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408 esac
8409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8410 $as_echo "$ac_try_echo") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_cv_member_struct_ifreq_ifr_flags=yes
8422 else
8423 $as_echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 $ac_includes_default
8433 #if HAVE_SYS_SOCKET_H
8434 #include <sys/socket.h>
8435 #endif
8436 #if HAVE_NET_IF_H
8437 #include <net/if.h>
8438 #endif
8441 main ()
8443 static struct ifreq ac_aggr;
8444 if (sizeof ac_aggr.ifr_flags)
8445 return 0;
8447 return 0;
8449 _ACEOF
8450 rm -f conftest.$ac_objext
8451 if { (ac_try="$ac_compile"
8452 case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455 esac
8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458 (eval "$ac_compile") 2>conftest.er1
8459 ac_status=$?
8460 grep -v '^ *+' conftest.er1 >conftest.err
8461 rm -f conftest.er1
8462 cat conftest.err >&5
8463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest.$ac_objext; then
8468 ac_cv_member_struct_ifreq_ifr_flags=yes
8469 else
8470 $as_echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_member_struct_ifreq_ifr_flags=no
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8482 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8483 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then
8485 cat >>confdefs.h <<_ACEOF
8486 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8487 _ACEOF
8491 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8492 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8493 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8494 $as_echo_n "(cached) " >&6
8495 else
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #if HAVE_SYS_SOCKET_H
8504 #include <sys/socket.h>
8505 #endif
8506 #if HAVE_NET_IF_H
8507 #include <net/if.h>
8508 #endif
8511 main ()
8513 static struct ifreq ac_aggr;
8514 if (ac_aggr.ifr_hwaddr)
8515 return 0;
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527 $as_echo "$ac_try_echo") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8539 else
8540 $as_echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8549 $ac_includes_default
8550 #if HAVE_SYS_SOCKET_H
8551 #include <sys/socket.h>
8552 #endif
8553 #if HAVE_NET_IF_H
8554 #include <net/if.h>
8555 #endif
8558 main ()
8560 static struct ifreq ac_aggr;
8561 if (sizeof ac_aggr.ifr_hwaddr)
8562 return 0;
8564 return 0;
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8586 else
8587 $as_echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8599 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8600 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then
8602 cat >>confdefs.h <<_ACEOF
8603 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8604 _ACEOF
8608 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8609 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8610 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
8620 #if HAVE_SYS_SOCKET_H
8621 #include <sys/socket.h>
8622 #endif
8623 #if HAVE_NET_IF_H
8624 #include <net/if.h>
8625 #endif
8628 main ()
8630 static struct ifreq ac_aggr;
8631 if (ac_aggr.ifr_netmask)
8632 return 0;
8634 return 0;
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642 esac
8643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8644 $as_echo "$ac_try_echo") >&5
8645 (eval "$ac_compile") 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } && {
8652 test -z "$ac_c_werror_flag" ||
8653 test ! -s conftest.err
8654 } && test -s conftest.$ac_objext; then
8655 ac_cv_member_struct_ifreq_ifr_netmask=yes
8656 else
8657 $as_echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8667 #if HAVE_SYS_SOCKET_H
8668 #include <sys/socket.h>
8669 #endif
8670 #if HAVE_NET_IF_H
8671 #include <net/if.h>
8672 #endif
8675 main ()
8677 static struct ifreq ac_aggr;
8678 if (sizeof ac_aggr.ifr_netmask)
8679 return 0;
8681 return 0;
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8686 case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689 esac
8690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8691 $as_echo "$ac_try_echo") >&5
8692 (eval "$ac_compile") 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && {
8699 test -z "$ac_c_werror_flag" ||
8700 test ! -s conftest.err
8701 } && test -s conftest.$ac_objext; then
8702 ac_cv_member_struct_ifreq_ifr_netmask=yes
8703 else
8704 $as_echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_member_struct_ifreq_ifr_netmask=no
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8716 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8717 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8721 _ACEOF
8725 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8726 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8727 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h. */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 $ac_includes_default
8737 #if HAVE_SYS_SOCKET_H
8738 #include <sys/socket.h>
8739 #endif
8740 #if HAVE_NET_IF_H
8741 #include <net/if.h>
8742 #endif
8745 main ()
8747 static struct ifreq ac_aggr;
8748 if (ac_aggr.ifr_broadaddr)
8749 return 0;
8751 return 0;
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759 esac
8760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8761 $as_echo "$ac_try_echo") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8773 else
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 $ac_includes_default
8784 #if HAVE_SYS_SOCKET_H
8785 #include <sys/socket.h>
8786 #endif
8787 #if HAVE_NET_IF_H
8788 #include <net/if.h>
8789 #endif
8792 main ()
8794 static struct ifreq ac_aggr;
8795 if (sizeof ac_aggr.ifr_broadaddr)
8796 return 0;
8798 return 0;
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8803 case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8808 $as_echo "$ac_try_echo") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
8819 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8820 else
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8833 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8834 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8838 _ACEOF
8842 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8843 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8844 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8846 else
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 $ac_includes_default
8854 #if HAVE_SYS_SOCKET_H
8855 #include <sys/socket.h>
8856 #endif
8857 #if HAVE_NET_IF_H
8858 #include <net/if.h>
8859 #endif
8862 main ()
8864 static struct ifreq ac_aggr;
8865 if (ac_aggr.ifr_addr)
8866 return 0;
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (ac_try="$ac_compile"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_cv_member_struct_ifreq_ifr_addr=yes
8890 else
8891 $as_echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 $ac_includes_default
8901 #if HAVE_SYS_SOCKET_H
8902 #include <sys/socket.h>
8903 #endif
8904 #if HAVE_NET_IF_H
8905 #include <net/if.h>
8906 #endif
8909 main ()
8911 static struct ifreq ac_aggr;
8912 if (sizeof ac_aggr.ifr_addr)
8913 return 0;
8915 return 0;
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8920 case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923 esac
8924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8925 $as_echo "$ac_try_echo") >&5
8926 (eval "$ac_compile") 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest.$ac_objext; then
8936 ac_cv_member_struct_ifreq_ifr_addr=yes
8937 else
8938 $as_echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_member_struct_ifreq_ifr_addr=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8950 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8951 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8955 _ACEOF
8962 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8963 $as_echo_n "checking for function prototypes... " >&6; }
8964 if test "$ac_cv_prog_cc_c89" != no; then
8965 { $as_echo "$as_me:$LINENO: result: yes" >&5
8966 $as_echo "yes" >&6; }
8968 cat >>confdefs.h <<\_ACEOF
8969 #define PROTOTYPES 1
8970 _ACEOF
8973 cat >>confdefs.h <<\_ACEOF
8974 #define __PROTOTYPES 1
8975 _ACEOF
8977 else
8978 { $as_echo "$as_me:$LINENO: result: no" >&5
8979 $as_echo "no" >&6; }
8982 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8983 $as_echo_n "checking for working volatile... " >&6; }
8984 if test "${ac_cv_c_volatile+set}" = set; then
8985 $as_echo_n "(cached) " >&6
8986 else
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8995 main ()
8998 volatile int x;
8999 int * volatile y = (int *) 0;
9000 return !x && !y;
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext
9006 if { (ac_try="$ac_compile"
9007 case "(($ac_try" in
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9010 esac
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013 (eval "$ac_compile") 2>conftest.er1
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest.$ac_objext; then
9023 ac_cv_c_volatile=yes
9024 else
9025 $as_echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 ac_cv_c_volatile=no
9031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9034 $as_echo "$ac_cv_c_volatile" >&6; }
9035 if test $ac_cv_c_volatile = no; then
9037 cat >>confdefs.h <<\_ACEOF
9038 #define volatile /**/
9039 _ACEOF
9043 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9044 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9045 if test "${ac_cv_c_const+set}" = set; then
9046 $as_echo_n "(cached) " >&6
9047 else
9048 cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h. */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9056 main ()
9058 /* FIXME: Include the comments suggested by Paul. */
9059 #ifndef __cplusplus
9060 /* Ultrix mips cc rejects this. */
9061 typedef int charset[2];
9062 const charset cs;
9063 /* SunOS 4.1.1 cc rejects this. */
9064 char const *const *pcpcc;
9065 char **ppc;
9066 /* NEC SVR4.0.2 mips cc rejects this. */
9067 struct point {int x, y;};
9068 static struct point const zero = {0,0};
9069 /* AIX XL C 1.02.0.0 rejects this.
9070 It does not let you subtract one const X* pointer from another in
9071 an arm of an if-expression whose if-part is not a constant
9072 expression */
9073 const char *g = "string";
9074 pcpcc = &g + (g ? g-g : 0);
9075 /* HPUX 7.0 cc rejects these. */
9076 ++pcpcc;
9077 ppc = (char**) pcpcc;
9078 pcpcc = (char const *const *) ppc;
9079 { /* SCO 3.2v4 cc rejects this. */
9080 char *t;
9081 char const *s = 0 ? (char *) 0 : (char const *) 0;
9083 *t++ = 0;
9084 if (s) return 0;
9086 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9087 int x[] = {25, 17};
9088 const int *foo = &x[0];
9089 ++foo;
9091 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9092 typedef const int *iptr;
9093 iptr p = 0;
9094 ++p;
9096 { /* AIX XL C 1.02.0.0 rejects this saying
9097 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9098 struct s { int j; const int *ap[3]; };
9099 struct s *b; b->j = 5;
9101 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9102 const int foo = 10;
9103 if (!foo) return 0;
9105 return !cs[0] && !zero.x;
9106 #endif
9109 return 0;
9111 _ACEOF
9112 rm -f conftest.$ac_objext
9113 if { (ac_try="$ac_compile"
9114 case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9117 esac
9118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9119 $as_echo "$ac_try_echo") >&5
9120 (eval "$ac_compile") 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } && {
9127 test -z "$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 } && test -s conftest.$ac_objext; then
9130 ac_cv_c_const=yes
9131 else
9132 $as_echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 ac_cv_c_const=no
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9141 $as_echo "$ac_cv_c_const" >&6; }
9142 if test $ac_cv_c_const = no; then
9144 cat >>confdefs.h <<\_ACEOF
9145 #define const /**/
9146 _ACEOF
9150 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9151 $as_echo_n "checking for void * support... " >&6; }
9152 if test "${emacs_cv_void_star+set}" = set; then
9153 $as_echo_n "(cached) " >&6
9154 else
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9163 main ()
9165 void * foo;
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.$ac_objext; then
9188 emacs_cv_void_star=yes
9189 else
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 emacs_cv_void_star=no
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9199 $as_echo "$emacs_cv_void_star" >&6; }
9200 if test $emacs_cv_void_star = yes; then
9201 cat >>confdefs.h <<\_ACEOF
9202 #define POINTER_TYPE void
9203 _ACEOF
9205 else
9206 cat >>confdefs.h <<\_ACEOF
9207 #define POINTER_TYPE char
9208 _ACEOF
9216 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9218 set x ${MAKE-make}
9219 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9221 $as_echo_n "(cached) " >&6
9222 else
9223 cat >conftest.make <<\_ACEOF
9224 SHELL = /bin/sh
9225 all:
9226 @echo '@@@%%%=$(MAKE)=@@@%%%'
9227 _ACEOF
9228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9230 *@@@%%%=?*=@@@%%%*)
9231 eval ac_cv_prog_make_${ac_make}_set=yes;;
9233 eval ac_cv_prog_make_${ac_make}_set=no;;
9234 esac
9235 rm -f conftest.make
9237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9238 { $as_echo "$as_me:$LINENO: result: yes" >&5
9239 $as_echo "yes" >&6; }
9240 SET_MAKE=
9241 else
9242 { $as_echo "$as_me:$LINENO: result: no" >&5
9243 $as_echo "no" >&6; }
9244 SET_MAKE="MAKE=${MAKE-make}"
9248 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9249 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9250 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9251 HAVE_GNU_MAKE=no
9252 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9253 if test "x$testval" != x; then
9254 HAVE_GNU_MAKE=yes
9255 else
9256 ac_enable_autodepend=no
9258 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9259 $as_echo "$HAVE_GNU_MAKE" >&6; }
9260 if test $HAVE_GNU_MAKE = yes; then
9261 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9262 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9263 SAVE_CFLAGS="$CFLAGS"
9264 CFLAGS="$CFLAGS -MMD -MF deps.d"
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h. */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9273 main ()
9277 return 0;
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (ac_try="$ac_compile"
9282 case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_compile") 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest.$ac_objext; then
9299 else
9300 $as_echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9303 ac_enable_autodepend=no
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 CFLAGS="$SAVE_CFLAGS"
9308 test -f deps.d || ac_enable_autodepend=no
9309 rm -rf deps.d
9310 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9311 $as_echo "$ac_enable_autodepend" >&6; }
9313 if test $ac_enable_autodepend = yes; then
9315 cat >>confdefs.h <<\_ACEOF
9316 #define AUTO_DEPEND 1
9317 _ACEOF
9322 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9323 $as_echo_n "checking for long file names... " >&6; }
9324 if test "${ac_cv_sys_long_file_names+set}" = set; then
9325 $as_echo_n "(cached) " >&6
9326 else
9327 ac_cv_sys_long_file_names=yes
9328 # Test for long file names in all the places we know might matter:
9329 # . the current directory, where building will happen
9330 # $prefix/lib where we will be installing things
9331 # $exec_prefix/lib likewise
9332 # $TMPDIR if set, where it might want to write temporary files
9333 # /tmp where it might want to write temporary files
9334 # /var/tmp likewise
9335 # /usr/tmp likewise
9336 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9337 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9338 # in the usual case where exec_prefix is '${prefix}'.
9339 case $ac_dir in #(
9340 . | /* | ?:[\\/]*) ;; #(
9341 *) continue;;
9342 esac
9343 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9344 ac_xdir=$ac_dir/cf$$
9345 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9346 ac_tf1=$ac_xdir/conftest9012345
9347 ac_tf2=$ac_xdir/conftest9012346
9348 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9349 ac_cv_sys_long_file_names=no
9350 rm -f -r "$ac_xdir" 2>/dev/null
9351 test $ac_cv_sys_long_file_names = no && break
9352 done
9354 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9355 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9356 if test $ac_cv_sys_long_file_names = yes; then
9358 cat >>confdefs.h <<\_ACEOF
9359 #define HAVE_LONG_FILE_NAMES 1
9360 _ACEOF
9365 #### Choose a window system.
9367 { $as_echo "$as_me:$LINENO: checking for X" >&5
9368 $as_echo_n "checking for X... " >&6; }
9371 # Check whether --with-x was given.
9372 if test "${with_x+set}" = set; then
9373 withval=$with_x;
9376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9377 if test "x$with_x" = xno; then
9378 # The user explicitly disabled X.
9379 have_x=disabled
9380 else
9381 case $x_includes,$x_libraries in #(
9382 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9383 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9384 { (exit 1); exit 1; }; };; #(
9385 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9386 $as_echo_n "(cached) " >&6
9387 else
9388 # One or both of the vars are not set, and there is no cached value.
9389 ac_x_includes=no ac_x_libraries=no
9390 rm -f -r conftest.dir
9391 if mkdir conftest.dir; then
9392 cd conftest.dir
9393 cat >Imakefile <<'_ACEOF'
9394 incroot:
9395 @echo incroot='${INCROOT}'
9396 usrlibdir:
9397 @echo usrlibdir='${USRLIBDIR}'
9398 libdir:
9399 @echo libdir='${LIBDIR}'
9400 _ACEOF
9401 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9403 for ac_var in incroot usrlibdir libdir; do
9404 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9405 done
9406 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9407 for ac_extension in a so sl dylib la dll; do
9408 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9409 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9410 ac_im_usrlibdir=$ac_im_libdir; break
9412 done
9413 # Screen out bogus values from the imake configuration. They are
9414 # bogus both because they are the default anyway, and because
9415 # using them would break gcc on systems where it needs fixed includes.
9416 case $ac_im_incroot in
9417 /usr/include) ac_x_includes= ;;
9418 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9419 esac
9420 case $ac_im_usrlibdir in
9421 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9422 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9423 esac
9425 cd ..
9426 rm -f -r conftest.dir
9429 # Standard set of common directories for X headers.
9430 # Check X11 before X11Rn because it is often a symlink to the current release.
9431 ac_x_header_dirs='
9432 /usr/X11/include
9433 /usr/X11R6/include
9434 /usr/X11R5/include
9435 /usr/X11R4/include
9437 /usr/include/X11
9438 /usr/include/X11R6
9439 /usr/include/X11R5
9440 /usr/include/X11R4
9442 /usr/local/X11/include
9443 /usr/local/X11R6/include
9444 /usr/local/X11R5/include
9445 /usr/local/X11R4/include
9447 /usr/local/include/X11
9448 /usr/local/include/X11R6
9449 /usr/local/include/X11R5
9450 /usr/local/include/X11R4
9452 /usr/X386/include
9453 /usr/x386/include
9454 /usr/XFree86/include/X11
9456 /usr/include
9457 /usr/local/include
9458 /usr/unsupported/include
9459 /usr/athena/include
9460 /usr/local/x11r5/include
9461 /usr/lpp/Xamples/include
9463 /usr/openwin/include
9464 /usr/openwin/share/include'
9466 if test "$ac_x_includes" = no; then
9467 # Guess where to find include files, by looking for Xlib.h.
9468 # First, try using that file with no special directory specified.
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 #include <X11/Xlib.h>
9476 _ACEOF
9477 if { (ac_try="$ac_cpp conftest.$ac_ext"
9478 case "(($ac_try" in
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9481 esac
9482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9483 $as_echo "$ac_try_echo") >&5
9484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } >/dev/null && {
9491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 }; then
9494 # We can compile using X headers with no special include directory.
9495 ac_x_includes=
9496 else
9497 $as_echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 for ac_dir in $ac_x_header_dirs; do
9501 if test -r "$ac_dir/X11/Xlib.h"; then
9502 ac_x_includes=$ac_dir
9503 break
9505 done
9508 rm -f conftest.err conftest.$ac_ext
9509 fi # $ac_x_includes = no
9511 if test "$ac_x_libraries" = no; then
9512 # Check for the libraries.
9513 # See if we find them without any special options.
9514 # Don't add to $LIBS permanently.
9515 ac_save_LIBS=$LIBS
9516 LIBS="-lX11 $LIBS"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 #include <X11/Xlib.h>
9525 main ()
9527 XrmInitialize ()
9529 return 0;
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_link") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest$ac_exeext && {
9550 test "$cross_compiling" = yes ||
9551 $as_test_x conftest$ac_exeext
9552 }; then
9553 LIBS=$ac_save_LIBS
9554 # We can link X programs with no special library path.
9555 ac_x_libraries=
9556 else
9557 $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 LIBS=$ac_save_LIBS
9561 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9563 # Don't even attempt the hair of trying to link an X program!
9564 for ac_extension in a so sl dylib la dll; do
9565 if test -r "$ac_dir/libX11.$ac_extension"; then
9566 ac_x_libraries=$ac_dir
9567 break 2
9569 done
9570 done
9573 rm -rf conftest.dSYM
9574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9575 conftest$ac_exeext conftest.$ac_ext
9576 fi # $ac_x_libraries = no
9578 case $ac_x_includes,$ac_x_libraries in #(
9579 no,* | *,no | *\'*)
9580 # Didn't find X, or a directory has "'" in its name.
9581 ac_cv_have_x="have_x=no";; #(
9583 # Record where we found X for the cache.
9584 ac_cv_have_x="have_x=yes\
9585 ac_x_includes='$ac_x_includes'\
9586 ac_x_libraries='$ac_x_libraries'"
9587 esac
9589 ;; #(
9590 *) have_x=yes;;
9591 esac
9592 eval "$ac_cv_have_x"
9593 fi # $with_x != no
9595 if test "$have_x" != yes; then
9596 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9597 $as_echo "$have_x" >&6; }
9598 no_x=yes
9599 else
9600 # If each of the values was on the command line, it overrides each guess.
9601 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9602 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9603 # Update the cache value to reflect the command line values.
9604 ac_cv_have_x="have_x=yes\
9605 ac_x_includes='$x_includes'\
9606 ac_x_libraries='$x_libraries'"
9607 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9608 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9611 if test "$no_x" = yes; then
9612 window_system=none
9613 else
9614 window_system=x11
9617 ## Workaround for bug in autoconf <= 2.62.
9618 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9619 ## No need to do anything special for these standard directories.
9620 ## This is an experiment, take it out if it causes problems.
9621 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9623 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9627 if test "${x_libraries}" != NONE; then
9628 if test -n "${x_libraries}"; then
9629 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9630 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9632 x_default_search_path=""
9633 x_search_path=${x_libraries}
9634 if test -z "${x_search_path}"; then
9635 x_search_path=/usr/lib
9637 for x_library in `echo ${x_search_path}: | \
9638 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9639 x_search_path="\
9640 ${x_library}/X11/%L/%T/%N%C%S:\
9641 ${x_library}/X11/%l/%T/%N%C%S:\
9642 ${x_library}/X11/%T/%N%C%S:\
9643 ${x_library}/X11/%L/%T/%N%S:\
9644 ${x_library}/X11/%l/%T/%N%S:\
9645 ${x_library}/X11/%T/%N%S"
9646 if test x"${x_default_search_path}" = x; then
9647 x_default_search_path=${x_search_path}
9648 else
9649 x_default_search_path="${x_search_path}:${x_default_search_path}"
9651 done
9653 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9654 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9657 if test x"${x_includes}" = x; then
9658 bitmapdir=/usr/include/X11/bitmaps
9659 else
9660 # accumulate include directories that have X11 bitmap subdirectories
9661 bmd_acc="dummyval"
9662 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9663 if test -d "${bmd}/X11/bitmaps"; then
9664 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9666 if test -d "${bmd}/bitmaps"; then
9667 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9669 done
9670 if test ${bmd_acc} != "dummyval"; then
9671 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9675 HAVE_NS=no
9676 NS_IMPL_COCOA=no
9677 NS_IMPL_GNUSTEP=no
9678 tmp_CPPFLAGS="$CPPFLAGS"
9679 tmp_CFLAGS="$CFLAGS"
9680 CPPFLAGS="$CPPFLAGS -x objective-c"
9681 CFLAGS="$CFLAGS -x objective-c"
9682 if test "${with_ns}" != no; then
9683 if test "${opsys}" = darwin; then
9684 NS_IMPL_COCOA=yes
9685 ns_appdir=`pwd`/nextstep/Emacs.app
9686 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9687 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9688 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9689 elif test -f $GNUSTEP_CONFIG_FILE; then
9690 NS_IMPL_GNUSTEP=yes
9691 ns_appdir=`pwd`/nextstep/Emacs.app
9692 ns_appbindir=`pwd`/nextstep/Emacs.app
9693 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9694 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9695 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9696 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9697 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9698 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9699 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9700 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9701 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9703 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9704 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9705 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9706 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9707 $as_echo_n "(cached) " >&6
9709 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9710 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9711 else
9712 # Is the header compilable?
9713 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9714 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 $ac_includes_default
9722 #include <AppKit/AppKit.h>
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (ac_try="$ac_compile"
9726 case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9731 $as_echo "$ac_try_echo") >&5
9732 (eval "$ac_compile") 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && {
9739 test -z "$ac_c_werror_flag" ||
9740 test ! -s conftest.err
9741 } && test -s conftest.$ac_objext; then
9742 ac_header_compiler=yes
9743 else
9744 $as_echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_header_compiler=no
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9752 $as_echo "$ac_header_compiler" >&6; }
9754 # Is the header present?
9755 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9756 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 #include <AppKit/AppKit.h>
9764 _ACEOF
9765 if { (ac_try="$ac_cpp conftest.$ac_ext"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9771 $as_echo "$ac_try_echo") >&5
9772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } >/dev/null && {
9779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 }; then
9782 ac_header_preproc=yes
9783 else
9784 $as_echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ac_header_preproc=no
9790 rm -f conftest.err conftest.$ac_ext
9791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9792 $as_echo "$ac_header_preproc" >&6; }
9794 # So? What about this header?
9795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9796 yes:no: )
9797 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9798 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9799 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9800 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9801 ac_header_preproc=yes
9803 no:yes:* )
9804 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9805 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9806 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9807 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9808 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9809 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9810 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9811 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9812 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9813 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9814 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9815 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9818 esac
9819 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9820 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9821 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9822 $as_echo_n "(cached) " >&6
9823 else
9824 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9827 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9830 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then
9831 HAVE_NS=yes
9832 else
9833 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9834 files are missing or cannot be compiled." >&5
9835 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9836 files are missing or cannot be compiled." >&2;}
9837 { (exit 1); exit 1; }; }
9841 NS_HAVE_NSINTEGER=yes
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 #include <Foundation/NSObjCRuntime.h>
9850 main ()
9852 NSInteger i;
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (ac_try="$ac_compile"
9859 case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9864 $as_echo "$ac_try_echo") >&5
9865 (eval "$ac_compile") 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest.$ac_objext; then
9875 ns_have_nsinteger=yes
9876 else
9877 $as_echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ns_have_nsinteger=no
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 if test $ns_have_nsinteger = no; then
9885 NS_HAVE_NSINTEGER=no
9888 if test "${HAVE_NS}" = yes; then
9889 window_system=nextstep
9890 with_xft=no
9891 # set up packaging dirs
9892 exec_prefix=${ns_appbindir}
9893 libexecdir=${ns_appbindir}/libexec
9894 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9895 prefix=${ns_appresdir}
9898 CFLAGS="$tmp_CFLAGS"
9899 CPPFLAGS="$tmp_CPPFLAGS"
9901 case "${window_system}" in
9902 x11 )
9903 HAVE_X_WINDOWS=yes
9904 HAVE_X11=yes
9905 case "${with_x_toolkit}" in
9906 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9907 motif ) USE_X_TOOLKIT=MOTIF ;;
9908 gtk ) with_gtk=yes
9909 USE_X_TOOLKIT=none ;;
9910 no ) USE_X_TOOLKIT=none ;;
9911 * ) USE_X_TOOLKIT=maybe ;;
9912 esac
9914 nextstep | none )
9915 HAVE_X_WINDOWS=no
9916 HAVE_X11=no
9917 USE_X_TOOLKIT=none
9919 esac
9921 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9922 # Extract the first word of "X", so it can be a program name with args.
9923 set dummy X; ac_word=$2
9924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9927 $as_echo_n "(cached) " >&6
9928 else
9929 if test -n "$HAVE_XSERVER"; then
9930 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9931 else
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_prog_HAVE_XSERVER="true"
9940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9943 done
9944 done
9945 IFS=$as_save_IFS
9947 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9950 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9951 if test -n "$HAVE_XSERVER"; then
9952 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9953 $as_echo "$HAVE_XSERVER" >&6; }
9954 else
9955 { $as_echo "$as_me:$LINENO: result: no" >&5
9956 $as_echo "no" >&6; }
9960 if test "$HAVE_XSERVER" = true ||
9961 test -n "$DISPLAY" ||
9962 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9963 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9964 were found. You should install the relevant development files for X
9965 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9966 sure you have development files for image handling, i.e.
9967 tiff, gif, jpeg, png and xpm.
9968 If you are sure you want Emacs compiled without X window support, pass
9969 --without-x
9970 to configure." >&5
9971 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9972 were found. You should install the relevant development files for X
9973 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9974 sure you have development files for image handling, i.e.
9975 tiff, gif, jpeg, png and xpm.
9976 If you are sure you want Emacs compiled without X window support, pass
9977 --without-x
9978 to configure." >&2;}
9979 { (exit 1); exit 1; }; }
9983 ### If we're using X11, we should use the X menu package.
9984 HAVE_MENUS=no
9985 case ${HAVE_X11} in
9986 yes ) HAVE_MENUS=yes ;;
9987 esac
9989 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9990 # Assume not, until told otherwise.
9991 GNU_MALLOC=yes
9992 doug_lea_malloc=yes
9993 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9994 $as_echo_n "checking for malloc_get_state... " >&6; }
9995 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9996 $as_echo_n "(cached) " >&6
9997 else
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10006 #define malloc_get_state innocuous_malloc_get_state
10008 /* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char malloc_get_state (); below.
10010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10011 <limits.h> exists even on freestanding compilers. */
10013 #ifdef __STDC__
10014 # include <limits.h>
10015 #else
10016 # include <assert.h>
10017 #endif
10019 #undef malloc_get_state
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10024 #ifdef __cplusplus
10025 extern "C"
10026 #endif
10027 char malloc_get_state ();
10028 /* The GNU C library defines this for functions which it implements
10029 to always fail with ENOSYS. Some functions are actually named
10030 something starting with __ and the normal name is an alias. */
10031 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10032 choke me
10033 #endif
10036 main ()
10038 return malloc_get_state ();
10040 return 0;
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048 esac
10049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10050 $as_echo "$ac_try_echo") >&5
10051 (eval "$ac_link") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest$ac_exeext && {
10061 test "$cross_compiling" = yes ||
10062 $as_test_x conftest$ac_exeext
10063 }; then
10064 ac_cv_func_malloc_get_state=yes
10065 else
10066 $as_echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_cv_func_malloc_get_state=no
10072 rm -rf conftest.dSYM
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074 conftest$ac_exeext conftest.$ac_ext
10076 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10077 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10078 if test "x$ac_cv_func_malloc_get_state" = x""yes; then
10080 else
10081 doug_lea_malloc=no
10084 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10085 $as_echo_n "checking for malloc_set_state... " >&6; }
10086 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h. */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10097 #define malloc_set_state innocuous_malloc_set_state
10099 /* System header to define __stub macros and hopefully few prototypes,
10100 which can conflict with char malloc_set_state (); below.
10101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102 <limits.h> exists even on freestanding compilers. */
10104 #ifdef __STDC__
10105 # include <limits.h>
10106 #else
10107 # include <assert.h>
10108 #endif
10110 #undef malloc_set_state
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char malloc_set_state ();
10119 /* The GNU C library defines this for functions which it implements
10120 to always fail with ENOSYS. Some functions are actually named
10121 something starting with __ and the normal name is an alias. */
10122 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10123 choke me
10124 #endif
10127 main ()
10129 return malloc_set_state ();
10131 return 0;
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139 esac
10140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10141 $as_echo "$ac_try_echo") >&5
10142 (eval "$ac_link") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext && {
10152 test "$cross_compiling" = yes ||
10153 $as_test_x conftest$ac_exeext
10154 }; then
10155 ac_cv_func_malloc_set_state=yes
10156 else
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_cv_func_malloc_set_state=no
10163 rm -rf conftest.dSYM
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10167 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10168 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10169 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10171 else
10172 doug_lea_malloc=no
10175 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10176 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10177 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10178 $as_echo_n "(cached) " >&6
10179 else
10180 cat >conftest.$ac_ext <<_ACEOF
10181 /* confdefs.h. */
10182 _ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10186 extern void (* __after_morecore_hook)();
10188 main ()
10190 __after_morecore_hook = 0
10192 return 0;
10194 _ACEOF
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200 esac
10201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203 (eval "$ac_link") 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext && {
10213 test "$cross_compiling" = yes ||
10214 $as_test_x conftest$ac_exeext
10215 }; then
10216 emacs_cv_var___after_morecore_hook=yes
10217 else
10218 $as_echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 emacs_cv_var___after_morecore_hook=no
10224 rm -rf conftest.dSYM
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226 conftest$ac_exeext conftest.$ac_ext
10228 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10229 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10230 if test $emacs_cv_var___after_morecore_hook = no; then
10231 doug_lea_malloc=no
10233 if test "${system_malloc}" = "yes"; then
10234 GNU_MALLOC=no
10235 GNU_MALLOC_reason="
10236 (The GNU allocators don't work with this system configuration.)"
10238 if test "$doug_lea_malloc" = "yes" ; then
10239 if test "$GNU_MALLOC" = yes ; then
10240 GNU_MALLOC_reason="
10241 (Using Doug Lea's new malloc from the GNU C Library.)"
10244 cat >>confdefs.h <<\_ACEOF
10245 #define DOUG_LEA_MALLOC 1
10246 _ACEOF
10250 if test x"${REL_ALLOC}" = x; then
10251 REL_ALLOC=${GNU_MALLOC}
10257 for ac_header in stdlib.h unistd.h
10259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10262 $as_echo_n "checking for $ac_header... " >&6; }
10263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 $as_echo_n "(cached) " >&6
10266 ac_res=`eval 'as_val=${'$as_ac_Header'}
10267 $as_echo "$as_val"'`
10268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10269 $as_echo "$ac_res" >&6; }
10270 else
10271 # Is the header compilable?
10272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10273 $as_echo_n "checking $ac_header usability... " >&6; }
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 #include <$ac_header>
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291 (eval "$ac_compile") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && {
10298 test -z "$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 } && test -s conftest.$ac_objext; then
10301 ac_header_compiler=yes
10302 else
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_header_compiler=no
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10311 $as_echo "$ac_header_compiler" >&6; }
10313 # Is the header present?
10314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10315 $as_echo_n "checking $ac_header presence... " >&6; }
10316 cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h. */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <$ac_header>
10323 _ACEOF
10324 if { (ac_try="$ac_cpp conftest.$ac_ext"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330 $as_echo "$ac_try_echo") >&5
10331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } >/dev/null && {
10338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 }; then
10341 ac_header_preproc=yes
10342 else
10343 $as_echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_header_preproc=no
10349 rm -f conftest.err conftest.$ac_ext
10350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10351 $as_echo "$ac_header_preproc" >&6; }
10353 # So? What about this header?
10354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10355 yes:no: )
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10360 ac_header_preproc=yes
10362 no:yes:* )
10363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10377 esac
10378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10379 $as_echo_n "checking for $ac_header... " >&6; }
10380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10381 $as_echo_n "(cached) " >&6
10382 else
10383 eval "$as_ac_Header=\$ac_header_preproc"
10385 ac_res=`eval 'as_val=${'$as_ac_Header'}
10386 $as_echo "$as_val"'`
10387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10388 $as_echo "$ac_res" >&6; }
10391 as_val=`eval 'as_val=${'$as_ac_Header'}
10392 $as_echo "$as_val"'`
10393 if test "x$as_val" = x""yes; then
10394 cat >>confdefs.h <<_ACEOF
10395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10396 _ACEOF
10400 done
10403 for ac_func in getpagesize
10405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10406 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10407 $as_echo_n "checking for $ac_func... " >&6; }
10408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10419 #define $ac_func innocuous_$ac_func
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char $ac_func (); below.
10423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424 <limits.h> exists even on freestanding compilers. */
10426 #ifdef __STDC__
10427 # include <limits.h>
10428 #else
10429 # include <assert.h>
10430 #endif
10432 #undef $ac_func
10434 /* Override any GCC internal prototype to avoid an error.
10435 Use char because int might match the return type of a GCC
10436 builtin and then its argument prototype would still apply. */
10437 #ifdef __cplusplus
10438 extern "C"
10439 #endif
10440 char $ac_func ();
10441 /* The GNU C library defines this for functions which it implements
10442 to always fail with ENOSYS. Some functions are actually named
10443 something starting with __ and the normal name is an alias. */
10444 #if defined __stub_$ac_func || defined __stub___$ac_func
10445 choke me
10446 #endif
10449 main ()
10451 return $ac_func ();
10453 return 0;
10455 _ACEOF
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461 esac
10462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463 $as_echo "$ac_try_echo") >&5
10464 (eval "$ac_link") 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 } && test -s conftest$ac_exeext && {
10474 test "$cross_compiling" = yes ||
10475 $as_test_x conftest$ac_exeext
10476 }; then
10477 eval "$as_ac_var=yes"
10478 else
10479 $as_echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 eval "$as_ac_var=no"
10485 rm -rf conftest.dSYM
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487 conftest$ac_exeext conftest.$ac_ext
10489 ac_res=`eval 'as_val=${'$as_ac_var'}
10490 $as_echo "$as_val"'`
10491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10492 $as_echo "$ac_res" >&6; }
10493 as_val=`eval 'as_val=${'$as_ac_var'}
10494 $as_echo "$as_val"'`
10495 if test "x$as_val" = x""yes; then
10496 cat >>confdefs.h <<_ACEOF
10497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10498 _ACEOF
10501 done
10503 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10504 $as_echo_n "checking for working mmap... " >&6; }
10505 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10506 $as_echo_n "(cached) " >&6
10507 else
10508 if test "$cross_compiling" = yes; then
10509 ac_cv_func_mmap_fixed_mapped=no
10510 else
10511 cat >conftest.$ac_ext <<_ACEOF
10512 /* confdefs.h. */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10517 $ac_includes_default
10518 /* malloc might have been renamed as rpl_malloc. */
10519 #undef malloc
10521 /* Thanks to Mike Haertel and Jim Avera for this test.
10522 Here is a matrix of mmap possibilities:
10523 mmap private not fixed
10524 mmap private fixed at somewhere currently unmapped
10525 mmap private fixed at somewhere already mapped
10526 mmap shared not fixed
10527 mmap shared fixed at somewhere currently unmapped
10528 mmap shared fixed at somewhere already mapped
10529 For private mappings, we should verify that changes cannot be read()
10530 back from the file, nor mmap's back from the file at a different
10531 address. (There have been systems where private was not correctly
10532 implemented like the infamous i386 svr4.0, and systems where the
10533 VM page cache was not coherent with the file system buffer cache
10534 like early versions of FreeBSD and possibly contemporary NetBSD.)
10535 For shared mappings, we should conversely verify that changes get
10536 propagated back to all the places they're supposed to be.
10538 Grep wants private fixed already mapped.
10539 The main things grep needs to know about mmap are:
10540 * does it exist and is it safe to write into the mmap'd area
10541 * how to use it (BSD variants) */
10543 #include <fcntl.h>
10544 #include <sys/mman.h>
10546 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10547 char *malloc ();
10548 #endif
10550 /* This mess was copied from the GNU getpagesize.h. */
10551 #ifndef HAVE_GETPAGESIZE
10552 /* Assume that all systems that can run configure have sys/param.h. */
10553 # ifndef HAVE_SYS_PARAM_H
10554 # define HAVE_SYS_PARAM_H 1
10555 # endif
10557 # ifdef _SC_PAGESIZE
10558 # define getpagesize() sysconf(_SC_PAGESIZE)
10559 # else /* no _SC_PAGESIZE */
10560 # ifdef HAVE_SYS_PARAM_H
10561 # include <sys/param.h>
10562 # ifdef EXEC_PAGESIZE
10563 # define getpagesize() EXEC_PAGESIZE
10564 # else /* no EXEC_PAGESIZE */
10565 # ifdef NBPG
10566 # define getpagesize() NBPG * CLSIZE
10567 # ifndef CLSIZE
10568 # define CLSIZE 1
10569 # endif /* no CLSIZE */
10570 # else /* no NBPG */
10571 # ifdef NBPC
10572 # define getpagesize() NBPC
10573 # else /* no NBPC */
10574 # ifdef PAGESIZE
10575 # define getpagesize() PAGESIZE
10576 # endif /* PAGESIZE */
10577 # endif /* no NBPC */
10578 # endif /* no NBPG */
10579 # endif /* no EXEC_PAGESIZE */
10580 # else /* no HAVE_SYS_PARAM_H */
10581 # define getpagesize() 8192 /* punt totally */
10582 # endif /* no HAVE_SYS_PARAM_H */
10583 # endif /* no _SC_PAGESIZE */
10585 #endif /* no HAVE_GETPAGESIZE */
10588 main ()
10590 char *data, *data2, *data3;
10591 int i, pagesize;
10592 int fd;
10594 pagesize = getpagesize ();
10596 /* First, make a file with some known garbage in it. */
10597 data = (char *) malloc (pagesize);
10598 if (!data)
10599 return 1;
10600 for (i = 0; i < pagesize; ++i)
10601 *(data + i) = rand ();
10602 umask (0);
10603 fd = creat ("conftest.mmap", 0600);
10604 if (fd < 0)
10605 return 1;
10606 if (write (fd, data, pagesize) != pagesize)
10607 return 1;
10608 close (fd);
10610 /* Next, try to mmap the file at a fixed address which already has
10611 something else allocated at it. If we can, also make sure that
10612 we see the same garbage. */
10613 fd = open ("conftest.mmap", O_RDWR);
10614 if (fd < 0)
10615 return 1;
10616 data2 = (char *) malloc (2 * pagesize);
10617 if (!data2)
10618 return 1;
10619 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10620 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10621 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10622 return 1;
10623 for (i = 0; i < pagesize; ++i)
10624 if (*(data + i) != *(data2 + i))
10625 return 1;
10627 /* Finally, make sure that changes to the mapped area do not
10628 percolate back to the file as seen by read(). (This is a bug on
10629 some variants of i386 svr4.0.) */
10630 for (i = 0; i < pagesize; ++i)
10631 *(data2 + i) = *(data2 + i) + 1;
10632 data3 = (char *) malloc (pagesize);
10633 if (!data3)
10634 return 1;
10635 if (read (fd, data3, pagesize) != pagesize)
10636 return 1;
10637 for (i = 0; i < pagesize; ++i)
10638 if (*(data + i) != *(data3 + i))
10639 return 1;
10640 close (fd);
10641 return 0;
10643 _ACEOF
10644 rm -f conftest$ac_exeext
10645 if { (ac_try="$ac_link"
10646 case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649 esac
10650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10651 $as_echo "$ac_try_echo") >&5
10652 (eval "$ac_link") 2>&5
10653 ac_status=$?
10654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10656 { (case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10659 esac
10660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10661 $as_echo "$ac_try_echo") >&5
10662 (eval "$ac_try") 2>&5
10663 ac_status=$?
10664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_func_mmap_fixed_mapped=yes
10667 else
10668 $as_echo "$as_me: program exited with status $ac_status" >&5
10669 $as_echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ( exit $ac_status )
10673 ac_cv_func_mmap_fixed_mapped=no
10675 rm -rf conftest.dSYM
10676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10681 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10682 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10683 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_MMAP 1
10687 _ACEOF
10690 rm -f conftest.mmap
10692 if test $use_mmap_for_buffers = yes; then
10693 REL_ALLOC=no
10696 LIBS="$libsrc_libs $LIBS"
10699 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10700 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10701 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10702 $as_echo_n "(cached) " >&6
10703 else
10704 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-ldnet $LIBS"
10706 cat >conftest.$ac_ext <<_ACEOF
10707 /* confdefs.h. */
10708 _ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char dnet_ntoa ();
10721 main ()
10723 return dnet_ntoa ();
10725 return 0;
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736 (eval "$ac_link") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest$ac_exeext && {
10746 test "$cross_compiling" = yes ||
10747 $as_test_x conftest$ac_exeext
10748 }; then
10749 ac_cv_lib_dnet_dnet_ntoa=yes
10750 else
10751 $as_echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ac_cv_lib_dnet_dnet_ntoa=no
10757 rm -rf conftest.dSYM
10758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10762 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10763 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10764 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
10765 cat >>confdefs.h <<_ACEOF
10766 #define HAVE_LIBDNET 1
10767 _ACEOF
10769 LIBS="-ldnet $LIBS"
10774 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10775 $as_echo_n "checking for main in -lXbsd... " >&6; }
10776 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10777 $as_echo_n "(cached) " >&6
10778 else
10779 ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lXbsd $LIBS"
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10790 main ()
10792 return main ();
10794 return 0;
10796 _ACEOF
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10804 $as_echo "$ac_try_echo") >&5
10805 (eval "$ac_link") 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } && {
10812 test -z "$ac_c_werror_flag" ||
10813 test ! -s conftest.err
10814 } && test -s conftest$ac_exeext && {
10815 test "$cross_compiling" = yes ||
10816 $as_test_x conftest$ac_exeext
10817 }; then
10818 ac_cv_lib_Xbsd_main=yes
10819 else
10820 $as_echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_lib_Xbsd_main=no
10826 rm -rf conftest.dSYM
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10832 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10833 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
10834 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10839 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10840 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10841 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10842 $as_echo_n "(cached) " >&6
10843 else
10844 ac_check_lib_save_LIBS=$LIBS
10845 LIBS="-lpthreads $LIBS"
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10856 #ifdef __cplusplus
10857 extern "C"
10858 #endif
10859 char cma_open ();
10861 main ()
10863 return cma_open ();
10865 return 0;
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10875 $as_echo "$ac_try_echo") >&5
10876 (eval "$ac_link") 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && {
10883 test -z "$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10885 } && test -s conftest$ac_exeext && {
10886 test "$cross_compiling" = yes ||
10887 $as_test_x conftest$ac_exeext
10888 }; then
10889 ac_cv_lib_pthreads_cma_open=yes
10890 else
10891 $as_echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10894 ac_cv_lib_pthreads_cma_open=no
10897 rm -rf conftest.dSYM
10898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10903 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10904 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_LIBPTHREADS 1
10907 _ACEOF
10909 LIBS="-lpthreads $LIBS"
10915 case ${host_os} in
10916 aix*)
10917 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10918 $as_echo_n "checking for -bbigtoc option... " >&6; }
10919 if test "${gdb_cv_bigtoc+set}" = set; then
10920 $as_echo_n "(cached) " >&6
10921 else
10923 case $GCC in
10924 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10925 *) gdb_cv_bigtoc=-bbigtoc ;;
10926 esac
10928 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10937 main ()
10939 int i;
10941 return 0;
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (ac_try="$ac_link"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10951 $as_echo "$ac_try_echo") >&5
10952 (eval "$ac_link") 2>conftest.er1
10953 ac_status=$?
10954 grep -v '^ *+' conftest.er1 >conftest.err
10955 rm -f conftest.er1
10956 cat conftest.err >&5
10957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } && {
10959 test -z "$ac_c_werror_flag" ||
10960 test ! -s conftest.err
10961 } && test -s conftest$ac_exeext && {
10962 test "$cross_compiling" = yes ||
10963 $as_test_x conftest$ac_exeext
10964 }; then
10966 else
10967 $as_echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 gdb_cv_bigtoc=
10973 rm -rf conftest.dSYM
10974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10975 conftest$ac_exeext conftest.$ac_ext
10978 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10979 $as_echo "$gdb_cv_bigtoc" >&6; }
10981 esac
10983 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10984 # used for the tests that follow. We set them back to REAL_CFLAGS and
10985 # REAL_CPPFLAGS later on.
10987 REAL_CPPFLAGS="$CPPFLAGS"
10989 if test "${HAVE_X11}" = "yes"; then
10990 DEFS="$C_SWITCH_X_SITE $DEFS"
10991 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10992 LIBS="$LIBX $LIBS"
10993 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10994 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10996 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10997 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10998 # but it's more convenient here to set LD_RUN_PATH
10999 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11000 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11001 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11002 export LD_RUN_PATH
11005 if test "${opsys}" = "gnu-linux"; then
11006 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11007 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11016 main ()
11018 XOpenDisplay ("foo");
11020 return 0;
11022 _ACEOF
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028 esac
11029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030 $as_echo "$ac_try_echo") >&5
11031 (eval "$ac_link") 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest$ac_exeext && {
11041 test "$cross_compiling" = yes ||
11042 $as_test_x conftest$ac_exeext
11043 }; then
11044 xlinux_first_failure=no
11045 else
11046 $as_echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 xlinux_first_failure=yes
11052 rm -rf conftest.dSYM
11053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11054 conftest$ac_exeext conftest.$ac_ext
11055 if test "${xlinux_first_failure}" = "yes"; then
11056 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11057 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11058 OLD_CPPFLAGS="$CPPFLAGS"
11059 OLD_LIBS="$LIBS"
11060 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11061 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11062 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11063 LIBS="$LIBS -b i486-linuxaout"
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11072 main ()
11074 XOpenDisplay ("foo");
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (ac_try="$ac_link"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084 esac
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_link") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest$ac_exeext && {
11097 test "$cross_compiling" = yes ||
11098 $as_test_x conftest$ac_exeext
11099 }; then
11100 xlinux_second_failure=no
11101 else
11102 $as_echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 xlinux_second_failure=yes
11108 rm -rf conftest.dSYM
11109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11110 conftest$ac_exeext conftest.$ac_ext
11111 if test "${xlinux_second_failure}" = "yes"; then
11112 # If we get the same failure with -b, there is no use adding -b.
11113 # So take it out. This plays safe.
11114 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11115 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11116 CPPFLAGS="$OLD_CPPFLAGS"
11117 LIBS="$OLD_LIBS"
11118 { $as_echo "$as_me:$LINENO: result: no" >&5
11119 $as_echo "no" >&6; }
11120 else
11121 { $as_echo "$as_me:$LINENO: result: yes" >&5
11122 $as_echo "yes" >&6; }
11124 else
11125 { $as_echo "$as_me:$LINENO: result: no" >&5
11126 $as_echo "no" >&6; }
11130 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11131 # header files included from there.
11132 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11133 $as_echo_n "checking for Xkb... " >&6; }
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 #include <X11/Xlib.h>
11141 #include <X11/XKBlib.h>
11143 main ()
11145 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11147 return 0;
11149 _ACEOF
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (ac_try="$ac_link"
11152 case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155 esac
11156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11157 $as_echo "$ac_try_echo") >&5
11158 (eval "$ac_link") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && {
11165 test -z "$ac_c_werror_flag" ||
11166 test ! -s conftest.err
11167 } && test -s conftest$ac_exeext && {
11168 test "$cross_compiling" = yes ||
11169 $as_test_x conftest$ac_exeext
11170 }; then
11171 emacs_xkb=yes
11172 else
11173 $as_echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 emacs_xkb=no
11179 rm -rf conftest.dSYM
11180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11181 conftest$ac_exeext conftest.$ac_ext
11182 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11183 $as_echo "$emacs_xkb" >&6; }
11184 if test $emacs_xkb = yes; then
11186 cat >>confdefs.h <<\_ACEOF
11187 #define HAVE_XKBGETKEYBOARD 1
11188 _ACEOF
11196 for ac_func in XrmSetDatabase XScreenResourceString \
11197 XScreenNumberOfScreen XSetWMProtocols
11199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11201 $as_echo_n "checking for $ac_func... " >&6; }
11202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11203 $as_echo_n "(cached) " >&6
11204 else
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11213 #define $ac_func innocuous_$ac_func
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below.
11217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 <limits.h> exists even on freestanding compilers. */
11220 #ifdef __STDC__
11221 # include <limits.h>
11222 #else
11223 # include <assert.h>
11224 #endif
11226 #undef $ac_func
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char $ac_func ();
11235 /* The GNU C library defines this for functions which it implements
11236 to always fail with ENOSYS. Some functions are actually named
11237 something starting with __ and the normal name is an alias. */
11238 #if defined __stub_$ac_func || defined __stub___$ac_func
11239 choke me
11240 #endif
11243 main ()
11245 return $ac_func ();
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (ac_try="$ac_link"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258 (eval "$ac_link") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest$ac_exeext && {
11268 test "$cross_compiling" = yes ||
11269 $as_test_x conftest$ac_exeext
11270 }; then
11271 eval "$as_ac_var=yes"
11272 else
11273 $as_echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 eval "$as_ac_var=no"
11279 rm -rf conftest.dSYM
11280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11281 conftest$ac_exeext conftest.$ac_ext
11283 ac_res=`eval 'as_val=${'$as_ac_var'}
11284 $as_echo "$as_val"'`
11285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11286 $as_echo "$ac_res" >&6; }
11287 as_val=`eval 'as_val=${'$as_ac_var'}
11288 $as_echo "$as_val"'`
11289 if test "x$as_val" = x""yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11292 _ACEOF
11295 done
11299 if test "${window_system}" = "x11"; then
11300 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11301 $as_echo_n "checking X11 version 6... " >&6; }
11302 if test "${emacs_cv_x11_version_6+set}" = set; then
11303 $as_echo_n "(cached) " >&6
11304 else
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 #include <X11/Xlib.h>
11313 main ()
11315 #if XlibSpecificationRelease < 6
11316 fail;
11317 #endif
11320 return 0;
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331 (eval "$ac_link") 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest$ac_exeext && {
11341 test "$cross_compiling" = yes ||
11342 $as_test_x conftest$ac_exeext
11343 }; then
11344 emacs_cv_x11_version_6=yes
11345 else
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 emacs_cv_x11_version_6=no
11352 rm -rf conftest.dSYM
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11357 if test $emacs_cv_x11_version_6 = yes; then
11358 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11359 $as_echo "6 or newer" >&6; }
11361 cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_X11R6 1
11363 _ACEOF
11365 else
11366 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11367 $as_echo "before 6" >&6; }
11372 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11373 HAVE_RSVG=no
11374 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11375 if test "${with_rsvg}" != "no"; then
11376 RSVG_REQUIRED=2.11.0
11377 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11380 succeeded=no
11382 # Extract the first word of "pkg-config", so it can be a program name with args.
11383 set dummy pkg-config; ac_word=$2
11384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11387 $as_echo_n "(cached) " >&6
11388 else
11389 case $PKG_CONFIG in
11390 [\\/]* | ?:[\\/]*)
11391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 break 2
11405 done
11406 done
11407 IFS=$as_save_IFS
11409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11411 esac
11413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11414 if test -n "$PKG_CONFIG"; then
11415 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11416 $as_echo "$PKG_CONFIG" >&6; }
11417 else
11418 { $as_echo "$as_me:$LINENO: result: no" >&5
11419 $as_echo "no" >&6; }
11424 if test "$PKG_CONFIG" = "no" ; then
11426 else
11427 PKG_CONFIG_MIN_VERSION=0.9.0
11428 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11429 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11430 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11432 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11433 { $as_echo "$as_me:$LINENO: result: yes" >&5
11434 $as_echo "yes" >&6; }
11435 succeeded=yes
11437 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11438 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11439 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11440 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11441 $as_echo "$RSVG_CFLAGS" >&6; }
11443 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11444 $as_echo_n "checking RSVG_LIBS... " >&6; }
11445 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11446 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11447 $as_echo "$RSVG_LIBS" >&6; }
11448 else
11449 { $as_echo "$as_me:$LINENO: result: no" >&5
11450 $as_echo "no" >&6; }
11451 RSVG_CFLAGS=""
11452 RSVG_LIBS=""
11453 ## If we have a custom action on failure, don't print errors, but
11454 ## do set a variable so people can do so.
11455 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11461 else
11462 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11463 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11467 if test $succeeded = yes; then
11469 else
11476 if test ".${RSVG_CFLAGS}" != "."; then
11477 HAVE_RSVG=yes
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_RSVG 1
11481 _ACEOF
11483 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11484 LIBS="$RSVG_LIBS $LIBS"
11489 HAVE_IMAGEMAGICK=no
11490 if test "${HAVE_X11}" = "yes" ; then
11491 if test "${with_imagemagick}" != "no"; then
11492 IMAGEMAGICK_REQUIRED=1
11493 IMAGEMAGICK_MODULE="MagickWand >= $IMAGEMAGICK_REQUIRED"
11496 succeeded=no
11498 # Extract the first word of "pkg-config", so it can be a program name with args.
11499 set dummy pkg-config; ac_word=$2
11500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11503 $as_echo_n "(cached) " >&6
11504 else
11505 case $PKG_CONFIG in
11506 [\\/]* | ?:[\\/]*)
11507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511 for as_dir in $PATH
11513 IFS=$as_save_IFS
11514 test -z "$as_dir" && as_dir=.
11515 for ac_exec_ext in '' $ac_executable_extensions; do
11516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 break 2
11521 done
11522 done
11523 IFS=$as_save_IFS
11525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11527 esac
11529 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11530 if test -n "$PKG_CONFIG"; then
11531 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11532 $as_echo "$PKG_CONFIG" >&6; }
11533 else
11534 { $as_echo "$as_me:$LINENO: result: no" >&5
11535 $as_echo "no" >&6; }
11540 if test "$PKG_CONFIG" = "no" ; then
11542 else
11543 PKG_CONFIG_MIN_VERSION=0.9.0
11544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11545 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11546 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11548 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11549 { $as_echo "$as_me:$LINENO: result: yes" >&5
11550 $as_echo "yes" >&6; }
11551 succeeded=yes
11553 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11554 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11555 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11556 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11557 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11559 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11560 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11561 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11562 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11563 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11564 else
11565 { $as_echo "$as_me:$LINENO: result: no" >&5
11566 $as_echo "no" >&6; }
11567 IMAGEMAGICK_CFLAGS=""
11568 IMAGEMAGICK_LIBS=""
11569 ## If we have a custom action on failure, don't print errors, but
11570 ## do set a variable so people can do so.
11571 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11577 else
11578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11583 if test $succeeded = yes; then
11585 else
11592 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11593 HAVE_IMAGEMAGICK=yes
11595 cat >>confdefs.h <<\_ACEOF
11596 #define HAVE_IMAGEMAGICK 1
11597 _ACEOF
11599 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11600 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11605 HAVE_GTK=no
11606 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11607 GLIB_REQUIRED=2.6
11608 GTK_REQUIRED=2.6
11609 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11612 succeeded=no
11614 # Extract the first word of "pkg-config", so it can be a program name with args.
11615 set dummy pkg-config; ac_word=$2
11616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 $as_echo_n "(cached) " >&6
11620 else
11621 case $PKG_CONFIG in
11622 [\\/]* | ?:[\\/]*)
11623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11637 done
11638 done
11639 IFS=$as_save_IFS
11641 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11643 esac
11645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11648 $as_echo "$PKG_CONFIG" >&6; }
11649 else
11650 { $as_echo "$as_me:$LINENO: result: no" >&5
11651 $as_echo "no" >&6; }
11656 if test "$PKG_CONFIG" = "no" ; then
11657 pkg_check_gtk=no
11658 else
11659 PKG_CONFIG_MIN_VERSION=0.9.0
11660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11661 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11662 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11664 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11665 { $as_echo "$as_me:$LINENO: result: yes" >&5
11666 $as_echo "yes" >&6; }
11667 succeeded=yes
11669 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11670 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11671 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11672 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11673 $as_echo "$GTK_CFLAGS" >&6; }
11675 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11676 $as_echo_n "checking GTK_LIBS... " >&6; }
11677 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11678 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11679 $as_echo "$GTK_LIBS" >&6; }
11680 else
11681 { $as_echo "$as_me:$LINENO: result: no" >&5
11682 $as_echo "no" >&6; }
11683 GTK_CFLAGS=""
11684 GTK_LIBS=""
11685 ## If we have a custom action on failure, don't print errors, but
11686 ## do set a variable so people can do so.
11687 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11693 else
11694 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11695 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11699 if test $succeeded = yes; then
11700 pkg_check_gtk=yes
11701 else
11702 pkg_check_gtk=no
11705 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11706 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11707 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11708 { (exit 1); exit 1; }; }
11713 if test x"$pkg_check_gtk" = xyes; then
11717 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11718 CFLAGS="$CFLAGS $GTK_CFLAGS"
11719 LIBS="$GTK_LIBS $LIBS"
11720 GTK_COMPILES=no
11722 for ac_func in gtk_main
11724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11726 $as_echo_n "checking for $ac_func... " >&6; }
11727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11728 $as_echo_n "(cached) " >&6
11729 else
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738 #define $ac_func innocuous_$ac_func
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11745 #ifdef __STDC__
11746 # include <limits.h>
11747 #else
11748 # include <assert.h>
11749 #endif
11751 #undef $ac_func
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char $ac_func ();
11760 /* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763 #if defined __stub_$ac_func || defined __stub___$ac_func
11764 choke me
11765 #endif
11768 main ()
11770 return $ac_func ();
11772 return 0;
11774 _ACEOF
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (ac_try="$ac_link"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11782 $as_echo "$ac_try_echo") >&5
11783 (eval "$ac_link") 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest$ac_exeext && {
11793 test "$cross_compiling" = yes ||
11794 $as_test_x conftest$ac_exeext
11795 }; then
11796 eval "$as_ac_var=yes"
11797 else
11798 $as_echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -rf conftest.dSYM
11805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11806 conftest$ac_exeext conftest.$ac_ext
11808 ac_res=`eval 'as_val=${'$as_ac_var'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11811 $as_echo "$ac_res" >&6; }
11812 as_val=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 if test "x$as_val" = x""yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11817 _ACEOF
11818 GTK_COMPILES=yes
11820 done
11822 if test "${GTK_COMPILES}" != "yes"; then
11823 if test "$USE_X_TOOLKIT" != "maybe"; then
11824 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11825 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11826 { (exit 1); exit 1; }; };
11828 else
11829 HAVE_GTK=yes
11831 cat >>confdefs.h <<\_ACEOF
11832 #define USE_GTK 1
11833 _ACEOF
11835 USE_X_TOOLKIT=none
11836 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11838 else
11839 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11840 closing open displays. This is no problem if you just use
11841 one display, but if you use more than one and close one of them
11842 Emacs may crash." >&5
11843 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11844 closing open displays. This is no problem if you just use
11845 one display, but if you use more than one and close one of them
11846 Emacs may crash." >&2;}
11847 sleep 3
11854 if test "${HAVE_GTK}" = "yes"; then
11856 if test "$with_toolkit_scroll_bars" != no; then
11857 with_toolkit_scroll_bars=yes
11860 HAVE_GTK_MULTIDISPLAY=no
11862 for ac_func in gdk_display_open
11864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11865 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11866 $as_echo_n "checking for $ac_func... " >&6; }
11867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11868 $as_echo_n "(cached) " >&6
11869 else
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h. */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11878 #define $ac_func innocuous_$ac_func
11880 /* System header to define __stub macros and hopefully few prototypes,
11881 which can conflict with char $ac_func (); below.
11882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883 <limits.h> exists even on freestanding compilers. */
11885 #ifdef __STDC__
11886 # include <limits.h>
11887 #else
11888 # include <assert.h>
11889 #endif
11891 #undef $ac_func
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char $ac_func ();
11900 /* The GNU C library defines this for functions which it implements
11901 to always fail with ENOSYS. Some functions are actually named
11902 something starting with __ and the normal name is an alias. */
11903 #if defined __stub_$ac_func || defined __stub___$ac_func
11904 choke me
11905 #endif
11908 main ()
11910 return $ac_func ();
11912 return 0;
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (ac_try="$ac_link"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11920 esac
11921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922 $as_echo "$ac_try_echo") >&5
11923 (eval "$ac_link") 2>conftest.er1
11924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest$ac_exeext && {
11933 test "$cross_compiling" = yes ||
11934 $as_test_x conftest$ac_exeext
11935 }; then
11936 eval "$as_ac_var=yes"
11937 else
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 eval "$as_ac_var=no"
11944 rm -rf conftest.dSYM
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946 conftest$ac_exeext conftest.$ac_ext
11948 ac_res=`eval 'as_val=${'$as_ac_var'}
11949 $as_echo "$as_val"'`
11950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11951 $as_echo "$ac_res" >&6; }
11952 as_val=`eval 'as_val=${'$as_ac_var'}
11953 $as_echo "$as_val"'`
11954 if test "x$as_val" = x""yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11957 _ACEOF
11958 HAVE_GTK_MULTIDISPLAY=yes
11960 done
11962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11964 cat >>confdefs.h <<\_ACEOF
11965 #define HAVE_GTK_MULTIDISPLAY 1
11966 _ACEOF
11970 HAVE_GTK_FILE_SELECTION=no
11971 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11972 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11973 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11974 $as_echo_n "(cached) " >&6
11975 else
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 #include <gtk/gtk.h>
11986 main ()
11988 #ifndef GTK_TYPE_FILE_SELECTION
11989 (void) GTK_TYPE_FILE_SELECTION;
11990 #endif
11993 return 0;
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12014 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12015 else
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12025 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12026 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then
12027 HAVE_GTK_FILE_SELECTION=yes
12028 else
12029 HAVE_GTK_FILE_SELECTION=no
12032 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12034 for ac_func in gtk_file_selection_new
12036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 $as_echo_n "checking for $ac_func... " >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12040 $as_echo_n "(cached) " >&6
12041 else
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12050 #define $ac_func innocuous_$ac_func
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12057 #ifdef __STDC__
12058 # include <limits.h>
12059 #else
12060 # include <assert.h>
12061 #endif
12063 #undef $ac_func
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char $ac_func ();
12072 /* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12076 choke me
12077 #endif
12080 main ()
12082 return $ac_func ();
12084 return 0;
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12092 esac
12093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12094 $as_echo "$ac_try_echo") >&5
12095 (eval "$ac_link") 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } && {
12102 test -z "$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12104 } && test -s conftest$ac_exeext && {
12105 test "$cross_compiling" = yes ||
12106 $as_test_x conftest$ac_exeext
12107 }; then
12108 eval "$as_ac_var=yes"
12109 else
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 eval "$as_ac_var=no"
12116 rm -rf conftest.dSYM
12117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12118 conftest$ac_exeext conftest.$ac_ext
12120 ac_res=`eval 'as_val=${'$as_ac_var'}
12121 $as_echo "$as_val"'`
12122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12123 $as_echo "$ac_res" >&6; }
12124 as_val=`eval 'as_val=${'$as_ac_var'}
12125 $as_echo "$as_val"'`
12126 if test "x$as_val" = x""yes; then
12127 cat >>confdefs.h <<_ACEOF
12128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12129 _ACEOF
12130 HAVE_GTK_FILE_SELECTION=yes
12131 else
12132 HAVE_GTK_FILE_SELECTION=no
12134 done
12138 HAVE_GTK_FILE_CHOOSER=no
12139 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12140 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12141 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12142 $as_echo_n "(cached) " >&6
12143 else
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h. */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 $ac_includes_default
12151 #include <gtk/gtk.h>
12154 main ()
12156 #ifndef GTK_TYPE_FILE_CHOOSER
12157 (void) GTK_TYPE_FILE_CHOOSER;
12158 #endif
12161 return 0;
12163 _ACEOF
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
12182 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12183 else
12184 $as_echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12193 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12194 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then
12195 HAVE_GTK_FILE_CHOOSER=yes
12196 else
12197 HAVE_GTK_FILE_CHOOSER=no
12200 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12202 for ac_func in gtk_file_chooser_dialog_new
12204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12205 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12206 $as_echo_n "checking for $ac_func... " >&6; }
12207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12208 $as_echo_n "(cached) " >&6
12209 else
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12218 #define $ac_func innocuous_$ac_func
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char $ac_func (); below.
12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223 <limits.h> exists even on freestanding compilers. */
12225 #ifdef __STDC__
12226 # include <limits.h>
12227 #else
12228 # include <assert.h>
12229 #endif
12231 #undef $ac_func
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char $ac_func ();
12240 /* The GNU C library defines this for functions which it implements
12241 to always fail with ENOSYS. Some functions are actually named
12242 something starting with __ and the normal name is an alias. */
12243 #if defined __stub_$ac_func || defined __stub___$ac_func
12244 choke me
12245 #endif
12248 main ()
12250 return $ac_func ();
12252 return 0;
12254 _ACEOF
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext && {
12273 test "$cross_compiling" = yes ||
12274 $as_test_x conftest$ac_exeext
12275 }; then
12276 eval "$as_ac_var=yes"
12277 else
12278 $as_echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 eval "$as_ac_var=no"
12284 rm -rf conftest.dSYM
12285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286 conftest$ac_exeext conftest.$ac_ext
12288 ac_res=`eval 'as_val=${'$as_ac_var'}
12289 $as_echo "$as_val"'`
12290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12291 $as_echo "$ac_res" >&6; }
12292 as_val=`eval 'as_val=${'$as_ac_var'}
12293 $as_echo "$as_val"'`
12294 if test "x$as_val" = x""yes; then
12295 cat >>confdefs.h <<_ACEOF
12296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12297 _ACEOF
12298 HAVE_GTK_FILE_CHOOSER=yes
12299 else
12300 HAVE_GTK_FILE_CHOOSER=no
12302 done
12306 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12307 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12309 cat >>confdefs.h <<\_ACEOF
12310 #define HAVE_GTK_FILE_BOTH 1
12311 _ACEOF
12315 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12316 HAVE_GTK_AND_PTHREAD=no
12318 for ac_header in pthread.h
12320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12323 $as_echo_n "checking for $ac_header... " >&6; }
12324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12325 $as_echo_n "(cached) " >&6
12327 ac_res=`eval 'as_val=${'$as_ac_Header'}
12328 $as_echo "$as_val"'`
12329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12330 $as_echo "$ac_res" >&6; }
12331 else
12332 # Is the header compilable?
12333 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12334 $as_echo_n "checking $ac_header usability... " >&6; }
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12342 #include <$ac_header>
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349 esac
12350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12351 $as_echo "$ac_try_echo") >&5
12352 (eval "$ac_compile") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest.$ac_objext; then
12362 ac_header_compiler=yes
12363 else
12364 $as_echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_header_compiler=no
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12372 $as_echo "$ac_header_compiler" >&6; }
12374 # Is the header present?
12375 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12376 $as_echo_n "checking $ac_header presence... " >&6; }
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 #include <$ac_header>
12384 _ACEOF
12385 if { (ac_try="$ac_cpp conftest.$ac_ext"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389 esac
12390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } >/dev/null && {
12399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 }; then
12402 ac_header_preproc=yes
12403 else
12404 $as_echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_header_preproc=no
12410 rm -f conftest.err conftest.$ac_ext
12411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12412 $as_echo "$ac_header_preproc" >&6; }
12414 # So? What about this header?
12415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12416 yes:no: )
12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12418 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12421 ac_header_preproc=yes
12423 no:yes:* )
12424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12425 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12427 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12429 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12431 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12435 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12438 esac
12439 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12440 $as_echo_n "checking for $ac_header... " >&6; }
12441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12442 $as_echo_n "(cached) " >&6
12443 else
12444 eval "$as_ac_Header=\$ac_header_preproc"
12446 ac_res=`eval 'as_val=${'$as_ac_Header'}
12447 $as_echo "$as_val"'`
12448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12449 $as_echo "$ac_res" >&6; }
12452 as_val=`eval 'as_val=${'$as_ac_Header'}
12453 $as_echo "$as_val"'`
12454 if test "x$as_val" = x""yes; then
12455 cat >>confdefs.h <<_ACEOF
12456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12457 _ACEOF
12461 done
12463 if test "$ac_cv_header_pthread_h"; then
12464 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12465 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12466 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-lpthread $LIBS"
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h. */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12478 /* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12481 #ifdef __cplusplus
12482 extern "C"
12483 #endif
12484 char pthread_self ();
12486 main ()
12488 return pthread_self ();
12490 return 0;
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (ac_try="$ac_link"
12495 case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12498 esac
12499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12500 $as_echo "$ac_try_echo") >&5
12501 (eval "$ac_link") 2>conftest.er1
12502 ac_status=$?
12503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
12506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } && {
12508 test -z "$ac_c_werror_flag" ||
12509 test ! -s conftest.err
12510 } && test -s conftest$ac_exeext && {
12511 test "$cross_compiling" = yes ||
12512 $as_test_x conftest$ac_exeext
12513 }; then
12514 ac_cv_lib_pthread_pthread_self=yes
12515 else
12516 $as_echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_cv_lib_pthread_pthread_self=no
12522 rm -rf conftest.dSYM
12523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12524 conftest$ac_exeext conftest.$ac_ext
12525 LIBS=$ac_check_lib_save_LIBS
12527 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12528 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12529 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12530 HAVE_GTK_AND_PTHREAD=yes
12534 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12535 case "${canonical}" in
12536 *-hpux*) ;;
12537 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12538 esac
12540 cat >>confdefs.h <<\_ACEOF
12541 #define HAVE_GTK_AND_PTHREAD 1
12542 _ACEOF
12548 HAVE_DBUS=no
12549 if test "${with_dbus}" = "yes"; then
12551 succeeded=no
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config; ac_word=$2
12555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12558 $as_echo_n "(cached) " >&6
12559 else
12560 case $PKG_CONFIG in
12561 [\\/]* | ?:[\\/]*)
12562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12576 done
12577 done
12578 IFS=$as_save_IFS
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12582 esac
12584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12587 $as_echo "$PKG_CONFIG" >&6; }
12588 else
12589 { $as_echo "$as_me:$LINENO: result: no" >&5
12590 $as_echo "no" >&6; }
12595 if test "$PKG_CONFIG" = "no" ; then
12596 HAVE_DBUS=no
12597 else
12598 PKG_CONFIG_MIN_VERSION=0.9.0
12599 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12600 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12601 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12603 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12604 { $as_echo "$as_me:$LINENO: result: yes" >&5
12605 $as_echo "yes" >&6; }
12606 succeeded=yes
12608 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12609 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12610 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12611 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12612 $as_echo "$DBUS_CFLAGS" >&6; }
12614 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12615 $as_echo_n "checking DBUS_LIBS... " >&6; }
12616 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12617 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12618 $as_echo "$DBUS_LIBS" >&6; }
12619 else
12620 { $as_echo "$as_me:$LINENO: result: no" >&5
12621 $as_echo "no" >&6; }
12622 DBUS_CFLAGS=""
12623 DBUS_LIBS=""
12624 ## If we have a custom action on failure, don't print errors, but
12625 ## do set a variable so people can do so.
12626 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12632 else
12633 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12634 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12638 if test $succeeded = yes; then
12639 HAVE_DBUS=yes
12640 else
12641 HAVE_DBUS=no
12644 if test "$HAVE_DBUS" = yes; then
12645 LIBS="$LIBS $DBUS_LIBS"
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_DBUS 1
12649 _ACEOF
12652 for ac_func in dbus_watch_get_unix_fd
12654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12656 $as_echo_n "checking for $ac_func... " >&6; }
12657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12658 $as_echo_n "(cached) " >&6
12659 else
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h. */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12668 #define $ac_func innocuous_$ac_func
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char $ac_func (); below.
12672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12673 <limits.h> exists even on freestanding compilers. */
12675 #ifdef __STDC__
12676 # include <limits.h>
12677 #else
12678 # include <assert.h>
12679 #endif
12681 #undef $ac_func
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686 #ifdef __cplusplus
12687 extern "C"
12688 #endif
12689 char $ac_func ();
12690 /* The GNU C library defines this for functions which it implements
12691 to always fail with ENOSYS. Some functions are actually named
12692 something starting with __ and the normal name is an alias. */
12693 #if defined __stub_$ac_func || defined __stub___$ac_func
12694 choke me
12695 #endif
12698 main ()
12700 return $ac_func ();
12702 return 0;
12704 _ACEOF
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (ac_try="$ac_link"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710 esac
12711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12712 $as_echo "$ac_try_echo") >&5
12713 (eval "$ac_link") 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest$ac_exeext && {
12723 test "$cross_compiling" = yes ||
12724 $as_test_x conftest$ac_exeext
12725 }; then
12726 eval "$as_ac_var=yes"
12727 else
12728 $as_echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 eval "$as_ac_var=no"
12734 rm -rf conftest.dSYM
12735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12736 conftest$ac_exeext conftest.$ac_ext
12738 ac_res=`eval 'as_val=${'$as_ac_var'}
12739 $as_echo "$as_val"'`
12740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12741 $as_echo "$ac_res" >&6; }
12742 as_val=`eval 'as_val=${'$as_ac_var'}
12743 $as_echo "$as_val"'`
12744 if test "x$as_val" = x""yes; then
12745 cat >>confdefs.h <<_ACEOF
12746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12747 _ACEOF
12750 done
12755 HAVE_GCONF=no
12756 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12758 succeeded=no
12760 # Extract the first word of "pkg-config", so it can be a program name with args.
12761 set dummy pkg-config; ac_word=$2
12762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12766 else
12767 case $PKG_CONFIG in
12768 [\\/]* | ?:[\\/]*)
12769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 break 2
12783 done
12784 done
12785 IFS=$as_save_IFS
12787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12789 esac
12791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12792 if test -n "$PKG_CONFIG"; then
12793 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12794 $as_echo "$PKG_CONFIG" >&6; }
12795 else
12796 { $as_echo "$as_me:$LINENO: result: no" >&5
12797 $as_echo "no" >&6; }
12802 if test "$PKG_CONFIG" = "no" ; then
12803 HAVE_GCONF=no
12804 else
12805 PKG_CONFIG_MIN_VERSION=0.9.0
12806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12807 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12808 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12810 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12811 { $as_echo "$as_me:$LINENO: result: yes" >&5
12812 $as_echo "yes" >&6; }
12813 succeeded=yes
12815 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12816 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12817 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12818 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12819 $as_echo "$GCONF_CFLAGS" >&6; }
12821 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12822 $as_echo_n "checking GCONF_LIBS... " >&6; }
12823 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12824 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12825 $as_echo "$GCONF_LIBS" >&6; }
12826 else
12827 { $as_echo "$as_me:$LINENO: result: no" >&5
12828 $as_echo "no" >&6; }
12829 GCONF_CFLAGS=""
12830 GCONF_LIBS=""
12831 ## If we have a custom action on failure, don't print errors, but
12832 ## do set a variable so people can do so.
12833 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12839 else
12840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12845 if test $succeeded = yes; then
12846 HAVE_GCONF=yes
12847 else
12848 HAVE_GCONF=no
12851 if test "$HAVE_GCONF" = yes; then
12853 cat >>confdefs.h <<\_ACEOF
12854 #define HAVE_GCONF 1
12855 _ACEOF
12860 HAVE_XAW3D=no
12861 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12862 if test "$with_xaw3d" != no; then
12863 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12864 $as_echo_n "checking for xaw3d... " >&6; }
12865 if test "${emacs_cv_xaw3d+set}" = set; then
12866 $as_echo_n "(cached) " >&6
12867 else
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 #include <X11/Intrinsic.h>
12876 #include <X11/Xaw3d/Simple.h>
12878 main ()
12882 return 0;
12884 _ACEOF
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (ac_try="$ac_link"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12892 $as_echo "$ac_try_echo") >&5
12893 (eval "$ac_link") 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } && {
12900 test -z "$ac_c_werror_flag" ||
12901 test ! -s conftest.err
12902 } && test -s conftest$ac_exeext && {
12903 test "$cross_compiling" = yes ||
12904 $as_test_x conftest$ac_exeext
12905 }; then
12906 emacs_cv_xaw3d=yes
12907 else
12908 $as_echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 emacs_cv_xaw3d=no
12914 rm -rf conftest.dSYM
12915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12916 conftest$ac_exeext conftest.$ac_ext
12919 else
12920 emacs_cv_xaw3d=no
12922 if test $emacs_cv_xaw3d = yes; then
12923 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12924 $as_echo "yes; using Lucid toolkit" >&6; }
12925 USE_X_TOOLKIT=LUCID
12926 HAVE_XAW3D=yes
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_XAW3D 1
12930 _ACEOF
12932 else
12933 { $as_echo "$as_me:$LINENO: result: no" >&5
12934 $as_echo "no" >&6; }
12935 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12936 $as_echo_n "checking for libXaw... " >&6; }
12937 if test "${emacs_cv_xaw+set}" = set; then
12938 $as_echo_n "(cached) " >&6
12939 else
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h. */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 #include <X11/Intrinsic.h>
12948 #include <X11/Xaw/Simple.h>
12950 main ()
12954 return 0;
12956 _ACEOF
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962 esac
12963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12964 $as_echo "$ac_try_echo") >&5
12965 (eval "$ac_link") 2>conftest.er1
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } && {
12972 test -z "$ac_c_werror_flag" ||
12973 test ! -s conftest.err
12974 } && test -s conftest$ac_exeext && {
12975 test "$cross_compiling" = yes ||
12976 $as_test_x conftest$ac_exeext
12977 }; then
12978 emacs_cv_xaw=yes
12979 else
12980 $as_echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 emacs_cv_xaw=no
12986 rm -rf conftest.dSYM
12987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12988 conftest$ac_exeext conftest.$ac_ext
12991 if test $emacs_cv_xaw = yes; then
12992 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12993 $as_echo "yes; using Lucid toolkit" >&6; }
12994 USE_X_TOOLKIT=LUCID
12995 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12996 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12997 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12998 { (exit 1); exit 1; }; }
12999 else
13000 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13001 $as_echo "no; do not use toolkit by default" >&6; }
13002 USE_X_TOOLKIT=none
13007 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13009 if test "${USE_X_TOOLKIT}" != "none"; then
13010 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13011 $as_echo_n "checking X11 toolkit version... " >&6; }
13012 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13013 $as_echo_n "(cached) " >&6
13014 else
13015 cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h. */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 #include <X11/Intrinsic.h>
13023 main ()
13025 #if XtSpecificationRelease < 6
13026 fail;
13027 #endif
13030 return 0;
13032 _ACEOF
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13040 $as_echo "$ac_try_echo") >&5
13041 (eval "$ac_link") 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
13050 } && test -s conftest$ac_exeext && {
13051 test "$cross_compiling" = yes ||
13052 $as_test_x conftest$ac_exeext
13053 }; then
13054 emacs_cv_x11_toolkit_version_6=yes
13055 else
13056 $as_echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 emacs_cv_x11_toolkit_version_6=no
13062 rm -rf conftest.dSYM
13063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13064 conftest$ac_exeext conftest.$ac_ext
13067 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13068 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13069 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13070 $as_echo "6 or newer" >&6; }
13072 cat >>confdefs.h <<\_ACEOF
13073 #define HAVE_X11XTR6 1
13074 _ACEOF
13076 else
13077 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13078 $as_echo "before 6" >&6; }
13081 OLDLIBS="$LIBS"
13082 if test x$HAVE_X11XTR6 = xyes; then
13083 LIBS="-lXt -lSM -lICE $LIBS"
13084 else
13085 LIBS="-lXt $LIBS"
13088 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13089 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13090 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13091 $as_echo_n "(cached) " >&6
13092 else
13093 ac_check_lib_save_LIBS=$LIBS
13094 LIBS="-lXmu $LIBS"
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 char XmuConvertStandardSelection ();
13110 main ()
13112 return XmuConvertStandardSelection ();
13114 return 0;
13116 _ACEOF
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122 esac
13123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124 $as_echo "$ac_try_echo") >&5
13125 (eval "$ac_link") 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest$ac_exeext && {
13135 test "$cross_compiling" = yes ||
13136 $as_test_x conftest$ac_exeext
13137 }; then
13138 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13139 else
13140 $as_echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13146 rm -rf conftest.dSYM
13147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13148 conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13152 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13153 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then
13154 cat >>confdefs.h <<_ACEOF
13155 #define HAVE_LIBXMU 1
13156 _ACEOF
13158 LIBS="-lXmu $LIBS"
13162 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13165 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13166 if test "${HAVE_X11}" = "yes"; then
13167 if test "${USE_X_TOOLKIT}" != "none"; then
13169 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13170 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13171 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13172 $as_echo_n "(cached) " >&6
13173 else
13174 ac_check_lib_save_LIBS=$LIBS
13175 LIBS="-lXext $LIBS"
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186 #ifdef __cplusplus
13187 extern "C"
13188 #endif
13189 char XShapeQueryExtension ();
13191 main ()
13193 return XShapeQueryExtension ();
13195 return 0;
13197 _ACEOF
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (ac_try="$ac_link"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203 esac
13204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13205 $as_echo "$ac_try_echo") >&5
13206 (eval "$ac_link") 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } && {
13213 test -z "$ac_c_werror_flag" ||
13214 test ! -s conftest.err
13215 } && test -s conftest$ac_exeext && {
13216 test "$cross_compiling" = yes ||
13217 $as_test_x conftest$ac_exeext
13218 }; then
13219 ac_cv_lib_Xext_XShapeQueryExtension=yes
13220 else
13221 $as_echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_cv_lib_Xext_XShapeQueryExtension=no
13227 rm -rf conftest.dSYM
13228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13233 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13234 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LIBXEXT 1
13237 _ACEOF
13239 LIBS="-lXext $LIBS"
13246 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13247 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13248 $as_echo_n "checking for Motif version 2.1... " >&6; }
13249 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13250 $as_echo_n "(cached) " >&6
13251 else
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 #include <Xm/Xm.h>
13260 main ()
13262 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13263 int x = 5;
13264 #else
13265 Motif version prior to 2.1.
13266 #endif
13268 return 0;
13270 _ACEOF
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13276 esac
13277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13278 $as_echo "$ac_try_echo") >&5
13279 (eval "$ac_compile") 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest.$ac_objext; then
13289 emacs_cv_motif_version_2_1=yes
13290 else
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 emacs_cv_motif_version_2_1=no
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13300 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13301 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13302 if test $emacs_cv_motif_version_2_1 = yes; then
13303 HAVE_LIBXP=no
13305 cat >>confdefs.h <<\_ACEOF
13306 #define HAVE_MOTIF_2_1 1
13307 _ACEOF
13309 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13310 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13311 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13312 $as_echo_n "(cached) " >&6
13313 else
13314 ac_check_lib_save_LIBS=$LIBS
13315 LIBS="-lXp $LIBS"
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13323 /* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 char XpCreateContext ();
13331 main ()
13333 return XpCreateContext ();
13335 return 0;
13337 _ACEOF
13338 rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (ac_try="$ac_link"
13340 case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343 esac
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346 (eval "$ac_link") 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest$ac_exeext && {
13356 test "$cross_compiling" = yes ||
13357 $as_test_x conftest$ac_exeext
13358 }; then
13359 ac_cv_lib_Xp_XpCreateContext=yes
13360 else
13361 $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 ac_cv_lib_Xp_XpCreateContext=no
13367 rm -rf conftest.dSYM
13368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13373 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13374 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
13375 HAVE_LIBXP=yes
13378 if test ${HAVE_LIBXP} = yes; then
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_LIBXP 1
13382 _ACEOF
13385 else
13386 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13387 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13388 if test "${emacs_cv_lesstif+set}" = set; then
13389 $as_echo_n "(cached) " >&6
13390 else
13391 # We put this in CFLAGS temporarily to precede other -I options
13392 # that might be in CFLAGS temporarily.
13393 # We put this in CPPFLAGS where it precedes the other -I options.
13394 OLD_CPPFLAGS=$CPPFLAGS
13395 OLD_CFLAGS=$CFLAGS
13396 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13397 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13398 cat >conftest.$ac_ext <<_ACEOF
13399 /* confdefs.h. */
13400 _ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13406 main ()
13408 int x = 5;
13410 return 0;
13412 _ACEOF
13413 rm -f conftest.$ac_objext
13414 if { (ac_try="$ac_compile"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418 esac
13419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13420 $as_echo "$ac_try_echo") >&5
13421 (eval "$ac_compile") 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } && {
13428 test -z "$ac_c_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest.$ac_objext; then
13431 emacs_cv_lesstif=yes
13432 else
13433 $as_echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 emacs_cv_lesstif=no
13439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13442 $as_echo "$emacs_cv_lesstif" >&6; }
13443 if test $emacs_cv_lesstif = yes; then
13444 # Make sure this -I option remains in CPPFLAGS after it is set
13445 # back to REAL_CPPFLAGS.
13446 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13447 # have those other -I options anyway. Ultimately, having this
13448 # directory ultimately in CPPFLAGS will be enough.
13449 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13450 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13451 else
13452 CFLAGS=$OLD_CFLAGS
13453 CPPFLAGS=$OLD_CPPFLAGS
13460 USE_TOOLKIT_SCROLL_BARS=no
13461 if test "${with_toolkit_scroll_bars}" != "no"; then
13462 if test "${USE_X_TOOLKIT}" != "none"; then
13463 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13464 cat >>confdefs.h <<\_ACEOF
13465 #define USE_TOOLKIT_SCROLL_BARS 1
13466 _ACEOF
13468 HAVE_XAW3D=no
13469 USE_TOOLKIT_SCROLL_BARS=yes
13470 elif test "${HAVE_XAW3D}" = "yes"; then
13471 cat >>confdefs.h <<\_ACEOF
13472 #define USE_TOOLKIT_SCROLL_BARS 1
13473 _ACEOF
13475 USE_TOOLKIT_SCROLL_BARS=yes
13477 elif test "${HAVE_GTK}" = "yes"; then
13478 cat >>confdefs.h <<\_ACEOF
13479 #define USE_TOOLKIT_SCROLL_BARS 1
13480 _ACEOF
13482 USE_TOOLKIT_SCROLL_BARS=yes
13483 elif test "${HAVE_NS}" = "yes"; then
13484 cat >>confdefs.h <<\_ACEOF
13485 #define USE_TOOLKIT_SCROLL_BARS 1
13486 _ACEOF
13488 USE_TOOLKIT_SCROLL_BARS=yes
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 #include <X11/Xlib.h>
13500 #include <X11/Xresource.h>
13502 main ()
13504 XIMProc callback;
13506 return 0;
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514 esac
13515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13516 $as_echo "$ac_try_echo") >&5
13517 (eval "$ac_compile") 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } && {
13524 test -z "$ac_c_werror_flag" ||
13525 test ! -s conftest.err
13526 } && test -s conftest.$ac_objext; then
13527 HAVE_XIM=yes
13529 cat >>confdefs.h <<\_ACEOF
13530 #define HAVE_XIM 1
13531 _ACEOF
13533 else
13534 $as_echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 HAVE_XIM=no
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 if test "${with_xim}" != "no"; then
13545 cat >>confdefs.h <<\_ACEOF
13546 #define USE_XIM 1
13547 _ACEOF
13552 if test "${HAVE_XIM}" != "no"; then
13553 late_CFLAGS=$CFLAGS
13554 if test "$GCC" = yes; then
13555 CFLAGS="$CFLAGS --pedantic-errors"
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13564 #include <X11/Xlib.h>
13565 #include <X11/Xresource.h>
13567 main ()
13569 Display *display;
13570 XrmDatabase db;
13571 char *res_name;
13572 char *res_class;
13573 XIMProc callback;
13574 XPointer *client_data;
13575 #ifndef __GNUC__
13576 /* If we're not using GCC, it's probably not XFree86, and this is
13577 probably right, but we can't use something like --pedantic-errors. */
13578 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13579 char*, XIMProc, XPointer*);
13580 #endif
13581 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13582 client_data);
13584 return 0;
13586 _ACEOF
13587 rm -f conftest.$ac_objext
13588 if { (ac_try="$ac_compile"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592 esac
13593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13594 $as_echo "$ac_try_echo") >&5
13595 (eval "$ac_compile") 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } && {
13602 test -z "$ac_c_werror_flag" ||
13603 test ! -s conftest.err
13604 } && test -s conftest.$ac_objext; then
13605 emacs_cv_arg6_star=yes
13606 else
13607 $as_echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 if test "$emacs_cv_arg6_star" = yes; then
13616 cat >>confdefs.h <<\_ACEOF
13617 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13618 _ACEOF
13620 else
13621 cat >>confdefs.h <<\_ACEOF
13622 #define XRegisterIMInstantiateCallback_arg6 XPointer
13623 _ACEOF
13626 CFLAGS=$late_CFLAGS
13629 ### Start of font-backend (under any platform) section.
13630 # (nothing here yet -- this is a placeholder)
13631 ### End of font-backend (under any platform) section.
13633 ### Start of font-backend (under X11) section.
13634 if test "${HAVE_X11}" = "yes"; then
13636 succeeded=no
13638 # Extract the first word of "pkg-config", so it can be a program name with args.
13639 set dummy pkg-config; ac_word=$2
13640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13641 $as_echo_n "checking for $ac_word... " >&6; }
13642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13643 $as_echo_n "(cached) " >&6
13644 else
13645 case $PKG_CONFIG in
13646 [\\/]* | ?:[\\/]*)
13647 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13657 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13661 done
13662 done
13663 IFS=$as_save_IFS
13665 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13667 esac
13669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13670 if test -n "$PKG_CONFIG"; then
13671 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13672 $as_echo "$PKG_CONFIG" >&6; }
13673 else
13674 { $as_echo "$as_me:$LINENO: result: no" >&5
13675 $as_echo "no" >&6; }
13680 if test "$PKG_CONFIG" = "no" ; then
13681 HAVE_FC=no
13682 else
13683 PKG_CONFIG_MIN_VERSION=0.9.0
13684 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13685 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13686 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13688 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13689 { $as_echo "$as_me:$LINENO: result: yes" >&5
13690 $as_echo "yes" >&6; }
13691 succeeded=yes
13693 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13694 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13695 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13696 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13697 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13699 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13700 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13701 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13702 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13703 $as_echo "$FONTCONFIG_LIBS" >&6; }
13704 else
13705 { $as_echo "$as_me:$LINENO: result: no" >&5
13706 $as_echo "no" >&6; }
13707 FONTCONFIG_CFLAGS=""
13708 FONTCONFIG_LIBS=""
13709 ## If we have a custom action on failure, don't print errors, but
13710 ## do set a variable so people can do so.
13711 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13717 else
13718 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13719 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13723 if test $succeeded = yes; then
13724 HAVE_FC=yes
13725 else
13726 HAVE_FC=no
13730 ## Use -lXft if available, unless `--with-xft=no'.
13731 HAVE_XFT=maybe
13732 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13733 with_xft="no";
13735 if test "x${with_xft}" != "xno"; then
13738 succeeded=no
13740 # Extract the first word of "pkg-config", so it can be a program name with args.
13741 set dummy pkg-config; ac_word=$2
13742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13743 $as_echo_n "checking for $ac_word... " >&6; }
13744 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13745 $as_echo_n "(cached) " >&6
13746 else
13747 case $PKG_CONFIG in
13748 [\\/]* | ?:[\\/]*)
13749 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753 for as_dir in $PATH
13755 IFS=$as_save_IFS
13756 test -z "$as_dir" && as_dir=.
13757 for ac_exec_ext in '' $ac_executable_extensions; do
13758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13759 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 break 2
13763 done
13764 done
13765 IFS=$as_save_IFS
13767 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13769 esac
13771 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13772 if test -n "$PKG_CONFIG"; then
13773 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13774 $as_echo "$PKG_CONFIG" >&6; }
13775 else
13776 { $as_echo "$as_me:$LINENO: result: no" >&5
13777 $as_echo "no" >&6; }
13782 if test "$PKG_CONFIG" = "no" ; then
13783 HAVE_XFT=no
13784 else
13785 PKG_CONFIG_MIN_VERSION=0.9.0
13786 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13787 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13788 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13790 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13791 { $as_echo "$as_me:$LINENO: result: yes" >&5
13792 $as_echo "yes" >&6; }
13793 succeeded=yes
13795 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13796 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13797 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13798 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13799 $as_echo "$XFT_CFLAGS" >&6; }
13801 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13802 $as_echo_n "checking XFT_LIBS... " >&6; }
13803 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13804 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13805 $as_echo "$XFT_LIBS" >&6; }
13806 else
13807 { $as_echo "$as_me:$LINENO: result: no" >&5
13808 $as_echo "no" >&6; }
13809 XFT_CFLAGS=""
13810 XFT_LIBS=""
13811 ## If we have a custom action on failure, don't print errors, but
13812 ## do set a variable so people can do so.
13813 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13819 else
13820 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13821 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13825 if test $succeeded = yes; then
13827 else
13828 HAVE_XFT=no
13831 ## Because xftfont.c uses XRenderQueryExtension, we also
13832 ## need to link to -lXrender.
13833 HAVE_XRENDER=no
13834 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13835 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13836 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13837 $as_echo_n "(cached) " >&6
13838 else
13839 ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-lXrender $LIBS"
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h. */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13851 #ifdef __cplusplus
13852 extern "C"
13853 #endif
13854 char XRenderQueryExtension ();
13856 main ()
13858 return XRenderQueryExtension ();
13860 return 0;
13862 _ACEOF
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (ac_try="$ac_link"
13865 case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868 esac
13869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13870 $as_echo "$ac_try_echo") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext && {
13881 test "$cross_compiling" = yes ||
13882 $as_test_x conftest$ac_exeext
13883 }; then
13884 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13885 else
13886 $as_echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_cv_lib_Xrender_XRenderQueryExtension=no
13892 rm -rf conftest.dSYM
13893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13894 conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13898 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13899 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
13900 HAVE_XRENDER=yes
13903 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13904 OLD_CPPFLAGS="$CPPFLAGS"
13905 OLD_CFLAGS="$CFLAGS"
13906 OLD_LIBS="$LIBS"
13907 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13908 CFLAGS="$CFLAGS $XFT_CFLAGS"
13909 XFT_LIBS="-lXrender $XFT_LIBS"
13910 LIBS="$XFT_LIBS $LIBS"
13911 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13912 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13913 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13914 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13915 $as_echo_n "(cached) " >&6
13917 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13918 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13919 else
13920 # Is the header compilable?
13921 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13922 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <X11/Xft/Xft.h>
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937 esac
13938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13939 $as_echo "$ac_try_echo") >&5
13940 (eval "$ac_compile") 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest.$ac_objext; then
13950 ac_header_compiler=yes
13951 else
13952 $as_echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_header_compiler=no
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13960 $as_echo "$ac_header_compiler" >&6; }
13962 # Is the header present?
13963 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13964 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13965 cat >conftest.$ac_ext <<_ACEOF
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 #include <X11/Xft/Xft.h>
13972 _ACEOF
13973 if { (ac_try="$ac_cpp conftest.$ac_ext"
13974 case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977 esac
13978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13979 $as_echo "$ac_try_echo") >&5
13980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } >/dev/null && {
13987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 }; then
13990 ac_header_preproc=yes
13991 else
13992 $as_echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 ac_header_preproc=no
13998 rm -f conftest.err conftest.$ac_ext
13999 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14000 $as_echo "$ac_header_preproc" >&6; }
14002 # So? What about this header?
14003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14004 yes:no: )
14005 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14006 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14007 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14008 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14009 ac_header_preproc=yes
14011 no:yes:* )
14012 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14013 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14014 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14015 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14016 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14017 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14018 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14019 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14020 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14021 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14022 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14023 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14026 esac
14027 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14028 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14029 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14030 $as_echo_n "(cached) " >&6
14031 else
14032 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14035 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14038 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14039 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14040 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14041 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14042 $as_echo_n "(cached) " >&6
14043 else
14044 ac_check_lib_save_LIBS=$LIBS
14045 LIBS="-lXft $XFT_LIBS $LIBS"
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14053 /* Override any GCC internal prototype to avoid an error.
14054 Use char because int might match the return type of a GCC
14055 builtin and then its argument prototype would still apply. */
14056 #ifdef __cplusplus
14057 extern "C"
14058 #endif
14059 char XftFontOpen ();
14061 main ()
14063 return XftFontOpen ();
14065 return 0;
14067 _ACEOF
14068 rm -f conftest.$ac_objext conftest$ac_exeext
14069 if { (ac_try="$ac_link"
14070 case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073 esac
14074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14075 $as_echo "$ac_try_echo") >&5
14076 (eval "$ac_link") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest$ac_exeext && {
14086 test "$cross_compiling" = yes ||
14087 $as_test_x conftest$ac_exeext
14088 }; then
14089 ac_cv_lib_Xft_XftFontOpen=yes
14090 else
14091 $as_echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_cv_lib_Xft_XftFontOpen=no
14097 rm -rf conftest.dSYM
14098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14103 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14104 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then
14105 HAVE_XFT=yes
14112 if test "${HAVE_XFT}" = "yes"; then
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_XFT 1
14116 _ACEOF
14119 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14120 else
14121 CPPFLAGS="$OLD_CPPFLAGS"
14122 CFLAGS="$OLD_CFLAGS"
14123 LIBS="$OLD_LIBS"
14124 fi # "${HAVE_XFT}" = "yes"
14125 fi # "$HAVE_XFT" != no
14126 fi # "x${with_xft}" != "xno"
14128 if test "$HAVE_XFT" != "yes"; then
14129 HAVE_XFT=no
14133 HAVE_FREETYPE=no
14134 ## We used to allow building with FreeType and without Xft.
14135 ## However, the ftx font backend driver is not in good shape.
14136 if test "${HAVE_XFT}" = "yes"; then
14137 HAVE_FREETYPE=yes
14138 FONTCONFIG_CFLAGS=
14139 FONTCONFIG_LIBS=
14142 HAVE_LIBOTF=no
14143 if test "${HAVE_FREETYPE}" = "yes"; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_FREETYPE 1
14147 _ACEOF
14149 if test "${with_libotf}" != "no"; then
14151 succeeded=no
14153 # Extract the first word of "pkg-config", so it can be a program name with args.
14154 set dummy pkg-config; ac_word=$2
14155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14156 $as_echo_n "checking for $ac_word... " >&6; }
14157 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14158 $as_echo_n "(cached) " >&6
14159 else
14160 case $PKG_CONFIG in
14161 [\\/]* | ?:[\\/]*)
14162 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14166 for as_dir in $PATH
14168 IFS=$as_save_IFS
14169 test -z "$as_dir" && as_dir=.
14170 for ac_exec_ext in '' $ac_executable_extensions; do
14171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14172 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14174 break 2
14176 done
14177 done
14178 IFS=$as_save_IFS
14180 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14182 esac
14184 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14185 if test -n "$PKG_CONFIG"; then
14186 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14187 $as_echo "$PKG_CONFIG" >&6; }
14188 else
14189 { $as_echo "$as_me:$LINENO: result: no" >&5
14190 $as_echo "no" >&6; }
14195 if test "$PKG_CONFIG" = "no" ; then
14196 HAVE_LIBOTF=no
14197 else
14198 PKG_CONFIG_MIN_VERSION=0.9.0
14199 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14200 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14201 $as_echo_n "checking for libotf... " >&6; }
14203 if $PKG_CONFIG --exists "libotf" 2>&5; then
14204 { $as_echo "$as_me:$LINENO: result: yes" >&5
14205 $as_echo "yes" >&6; }
14206 succeeded=yes
14208 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14209 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14210 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14211 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14212 $as_echo "$LIBOTF_CFLAGS" >&6; }
14214 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14215 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14216 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14217 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14218 $as_echo "$LIBOTF_LIBS" >&6; }
14219 else
14220 { $as_echo "$as_me:$LINENO: result: no" >&5
14221 $as_echo "no" >&6; }
14222 LIBOTF_CFLAGS=""
14223 LIBOTF_LIBS=""
14224 ## If we have a custom action on failure, don't print errors, but
14225 ## do set a variable so people can do so.
14226 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14232 else
14233 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14234 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14238 if test $succeeded = yes; then
14239 HAVE_LIBOTF=yes
14240 else
14241 HAVE_LIBOTF=no
14244 if test "$HAVE_LIBOTF" = "yes"; then
14246 cat >>confdefs.h <<\_ACEOF
14247 #define HAVE_LIBOTF 1
14248 _ACEOF
14250 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14251 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14252 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14253 $as_echo_n "(cached) " >&6
14254 else
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-lotf $LIBS"
14257 cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h. */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14264 /* Override any GCC internal prototype to avoid an error.
14265 Use char because int might match the return type of a GCC
14266 builtin and then its argument prototype would still apply. */
14267 #ifdef __cplusplus
14268 extern "C"
14269 #endif
14270 char OTF_get_variation_glyphs ();
14272 main ()
14274 return OTF_get_variation_glyphs ();
14276 return 0;
14278 _ACEOF
14279 rm -f conftest.$ac_objext conftest$ac_exeext
14280 if { (ac_try="$ac_link"
14281 case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284 esac
14285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14286 $as_echo "$ac_try_echo") >&5
14287 (eval "$ac_link") 2>conftest.er1
14288 ac_status=$?
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
14292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
14296 } && test -s conftest$ac_exeext && {
14297 test "$cross_compiling" = yes ||
14298 $as_test_x conftest$ac_exeext
14299 }; then
14300 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14301 else
14302 $as_echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14308 rm -rf conftest.dSYM
14309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14310 conftest$ac_exeext conftest.$ac_ext
14311 LIBS=$ac_check_lib_save_LIBS
14313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14314 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14315 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14316 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14317 else
14318 HAVE_OTF_GET_VARIATION_GLYPHS=no
14321 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14325 _ACEOF
14332 HAVE_M17N_FLT=no
14333 if test "${HAVE_LIBOTF}" = yes; then
14334 if test "${with_m17n_flt}" != "no"; then
14336 succeeded=no
14338 # Extract the first word of "pkg-config", so it can be a program name with args.
14339 set dummy pkg-config; ac_word=$2
14340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14343 $as_echo_n "(cached) " >&6
14344 else
14345 case $PKG_CONFIG in
14346 [\\/]* | ?:[\\/]*)
14347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 break 2
14361 done
14362 done
14363 IFS=$as_save_IFS
14365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14367 esac
14369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14370 if test -n "$PKG_CONFIG"; then
14371 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14372 $as_echo "$PKG_CONFIG" >&6; }
14373 else
14374 { $as_echo "$as_me:$LINENO: result: no" >&5
14375 $as_echo "no" >&6; }
14380 if test "$PKG_CONFIG" = "no" ; then
14381 HAVE_M17N_FLT=no
14382 else
14383 PKG_CONFIG_MIN_VERSION=0.9.0
14384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14385 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14386 $as_echo_n "checking for m17n-flt... " >&6; }
14388 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14389 { $as_echo "$as_me:$LINENO: result: yes" >&5
14390 $as_echo "yes" >&6; }
14391 succeeded=yes
14393 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14394 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14395 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14396 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14397 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14399 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14400 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14401 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14402 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14403 $as_echo "$M17N_FLT_LIBS" >&6; }
14404 else
14405 { $as_echo "$as_me:$LINENO: result: no" >&5
14406 $as_echo "no" >&6; }
14407 M17N_FLT_CFLAGS=""
14408 M17N_FLT_LIBS=""
14409 ## If we have a custom action on failure, don't print errors, but
14410 ## do set a variable so people can do so.
14411 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14417 else
14418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14423 if test $succeeded = yes; then
14424 HAVE_M17N_FLT=yes
14425 else
14426 HAVE_M17N_FLT=no
14429 if test "$HAVE_M17N_FLT" = "yes"; then
14431 cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_M17N_FLT 1
14433 _ACEOF
14438 else
14439 HAVE_XFT=no
14440 HAVE_FREETYPE=no
14441 HAVE_LIBOTF=no
14442 HAVE_M17N_FLT=no
14444 ### End of font-backend (under X11) section.
14455 ### Use -lXpm if available, unless `--with-xpm=no'.
14456 HAVE_XPM=no
14457 LIBXPM=
14458 if test "${HAVE_X11}" = "yes"; then
14459 if test "${with_xpm}" != "no"; then
14460 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14461 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14462 $as_echo_n "checking for X11/xpm.h... " >&6; }
14463 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14464 $as_echo_n "(cached) " >&6
14466 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14467 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14468 else
14469 # Is the header compilable?
14470 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14471 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 #include <X11/xpm.h>
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486 esac
14487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14488 $as_echo "$ac_try_echo") >&5
14489 (eval "$ac_compile") 2>conftest.er1
14490 ac_status=$?
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
14494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } && {
14496 test -z "$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 } && test -s conftest.$ac_objext; then
14499 ac_header_compiler=yes
14500 else
14501 $as_echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_header_compiler=no
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 $as_echo "$ac_header_compiler" >&6; }
14511 # Is the header present?
14512 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14513 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <X11/xpm.h>
14521 _ACEOF
14522 if { (ac_try="$ac_cpp conftest.$ac_ext"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526 esac
14527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14528 $as_echo "$ac_try_echo") >&5
14529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } >/dev/null && {
14536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14537 test ! -s conftest.err
14538 }; then
14539 ac_header_preproc=yes
14540 else
14541 $as_echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 ac_header_preproc=no
14547 rm -f conftest.err conftest.$ac_ext
14548 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14549 $as_echo "$ac_header_preproc" >&6; }
14551 # So? What about this header?
14552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14553 yes:no: )
14554 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14555 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14556 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14557 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14558 ac_header_preproc=yes
14560 no:yes:* )
14561 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14562 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14564 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14565 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14566 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14568 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14569 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14570 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14571 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14572 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14575 esac
14576 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14577 $as_echo_n "checking for X11/xpm.h... " >&6; }
14578 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14579 $as_echo_n "(cached) " >&6
14580 else
14581 ac_cv_header_X11_xpm_h=$ac_header_preproc
14583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14584 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14587 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
14588 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14589 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14590 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14592 else
14593 ac_check_lib_save_LIBS=$LIBS
14594 LIBS="-lXpm -lX11 $LIBS"
14595 cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h. */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14602 /* Override any GCC internal prototype to avoid an error.
14603 Use char because int might match the return type of a GCC
14604 builtin and then its argument prototype would still apply. */
14605 #ifdef __cplusplus
14606 extern "C"
14607 #endif
14608 char XpmReadFileToPixmap ();
14610 main ()
14612 return XpmReadFileToPixmap ();
14614 return 0;
14616 _ACEOF
14617 rm -f conftest.$ac_objext conftest$ac_exeext
14618 if { (ac_try="$ac_link"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622 esac
14623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14624 $as_echo "$ac_try_echo") >&5
14625 (eval "$ac_link") 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } && {
14632 test -z "$ac_c_werror_flag" ||
14633 test ! -s conftest.err
14634 } && test -s conftest$ac_exeext && {
14635 test "$cross_compiling" = yes ||
14636 $as_test_x conftest$ac_exeext
14637 }; then
14638 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14639 else
14640 $as_echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14646 rm -rf conftest.dSYM
14647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14648 conftest$ac_exeext conftest.$ac_ext
14649 LIBS=$ac_check_lib_save_LIBS
14651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14652 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14653 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
14654 HAVE_XPM=yes
14660 if test "${HAVE_XPM}" = "yes"; then
14661 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14662 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include "X11/xpm.h"
14670 #ifndef XpmReturnAllocPixels
14671 no_return_alloc_pixels
14672 #endif
14674 _ACEOF
14675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14676 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14677 HAVE_XPM=no
14678 else
14679 HAVE_XPM=yes
14681 rm -f conftest*
14684 if test "${HAVE_XPM}" = "yes"; then
14685 { $as_echo "$as_me:$LINENO: result: yes" >&5
14686 $as_echo "yes" >&6; }
14687 else
14688 { $as_echo "$as_me:$LINENO: result: no" >&5
14689 $as_echo "no" >&6; }
14694 if test "${HAVE_XPM}" = "yes"; then
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_XPM 1
14698 _ACEOF
14700 LIBXPM=-lXpm
14705 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14706 HAVE_JPEG=no
14707 LIBJPEG=
14708 if test "${HAVE_X11}" = "yes"; then
14709 if test "${with_jpeg}" != "no"; then
14710 if test "${ac_cv_header_jerror_h+set}" = set; then
14711 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14712 $as_echo_n "checking for jerror.h... " >&6; }
14713 if test "${ac_cv_header_jerror_h+set}" = set; then
14714 $as_echo_n "(cached) " >&6
14716 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14717 $as_echo "$ac_cv_header_jerror_h" >&6; }
14718 else
14719 # Is the header compilable?
14720 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14721 $as_echo_n "checking jerror.h usability... " >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h. */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 $ac_includes_default
14729 #include <jerror.h>
14730 _ACEOF
14731 rm -f conftest.$ac_objext
14732 if { (ac_try="$ac_compile"
14733 case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14736 esac
14737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14738 $as_echo "$ac_try_echo") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest.$ac_objext; then
14749 ac_header_compiler=yes
14750 else
14751 $as_echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 ac_header_compiler=no
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 $as_echo "$ac_header_compiler" >&6; }
14761 # Is the header present?
14762 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14763 $as_echo_n "checking jerror.h presence... " >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h. */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <jerror.h>
14771 _ACEOF
14772 if { (ac_try="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776 esac
14777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14778 $as_echo "$ac_try_echo") >&5
14779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14780 ac_status=$?
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
14784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } >/dev/null && {
14786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14788 }; then
14789 ac_header_preproc=yes
14790 else
14791 $as_echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_header_preproc=no
14797 rm -f conftest.err conftest.$ac_ext
14798 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799 $as_echo "$ac_header_preproc" >&6; }
14801 # So? What about this header?
14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14803 yes:no: )
14804 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14805 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14807 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14808 ac_header_preproc=yes
14810 no:yes:* )
14811 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14812 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14813 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14814 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14815 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14816 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14817 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14818 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14819 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14820 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14821 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14822 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14825 esac
14826 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14827 $as_echo_n "checking for jerror.h... " >&6; }
14828 if test "${ac_cv_header_jerror_h+set}" = set; then
14829 $as_echo_n "(cached) " >&6
14830 else
14831 ac_cv_header_jerror_h=$ac_header_preproc
14833 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14834 $as_echo "$ac_cv_header_jerror_h" >&6; }
14837 if test "x$ac_cv_header_jerror_h" = x""yes; then
14838 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14839 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14840 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14841 $as_echo_n "(cached) " >&6
14842 else
14843 ac_check_lib_save_LIBS=$LIBS
14844 LIBS="-ljpeg $LIBS"
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 /* Override any GCC internal prototype to avoid an error.
14853 Use char because int might match the return type of a GCC
14854 builtin and then its argument prototype would still apply. */
14855 #ifdef __cplusplus
14856 extern "C"
14857 #endif
14858 char jpeg_destroy_compress ();
14860 main ()
14862 return jpeg_destroy_compress ();
14864 return 0;
14866 _ACEOF
14867 rm -f conftest.$ac_objext conftest$ac_exeext
14868 if { (ac_try="$ac_link"
14869 case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872 esac
14873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874 $as_echo "$ac_try_echo") >&5
14875 (eval "$ac_link") 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest$ac_exeext && {
14885 test "$cross_compiling" = yes ||
14886 $as_test_x conftest$ac_exeext
14887 }; then
14888 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14889 else
14890 $as_echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14896 rm -rf conftest.dSYM
14897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14898 conftest$ac_exeext conftest.$ac_ext
14899 LIBS=$ac_check_lib_save_LIBS
14901 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14902 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14903 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
14904 HAVE_JPEG=yes
14913 if test "${HAVE_JPEG}" = "yes"; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_JPEG 1
14916 _ACEOF
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 #include <jpeglib.h>
14925 version=JPEG_LIB_VERSION
14927 _ACEOF
14928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14929 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_JPEG 1
14932 _ACEOF
14934 else
14935 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14936 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14937 HAVE_JPEG=no
14939 rm -f conftest*
14942 if test "${HAVE_JPEG}" = "yes"; then
14943 LIBJPEG=-ljpeg
14948 ### Use -lpng if available, unless `--with-png=no'.
14949 HAVE_PNG=no
14950 LIBPNG=
14951 if test "${HAVE_X11}" = "yes"; then
14952 if test "${with_png}" != "no"; then
14953 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14954 # in /usr/include/libpng.
14957 for ac_header in png.h libpng/png.h
14959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14962 $as_echo_n "checking for $ac_header... " >&6; }
14963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964 $as_echo_n "(cached) " >&6
14966 ac_res=`eval 'as_val=${'$as_ac_Header'}
14967 $as_echo "$as_val"'`
14968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14969 $as_echo "$ac_res" >&6; }
14970 else
14971 # Is the header compilable?
14972 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14973 $as_echo_n "checking $ac_header usability... " >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 $ac_includes_default
14981 #include <$ac_header>
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988 esac
14989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14990 $as_echo "$ac_try_echo") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest.$ac_objext; then
15001 ac_header_compiler=yes
15002 else
15003 $as_echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_compiler=no
15009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15011 $as_echo "$ac_header_compiler" >&6; }
15013 # Is the header present?
15014 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15015 $as_echo_n "checking $ac_header presence... " >&6; }
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 #include <$ac_header>
15023 _ACEOF
15024 if { (ac_try="$ac_cpp conftest.$ac_ext"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028 esac
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null && {
15038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 }; then
15041 ac_header_preproc=yes
15042 else
15043 $as_echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_header_preproc=no
15049 rm -f conftest.err conftest.$ac_ext
15050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 $as_echo "$ac_header_preproc" >&6; }
15053 # So? What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15055 yes:no: )
15056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15060 ac_header_preproc=yes
15062 no:yes:* )
15063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15066 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15070 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15077 esac
15078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15079 $as_echo_n "checking for $ac_header... " >&6; }
15080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15081 $as_echo_n "(cached) " >&6
15082 else
15083 eval "$as_ac_Header=\$ac_header_preproc"
15085 ac_res=`eval 'as_val=${'$as_ac_Header'}
15086 $as_echo "$as_val"'`
15087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15088 $as_echo "$ac_res" >&6; }
15091 as_val=`eval 'as_val=${'$as_ac_Header'}
15092 $as_echo "$as_val"'`
15093 if test "x$as_val" = x""yes; then
15094 cat >>confdefs.h <<_ACEOF
15095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096 _ACEOF
15100 done
15102 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15103 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15104 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15105 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15107 else
15108 ac_check_lib_save_LIBS=$LIBS
15109 LIBS="-lpng -lz -lm $LIBS"
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15117 /* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
15120 #ifdef __cplusplus
15121 extern "C"
15122 #endif
15123 char png_get_channels ();
15125 main ()
15127 return png_get_channels ();
15129 return 0;
15131 _ACEOF
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15139 $as_echo "$ac_try_echo") >&5
15140 (eval "$ac_link") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest$ac_exeext && {
15150 test "$cross_compiling" = yes ||
15151 $as_test_x conftest$ac_exeext
15152 }; then
15153 ac_cv_lib_png_png_get_channels=yes
15154 else
15155 $as_echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 ac_cv_lib_png_png_get_channels=no
15161 rm -rf conftest.dSYM
15162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163 conftest$ac_exeext conftest.$ac_ext
15164 LIBS=$ac_check_lib_save_LIBS
15166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15167 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15168 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15169 HAVE_PNG=yes
15175 if test "${HAVE_PNG}" = "yes"; then
15177 cat >>confdefs.h <<\_ACEOF
15178 #define HAVE_PNG 1
15179 _ACEOF
15181 LIBPNG="-lpng -lz -lm"
15186 ### Use -ltiff if available, unless `--with-tiff=no'.
15187 HAVE_TIFF=no
15188 LIBTIFF=
15189 if test "${HAVE_X11}" = "yes"; then
15190 if test "${with_tiff}" != "no"; then
15191 if test "${ac_cv_header_tiffio_h+set}" = set; then
15192 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15193 $as_echo_n "checking for tiffio.h... " >&6; }
15194 if test "${ac_cv_header_tiffio_h+set}" = set; then
15195 $as_echo_n "(cached) " >&6
15197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15198 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15199 else
15200 # Is the header compilable?
15201 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15202 $as_echo_n "checking tiffio.h usability... " >&6; }
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 $ac_includes_default
15210 #include <tiffio.h>
15211 _ACEOF
15212 rm -f conftest.$ac_objext
15213 if { (ac_try="$ac_compile"
15214 case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217 esac
15218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15219 $as_echo "$ac_try_echo") >&5
15220 (eval "$ac_compile") 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_c_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest.$ac_objext; then
15230 ac_header_compiler=yes
15231 else
15232 $as_echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_header_compiler=no
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15240 $as_echo "$ac_header_compiler" >&6; }
15242 # Is the header present?
15243 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15244 $as_echo_n "checking tiffio.h presence... " >&6; }
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 #include <tiffio.h>
15252 _ACEOF
15253 if { (ac_try="$ac_cpp conftest.$ac_ext"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257 esac
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } >/dev/null && {
15267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 }; then
15270 ac_header_preproc=yes
15271 else
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_header_preproc=no
15278 rm -f conftest.err conftest.$ac_ext
15279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15280 $as_echo "$ac_header_preproc" >&6; }
15282 # So? What about this header?
15283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15284 yes:no: )
15285 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15286 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15287 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15288 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15289 ac_header_preproc=yes
15291 no:yes:* )
15292 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15293 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15294 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15295 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15296 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15297 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15298 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15299 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15300 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15301 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15303 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15306 esac
15307 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15308 $as_echo_n "checking for tiffio.h... " >&6; }
15309 if test "${ac_cv_header_tiffio_h+set}" = set; then
15310 $as_echo_n "(cached) " >&6
15311 else
15312 ac_cv_header_tiffio_h=$ac_header_preproc
15314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15315 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15318 if test "x$ac_cv_header_tiffio_h" = x""yes; then
15319 tifflibs="-lz -lm"
15320 # At least one tiff package requires the jpeg library.
15321 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15322 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15323 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15324 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15325 $as_echo_n "(cached) " >&6
15326 else
15327 ac_check_lib_save_LIBS=$LIBS
15328 LIBS="-ltiff $tifflibs $LIBS"
15329 cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h. */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char TIFFGetVersion ();
15344 main ()
15346 return TIFFGetVersion ();
15348 return 0;
15350 _ACEOF
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_link") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext && {
15369 test "$cross_compiling" = yes ||
15370 $as_test_x conftest$ac_exeext
15371 }; then
15372 ac_cv_lib_tiff_TIFFGetVersion=yes
15373 else
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_lib_tiff_TIFFGetVersion=no
15380 rm -rf conftest.dSYM
15381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15382 conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15386 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15387 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15388 HAVE_TIFF=yes
15396 if test "${HAVE_TIFF}" = "yes"; then
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_TIFF 1
15400 _ACEOF
15402 LIBTIFF=-ltiff
15407 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15408 HAVE_GIF=no
15409 LIBGIF=
15410 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15411 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15412 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15413 $as_echo_n "checking for gif_lib.h... " >&6; }
15414 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15415 $as_echo_n "(cached) " >&6
15417 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15418 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15419 else
15420 # Is the header compilable?
15421 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15422 $as_echo_n "checking gif_lib.h usability... " >&6; }
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h. */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 $ac_includes_default
15430 #include <gif_lib.h>
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (ac_try="$ac_compile"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15439 $as_echo "$ac_try_echo") >&5
15440 (eval "$ac_compile") 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest.$ac_objext; then
15450 ac_header_compiler=yes
15451 else
15452 $as_echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_header_compiler=no
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460 $as_echo "$ac_header_compiler" >&6; }
15462 # Is the header present?
15463 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15464 $as_echo_n "checking gif_lib.h presence... " >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h. */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <gif_lib.h>
15472 _ACEOF
15473 if { (ac_try="$ac_cpp conftest.$ac_ext"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477 esac
15478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15479 $as_echo "$ac_try_echo") >&5
15480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } >/dev/null && {
15487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 }; then
15490 ac_header_preproc=yes
15491 else
15492 $as_echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 ac_header_preproc=no
15498 rm -f conftest.err conftest.$ac_ext
15499 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15500 $as_echo "$ac_header_preproc" >&6; }
15502 # So? What about this header?
15503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15504 yes:no: )
15505 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15506 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15507 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15508 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15509 ac_header_preproc=yes
15511 no:yes:* )
15512 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15513 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15514 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15515 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15517 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15518 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15519 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15520 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15521 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15522 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15523 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15526 esac
15527 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15528 $as_echo_n "checking for gif_lib.h... " >&6; }
15529 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15530 $as_echo_n "(cached) " >&6
15531 else
15532 ac_cv_header_gif_lib_h=$ac_header_preproc
15534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15535 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15538 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
15539 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15540 # Earlier versions can crash Emacs.
15541 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15542 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15543 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15544 $as_echo_n "(cached) " >&6
15545 else
15546 ac_check_lib_save_LIBS=$LIBS
15547 LIBS="-lgif $LIBS"
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h. */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any GCC internal prototype to avoid an error.
15556 Use char because int might match the return type of a GCC
15557 builtin and then its argument prototype would still apply. */
15558 #ifdef __cplusplus
15559 extern "C"
15560 #endif
15561 char EGifPutExtensionLast ();
15563 main ()
15565 return EGifPutExtensionLast ();
15567 return 0;
15569 _ACEOF
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575 esac
15576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15577 $as_echo "$ac_try_echo") >&5
15578 (eval "$ac_link") 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && {
15585 test -z "$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 } && test -s conftest$ac_exeext && {
15588 test "$cross_compiling" = yes ||
15589 $as_test_x conftest$ac_exeext
15590 }; then
15591 ac_cv_lib_gif_EGifPutExtensionLast=yes
15592 else
15593 $as_echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_cv_lib_gif_EGifPutExtensionLast=no
15599 rm -rf conftest.dSYM
15600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15601 conftest$ac_exeext conftest.$ac_ext
15602 LIBS=$ac_check_lib_save_LIBS
15604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15605 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15606 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
15607 HAVE_GIF=yes
15608 else
15609 HAVE_GIF=maybe
15616 if test "$HAVE_GIF" = yes; then
15617 LIBGIF=-lgif
15618 elif test "$HAVE_GIF" = maybe; then
15619 # If gif_lib.h but no libgif, try libungif.
15620 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15621 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15622 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15623 $as_echo_n "(cached) " >&6
15624 else
15625 ac_check_lib_save_LIBS=$LIBS
15626 LIBS="-lungif $LIBS"
15627 cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h. */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15634 /* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15637 #ifdef __cplusplus
15638 extern "C"
15639 #endif
15640 char EGifPutExtensionLast ();
15642 main ()
15644 return EGifPutExtensionLast ();
15646 return 0;
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (ac_try="$ac_link"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15654 esac
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657 (eval "$ac_link") 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest$ac_exeext && {
15667 test "$cross_compiling" = yes ||
15668 $as_test_x conftest$ac_exeext
15669 }; then
15670 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15671 else
15672 $as_echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_lib_ungif_EGifPutExtensionLast=no
15678 rm -rf conftest.dSYM
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15681 LIBS=$ac_check_lib_save_LIBS
15683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15684 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15685 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
15686 HAVE_GIF=yes
15687 else
15688 HAVE_GIF=no
15691 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15694 if test "${HAVE_GIF}" = "yes"; then
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_GIF 1
15698 _ACEOF
15704 if test "${HAVE_X11}" = "yes"; then
15705 MISSING=""
15706 WITH_NO=""
15707 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15708 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15709 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15710 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15711 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15712 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15713 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15714 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15715 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15716 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15718 if test "X${MISSING}" != X; then
15719 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15720 $MISSING
15721 Maybe some development libraries/packages are missing?
15722 If you don't want to link with them give
15723 $WITH_NO
15724 as options to configure" >&5
15725 $as_echo "$as_me: error: The following required libraries were not found:
15726 $MISSING
15727 Maybe some development libraries/packages are missing?
15728 If you don't want to link with them give
15729 $WITH_NO
15730 as options to configure" >&2;}
15731 { (exit 1); exit 1; }; }
15735 ### Use -lgpm if available, unless `--with-gpm=no'.
15736 HAVE_GPM=no
15737 LIBGPM=
15738 if test "${with_gpm}" != "no"; then
15739 if test "${ac_cv_header_gpm_h+set}" = set; then
15740 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15741 $as_echo_n "checking for gpm.h... " >&6; }
15742 if test "${ac_cv_header_gpm_h+set}" = set; then
15743 $as_echo_n "(cached) " >&6
15745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15746 $as_echo "$ac_cv_header_gpm_h" >&6; }
15747 else
15748 # Is the header compilable?
15749 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15750 $as_echo_n "checking gpm.h usability... " >&6; }
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 $ac_includes_default
15758 #include <gpm.h>
15759 _ACEOF
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.$ac_objext; then
15778 ac_header_compiler=yes
15779 else
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_header_compiler=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 $as_echo "$ac_header_compiler" >&6; }
15790 # Is the header present?
15791 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15792 $as_echo_n "checking gpm.h presence... " >&6; }
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <gpm.h>
15800 _ACEOF
15801 if { (ac_try="$ac_cpp conftest.$ac_ext"
15802 case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805 esac
15806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15807 $as_echo "$ac_try_echo") >&5
15808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } >/dev/null && {
15815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15816 test ! -s conftest.err
15817 }; then
15818 ac_header_preproc=yes
15819 else
15820 $as_echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ac_header_preproc=no
15826 rm -f conftest.err conftest.$ac_ext
15827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15828 $as_echo "$ac_header_preproc" >&6; }
15830 # So? What about this header?
15831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15832 yes:no: )
15833 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15834 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15835 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15836 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15837 ac_header_preproc=yes
15839 no:yes:* )
15840 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15841 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15842 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15843 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15845 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15847 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15848 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15849 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15850 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15851 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15854 esac
15855 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15856 $as_echo_n "checking for gpm.h... " >&6; }
15857 if test "${ac_cv_header_gpm_h+set}" = set; then
15858 $as_echo_n "(cached) " >&6
15859 else
15860 ac_cv_header_gpm_h=$ac_header_preproc
15862 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15863 $as_echo "$ac_cv_header_gpm_h" >&6; }
15866 if test "x$ac_cv_header_gpm_h" = x""yes; then
15867 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15868 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15869 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15870 $as_echo_n "(cached) " >&6
15871 else
15872 ac_check_lib_save_LIBS=$LIBS
15873 LIBS="-lgpm $LIBS"
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 /* Override any GCC internal prototype to avoid an error.
15882 Use char because int might match the return type of a GCC
15883 builtin and then its argument prototype would still apply. */
15884 #ifdef __cplusplus
15885 extern "C"
15886 #endif
15887 char Gpm_Open ();
15889 main ()
15891 return Gpm_Open ();
15893 return 0;
15895 _ACEOF
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (ac_try="$ac_link"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901 esac
15902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15903 $as_echo "$ac_try_echo") >&5
15904 (eval "$ac_link") 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } && {
15911 test -z "$ac_c_werror_flag" ||
15912 test ! -s conftest.err
15913 } && test -s conftest$ac_exeext && {
15914 test "$cross_compiling" = yes ||
15915 $as_test_x conftest$ac_exeext
15916 }; then
15917 ac_cv_lib_gpm_Gpm_Open=yes
15918 else
15919 $as_echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_cv_lib_gpm_Gpm_Open=no
15925 rm -rf conftest.dSYM
15926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS=$ac_check_lib_save_LIBS
15930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15931 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15932 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
15933 HAVE_GPM=yes
15940 if test "${HAVE_GPM}" = "yes"; then
15942 cat >>confdefs.h <<\_ACEOF
15943 #define HAVE_GPM 1
15944 _ACEOF
15946 LIBGPM=-lgpm
15951 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15952 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15953 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15954 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15955 $as_echo_n "(cached) " >&6
15957 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15958 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15959 else
15960 # Is the header compilable?
15961 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15962 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15963 cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h. */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 $ac_includes_default
15970 #include <malloc/malloc.h>
15971 _ACEOF
15972 rm -f conftest.$ac_objext
15973 if { (ac_try="$ac_compile"
15974 case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15977 esac
15978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15979 $as_echo "$ac_try_echo") >&5
15980 (eval "$ac_compile") 2>conftest.er1
15981 ac_status=$?
15982 grep -v '^ *+' conftest.er1 >conftest.err
15983 rm -f conftest.er1
15984 cat conftest.err >&5
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && {
15987 test -z "$ac_c_werror_flag" ||
15988 test ! -s conftest.err
15989 } && test -s conftest.$ac_objext; then
15990 ac_header_compiler=yes
15991 else
15992 $as_echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 ac_header_compiler=no
15998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16000 $as_echo "$ac_header_compiler" >&6; }
16002 # Is the header present?
16003 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16004 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <malloc/malloc.h>
16012 _ACEOF
16013 if { (ac_try="$ac_cpp conftest.$ac_ext"
16014 case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16017 esac
16018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16019 $as_echo "$ac_try_echo") >&5
16020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev/null && {
16027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16028 test ! -s conftest.err
16029 }; then
16030 ac_header_preproc=yes
16031 else
16032 $as_echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_header_preproc=no
16038 rm -f conftest.err conftest.$ac_ext
16039 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16040 $as_echo "$ac_header_preproc" >&6; }
16042 # So? What about this header?
16043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16044 yes:no: )
16045 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16046 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16047 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16048 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16049 ac_header_preproc=yes
16051 no:yes:* )
16052 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16053 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16054 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16055 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16056 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16057 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16058 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16059 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16060 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16061 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16062 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16063 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16066 esac
16067 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16068 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16069 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16070 $as_echo_n "(cached) " >&6
16071 else
16072 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16075 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16078 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_MALLOC_MALLOC_H 1
16082 _ACEOF
16088 ### Use NeXTstep API to implement GUI.
16089 if test "${HAVE_NS}" = "yes"; then
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_NS 1
16093 _ACEOF
16095 if test "${NS_IMPL_COCOA}" = "yes"; then
16097 cat >>confdefs.h <<\_ACEOF
16098 #define NS_IMPL_COCOA 1
16099 _ACEOF
16101 GNU_OBJC_CFLAGS=
16103 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16105 cat >>confdefs.h <<\_ACEOF
16106 #define NS_IMPL_GNUSTEP 1
16107 _ACEOF
16109 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16111 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16113 cat >>confdefs.h <<\_ACEOF
16114 #define NS_HAVE_NSINTEGER 1
16115 _ACEOF
16118 # We also have mouse menus.
16119 HAVE_MENUS=yes
16120 OTHER_FILES=ns-app
16124 ### Use session management (-lSM -lICE) if available
16125 HAVE_X_SM=no
16126 if test "${HAVE_X11}" = "yes"; then
16127 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16128 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16129 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16130 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16131 $as_echo_n "(cached) " >&6
16133 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16134 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16135 else
16136 # Is the header compilable?
16137 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16138 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h. */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 $ac_includes_default
16146 #include <X11/SM/SMlib.h>
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (ac_try="$ac_compile"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16153 esac
16154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest.$ac_objext; then
16166 ac_header_compiler=yes
16167 else
16168 $as_echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_header_compiler=no
16174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16176 $as_echo "$ac_header_compiler" >&6; }
16178 # Is the header present?
16179 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16180 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 #include <X11/SM/SMlib.h>
16188 _ACEOF
16189 if { (ac_try="$ac_cpp conftest.$ac_ext"
16190 case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193 esac
16194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16195 $as_echo "$ac_try_echo") >&5
16196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } >/dev/null && {
16203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16204 test ! -s conftest.err
16205 }; then
16206 ac_header_preproc=yes
16207 else
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_header_preproc=no
16214 rm -f conftest.err conftest.$ac_ext
16215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16216 $as_echo "$ac_header_preproc" >&6; }
16218 # So? What about this header?
16219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16220 yes:no: )
16221 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16222 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16223 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16224 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16225 ac_header_preproc=yes
16227 no:yes:* )
16228 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16229 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16230 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16231 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16232 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16233 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16234 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16235 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16236 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16237 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16238 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16239 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16242 esac
16243 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16244 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16245 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16246 $as_echo_n "(cached) " >&6
16247 else
16248 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16251 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16254 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16255 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16256 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16257 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16258 $as_echo_n "(cached) " >&6
16259 else
16260 ac_check_lib_save_LIBS=$LIBS
16261 LIBS="-lSM -lICE $LIBS"
16262 cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h. */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16269 /* Override any GCC internal prototype to avoid an error.
16270 Use char because int might match the return type of a GCC
16271 builtin and then its argument prototype would still apply. */
16272 #ifdef __cplusplus
16273 extern "C"
16274 #endif
16275 char SmcOpenConnection ();
16277 main ()
16279 return SmcOpenConnection ();
16281 return 0;
16283 _ACEOF
16284 rm -f conftest.$ac_objext conftest$ac_exeext
16285 if { (ac_try="$ac_link"
16286 case "(($ac_try" in
16287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16288 *) ac_try_echo=$ac_try;;
16289 esac
16290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16291 $as_echo "$ac_try_echo") >&5
16292 (eval "$ac_link") 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } && {
16299 test -z "$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16301 } && test -s conftest$ac_exeext && {
16302 test "$cross_compiling" = yes ||
16303 $as_test_x conftest$ac_exeext
16304 }; then
16305 ac_cv_lib_SM_SmcOpenConnection=yes
16306 else
16307 $as_echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_cv_lib_SM_SmcOpenConnection=no
16313 rm -rf conftest.dSYM
16314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16315 conftest$ac_exeext conftest.$ac_ext
16316 LIBS=$ac_check_lib_save_LIBS
16318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16319 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16320 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
16321 HAVE_X_SM=yes
16328 if test "${HAVE_X_SM}" = "yes"; then
16330 cat >>confdefs.h <<\_ACEOF
16331 #define HAVE_X_SM 1
16332 _ACEOF
16334 case "$LIBS" in
16335 *-lSM*) ;;
16336 *) LIBS="-lSM -lICE $LIBS" ;;
16337 esac
16341 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16342 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16343 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16344 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16345 $as_echo_n "(cached) " >&6
16346 else
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h. */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 #include <netdb.h>
16355 main ()
16357 return h_errno;
16359 return 0;
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16367 esac
16368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16369 $as_echo "$ac_try_echo") >&5
16370 (eval "$ac_link") 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest$ac_exeext && {
16380 test "$cross_compiling" = yes ||
16381 $as_test_x conftest$ac_exeext
16382 }; then
16383 emacs_cv_netdb_declares_h_errno=yes
16384 else
16385 $as_echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 emacs_cv_netdb_declares_h_errno=no
16391 rm -rf conftest.dSYM
16392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16393 conftest$ac_exeext conftest.$ac_ext
16395 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16396 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16397 if test $emacs_cv_netdb_declares_h_errno = yes; then
16399 cat >>confdefs.h <<\_ACEOF
16400 #define HAVE_H_ERRNO 1
16401 _ACEOF
16405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16406 # for constant arguments. Useless!
16407 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16408 $as_echo_n "checking for working alloca.h... " >&6; }
16409 if test "${ac_cv_working_alloca_h+set}" = set; then
16410 $as_echo_n "(cached) " >&6
16411 else
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <alloca.h>
16420 main ()
16422 char *p = (char *) alloca (2 * sizeof (int));
16423 if (p) return 0;
16425 return 0;
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433 esac
16434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16435 $as_echo "$ac_try_echo") >&5
16436 (eval "$ac_link") 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && {
16443 test -z "$ac_c_werror_flag" ||
16444 test ! -s conftest.err
16445 } && test -s conftest$ac_exeext && {
16446 test "$cross_compiling" = yes ||
16447 $as_test_x conftest$ac_exeext
16448 }; then
16449 ac_cv_working_alloca_h=yes
16450 else
16451 $as_echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 ac_cv_working_alloca_h=no
16457 rm -rf conftest.dSYM
16458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16459 conftest$ac_exeext conftest.$ac_ext
16461 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16462 $as_echo "$ac_cv_working_alloca_h" >&6; }
16463 if test $ac_cv_working_alloca_h = yes; then
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE_ALLOCA_H 1
16467 _ACEOF
16471 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16472 $as_echo_n "checking for alloca... " >&6; }
16473 if test "${ac_cv_func_alloca_works+set}" = set; then
16474 $as_echo_n "(cached) " >&6
16475 else
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 #ifdef __GNUC__
16483 # define alloca __builtin_alloca
16484 #else
16485 # ifdef _MSC_VER
16486 # include <malloc.h>
16487 # define alloca _alloca
16488 # else
16489 # ifdef HAVE_ALLOCA_H
16490 # include <alloca.h>
16491 # else
16492 # ifdef _AIX
16493 #pragma alloca
16494 # else
16495 # ifndef alloca /* predefined by HP cc +Olibcalls */
16496 char *alloca ();
16497 # endif
16498 # endif
16499 # endif
16500 # endif
16501 #endif
16504 main ()
16506 char *p = (char *) alloca (1);
16507 if (p) return 0;
16509 return 0;
16511 _ACEOF
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (ac_try="$ac_link"
16514 case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517 esac
16518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16519 $as_echo "$ac_try_echo") >&5
16520 (eval "$ac_link") 2>conftest.er1
16521 ac_status=$?
16522 grep -v '^ *+' conftest.er1 >conftest.err
16523 rm -f conftest.er1
16524 cat conftest.err >&5
16525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } && {
16527 test -z "$ac_c_werror_flag" ||
16528 test ! -s conftest.err
16529 } && test -s conftest$ac_exeext && {
16530 test "$cross_compiling" = yes ||
16531 $as_test_x conftest$ac_exeext
16532 }; then
16533 ac_cv_func_alloca_works=yes
16534 else
16535 $as_echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_func_alloca_works=no
16541 rm -rf conftest.dSYM
16542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16543 conftest$ac_exeext conftest.$ac_ext
16545 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16546 $as_echo "$ac_cv_func_alloca_works" >&6; }
16548 if test $ac_cv_func_alloca_works = yes; then
16550 cat >>confdefs.h <<\_ACEOF
16551 #define HAVE_ALLOCA 1
16552 _ACEOF
16554 else
16555 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16556 # that cause trouble. Some versions do not even contain alloca or
16557 # contain a buggy version. If you still want to use their alloca,
16558 # use ar to extract alloca.o from them instead of compiling alloca.c.
16560 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16562 cat >>confdefs.h <<\_ACEOF
16563 #define C_ALLOCA 1
16564 _ACEOF
16567 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16568 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16569 if test "${ac_cv_os_cray+set}" = set; then
16570 $as_echo_n "(cached) " >&6
16571 else
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 #if defined CRAY && ! defined CRAY2
16579 webecray
16580 #else
16581 wenotbecray
16582 #endif
16584 _ACEOF
16585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16586 $EGREP "webecray" >/dev/null 2>&1; then
16587 ac_cv_os_cray=yes
16588 else
16589 ac_cv_os_cray=no
16591 rm -f conftest*
16594 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16595 $as_echo "$ac_cv_os_cray" >&6; }
16596 if test $ac_cv_os_cray = yes; then
16597 for ac_func in _getb67 GETB67 getb67; do
16598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16600 $as_echo_n "checking for $ac_func... " >&6; }
16601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16602 $as_echo_n "(cached) " >&6
16603 else
16604 cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h. */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16612 #define $ac_func innocuous_$ac_func
16614 /* System header to define __stub macros and hopefully few prototypes,
16615 which can conflict with char $ac_func (); below.
16616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16617 <limits.h> exists even on freestanding compilers. */
16619 #ifdef __STDC__
16620 # include <limits.h>
16621 #else
16622 # include <assert.h>
16623 #endif
16625 #undef $ac_func
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16630 #ifdef __cplusplus
16631 extern "C"
16632 #endif
16633 char $ac_func ();
16634 /* The GNU C library defines this for functions which it implements
16635 to always fail with ENOSYS. Some functions are actually named
16636 something starting with __ and the normal name is an alias. */
16637 #if defined __stub_$ac_func || defined __stub___$ac_func
16638 choke me
16639 #endif
16642 main ()
16644 return $ac_func ();
16646 return 0;
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654 esac
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_link") 2>conftest.er1
16658 ac_status=$?
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && {
16664 test -z "$ac_c_werror_flag" ||
16665 test ! -s conftest.err
16666 } && test -s conftest$ac_exeext && {
16667 test "$cross_compiling" = yes ||
16668 $as_test_x conftest$ac_exeext
16669 }; then
16670 eval "$as_ac_var=yes"
16671 else
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 eval "$as_ac_var=no"
16678 rm -rf conftest.dSYM
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16680 conftest$ac_exeext conftest.$ac_ext
16682 ac_res=`eval 'as_val=${'$as_ac_var'}
16683 $as_echo "$as_val"'`
16684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16685 $as_echo "$ac_res" >&6; }
16686 as_val=`eval 'as_val=${'$as_ac_var'}
16687 $as_echo "$as_val"'`
16688 if test "x$as_val" = x""yes; then
16690 cat >>confdefs.h <<_ACEOF
16691 #define CRAY_STACKSEG_END $ac_func
16692 _ACEOF
16694 break
16697 done
16700 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16701 $as_echo_n "checking stack direction for C alloca... " >&6; }
16702 if test "${ac_cv_c_stack_direction+set}" = set; then
16703 $as_echo_n "(cached) " >&6
16704 else
16705 if test "$cross_compiling" = yes; then
16706 ac_cv_c_stack_direction=0
16707 else
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 $ac_includes_default
16716 find_stack_direction ()
16718 static char *addr = 0;
16719 auto char dummy;
16720 if (addr == 0)
16722 addr = &dummy;
16723 return find_stack_direction ();
16725 else
16726 return (&dummy > addr) ? 1 : -1;
16730 main ()
16732 return find_stack_direction () < 0;
16734 _ACEOF
16735 rm -f conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740 esac
16741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16742 $as_echo "$ac_try_echo") >&5
16743 (eval "$ac_link") 2>&5
16744 ac_status=$?
16745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_try") 2>&5
16754 ac_status=$?
16755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_c_stack_direction=1
16758 else
16759 $as_echo "$as_me: program exited with status $ac_status" >&5
16760 $as_echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ( exit $ac_status )
16764 ac_cv_c_stack_direction=-1
16766 rm -rf conftest.dSYM
16767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16772 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16773 $as_echo "$ac_cv_c_stack_direction" >&6; }
16775 cat >>confdefs.h <<_ACEOF
16776 #define STACK_DIRECTION $ac_cv_c_stack_direction
16777 _ACEOF
16783 if test x"$ac_cv_func_alloca_works" != xyes; then
16784 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16785 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16786 { (exit 1); exit 1; }; }
16789 # fmod, logb, and frexp are found in -lm on most systems.
16790 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16792 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16793 $as_echo_n "checking for sqrt in -lm... " >&6; }
16794 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16795 $as_echo_n "(cached) " >&6
16796 else
16797 ac_check_lib_save_LIBS=$LIBS
16798 LIBS="-lm $LIBS"
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h. */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16809 #ifdef __cplusplus
16810 extern "C"
16811 #endif
16812 char sqrt ();
16814 main ()
16816 return sqrt ();
16818 return 0;
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16828 $as_echo "$ac_try_echo") >&5
16829 (eval "$ac_link") 2>conftest.er1
16830 ac_status=$?
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
16834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } && {
16836 test -z "$ac_c_werror_flag" ||
16837 test ! -s conftest.err
16838 } && test -s conftest$ac_exeext && {
16839 test "$cross_compiling" = yes ||
16840 $as_test_x conftest$ac_exeext
16841 }; then
16842 ac_cv_lib_m_sqrt=yes
16843 else
16844 $as_echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 ac_cv_lib_m_sqrt=no
16850 rm -rf conftest.dSYM
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16856 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16857 if test "x$ac_cv_lib_m_sqrt" = x""yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_LIBM 1
16860 _ACEOF
16862 LIBS="-lm $LIBS"
16867 # Check for mail-locking functions in a "mail" library. Probably this should
16868 # have the same check as for liblockfile below.
16869 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16870 $as_echo_n "checking for maillock in -lmail... " >&6; }
16871 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16872 $as_echo_n "(cached) " >&6
16873 else
16874 ac_check_lib_save_LIBS=$LIBS
16875 LIBS="-lmail $LIBS"
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 char maillock ();
16891 main ()
16893 return maillock ();
16895 return 0;
16897 _ACEOF
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (ac_try="$ac_link"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903 esac
16904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16905 $as_echo "$ac_try_echo") >&5
16906 (eval "$ac_link") 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest$ac_exeext && {
16916 test "$cross_compiling" = yes ||
16917 $as_test_x conftest$ac_exeext
16918 }; then
16919 ac_cv_lib_mail_maillock=yes
16920 else
16921 $as_echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 ac_cv_lib_mail_maillock=no
16927 rm -rf conftest.dSYM
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16933 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16934 if test "x$ac_cv_lib_mail_maillock" = x""yes; then
16935 have_mail=yes
16936 else
16937 have_mail=no
16940 if test $have_mail = yes; then
16941 LIBS_MAIL=-lmail
16942 LIBS="$LIBS_MAIL $LIBS"
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE_LIBMAIL 1
16946 _ACEOF
16948 else
16949 LIBS_MAIL=
16951 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16952 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16953 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16954 $as_echo_n "(cached) " >&6
16955 else
16956 ac_check_lib_save_LIBS=$LIBS
16957 LIBS="-llockfile $LIBS"
16958 cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h. */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16965 /* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16968 #ifdef __cplusplus
16969 extern "C"
16970 #endif
16971 char maillock ();
16973 main ()
16975 return maillock ();
16977 return 0;
16979 _ACEOF
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985 esac
16986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16987 $as_echo "$ac_try_echo") >&5
16988 (eval "$ac_link") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest$ac_exeext && {
16998 test "$cross_compiling" = yes ||
16999 $as_test_x conftest$ac_exeext
17000 }; then
17001 ac_cv_lib_lockfile_maillock=yes
17002 else
17003 $as_echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_cv_lib_lockfile_maillock=no
17009 rm -rf conftest.dSYM
17010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17011 conftest$ac_exeext conftest.$ac_ext
17012 LIBS=$ac_check_lib_save_LIBS
17014 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17015 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17016 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then
17017 have_lockfile=yes
17018 else
17019 have_lockfile=no
17022 if test $have_lockfile = yes; then
17023 LIBS_MAIL=-llockfile
17024 LIBS="$LIBS_MAIL $LIBS"
17026 cat >>confdefs.h <<\_ACEOF
17027 #define HAVE_LIBLOCKFILE 1
17028 _ACEOF
17030 else
17031 # If we have the shared liblockfile, assume we must use it for mail
17032 # locking (e.g. Debian). If we couldn't link against liblockfile
17033 # (no liblockfile.a installed), ensure that we don't need to.
17034 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17035 set dummy liblockfile.so; ac_word=$2
17036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17037 $as_echo_n "checking for $ac_word... " >&6; }
17038 if test "${ac_cv_prog_liblockfile+set}" = set; then
17039 $as_echo_n "(cached) " >&6
17040 else
17041 if test -n "$liblockfile"; then
17042 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17043 else
17044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17045 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17046 for as_dir in $as_dummy
17048 IFS=$as_save_IFS
17049 test -z "$as_dir" && as_dir=.
17050 for ac_exec_ext in '' $ac_executable_extensions; do
17051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17052 ac_cv_prog_liblockfile="yes"
17053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17054 break 2
17056 done
17057 done
17058 IFS=$as_save_IFS
17060 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17063 liblockfile=$ac_cv_prog_liblockfile
17064 if test -n "$liblockfile"; then
17065 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17066 $as_echo "$liblockfile" >&6; }
17067 else
17068 { $as_echo "$as_me:$LINENO: result: no" >&5
17069 $as_echo "no" >&6; }
17073 if test $ac_cv_prog_liblockfile = yes; then
17074 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17075 This probably means that movemail could lose mail.
17076 There may be a \`development' package to install containing liblockfile." >&5
17077 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17078 This probably means that movemail could lose mail.
17079 There may be a \`development' package to install containing liblockfile." >&2;}
17080 { (exit 1); exit 1; }; }
17084 for ac_func in touchlock
17086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17087 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17088 $as_echo_n "checking for $ac_func... " >&6; }
17089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17090 $as_echo_n "(cached) " >&6
17091 else
17092 cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h. */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17100 #define $ac_func innocuous_$ac_func
17102 /* System header to define __stub macros and hopefully few prototypes,
17103 which can conflict with char $ac_func (); below.
17104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17105 <limits.h> exists even on freestanding compilers. */
17107 #ifdef __STDC__
17108 # include <limits.h>
17109 #else
17110 # include <assert.h>
17111 #endif
17113 #undef $ac_func
17115 /* Override any GCC internal prototype to avoid an error.
17116 Use char because int might match the return type of a GCC
17117 builtin and then its argument prototype would still apply. */
17118 #ifdef __cplusplus
17119 extern "C"
17120 #endif
17121 char $ac_func ();
17122 /* The GNU C library defines this for functions which it implements
17123 to always fail with ENOSYS. Some functions are actually named
17124 something starting with __ and the normal name is an alias. */
17125 #if defined __stub_$ac_func || defined __stub___$ac_func
17126 choke me
17127 #endif
17130 main ()
17132 return $ac_func ();
17134 return 0;
17136 _ACEOF
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (ac_try="$ac_link"
17139 case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17142 esac
17143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17144 $as_echo "$ac_try_echo") >&5
17145 (eval "$ac_link") 2>conftest.er1
17146 ac_status=$?
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
17150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } && {
17152 test -z "$ac_c_werror_flag" ||
17153 test ! -s conftest.err
17154 } && test -s conftest$ac_exeext && {
17155 test "$cross_compiling" = yes ||
17156 $as_test_x conftest$ac_exeext
17157 }; then
17158 eval "$as_ac_var=yes"
17159 else
17160 $as_echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 eval "$as_ac_var=no"
17166 rm -rf conftest.dSYM
17167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17168 conftest$ac_exeext conftest.$ac_ext
17170 ac_res=`eval 'as_val=${'$as_ac_var'}
17171 $as_echo "$as_val"'`
17172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17173 $as_echo "$ac_res" >&6; }
17174 as_val=`eval 'as_val=${'$as_ac_var'}
17175 $as_echo "$as_val"'`
17176 if test "x$as_val" = x""yes; then
17177 cat >>confdefs.h <<_ACEOF
17178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17179 _ACEOF
17182 done
17185 for ac_header in maillock.h
17187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17190 $as_echo_n "checking for $ac_header... " >&6; }
17191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17192 $as_echo_n "(cached) " >&6
17194 ac_res=`eval 'as_val=${'$as_ac_Header'}
17195 $as_echo "$as_val"'`
17196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17197 $as_echo "$ac_res" >&6; }
17198 else
17199 # Is the header compilable?
17200 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17201 $as_echo_n "checking $ac_header usability... " >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 $ac_includes_default
17209 #include <$ac_header>
17210 _ACEOF
17211 rm -f conftest.$ac_objext
17212 if { (ac_try="$ac_compile"
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_compile") 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); } && {
17226 test -z "$ac_c_werror_flag" ||
17227 test ! -s conftest.err
17228 } && test -s conftest.$ac_objext; then
17229 ac_header_compiler=yes
17230 else
17231 $as_echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17234 ac_header_compiler=no
17237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17238 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17239 $as_echo "$ac_header_compiler" >&6; }
17241 # Is the header present?
17242 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17243 $as_echo_n "checking $ac_header presence... " >&6; }
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 #include <$ac_header>
17251 _ACEOF
17252 if { (ac_try="$ac_cpp conftest.$ac_ext"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256 esac
17257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } >/dev/null && {
17266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 }; then
17269 ac_header_preproc=yes
17270 else
17271 $as_echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_header_preproc=no
17277 rm -f conftest.err conftest.$ac_ext
17278 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17279 $as_echo "$ac_header_preproc" >&6; }
17281 # So? What about this header?
17282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17283 yes:no: )
17284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17285 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17288 ac_header_preproc=yes
17290 no:yes:* )
17291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17292 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17294 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17296 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17298 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17302 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17305 esac
17306 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17307 $as_echo_n "checking for $ac_header... " >&6; }
17308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17309 $as_echo_n "(cached) " >&6
17310 else
17311 eval "$as_ac_Header=\$ac_header_preproc"
17313 ac_res=`eval 'as_val=${'$as_ac_Header'}
17314 $as_echo "$as_val"'`
17315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17316 $as_echo "$ac_res" >&6; }
17319 as_val=`eval 'as_val=${'$as_ac_Header'}
17320 $as_echo "$as_val"'`
17321 if test "x$as_val" = x""yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17324 _ACEOF
17328 done
17403 for ac_func in gethostname getdomainname dup2 \
17404 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17405 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17406 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17407 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17408 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17409 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17410 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17411 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17412 cfmakeraw cfsetspeed
17414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 $as_echo_n "checking for $ac_func... " >&6; }
17417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17418 $as_echo_n "(cached) " >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428 #define $ac_func innocuous_$ac_func
17430 /* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17435 #ifdef __STDC__
17436 # include <limits.h>
17437 #else
17438 # include <assert.h>
17439 #endif
17441 #undef $ac_func
17443 /* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 char $ac_func ();
17450 /* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453 #if defined __stub_$ac_func || defined __stub___$ac_func
17454 choke me
17455 #endif
17458 main ()
17460 return $ac_func ();
17462 return 0;
17464 _ACEOF
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (ac_try="$ac_link"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470 esac
17471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17472 $as_echo "$ac_try_echo") >&5
17473 (eval "$ac_link") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest$ac_exeext && {
17483 test "$cross_compiling" = yes ||
17484 $as_test_x conftest$ac_exeext
17485 }; then
17486 eval "$as_ac_var=yes"
17487 else
17488 $as_echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17491 eval "$as_ac_var=no"
17494 rm -rf conftest.dSYM
17495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17496 conftest$ac_exeext conftest.$ac_ext
17498 ac_res=`eval 'as_val=${'$as_ac_var'}
17499 $as_echo "$as_val"'`
17500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17501 $as_echo "$ac_res" >&6; }
17502 as_val=`eval 'as_val=${'$as_ac_var'}
17503 $as_echo "$as_val"'`
17504 if test "x$as_val" = x""yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17507 _ACEOF
17510 done
17514 for ac_header in sys/un.h
17516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17518 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17519 $as_echo_n "checking for $ac_header... " >&6; }
17520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17521 $as_echo_n "(cached) " >&6
17523 ac_res=`eval 'as_val=${'$as_ac_Header'}
17524 $as_echo "$as_val"'`
17525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17526 $as_echo "$ac_res" >&6; }
17527 else
17528 # Is the header compilable?
17529 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17530 $as_echo_n "checking $ac_header usability... " >&6; }
17531 cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h. */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 $ac_includes_default
17538 #include <$ac_header>
17539 _ACEOF
17540 rm -f conftest.$ac_objext
17541 if { (ac_try="$ac_compile"
17542 case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545 esac
17546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17547 $as_echo "$ac_try_echo") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } && {
17555 test -z "$ac_c_werror_flag" ||
17556 test ! -s conftest.err
17557 } && test -s conftest.$ac_objext; then
17558 ac_header_compiler=yes
17559 else
17560 $as_echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_header_compiler=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17568 $as_echo "$ac_header_compiler" >&6; }
17570 # Is the header present?
17571 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17572 $as_echo_n "checking $ac_header presence... " >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 #include <$ac_header>
17580 _ACEOF
17581 if { (ac_try="$ac_cpp conftest.$ac_ext"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585 esac
17586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17587 $as_echo "$ac_try_echo") >&5
17588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } >/dev/null && {
17595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17596 test ! -s conftest.err
17597 }; then
17598 ac_header_preproc=yes
17599 else
17600 $as_echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_header_preproc=no
17606 rm -f conftest.err conftest.$ac_ext
17607 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17608 $as_echo "$ac_header_preproc" >&6; }
17610 # So? What about this header?
17611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17612 yes:no: )
17613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17614 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17617 ac_header_preproc=yes
17619 no:yes:* )
17620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17621 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17623 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17625 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17627 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17631 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17634 esac
17635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17636 $as_echo_n "checking for $ac_header... " >&6; }
17637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17638 $as_echo_n "(cached) " >&6
17639 else
17640 eval "$as_ac_Header=\$ac_header_preproc"
17642 ac_res=`eval 'as_val=${'$as_ac_Header'}
17643 $as_echo "$as_val"'`
17644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17645 $as_echo "$ac_res" >&6; }
17648 as_val=`eval 'as_val=${'$as_ac_Header'}
17649 $as_echo "$as_val"'`
17650 if test "x$as_val" = x""yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17653 _ACEOF
17657 done
17664 for ac_header in $ac_header_list
17666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17669 $as_echo_n "checking for $ac_header... " >&6; }
17670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17671 $as_echo_n "(cached) " >&6
17673 ac_res=`eval 'as_val=${'$as_ac_Header'}
17674 $as_echo "$as_val"'`
17675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17676 $as_echo "$ac_res" >&6; }
17677 else
17678 # Is the header compilable?
17679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17680 $as_echo_n "checking $ac_header usability... " >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $ac_includes_default
17688 #include <$ac_header>
17689 _ACEOF
17690 rm -f conftest.$ac_objext
17691 if { (ac_try="$ac_compile"
17692 case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695 esac
17696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17697 $as_echo "$ac_try_echo") >&5
17698 (eval "$ac_compile") 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } && {
17705 test -z "$ac_c_werror_flag" ||
17706 test ! -s conftest.err
17707 } && test -s conftest.$ac_objext; then
17708 ac_header_compiler=yes
17709 else
17710 $as_echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 ac_header_compiler=no
17716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17718 $as_echo "$ac_header_compiler" >&6; }
17720 # Is the header present?
17721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17722 $as_echo_n "checking $ac_header presence... " >&6; }
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <$ac_header>
17730 _ACEOF
17731 if { (ac_try="$ac_cpp conftest.$ac_ext"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735 esac
17736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17737 $as_echo "$ac_try_echo") >&5
17738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } >/dev/null && {
17745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 }; then
17748 ac_header_preproc=yes
17749 else
17750 $as_echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 ac_header_preproc=no
17756 rm -f conftest.err conftest.$ac_ext
17757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17758 $as_echo "$ac_header_preproc" >&6; }
17760 # So? What about this header?
17761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17762 yes:no: )
17763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17767 ac_header_preproc=yes
17769 no:yes:* )
17770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17784 esac
17785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 $as_echo_n "checking for $ac_header... " >&6; }
17787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17788 $as_echo_n "(cached) " >&6
17789 else
17790 eval "$as_ac_Header=\$ac_header_preproc"
17792 ac_res=`eval 'as_val=${'$as_ac_Header'}
17793 $as_echo "$as_val"'`
17794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17795 $as_echo "$ac_res" >&6; }
17798 as_val=`eval 'as_val=${'$as_ac_Header'}
17799 $as_echo "$as_val"'`
17800 if test "x$as_val" = x""yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17803 _ACEOF
17807 done
17817 for ac_func in $ac_func_list
17819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17820 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17821 $as_echo_n "checking for $ac_func... " >&6; }
17822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17823 $as_echo_n "(cached) " >&6
17824 else
17825 cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h. */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17833 #define $ac_func innocuous_$ac_func
17835 /* System header to define __stub macros and hopefully few prototypes,
17836 which can conflict with char $ac_func (); below.
17837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17838 <limits.h> exists even on freestanding compilers. */
17840 #ifdef __STDC__
17841 # include <limits.h>
17842 #else
17843 # include <assert.h>
17844 #endif
17846 #undef $ac_func
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 char $ac_func ();
17855 /* The GNU C library defines this for functions which it implements
17856 to always fail with ENOSYS. Some functions are actually named
17857 something starting with __ and the normal name is an alias. */
17858 #if defined __stub_$ac_func || defined __stub___$ac_func
17859 choke me
17860 #endif
17863 main ()
17865 return $ac_func ();
17867 return 0;
17869 _ACEOF
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (ac_try="$ac_link"
17872 case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17875 esac
17876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17877 $as_echo "$ac_try_echo") >&5
17878 (eval "$ac_link") 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } && {
17885 test -z "$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17887 } && test -s conftest$ac_exeext && {
17888 test "$cross_compiling" = yes ||
17889 $as_test_x conftest$ac_exeext
17890 }; then
17891 eval "$as_ac_var=yes"
17892 else
17893 $as_echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 eval "$as_ac_var=no"
17899 rm -rf conftest.dSYM
17900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17901 conftest$ac_exeext conftest.$ac_ext
17903 ac_res=`eval 'as_val=${'$as_ac_var'}
17904 $as_echo "$as_val"'`
17905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17906 $as_echo "$ac_res" >&6; }
17907 as_val=`eval 'as_val=${'$as_ac_var'}
17908 $as_echo "$as_val"'`
17909 if test "x$as_val" = x""yes; then
17910 cat >>confdefs.h <<_ACEOF
17911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17912 _ACEOF
17915 done
17933 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17934 $as_echo_n "checking for working mktime... " >&6; }
17935 if test "${ac_cv_func_working_mktime+set}" = set; then
17936 $as_echo_n "(cached) " >&6
17937 else
17938 if test "$cross_compiling" = yes; then
17939 ac_cv_func_working_mktime=no
17940 else
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h. */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Test program from Paul Eggert and Tony Leneis. */
17948 #ifdef TIME_WITH_SYS_TIME
17949 # include <sys/time.h>
17950 # include <time.h>
17951 #else
17952 # ifdef HAVE_SYS_TIME_H
17953 # include <sys/time.h>
17954 # else
17955 # include <time.h>
17956 # endif
17957 #endif
17959 #include <limits.h>
17960 #include <stdlib.h>
17962 #ifdef HAVE_UNISTD_H
17963 # include <unistd.h>
17964 #endif
17966 #ifndef HAVE_ALARM
17967 # define alarm(X) /* empty */
17968 #endif
17970 /* Work around redefinition to rpl_putenv by other config tests. */
17971 #undef putenv
17973 static time_t time_t_max;
17974 static time_t time_t_min;
17976 /* Values we'll use to set the TZ environment variable. */
17977 static char *tz_strings[] = {
17978 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17979 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17981 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17983 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17984 Based on a problem report from Andreas Jaeger. */
17985 static int
17986 spring_forward_gap ()
17988 /* glibc (up to about 1998-10-07) failed this test. */
17989 struct tm tm;
17991 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17992 instead of "TZ=America/Vancouver" in order to detect the bug even
17993 on systems that don't support the Olson extension, or don't have the
17994 full zoneinfo tables installed. */
17995 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17997 tm.tm_year = 98;
17998 tm.tm_mon = 3;
17999 tm.tm_mday = 5;
18000 tm.tm_hour = 2;
18001 tm.tm_min = 0;
18002 tm.tm_sec = 0;
18003 tm.tm_isdst = -1;
18004 return mktime (&tm) != (time_t) -1;
18007 static int
18008 mktime_test1 (now)
18009 time_t now;
18011 struct tm *lt;
18012 return ! (lt = localtime (&now)) || mktime (lt) == now;
18015 static int
18016 mktime_test (now)
18017 time_t now;
18019 return (mktime_test1 (now)
18020 && mktime_test1 ((time_t) (time_t_max - now))
18021 && mktime_test1 ((time_t) (time_t_min + now)));
18024 static int
18025 irix_6_4_bug ()
18027 /* Based on code from Ariel Faigon. */
18028 struct tm tm;
18029 tm.tm_year = 96;
18030 tm.tm_mon = 3;
18031 tm.tm_mday = 0;
18032 tm.tm_hour = 0;
18033 tm.tm_min = 0;
18034 tm.tm_sec = 0;
18035 tm.tm_isdst = -1;
18036 mktime (&tm);
18037 return tm.tm_mon == 2 && tm.tm_mday == 31;
18040 static int
18041 bigtime_test (j)
18042 int j;
18044 struct tm tm;
18045 time_t now;
18046 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18047 now = mktime (&tm);
18048 if (now != (time_t) -1)
18050 struct tm *lt = localtime (&now);
18051 if (! (lt
18052 && lt->tm_year == tm.tm_year
18053 && lt->tm_mon == tm.tm_mon
18054 && lt->tm_mday == tm.tm_mday
18055 && lt->tm_hour == tm.tm_hour
18056 && lt->tm_min == tm.tm_min
18057 && lt->tm_sec == tm.tm_sec
18058 && lt->tm_yday == tm.tm_yday
18059 && lt->tm_wday == tm.tm_wday
18060 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18061 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18062 return 0;
18064 return 1;
18067 static int
18068 year_2050_test ()
18070 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18071 ignoring leap seconds. */
18072 unsigned long int answer = 2527315200UL;
18074 struct tm tm;
18075 time_t t;
18076 tm.tm_year = 2050 - 1900;
18077 tm.tm_mon = 2 - 1;
18078 tm.tm_mday = 1;
18079 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18080 tm.tm_isdst = -1;
18082 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18083 instead of "TZ=America/Vancouver" in order to detect the bug even
18084 on systems that don't support the Olson extension, or don't have the
18085 full zoneinfo tables installed. */
18086 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18088 t = mktime (&tm);
18090 /* Check that the result is either a failure, or close enough
18091 to the correct answer that we can assume the discrepancy is
18092 due to leap seconds. */
18093 return (t == (time_t) -1
18094 || (0 < t && answer - 120 <= t && t <= answer + 120));
18098 main ()
18100 time_t t, delta;
18101 int i, j;
18103 /* This test makes some buggy mktime implementations loop.
18104 Give up after 60 seconds; a mktime slower than that
18105 isn't worth using anyway. */
18106 alarm (60);
18108 for (;;)
18110 t = (time_t_max << 1) + 1;
18111 if (t <= time_t_max)
18112 break;
18113 time_t_max = t;
18115 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18117 delta = time_t_max / 997; /* a suitable prime number */
18118 for (i = 0; i < N_STRINGS; i++)
18120 if (tz_strings[i])
18121 putenv (tz_strings[i]);
18123 for (t = 0; t <= time_t_max - delta; t += delta)
18124 if (! mktime_test (t))
18125 return 1;
18126 if (! (mktime_test ((time_t) 1)
18127 && mktime_test ((time_t) (60 * 60))
18128 && mktime_test ((time_t) (60 * 60 * 24))))
18129 return 1;
18131 for (j = 1; ; j <<= 1)
18132 if (! bigtime_test (j))
18133 return 1;
18134 else if (INT_MAX / 2 < j)
18135 break;
18136 if (! bigtime_test (INT_MAX))
18137 return 1;
18139 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18141 _ACEOF
18142 rm -f conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18149 $as_echo "$ac_try_echo") >&5
18150 (eval "$ac_link") 2>&5
18151 ac_status=$?
18152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157 esac
18158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160 (eval "$ac_try") 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_cv_func_working_mktime=yes
18165 else
18166 $as_echo "$as_me: program exited with status $ac_status" >&5
18167 $as_echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ( exit $ac_status )
18171 ac_cv_func_working_mktime=no
18173 rm -rf conftest.dSYM
18174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18179 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18180 $as_echo "$ac_cv_func_working_mktime" >&6; }
18181 if test $ac_cv_func_working_mktime = no; then
18182 case " $LIBOBJS " in
18183 *" mktime.$ac_objext "* ) ;;
18184 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18186 esac
18190 if test "$ac_cv_func_working_mktime" = no; then
18192 cat >>confdefs.h <<\_ACEOF
18193 #define BROKEN_MKTIME 1
18194 _ACEOF
18198 ac_have_func=no # yes means we've found a way to get the load average.
18200 # Make sure getloadavg.c is where it belongs, at configure-time.
18201 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18202 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18203 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18204 { (exit 1); exit 1; }; }
18206 ac_save_LIBS=$LIBS
18208 # Check for getloadavg, but be sure not to touch the cache variable.
18209 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18210 $as_echo_n "checking for getloadavg... " >&6; }
18211 if test "${ac_cv_func_getloadavg+set}" = set; then
18212 $as_echo_n "(cached) " >&6
18213 else
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222 #define getloadavg innocuous_getloadavg
18224 /* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char getloadavg (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18229 #ifdef __STDC__
18230 # include <limits.h>
18231 #else
18232 # include <assert.h>
18233 #endif
18235 #undef getloadavg
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char getloadavg ();
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined __stub_getloadavg || defined __stub___getloadavg
18248 choke me
18249 #endif
18252 main ()
18254 return getloadavg ();
18256 return 0;
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264 esac
18265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18266 $as_echo "$ac_try_echo") >&5
18267 (eval "$ac_link") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest$ac_exeext && {
18277 test "$cross_compiling" = yes ||
18278 $as_test_x conftest$ac_exeext
18279 }; then
18280 ac_cv_func_getloadavg=yes
18281 else
18282 $as_echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 ac_cv_func_getloadavg=no
18288 rm -rf conftest.dSYM
18289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18290 conftest$ac_exeext conftest.$ac_ext
18292 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18293 $as_echo "$ac_cv_func_getloadavg" >&6; }
18294 if test "x$ac_cv_func_getloadavg" = x""yes; then
18295 exit 0
18296 else
18297 exit 1
18299 ) && ac_have_func=yes
18301 # On HPUX9, an unprivileged user can get load averages through this function.
18303 for ac_func in pstat_getdynamic
18305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18306 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18307 $as_echo_n "checking for $ac_func... " >&6; }
18308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18309 $as_echo_n "(cached) " >&6
18310 else
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18319 #define $ac_func innocuous_$ac_func
18321 /* System header to define __stub macros and hopefully few prototypes,
18322 which can conflict with char $ac_func (); below.
18323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324 <limits.h> exists even on freestanding compilers. */
18326 #ifdef __STDC__
18327 # include <limits.h>
18328 #else
18329 # include <assert.h>
18330 #endif
18332 #undef $ac_func
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 char $ac_func ();
18341 /* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344 #if defined __stub_$ac_func || defined __stub___$ac_func
18345 choke me
18346 #endif
18349 main ()
18351 return $ac_func ();
18353 return 0;
18355 _ACEOF
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (ac_try="$ac_link"
18358 case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361 esac
18362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18363 $as_echo "$ac_try_echo") >&5
18364 (eval "$ac_link") 2>conftest.er1
18365 ac_status=$?
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
18369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && {
18371 test -z "$ac_c_werror_flag" ||
18372 test ! -s conftest.err
18373 } && test -s conftest$ac_exeext && {
18374 test "$cross_compiling" = yes ||
18375 $as_test_x conftest$ac_exeext
18376 }; then
18377 eval "$as_ac_var=yes"
18378 else
18379 $as_echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 eval "$as_ac_var=no"
18385 rm -rf conftest.dSYM
18386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18387 conftest$ac_exeext conftest.$ac_ext
18389 ac_res=`eval 'as_val=${'$as_ac_var'}
18390 $as_echo "$as_val"'`
18391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18392 $as_echo "$ac_res" >&6; }
18393 as_val=`eval 'as_val=${'$as_ac_var'}
18394 $as_echo "$as_val"'`
18395 if test "x$as_val" = x""yes; then
18396 cat >>confdefs.h <<_ACEOF
18397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18398 _ACEOF
18401 done
18404 # Solaris has libkstat which does not require root.
18406 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18407 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18408 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18409 $as_echo_n "(cached) " >&6
18410 else
18411 ac_check_lib_save_LIBS=$LIBS
18412 LIBS="-lkstat $LIBS"
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h. */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18423 #ifdef __cplusplus
18424 extern "C"
18425 #endif
18426 char kstat_open ();
18428 main ()
18430 return kstat_open ();
18432 return 0;
18434 _ACEOF
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (ac_try="$ac_link"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440 esac
18441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18442 $as_echo "$ac_try_echo") >&5
18443 (eval "$ac_link") 2>conftest.er1
18444 ac_status=$?
18445 grep -v '^ *+' conftest.er1 >conftest.err
18446 rm -f conftest.er1
18447 cat conftest.err >&5
18448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest$ac_exeext && {
18453 test "$cross_compiling" = yes ||
18454 $as_test_x conftest$ac_exeext
18455 }; then
18456 ac_cv_lib_kstat_kstat_open=yes
18457 else
18458 $as_echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_cv_lib_kstat_kstat_open=no
18464 rm -rf conftest.dSYM
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466 conftest$ac_exeext conftest.$ac_ext
18467 LIBS=$ac_check_lib_save_LIBS
18469 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18470 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18471 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_LIBKSTAT 1
18474 _ACEOF
18476 LIBS="-lkstat $LIBS"
18480 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18482 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18483 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18484 # to get the right answer into the cache.
18485 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18486 if test $ac_have_func = no; then
18487 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18488 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18489 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18490 $as_echo_n "(cached) " >&6
18491 else
18492 ac_check_lib_save_LIBS=$LIBS
18493 LIBS="-lelf $LIBS"
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h. */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18501 /* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18504 #ifdef __cplusplus
18505 extern "C"
18506 #endif
18507 char elf_begin ();
18509 main ()
18511 return elf_begin ();
18513 return 0;
18515 _ACEOF
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521 esac
18522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18523 $as_echo "$ac_try_echo") >&5
18524 (eval "$ac_link") 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } && {
18531 test -z "$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 } && test -s conftest$ac_exeext && {
18534 test "$cross_compiling" = yes ||
18535 $as_test_x conftest$ac_exeext
18536 }; then
18537 ac_cv_lib_elf_elf_begin=yes
18538 else
18539 $as_echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_cv_lib_elf_elf_begin=no
18545 rm -rf conftest.dSYM
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547 conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18551 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18552 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then
18553 LIBS="-lelf $LIBS"
18557 if test $ac_have_func = no; then
18558 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18559 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18560 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18561 $as_echo_n "(cached) " >&6
18562 else
18563 ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-lkvm $LIBS"
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18575 #ifdef __cplusplus
18576 extern "C"
18577 #endif
18578 char kvm_open ();
18580 main ()
18582 return kvm_open ();
18584 return 0;
18586 _ACEOF
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (ac_try="$ac_link"
18589 case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18592 esac
18593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18594 $as_echo "$ac_try_echo") >&5
18595 (eval "$ac_link") 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext && {
18605 test "$cross_compiling" = yes ||
18606 $as_test_x conftest$ac_exeext
18607 }; then
18608 ac_cv_lib_kvm_kvm_open=yes
18609 else
18610 $as_echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_cv_lib_kvm_kvm_open=no
18616 rm -rf conftest.dSYM
18617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18618 conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_lib_save_LIBS
18621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18622 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18623 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then
18624 LIBS="-lkvm $LIBS"
18627 # Check for the 4.4BSD definition of getloadavg.
18628 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18629 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18630 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18631 $as_echo_n "(cached) " >&6
18632 else
18633 ac_check_lib_save_LIBS=$LIBS
18634 LIBS="-lutil $LIBS"
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. */
18642 /* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18645 #ifdef __cplusplus
18646 extern "C"
18647 #endif
18648 char getloadavg ();
18650 main ()
18652 return getloadavg ();
18654 return 0;
18656 _ACEOF
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (ac_try="$ac_link"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662 esac
18663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18664 $as_echo "$ac_try_echo") >&5
18665 (eval "$ac_link") 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } && {
18672 test -z "$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18674 } && test -s conftest$ac_exeext && {
18675 test "$cross_compiling" = yes ||
18676 $as_test_x conftest$ac_exeext
18677 }; then
18678 ac_cv_lib_util_getloadavg=yes
18679 else
18680 $as_echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18683 ac_cv_lib_util_getloadavg=no
18686 rm -rf conftest.dSYM
18687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18688 conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18692 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18693 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then
18694 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18699 if test $ac_have_func = no; then
18700 # There is a commonly available library for RS/6000 AIX.
18701 # Since it is not a standard part of AIX, it might be installed locally.
18702 ac_getloadavg_LIBS=$LIBS
18703 LIBS="-L/usr/local/lib $LIBS"
18704 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18705 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18706 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18707 $as_echo_n "(cached) " >&6
18708 else
18709 ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-lgetloadavg $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h. */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18718 /* Override any GCC internal prototype to avoid an error.
18719 Use char because int might match the return type of a GCC
18720 builtin and then its argument prototype would still apply. */
18721 #ifdef __cplusplus
18722 extern "C"
18723 #endif
18724 char getloadavg ();
18726 main ()
18728 return getloadavg ();
18730 return 0;
18732 _ACEOF
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18738 esac
18739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18740 $as_echo "$ac_try_echo") >&5
18741 (eval "$ac_link") 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext && {
18751 test "$cross_compiling" = yes ||
18752 $as_test_x conftest$ac_exeext
18753 }; then
18754 ac_cv_lib_getloadavg_getloadavg=yes
18755 else
18756 $as_echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18759 ac_cv_lib_getloadavg_getloadavg=no
18762 rm -rf conftest.dSYM
18763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18764 conftest$ac_exeext conftest.$ac_ext
18765 LIBS=$ac_check_lib_save_LIBS
18767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18768 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18769 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
18770 LIBS="-lgetloadavg $LIBS"
18771 else
18772 LIBS=$ac_getloadavg_LIBS
18777 # Make sure it is really in the library, if we think we found it,
18778 # otherwise set up the replacement function.
18780 for ac_func in getloadavg
18782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18784 $as_echo_n "checking for $ac_func... " >&6; }
18785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18786 $as_echo_n "(cached) " >&6
18787 else
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h. */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18796 #define $ac_func innocuous_$ac_func
18798 /* System header to define __stub macros and hopefully few prototypes,
18799 which can conflict with char $ac_func (); below.
18800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18801 <limits.h> exists even on freestanding compilers. */
18803 #ifdef __STDC__
18804 # include <limits.h>
18805 #else
18806 # include <assert.h>
18807 #endif
18809 #undef $ac_func
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18814 #ifdef __cplusplus
18815 extern "C"
18816 #endif
18817 char $ac_func ();
18818 /* The GNU C library defines this for functions which it implements
18819 to always fail with ENOSYS. Some functions are actually named
18820 something starting with __ and the normal name is an alias. */
18821 #if defined __stub_$ac_func || defined __stub___$ac_func
18822 choke me
18823 #endif
18826 main ()
18828 return $ac_func ();
18830 return 0;
18832 _ACEOF
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (ac_try="$ac_link"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838 esac
18839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18840 $as_echo "$ac_try_echo") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext && {
18851 test "$cross_compiling" = yes ||
18852 $as_test_x conftest$ac_exeext
18853 }; then
18854 eval "$as_ac_var=yes"
18855 else
18856 $as_echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 eval "$as_ac_var=no"
18862 rm -rf conftest.dSYM
18863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18864 conftest$ac_exeext conftest.$ac_ext
18866 ac_res=`eval 'as_val=${'$as_ac_var'}
18867 $as_echo "$as_val"'`
18868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18869 $as_echo "$ac_res" >&6; }
18870 as_val=`eval 'as_val=${'$as_ac_var'}
18871 $as_echo "$as_val"'`
18872 if test "x$as_val" = x""yes; then
18873 cat >>confdefs.h <<_ACEOF
18874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18875 _ACEOF
18877 else
18878 case " $LIBOBJS " in
18879 *" getloadavg.$ac_objext "* ) ;;
18880 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18882 esac
18885 cat >>confdefs.h <<\_ACEOF
18886 #define C_GETLOADAVG 1
18887 _ACEOF
18889 # Figure out what our getloadavg.c needs.
18890 ac_have_func=no
18891 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18892 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18893 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18894 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18895 $as_echo_n "(cached) " >&6
18897 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18898 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18899 else
18900 # Is the header compilable?
18901 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18902 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h. */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 $ac_includes_default
18910 #include <sys/dg_sys_info.h>
18911 _ACEOF
18912 rm -f conftest.$ac_objext
18913 if { (ac_try="$ac_compile"
18914 case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917 esac
18918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18919 $as_echo "$ac_try_echo") >&5
18920 (eval "$ac_compile") 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest.$ac_objext; then
18930 ac_header_compiler=yes
18931 else
18932 $as_echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_header_compiler=no
18938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18939 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18940 $as_echo "$ac_header_compiler" >&6; }
18942 # Is the header present?
18943 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18944 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h. */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18951 #include <sys/dg_sys_info.h>
18952 _ACEOF
18953 if { (ac_try="$ac_cpp conftest.$ac_ext"
18954 case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957 esac
18958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18959 $as_echo "$ac_try_echo") >&5
18960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } >/dev/null && {
18967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 }; then
18970 ac_header_preproc=yes
18971 else
18972 $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_header_preproc=no
18978 rm -f conftest.err conftest.$ac_ext
18979 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18980 $as_echo "$ac_header_preproc" >&6; }
18982 # So? What about this header?
18983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18984 yes:no: )
18985 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18986 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18987 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18988 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18989 ac_header_preproc=yes
18991 no:yes:* )
18992 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18993 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18994 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18995 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18996 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18997 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18998 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18999 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19000 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19001 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19002 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19003 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19006 esac
19007 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19008 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19009 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19010 $as_echo_n "(cached) " >&6
19011 else
19012 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19014 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19015 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19018 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19019 ac_have_func=yes
19021 cat >>confdefs.h <<\_ACEOF
19022 #define DGUX 1
19023 _ACEOF
19026 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19027 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19028 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19029 $as_echo_n "(cached) " >&6
19030 else
19031 ac_check_lib_save_LIBS=$LIBS
19032 LIBS="-ldgc $LIBS"
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char dg_sys_info ();
19048 main ()
19050 return dg_sys_info ();
19052 return 0;
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_link") 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest$ac_exeext && {
19073 test "$cross_compiling" = yes ||
19074 $as_test_x conftest$ac_exeext
19075 }; then
19076 ac_cv_lib_dgc_dg_sys_info=yes
19077 else
19078 $as_echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_lib_dgc_dg_sys_info=no
19084 rm -rf conftest.dSYM
19085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19086 conftest$ac_exeext conftest.$ac_ext
19087 LIBS=$ac_check_lib_save_LIBS
19089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19090 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19091 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19092 cat >>confdefs.h <<_ACEOF
19093 #define HAVE_LIBDGC 1
19094 _ACEOF
19096 LIBS="-ldgc $LIBS"
19104 if test "${ac_cv_header_locale_h+set}" = set; then
19105 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19106 $as_echo_n "checking for locale.h... " >&6; }
19107 if test "${ac_cv_header_locale_h+set}" = set; then
19108 $as_echo_n "(cached) " >&6
19110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19111 $as_echo "$ac_cv_header_locale_h" >&6; }
19112 else
19113 # Is the header compilable?
19114 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19115 $as_echo_n "checking locale.h usability... " >&6; }
19116 cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h. */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 $ac_includes_default
19123 #include <locale.h>
19124 _ACEOF
19125 rm -f conftest.$ac_objext
19126 if { (ac_try="$ac_compile"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19130 esac
19131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19132 $as_echo "$ac_try_echo") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest.$ac_objext; then
19143 ac_header_compiler=yes
19144 else
19145 $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_header_compiler=no
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19153 $as_echo "$ac_header_compiler" >&6; }
19155 # Is the header present?
19156 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19157 $as_echo_n "checking locale.h presence... " >&6; }
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 #include <locale.h>
19165 _ACEOF
19166 if { (ac_try="$ac_cpp conftest.$ac_ext"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170 esac
19171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19172 $as_echo "$ac_try_echo") >&5
19173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19174 ac_status=$?
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
19178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } >/dev/null && {
19180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 }; then
19183 ac_header_preproc=yes
19184 else
19185 $as_echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 ac_header_preproc=no
19191 rm -f conftest.err conftest.$ac_ext
19192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19193 $as_echo "$ac_header_preproc" >&6; }
19195 # So? What about this header?
19196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19197 yes:no: )
19198 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19199 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19200 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19201 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19202 ac_header_preproc=yes
19204 no:yes:* )
19205 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19206 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19208 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19210 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19212 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19214 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19216 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19219 esac
19220 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19221 $as_echo_n "checking for locale.h... " >&6; }
19222 if test "${ac_cv_header_locale_h+set}" = set; then
19223 $as_echo_n "(cached) " >&6
19224 else
19225 ac_cv_header_locale_h=$ac_header_preproc
19227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19228 $as_echo "$ac_cv_header_locale_h" >&6; }
19234 for ac_func in setlocale
19236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19238 $as_echo_n "checking for $ac_func... " >&6; }
19239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19240 $as_echo_n "(cached) " >&6
19241 else
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19250 #define $ac_func innocuous_$ac_func
19252 /* System header to define __stub macros and hopefully few prototypes,
19253 which can conflict with char $ac_func (); below.
19254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19255 <limits.h> exists even on freestanding compilers. */
19257 #ifdef __STDC__
19258 # include <limits.h>
19259 #else
19260 # include <assert.h>
19261 #endif
19263 #undef $ac_func
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 char $ac_func ();
19272 /* The GNU C library defines this for functions which it implements
19273 to always fail with ENOSYS. Some functions are actually named
19274 something starting with __ and the normal name is an alias. */
19275 #if defined __stub_$ac_func || defined __stub___$ac_func
19276 choke me
19277 #endif
19280 main ()
19282 return $ac_func ();
19284 return 0;
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292 esac
19293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19294 $as_echo "$ac_try_echo") >&5
19295 (eval "$ac_link") 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest$ac_exeext && {
19305 test "$cross_compiling" = yes ||
19306 $as_test_x conftest$ac_exeext
19307 }; then
19308 eval "$as_ac_var=yes"
19309 else
19310 $as_echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 eval "$as_ac_var=no"
19316 rm -rf conftest.dSYM
19317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19318 conftest$ac_exeext conftest.$ac_ext
19320 ac_res=`eval 'as_val=${'$as_ac_var'}
19321 $as_echo "$as_val"'`
19322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19323 $as_echo "$ac_res" >&6; }
19324 as_val=`eval 'as_val=${'$as_ac_var'}
19325 $as_echo "$as_val"'`
19326 if test "x$as_val" = x""yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19329 _ACEOF
19332 done
19335 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19336 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19337 # Irix 4.0.5F has the header but not the library.
19338 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19339 ac_have_func=yes
19341 cat >>confdefs.h <<\_ACEOF
19342 #define SVR4 1
19343 _ACEOF
19347 if test $ac_have_func = no; then
19348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19349 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19350 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19351 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19352 $as_echo_n "(cached) " >&6
19354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19355 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19356 else
19357 # Is the header compilable?
19358 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19359 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19360 cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h. */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19366 $ac_includes_default
19367 #include <inq_stats/cpustats.h>
19368 _ACEOF
19369 rm -f conftest.$ac_objext
19370 if { (ac_try="$ac_compile"
19371 case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19374 esac
19375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19376 $as_echo "$ac_try_echo") >&5
19377 (eval "$ac_compile") 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } && {
19384 test -z "$ac_c_werror_flag" ||
19385 test ! -s conftest.err
19386 } && test -s conftest.$ac_objext; then
19387 ac_header_compiler=yes
19388 else
19389 $as_echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_header_compiler=no
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19397 $as_echo "$ac_header_compiler" >&6; }
19399 # Is the header present?
19400 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19401 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <inq_stats/cpustats.h>
19409 _ACEOF
19410 if { (ac_try="$ac_cpp conftest.$ac_ext"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414 esac
19415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19416 $as_echo "$ac_try_echo") >&5
19417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } >/dev/null && {
19424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19425 test ! -s conftest.err
19426 }; then
19427 ac_header_preproc=yes
19428 else
19429 $as_echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_header_preproc=no
19435 rm -f conftest.err conftest.$ac_ext
19436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19437 $as_echo "$ac_header_preproc" >&6; }
19439 # So? What about this header?
19440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19441 yes:no: )
19442 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19443 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19444 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19445 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19446 ac_header_preproc=yes
19448 no:yes:* )
19449 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19450 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19451 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19452 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19453 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19454 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19455 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19456 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19457 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19458 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19459 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19460 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19463 esac
19464 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19465 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19466 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19467 $as_echo_n "(cached) " >&6
19468 else
19469 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19471 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19472 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19475 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
19476 ac_have_func=yes
19478 cat >>confdefs.h <<\_ACEOF
19479 #define UMAX 1
19480 _ACEOF
19483 cat >>confdefs.h <<\_ACEOF
19484 #define UMAX4_3 1
19485 _ACEOF
19492 if test $ac_have_func = no; then
19493 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19494 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19495 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19496 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19497 $as_echo_n "(cached) " >&6
19499 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19500 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19501 else
19502 # Is the header compilable?
19503 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19504 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 $ac_includes_default
19512 #include <sys/cpustats.h>
19513 _ACEOF
19514 rm -f conftest.$ac_objext
19515 if { (ac_try="$ac_compile"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519 esac
19520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19521 $as_echo "$ac_try_echo") >&5
19522 (eval "$ac_compile") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } && {
19529 test -z "$ac_c_werror_flag" ||
19530 test ! -s conftest.err
19531 } && test -s conftest.$ac_objext; then
19532 ac_header_compiler=yes
19533 else
19534 $as_echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_header_compiler=no
19540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19542 $as_echo "$ac_header_compiler" >&6; }
19544 # Is the header present?
19545 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19546 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h. */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <sys/cpustats.h>
19554 _ACEOF
19555 if { (ac_try="$ac_cpp conftest.$ac_ext"
19556 case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19559 esac
19560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19561 $as_echo "$ac_try_echo") >&5
19562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19563 ac_status=$?
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
19567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } >/dev/null && {
19569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19570 test ! -s conftest.err
19571 }; then
19572 ac_header_preproc=yes
19573 else
19574 $as_echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_header_preproc=no
19580 rm -f conftest.err conftest.$ac_ext
19581 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19582 $as_echo "$ac_header_preproc" >&6; }
19584 # So? What about this header?
19585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19586 yes:no: )
19587 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19588 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19589 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19590 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19591 ac_header_preproc=yes
19593 no:yes:* )
19594 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19595 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19596 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19597 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19598 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19599 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19600 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19601 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19602 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19603 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19604 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19605 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19608 esac
19609 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19610 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19611 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19612 $as_echo_n "(cached) " >&6
19613 else
19614 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19617 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19620 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then
19621 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19622 #define UMAX 1
19623 _ACEOF
19630 if test $ac_have_func = no; then
19632 for ac_header in mach/mach.h
19634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19637 $as_echo_n "checking for $ac_header... " >&6; }
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639 $as_echo_n "(cached) " >&6
19641 ac_res=`eval 'as_val=${'$as_ac_Header'}
19642 $as_echo "$as_val"'`
19643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19644 $as_echo "$ac_res" >&6; }
19645 else
19646 # Is the header compilable?
19647 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19648 $as_echo_n "checking $ac_header usability... " >&6; }
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 $ac_includes_default
19656 #include <$ac_header>
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663 esac
19664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19665 $as_echo "$ac_try_echo") >&5
19666 (eval "$ac_compile") 2>conftest.er1
19667 ac_status=$?
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
19671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } && {
19673 test -z "$ac_c_werror_flag" ||
19674 test ! -s conftest.err
19675 } && test -s conftest.$ac_objext; then
19676 ac_header_compiler=yes
19677 else
19678 $as_echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_header_compiler=no
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19686 $as_echo "$ac_header_compiler" >&6; }
19688 # Is the header present?
19689 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19690 $as_echo_n "checking $ac_header presence... " >&6; }
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 #include <$ac_header>
19698 _ACEOF
19699 if { (ac_try="$ac_cpp conftest.$ac_ext"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } >/dev/null && {
19713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 }; then
19716 ac_header_preproc=yes
19717 else
19718 $as_echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_header_preproc=no
19724 rm -f conftest.err conftest.$ac_ext
19725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19726 $as_echo "$ac_header_preproc" >&6; }
19728 # So? What about this header?
19729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19730 yes:no: )
19731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19732 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19735 ac_header_preproc=yes
19737 no:yes:* )
19738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19739 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19741 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19743 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19745 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19749 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19752 esac
19753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19754 $as_echo_n "checking for $ac_header... " >&6; }
19755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19756 $as_echo_n "(cached) " >&6
19757 else
19758 eval "$as_ac_Header=\$ac_header_preproc"
19760 ac_res=`eval 'as_val=${'$as_ac_Header'}
19761 $as_echo "$as_val"'`
19762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19763 $as_echo "$ac_res" >&6; }
19766 as_val=`eval 'as_val=${'$as_ac_Header'}
19767 $as_echo "$as_val"'`
19768 if test "x$as_val" = x""yes; then
19769 cat >>confdefs.h <<_ACEOF
19770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19771 _ACEOF
19775 done
19780 for ac_header in nlist.h
19782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19785 $as_echo_n "checking for $ac_header... " >&6; }
19786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19787 $as_echo_n "(cached) " >&6
19789 ac_res=`eval 'as_val=${'$as_ac_Header'}
19790 $as_echo "$as_val"'`
19791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19792 $as_echo "$ac_res" >&6; }
19793 else
19794 # Is the header compilable?
19795 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19796 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
19804 #include <$ac_header>
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811 esac
19812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19813 $as_echo "$ac_try_echo") >&5
19814 (eval "$ac_compile") 2>conftest.er1
19815 ac_status=$?
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
19819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } && {
19821 test -z "$ac_c_werror_flag" ||
19822 test ! -s conftest.err
19823 } && test -s conftest.$ac_objext; then
19824 ac_header_compiler=yes
19825 else
19826 $as_echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_header_compiler=no
19832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19834 $as_echo "$ac_header_compiler" >&6; }
19836 # Is the header present?
19837 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19838 $as_echo_n "checking $ac_header presence... " >&6; }
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <$ac_header>
19846 _ACEOF
19847 if { (ac_try="$ac_cpp conftest.$ac_ext"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851 esac
19852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19853 $as_echo "$ac_try_echo") >&5
19854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } >/dev/null && {
19861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 }; then
19864 ac_header_preproc=yes
19865 else
19866 $as_echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 ac_header_preproc=no
19872 rm -f conftest.err conftest.$ac_ext
19873 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19874 $as_echo "$ac_header_preproc" >&6; }
19876 # So? What about this header?
19877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19878 yes:no: )
19879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19880 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19883 ac_header_preproc=yes
19885 no:yes:* )
19886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19887 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19889 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19891 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19893 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19897 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19900 esac
19901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19902 $as_echo_n "checking for $ac_header... " >&6; }
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904 $as_echo_n "(cached) " >&6
19905 else
19906 eval "$as_ac_Header=\$ac_header_preproc"
19908 ac_res=`eval 'as_val=${'$as_ac_Header'}
19909 $as_echo "$as_val"'`
19910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19911 $as_echo "$ac_res" >&6; }
19914 as_val=`eval 'as_val=${'$as_ac_Header'}
19915 $as_echo "$as_val"'`
19916 if test "x$as_val" = x""yes; then
19917 cat >>confdefs.h <<_ACEOF
19918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19919 _ACEOF
19920 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19921 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19922 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19923 $as_echo_n "(cached) " >&6
19924 else
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h. */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 #include <nlist.h>
19934 main ()
19936 static struct nlist ac_aggr;
19937 if (ac_aggr.n_un.n_name)
19938 return 0;
19940 return 0;
19942 _ACEOF
19943 rm -f conftest.$ac_objext
19944 if { (ac_try="$ac_compile"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_compile") 2>conftest.er1
19952 ac_status=$?
19953 grep -v '^ *+' conftest.er1 >conftest.err
19954 rm -f conftest.er1
19955 cat conftest.err >&5
19956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest.$ac_objext; then
19961 ac_cv_member_struct_nlist_n_un_n_name=yes
19962 else
19963 $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h. */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 #include <nlist.h>
19975 main ()
19977 static struct nlist ac_aggr;
19978 if (sizeof ac_aggr.n_un.n_name)
19979 return 0;
19981 return 0;
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989 esac
19990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19991 $as_echo "$ac_try_echo") >&5
19992 (eval "$ac_compile") 2>conftest.er1
19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } && {
19999 test -z "$ac_c_werror_flag" ||
20000 test ! -s conftest.err
20001 } && test -s conftest.$ac_objext; then
20002 ac_cv_member_struct_nlist_n_un_n_name=yes
20003 else
20004 $as_echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_cv_member_struct_nlist_n_un_n_name=no
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20016 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20017 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20021 _ACEOF
20024 cat >>confdefs.h <<\_ACEOF
20025 #define NLIST_NAME_UNION 1
20026 _ACEOF
20033 done
20036 done
20039 # Some definitions of getloadavg require that the program be installed setgid.
20040 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20041 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20042 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20043 $as_echo_n "(cached) " >&6
20044 else
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20052 #ifdef LDAV_PRIVILEGED
20053 Yowza Am I SETGID yet
20054 #endif
20055 _ACEOF
20056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20057 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20058 ac_cv_func_getloadavg_setgid=yes
20059 else
20060 ac_cv_func_getloadavg_setgid=no
20062 rm -f conftest*
20065 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20066 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20067 if test $ac_cv_func_getloadavg_setgid = yes; then
20068 NEED_SETGID=true
20070 cat >>confdefs.h <<\_ACEOF
20071 #define GETLOADAVG_PRIVILEGED 1
20072 _ACEOF
20074 else
20075 NEED_SETGID=false
20078 if test $ac_cv_func_getloadavg_setgid = yes; then
20079 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20080 $as_echo_n "checking group of /dev/kmem... " >&6; }
20081 if test "${ac_cv_group_kmem+set}" = set; then
20082 $as_echo_n "(cached) " >&6
20083 else
20084 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20085 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20086 # If we got an error (system does not support symlinks), try without -L.
20087 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20088 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20089 | sed -ne 's/[ ][ ]*/ /g;
20090 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20091 / /s/.* //;p;'`
20094 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20095 $as_echo "$ac_cv_group_kmem" >&6; }
20096 KMEM_GROUP=$ac_cv_group_kmem
20098 if test "x$ac_save_LIBS" = x; then
20099 GETLOADAVG_LIBS=$LIBS
20100 else
20101 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20103 LIBS=$ac_save_LIBS
20107 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20108 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20109 if test "${ac_cv_sys_largefile_source+set}" = set; then
20110 $as_echo_n "(cached) " >&6
20111 else
20112 while :; do
20113 cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h. */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 #include <sys/types.h> /* for off_t */
20120 #include <stdio.h>
20122 main ()
20124 int (*fp) (FILE *, off_t, int) = fseeko;
20125 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20127 return 0;
20129 _ACEOF
20130 rm -f conftest.$ac_objext conftest$ac_exeext
20131 if { (ac_try="$ac_link"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20135 esac
20136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138 (eval "$ac_link") 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest$ac_exeext && {
20148 test "$cross_compiling" = yes ||
20149 $as_test_x conftest$ac_exeext
20150 }; then
20151 ac_cv_sys_largefile_source=no; break
20152 else
20153 $as_echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20159 rm -rf conftest.dSYM
20160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20161 conftest$ac_exeext conftest.$ac_ext
20162 cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h. */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168 #define _LARGEFILE_SOURCE 1
20169 #include <sys/types.h> /* for off_t */
20170 #include <stdio.h>
20172 main ()
20174 int (*fp) (FILE *, off_t, int) = fseeko;
20175 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20177 return 0;
20179 _ACEOF
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185 esac
20186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20187 $as_echo "$ac_try_echo") >&5
20188 (eval "$ac_link") 2>conftest.er1
20189 ac_status=$?
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
20193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest$ac_exeext && {
20198 test "$cross_compiling" = yes ||
20199 $as_test_x conftest$ac_exeext
20200 }; then
20201 ac_cv_sys_largefile_source=1; break
20202 else
20203 $as_echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20209 rm -rf conftest.dSYM
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211 conftest$ac_exeext conftest.$ac_ext
20212 ac_cv_sys_largefile_source=unknown
20213 break
20214 done
20216 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20217 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20218 case $ac_cv_sys_largefile_source in #(
20219 no | unknown) ;;
20221 cat >>confdefs.h <<_ACEOF
20222 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20223 _ACEOF
20225 esac
20226 rm -rf conftest*
20228 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20229 # in glibc 2.1.3, but that breaks too many other things.
20230 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20231 if test $ac_cv_sys_largefile_source != unknown; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define HAVE_FSEEKO 1
20235 _ACEOF
20240 # Configure getopt.
20241 # getopt.m4 serial 10
20243 # The getopt module assume you want GNU getopt, with getopt_long etc,
20244 # rather than vanilla POSIX getopt. This means your your code should
20245 # always include <getopt.h> for the getopt prototypes.
20257 # Prerequisites of lib/getopt*.
20262 GETOPT_H=
20264 for ac_header in getopt.h
20266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20269 $as_echo_n "checking for $ac_header... " >&6; }
20270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20271 $as_echo_n "(cached) " >&6
20273 ac_res=`eval 'as_val=${'$as_ac_Header'}
20274 $as_echo "$as_val"'`
20275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20276 $as_echo "$ac_res" >&6; }
20277 else
20278 # Is the header compilable?
20279 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20280 $as_echo_n "checking $ac_header usability... " >&6; }
20281 cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h. */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287 $ac_includes_default
20288 #include <$ac_header>
20289 _ACEOF
20290 rm -f conftest.$ac_objext
20291 if { (ac_try="$ac_compile"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20295 esac
20296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20297 $as_echo "$ac_try_echo") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest.$ac_objext; then
20308 ac_header_compiler=yes
20309 else
20310 $as_echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_header_compiler=no
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20318 $as_echo "$ac_header_compiler" >&6; }
20320 # Is the header present?
20321 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20322 $as_echo_n "checking $ac_header presence... " >&6; }
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h. */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <$ac_header>
20330 _ACEOF
20331 if { (ac_try="$ac_cpp conftest.$ac_ext"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335 esac
20336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20337 $as_echo "$ac_try_echo") >&5
20338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20339 ac_status=$?
20340 grep -v '^ *+' conftest.er1 >conftest.err
20341 rm -f conftest.er1
20342 cat conftest.err >&5
20343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } >/dev/null && {
20345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20346 test ! -s conftest.err
20347 }; then
20348 ac_header_preproc=yes
20349 else
20350 $as_echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_header_preproc=no
20356 rm -f conftest.err conftest.$ac_ext
20357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20358 $as_echo "$ac_header_preproc" >&6; }
20360 # So? What about this header?
20361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20362 yes:no: )
20363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20364 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20367 ac_header_preproc=yes
20369 no:yes:* )
20370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20371 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20373 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20375 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20377 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20381 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20384 esac
20385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20386 $as_echo_n "checking for $ac_header... " >&6; }
20387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20388 $as_echo_n "(cached) " >&6
20389 else
20390 eval "$as_ac_Header=\$ac_header_preproc"
20392 ac_res=`eval 'as_val=${'$as_ac_Header'}
20393 $as_echo "$as_val"'`
20394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20395 $as_echo "$ac_res" >&6; }
20398 as_val=`eval 'as_val=${'$as_ac_Header'}
20399 $as_echo "$as_val"'`
20400 if test "x$as_val" = x""yes; then
20401 cat >>confdefs.h <<_ACEOF
20402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20403 _ACEOF
20405 else
20406 GETOPT_H=getopt.h
20409 done
20411 if test -z "$GETOPT_H"; then
20413 for ac_func in getopt_long_only
20415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20416 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20417 $as_echo_n "checking for $ac_func... " >&6; }
20418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20419 $as_echo_n "(cached) " >&6
20420 else
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20429 #define $ac_func innocuous_$ac_func
20431 /* System header to define __stub macros and hopefully few prototypes,
20432 which can conflict with char $ac_func (); below.
20433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20434 <limits.h> exists even on freestanding compilers. */
20436 #ifdef __STDC__
20437 # include <limits.h>
20438 #else
20439 # include <assert.h>
20440 #endif
20442 #undef $ac_func
20444 /* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20447 #ifdef __cplusplus
20448 extern "C"
20449 #endif
20450 char $ac_func ();
20451 /* The GNU C library defines this for functions which it implements
20452 to always fail with ENOSYS. Some functions are actually named
20453 something starting with __ and the normal name is an alias. */
20454 #if defined __stub_$ac_func || defined __stub___$ac_func
20455 choke me
20456 #endif
20459 main ()
20461 return $ac_func ();
20463 return 0;
20465 _ACEOF
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20473 $as_echo "$ac_try_echo") >&5
20474 (eval "$ac_link") 2>conftest.er1
20475 ac_status=$?
20476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
20479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } && {
20481 test -z "$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 } && test -s conftest$ac_exeext && {
20484 test "$cross_compiling" = yes ||
20485 $as_test_x conftest$ac_exeext
20486 }; then
20487 eval "$as_ac_var=yes"
20488 else
20489 $as_echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 eval "$as_ac_var=no"
20495 rm -rf conftest.dSYM
20496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20497 conftest$ac_exeext conftest.$ac_ext
20499 ac_res=`eval 'as_val=${'$as_ac_var'}
20500 $as_echo "$as_val"'`
20501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20502 $as_echo "$ac_res" >&6; }
20503 as_val=`eval 'as_val=${'$as_ac_var'}
20504 $as_echo "$as_val"'`
20505 if test "x$as_val" = x""yes; then
20506 cat >>confdefs.h <<_ACEOF
20507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20508 _ACEOF
20510 else
20511 GETOPT_H=getopt.h
20513 done
20517 if test -z "$GETOPT_H"; then
20518 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20519 $as_echo_n "checking whether optreset is declared... " >&6; }
20520 if test "${ac_cv_have_decl_optreset+set}" = set; then
20521 $as_echo_n "(cached) " >&6
20522 else
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include <getopt.h>
20532 main ()
20534 #ifndef optreset
20535 (void) optreset;
20536 #endif
20539 return 0;
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (ac_try="$ac_compile"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20547 esac
20548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20549 $as_echo "$ac_try_echo") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20560 ac_cv_have_decl_optreset=yes
20561 else
20562 $as_echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_cv_have_decl_optreset=no
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20571 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20572 if test "x$ac_cv_have_decl_optreset" = x""yes; then
20573 GETOPT_H=getopt.h
20578 if test -z "$GETOPT_H"; then
20579 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20580 $as_echo_n "checking for working GNU getopt function... " >&6; }
20581 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20582 $as_echo_n "(cached) " >&6
20583 else
20584 if test "$cross_compiling" = yes; then
20585 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20586 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20587 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20588 $as_echo_n "(cached) " >&6
20589 else
20590 cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h. */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 #include <getopt.h>
20599 main ()
20601 #ifndef getopt_clip
20602 (void) getopt_clip;
20603 #endif
20606 return 0;
20608 _ACEOF
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20616 $as_echo "$ac_try_echo") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } && {
20624 test -z "$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 } && test -s conftest.$ac_objext; then
20627 ac_cv_have_decl_getopt_clip=yes
20628 else
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 ac_cv_have_decl_getopt_clip=no
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20637 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20638 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20639 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
20640 gl_cv_func_gnu_getopt=no
20641 else
20642 gl_cv_func_gnu_getopt=yes
20645 else
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <getopt.h>
20654 main ()
20657 char *myargv[3];
20658 myargv[0] = "conftest";
20659 myargv[1] = "-+";
20660 myargv[2] = 0;
20661 return getopt (2, myargv, "+a") != '?';
20664 return 0;
20666 _ACEOF
20667 rm -f conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672 esac
20673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20674 $as_echo "$ac_try_echo") >&5
20675 (eval "$ac_link") 2>&5
20676 ac_status=$?
20677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20679 { (case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682 esac
20683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20684 $as_echo "$ac_try_echo") >&5
20685 (eval "$ac_try") 2>&5
20686 ac_status=$?
20687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 gl_cv_func_gnu_getopt=yes
20690 else
20691 $as_echo "$as_me: program exited with status $ac_status" >&5
20692 $as_echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ( exit $ac_status )
20696 gl_cv_func_gnu_getopt=no
20698 rm -rf conftest.dSYM
20699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20704 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20705 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20706 if test "$gl_cv_func_gnu_getopt" = "no"; then
20707 GETOPT_H=getopt.h
20713 if test -n "$GETOPT_H"; then
20716 GETOPT_H=getopt.h
20718 cat >>confdefs.h <<\_ACEOF
20719 #define __GETOPT_PREFIX rpl_
20720 _ACEOF
20725 GETOPTOBJS='getopt.o getopt1.o'
20732 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20733 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20734 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20735 $as_echo_n "(cached) " >&6
20736 else
20737 # Use it with a single arg.
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20746 main ()
20748 getpgrp (0);
20750 return 0;
20752 _ACEOF
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20760 $as_echo "$ac_try_echo") >&5
20761 (eval "$ac_compile") 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest.$ac_objext; then
20771 ac_cv_func_getpgrp_void=no
20772 else
20773 $as_echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_cv_func_getpgrp_void=yes
20779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20782 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20783 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20784 if test $ac_cv_func_getpgrp_void = yes; then
20786 cat >>confdefs.h <<\_ACEOF
20787 #define GETPGRP_VOID 1
20788 _ACEOF
20794 for ac_func in strftime
20796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20797 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20798 $as_echo_n "checking for $ac_func... " >&6; }
20799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20800 $as_echo_n "(cached) " >&6
20801 else
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h. */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20810 #define $ac_func innocuous_$ac_func
20812 /* System header to define __stub macros and hopefully few prototypes,
20813 which can conflict with char $ac_func (); below.
20814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20815 <limits.h> exists even on freestanding compilers. */
20817 #ifdef __STDC__
20818 # include <limits.h>
20819 #else
20820 # include <assert.h>
20821 #endif
20823 #undef $ac_func
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 char $ac_func ();
20832 /* The GNU C library defines this for functions which it implements
20833 to always fail with ENOSYS. Some functions are actually named
20834 something starting with __ and the normal name is an alias. */
20835 #if defined __stub_$ac_func || defined __stub___$ac_func
20836 choke me
20837 #endif
20840 main ()
20842 return $ac_func ();
20844 return 0;
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20854 $as_echo "$ac_try_echo") >&5
20855 (eval "$ac_link") 2>conftest.er1
20856 ac_status=$?
20857 grep -v '^ *+' conftest.er1 >conftest.err
20858 rm -f conftest.er1
20859 cat conftest.err >&5
20860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest$ac_exeext && {
20865 test "$cross_compiling" = yes ||
20866 $as_test_x conftest$ac_exeext
20867 }; then
20868 eval "$as_ac_var=yes"
20869 else
20870 $as_echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 eval "$as_ac_var=no"
20876 rm -rf conftest.dSYM
20877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20878 conftest$ac_exeext conftest.$ac_ext
20880 ac_res=`eval 'as_val=${'$as_ac_var'}
20881 $as_echo "$as_val"'`
20882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20883 $as_echo "$ac_res" >&6; }
20884 as_val=`eval 'as_val=${'$as_ac_var'}
20885 $as_echo "$as_val"'`
20886 if test "x$as_val" = x""yes; then
20887 cat >>confdefs.h <<_ACEOF
20888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20889 _ACEOF
20891 else
20892 # strftime is in -lintl on SCO UNIX.
20893 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20894 $as_echo_n "checking for strftime in -lintl... " >&6; }
20895 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20896 $as_echo_n "(cached) " >&6
20897 else
20898 ac_check_lib_save_LIBS=$LIBS
20899 LIBS="-lintl $LIBS"
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h. */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20907 /* Override any GCC internal prototype to avoid an error.
20908 Use char because int might match the return type of a GCC
20909 builtin and then its argument prototype would still apply. */
20910 #ifdef __cplusplus
20911 extern "C"
20912 #endif
20913 char strftime ();
20915 main ()
20917 return strftime ();
20919 return 0;
20921 _ACEOF
20922 rm -f conftest.$ac_objext conftest$ac_exeext
20923 if { (ac_try="$ac_link"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20929 $as_echo "$ac_try_echo") >&5
20930 (eval "$ac_link") 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest$ac_exeext && {
20940 test "$cross_compiling" = yes ||
20941 $as_test_x conftest$ac_exeext
20942 }; then
20943 ac_cv_lib_intl_strftime=yes
20944 else
20945 $as_echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_lib_intl_strftime=no
20951 rm -rf conftest.dSYM
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953 conftest$ac_exeext conftest.$ac_ext
20954 LIBS=$ac_check_lib_save_LIBS
20956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20957 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20958 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
20959 cat >>confdefs.h <<\_ACEOF
20960 #define HAVE_STRFTIME 1
20961 _ACEOF
20963 LIBS="-lintl $LIBS"
20967 done
20970 # UNIX98 PTYs.
20972 for ac_func in grantpt
20974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20976 $as_echo_n "checking for $ac_func... " >&6; }
20977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20978 $as_echo_n "(cached) " >&6
20979 else
20980 cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h. */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20988 #define $ac_func innocuous_$ac_func
20990 /* System header to define __stub macros and hopefully few prototypes,
20991 which can conflict with char $ac_func (); below.
20992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20993 <limits.h> exists even on freestanding compilers. */
20995 #ifdef __STDC__
20996 # include <limits.h>
20997 #else
20998 # include <assert.h>
20999 #endif
21001 #undef $ac_func
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21006 #ifdef __cplusplus
21007 extern "C"
21008 #endif
21009 char $ac_func ();
21010 /* The GNU C library defines this for functions which it implements
21011 to always fail with ENOSYS. Some functions are actually named
21012 something starting with __ and the normal name is an alias. */
21013 #if defined __stub_$ac_func || defined __stub___$ac_func
21014 choke me
21015 #endif
21018 main ()
21020 return $ac_func ();
21022 return 0;
21024 _ACEOF
21025 rm -f conftest.$ac_objext conftest$ac_exeext
21026 if { (ac_try="$ac_link"
21027 case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21030 esac
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033 (eval "$ac_link") 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest$ac_exeext && {
21043 test "$cross_compiling" = yes ||
21044 $as_test_x conftest$ac_exeext
21045 }; then
21046 eval "$as_ac_var=yes"
21047 else
21048 $as_echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 eval "$as_ac_var=no"
21054 rm -rf conftest.dSYM
21055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21056 conftest$ac_exeext conftest.$ac_ext
21058 ac_res=`eval 'as_val=${'$as_ac_var'}
21059 $as_echo "$as_val"'`
21060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21061 $as_echo "$ac_res" >&6; }
21062 as_val=`eval 'as_val=${'$as_ac_var'}
21063 $as_echo "$as_val"'`
21064 if test "x$as_val" = x""yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21067 _ACEOF
21070 done
21073 # PTY-related GNU extensions.
21075 for ac_func in getpt
21077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21079 $as_echo_n "checking for $ac_func... " >&6; }
21080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21081 $as_echo_n "(cached) " >&6
21082 else
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21091 #define $ac_func innocuous_$ac_func
21093 /* System header to define __stub macros and hopefully few prototypes,
21094 which can conflict with char $ac_func (); below.
21095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21096 <limits.h> exists even on freestanding compilers. */
21098 #ifdef __STDC__
21099 # include <limits.h>
21100 #else
21101 # include <assert.h>
21102 #endif
21104 #undef $ac_func
21106 /* Override any GCC internal prototype to avoid an error.
21107 Use char because int might match the return type of a GCC
21108 builtin and then its argument prototype would still apply. */
21109 #ifdef __cplusplus
21110 extern "C"
21111 #endif
21112 char $ac_func ();
21113 /* The GNU C library defines this for functions which it implements
21114 to always fail with ENOSYS. Some functions are actually named
21115 something starting with __ and the normal name is an alias. */
21116 #if defined __stub_$ac_func || defined __stub___$ac_func
21117 choke me
21118 #endif
21121 main ()
21123 return $ac_func ();
21125 return 0;
21127 _ACEOF
21128 rm -f conftest.$ac_objext conftest$ac_exeext
21129 if { (ac_try="$ac_link"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21133 esac
21134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21135 $as_echo "$ac_try_echo") >&5
21136 (eval "$ac_link") 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && {
21143 test -z "$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 } && test -s conftest$ac_exeext && {
21146 test "$cross_compiling" = yes ||
21147 $as_test_x conftest$ac_exeext
21148 }; then
21149 eval "$as_ac_var=yes"
21150 else
21151 $as_echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 eval "$as_ac_var=no"
21157 rm -rf conftest.dSYM
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159 conftest$ac_exeext conftest.$ac_ext
21161 ac_res=`eval 'as_val=${'$as_ac_var'}
21162 $as_echo "$as_val"'`
21163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21164 $as_echo "$ac_res" >&6; }
21165 as_val=`eval 'as_val=${'$as_ac_var'}
21166 $as_echo "$as_val"'`
21167 if test "x$as_val" = x""yes; then
21168 cat >>confdefs.h <<_ACEOF
21169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21170 _ACEOF
21173 done
21176 # Check this now, so that we will NOT find the above functions in ncurses.
21177 # That is because we have not set up to link ncurses in lib-src.
21178 # It's better to believe a function is not available
21179 # than to expect to find it in ncurses.
21180 # Also we need tputs and frieds to be able to build at all.
21181 have_tputs_et_al=true
21182 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21183 $as_echo_n "checking for library containing tputs... " >&6; }
21184 if test "${ac_cv_search_tputs+set}" = set; then
21185 $as_echo_n "(cached) " >&6
21186 else
21187 ac_func_search_save_LIBS=$LIBS
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 char tputs ();
21203 main ()
21205 return tputs ();
21207 return 0;
21209 _ACEOF
21210 for ac_lib in '' ncurses terminfo termcap; do
21211 if test -z "$ac_lib"; then
21212 ac_res="none required"
21213 else
21214 ac_res=-l$ac_lib
21215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21217 rm -f conftest.$ac_objext conftest$ac_exeext
21218 if { (ac_try="$ac_link"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222 esac
21223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21224 $as_echo "$ac_try_echo") >&5
21225 (eval "$ac_link") 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest$ac_exeext && {
21235 test "$cross_compiling" = yes ||
21236 $as_test_x conftest$ac_exeext
21237 }; then
21238 ac_cv_search_tputs=$ac_res
21239 else
21240 $as_echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21246 rm -rf conftest.dSYM
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248 conftest$ac_exeext
21249 if test "${ac_cv_search_tputs+set}" = set; then
21250 break
21252 done
21253 if test "${ac_cv_search_tputs+set}" = set; then
21255 else
21256 ac_cv_search_tputs=no
21258 rm conftest.$ac_ext
21259 LIBS=$ac_func_search_save_LIBS
21261 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21262 $as_echo "$ac_cv_search_tputs" >&6; }
21263 ac_res=$ac_cv_search_tputs
21264 if test "$ac_res" != no; then
21265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21267 else
21268 have_tputs_et_al=false
21271 if test "$have_tputs_et_al" != true; then
21272 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21273 Maybe some development libraries/packages are missing? Try installing
21274 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21275 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21276 Maybe some development libraries/packages are missing? Try installing
21277 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21278 { (exit 1); exit 1; }; }
21280 # Must define this when any termcap library is found.
21282 cat >>confdefs.h <<\_ACEOF
21283 #define HAVE_LIBNCURSES 1
21284 _ACEOF
21287 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21289 resolv=no
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #include <netinet/in.h>
21297 #include <arpa/nameser.h>
21298 #include <resolv.h>
21300 main ()
21302 return res_init();
21304 return 0;
21306 _ACEOF
21307 rm -f conftest.$ac_objext conftest$ac_exeext
21308 if { (ac_try="$ac_link"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21312 esac
21313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21314 $as_echo "$ac_try_echo") >&5
21315 (eval "$ac_link") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest$ac_exeext && {
21325 test "$cross_compiling" = yes ||
21326 $as_test_x conftest$ac_exeext
21327 }; then
21328 have_res_init=yes
21329 else
21330 $as_echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 have_res_init=no
21336 rm -rf conftest.dSYM
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338 conftest$ac_exeext conftest.$ac_ext
21339 if test "$have_res_init" = no; then
21340 OLIBS="$LIBS"
21341 LIBS="$LIBS -lresolv"
21342 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21343 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h. */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <netinet/in.h>
21351 #include <arpa/nameser.h>
21352 #include <resolv.h>
21354 main ()
21356 return res_init();
21358 return 0;
21360 _ACEOF
21361 rm -f conftest.$ac_objext conftest$ac_exeext
21362 if { (ac_try="$ac_link"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366 esac
21367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21368 $as_echo "$ac_try_echo") >&5
21369 (eval "$ac_link") 2>conftest.er1
21370 ac_status=$?
21371 grep -v '^ *+' conftest.er1 >conftest.err
21372 rm -f conftest.er1
21373 cat conftest.err >&5
21374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest$ac_exeext && {
21379 test "$cross_compiling" = yes ||
21380 $as_test_x conftest$ac_exeext
21381 }; then
21382 have_res_init=yes
21383 else
21384 $as_echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 have_res_init=no
21390 rm -rf conftest.dSYM
21391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21392 conftest$ac_exeext conftest.$ac_ext
21393 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21394 $as_echo "$have_res_init" >&6; }
21395 if test "$have_res_init" = yes ; then
21396 resolv=yes
21398 LIBS="$OLIBS"
21401 if test "$have_res_init" = yes; then
21403 cat >>confdefs.h <<\_ACEOF
21404 #define HAVE_RES_INIT 1
21405 _ACEOF
21409 # Do we need the Hesiod library to provide the support routines?
21410 LIBHESIOD=
21411 if test "$with_hesiod" != no ; then
21412 # Don't set $LIBS here -- see comments above. FIXME which comments?
21413 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21414 $as_echo_n "checking for res_send... " >&6; }
21415 if test "${ac_cv_func_res_send+set}" = set; then
21416 $as_echo_n "(cached) " >&6
21417 else
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21426 #define res_send innocuous_res_send
21428 /* System header to define __stub macros and hopefully few prototypes,
21429 which can conflict with char res_send (); below.
21430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21431 <limits.h> exists even on freestanding compilers. */
21433 #ifdef __STDC__
21434 # include <limits.h>
21435 #else
21436 # include <assert.h>
21437 #endif
21439 #undef res_send
21441 /* Override any GCC internal prototype to avoid an error.
21442 Use char because int might match the return type of a GCC
21443 builtin and then its argument prototype would still apply. */
21444 #ifdef __cplusplus
21445 extern "C"
21446 #endif
21447 char res_send ();
21448 /* The GNU C library defines this for functions which it implements
21449 to always fail with ENOSYS. Some functions are actually named
21450 something starting with __ and the normal name is an alias. */
21451 #if defined __stub_res_send || defined __stub___res_send
21452 choke me
21453 #endif
21456 main ()
21458 return res_send ();
21460 return 0;
21462 _ACEOF
21463 rm -f conftest.$ac_objext conftest$ac_exeext
21464 if { (ac_try="$ac_link"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21468 esac
21469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21470 $as_echo "$ac_try_echo") >&5
21471 (eval "$ac_link") 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } && {
21478 test -z "$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 } && test -s conftest$ac_exeext && {
21481 test "$cross_compiling" = yes ||
21482 $as_test_x conftest$ac_exeext
21483 }; then
21484 ac_cv_func_res_send=yes
21485 else
21486 $as_echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21489 ac_cv_func_res_send=no
21492 rm -rf conftest.dSYM
21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494 conftest$ac_exeext conftest.$ac_ext
21496 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21497 $as_echo "$ac_cv_func_res_send" >&6; }
21498 if test "x$ac_cv_func_res_send" = x""yes; then
21500 else
21501 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21502 $as_echo_n "checking for __res_send... " >&6; }
21503 if test "${ac_cv_func___res_send+set}" = set; then
21504 $as_echo_n "(cached) " >&6
21505 else
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h. */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21514 #define __res_send innocuous___res_send
21516 /* System header to define __stub macros and hopefully few prototypes,
21517 which can conflict with char __res_send (); below.
21518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519 <limits.h> exists even on freestanding compilers. */
21521 #ifdef __STDC__
21522 # include <limits.h>
21523 #else
21524 # include <assert.h>
21525 #endif
21527 #undef __res_send
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21532 #ifdef __cplusplus
21533 extern "C"
21534 #endif
21535 char __res_send ();
21536 /* The GNU C library defines this for functions which it implements
21537 to always fail with ENOSYS. Some functions are actually named
21538 something starting with __ and the normal name is an alias. */
21539 #if defined __stub___res_send || defined __stub_____res_send
21540 choke me
21541 #endif
21544 main ()
21546 return __res_send ();
21548 return 0;
21550 _ACEOF
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21556 esac
21557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21558 $as_echo "$ac_try_echo") >&5
21559 (eval "$ac_link") 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest$ac_exeext && {
21569 test "$cross_compiling" = yes ||
21570 $as_test_x conftest$ac_exeext
21571 }; then
21572 ac_cv_func___res_send=yes
21573 else
21574 $as_echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_cv_func___res_send=no
21580 rm -rf conftest.dSYM
21581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21582 conftest$ac_exeext conftest.$ac_ext
21584 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21585 $as_echo "$ac_cv_func___res_send" >&6; }
21586 if test "x$ac_cv_func___res_send" = x""yes; then
21588 else
21589 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21590 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21591 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21592 $as_echo_n "(cached) " >&6
21593 else
21594 ac_check_lib_save_LIBS=$LIBS
21595 LIBS="-lresolv $LIBS"
21596 cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h. */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21603 /* Override any GCC internal prototype to avoid an error.
21604 Use char because int might match the return type of a GCC
21605 builtin and then its argument prototype would still apply. */
21606 #ifdef __cplusplus
21607 extern "C"
21608 #endif
21609 char res_send ();
21611 main ()
21613 return res_send ();
21615 return 0;
21617 _ACEOF
21618 rm -f conftest.$ac_objext conftest$ac_exeext
21619 if { (ac_try="$ac_link"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21623 esac
21624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21625 $as_echo "$ac_try_echo") >&5
21626 (eval "$ac_link") 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } && {
21633 test -z "$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 } && test -s conftest$ac_exeext && {
21636 test "$cross_compiling" = yes ||
21637 $as_test_x conftest$ac_exeext
21638 }; then
21639 ac_cv_lib_resolv_res_send=yes
21640 else
21641 $as_echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_cv_lib_resolv_res_send=no
21647 rm -rf conftest.dSYM
21648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21649 conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21653 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21654 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then
21655 resolv=yes
21656 else
21657 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21658 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21659 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21660 $as_echo_n "(cached) " >&6
21661 else
21662 ac_check_lib_save_LIBS=$LIBS
21663 LIBS="-lresolv $LIBS"
21664 cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h. */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21671 /* Override any GCC internal prototype to avoid an error.
21672 Use char because int might match the return type of a GCC
21673 builtin and then its argument prototype would still apply. */
21674 #ifdef __cplusplus
21675 extern "C"
21676 #endif
21677 char __res_send ();
21679 main ()
21681 return __res_send ();
21683 return 0;
21685 _ACEOF
21686 rm -f conftest.$ac_objext conftest$ac_exeext
21687 if { (ac_try="$ac_link"
21688 case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691 esac
21692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21693 $as_echo "$ac_try_echo") >&5
21694 (eval "$ac_link") 2>conftest.er1
21695 ac_status=$?
21696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
21699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest$ac_exeext && {
21704 test "$cross_compiling" = yes ||
21705 $as_test_x conftest$ac_exeext
21706 }; then
21707 ac_cv_lib_resolv___res_send=yes
21708 else
21709 $as_echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 ac_cv_lib_resolv___res_send=no
21715 rm -rf conftest.dSYM
21716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
21718 LIBS=$ac_check_lib_save_LIBS
21720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21721 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21722 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then
21723 resolv=yes
21732 if test "$resolv" = yes ; then
21733 RESOLVLIB=-lresolv
21734 else
21735 RESOLVLIB=
21737 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21738 $as_echo_n "checking for hes_getmailhost... " >&6; }
21739 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21740 $as_echo_n "(cached) " >&6
21741 else
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h. */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21750 #define hes_getmailhost innocuous_hes_getmailhost
21752 /* System header to define __stub macros and hopefully few prototypes,
21753 which can conflict with char hes_getmailhost (); below.
21754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21755 <limits.h> exists even on freestanding compilers. */
21757 #ifdef __STDC__
21758 # include <limits.h>
21759 #else
21760 # include <assert.h>
21761 #endif
21763 #undef hes_getmailhost
21765 /* Override any GCC internal prototype to avoid an error.
21766 Use char because int might match the return type of a GCC
21767 builtin and then its argument prototype would still apply. */
21768 #ifdef __cplusplus
21769 extern "C"
21770 #endif
21771 char hes_getmailhost ();
21772 /* The GNU C library defines this for functions which it implements
21773 to always fail with ENOSYS. Some functions are actually named
21774 something starting with __ and the normal name is an alias. */
21775 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21776 choke me
21777 #endif
21780 main ()
21782 return hes_getmailhost ();
21784 return 0;
21786 _ACEOF
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (ac_try="$ac_link"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21792 esac
21793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21794 $as_echo "$ac_try_echo") >&5
21795 (eval "$ac_link") 2>conftest.er1
21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest$ac_exeext && {
21805 test "$cross_compiling" = yes ||
21806 $as_test_x conftest$ac_exeext
21807 }; then
21808 ac_cv_func_hes_getmailhost=yes
21809 else
21810 $as_echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_cv_func_hes_getmailhost=no
21816 rm -rf conftest.dSYM
21817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21818 conftest$ac_exeext conftest.$ac_ext
21820 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21821 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21822 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then
21824 else
21825 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21826 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21827 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21828 $as_echo_n "(cached) " >&6
21829 else
21830 ac_check_lib_save_LIBS=$LIBS
21831 LIBS="-lhesiod $RESOLVLIB $LIBS"
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h. */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21839 /* Override any GCC internal prototype to avoid an error.
21840 Use char because int might match the return type of a GCC
21841 builtin and then its argument prototype would still apply. */
21842 #ifdef __cplusplus
21843 extern "C"
21844 #endif
21845 char hes_getmailhost ();
21847 main ()
21849 return hes_getmailhost ();
21851 return 0;
21853 _ACEOF
21854 rm -f conftest.$ac_objext conftest$ac_exeext
21855 if { (ac_try="$ac_link"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859 esac
21860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21861 $as_echo "$ac_try_echo") >&5
21862 (eval "$ac_link") 2>conftest.er1
21863 ac_status=$?
21864 grep -v '^ *+' conftest.er1 >conftest.err
21865 rm -f conftest.er1
21866 cat conftest.err >&5
21867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } && {
21869 test -z "$ac_c_werror_flag" ||
21870 test ! -s conftest.err
21871 } && test -s conftest$ac_exeext && {
21872 test "$cross_compiling" = yes ||
21873 $as_test_x conftest$ac_exeext
21874 }; then
21875 ac_cv_lib_hesiod_hes_getmailhost=yes
21876 else
21877 $as_echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21880 ac_cv_lib_hesiod_hes_getmailhost=no
21883 rm -rf conftest.dSYM
21884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21885 conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21888 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21889 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21890 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
21891 hesiod=yes
21892 else
21899 if test x"$hesiod" = xyes; then
21901 cat >>confdefs.h <<\_ACEOF
21902 #define HAVE_LIBHESIOD 1
21903 _ACEOF
21905 LIBHESIOD=-lhesiod
21910 # Do we need libresolv (due to res_init or Hesiod)?
21911 if test "$resolv" = yes ; then
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_LIBRESOLV 1
21915 _ACEOF
21917 LIBRESOLV=-lresolv
21918 else
21919 LIBRESOLV=
21923 # These tell us which Kerberos-related libraries to use.
21924 COM_ERRLIB=
21925 CRYPTOLIB=
21926 KRB5LIB=
21927 DESLIB=
21928 KRB4LIB=
21930 if test "${with_kerberos}" != no; then
21931 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21932 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21933 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21934 $as_echo_n "(cached) " >&6
21935 else
21936 ac_check_lib_save_LIBS=$LIBS
21937 LIBS="-lcom_err $LIBS"
21938 cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h. */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21945 /* Override any GCC internal prototype to avoid an error.
21946 Use char because int might match the return type of a GCC
21947 builtin and then its argument prototype would still apply. */
21948 #ifdef __cplusplus
21949 extern "C"
21950 #endif
21951 char com_err ();
21953 main ()
21955 return com_err ();
21957 return 0;
21959 _ACEOF
21960 rm -f conftest.$ac_objext conftest$ac_exeext
21961 if { (ac_try="$ac_link"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21967 $as_echo "$ac_try_echo") >&5
21968 (eval "$ac_link") 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } && {
21975 test -z "$ac_c_werror_flag" ||
21976 test ! -s conftest.err
21977 } && test -s conftest$ac_exeext && {
21978 test "$cross_compiling" = yes ||
21979 $as_test_x conftest$ac_exeext
21980 }; then
21981 ac_cv_lib_com_err_com_err=yes
21982 else
21983 $as_echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_cv_lib_com_err_com_err=no
21989 rm -rf conftest.dSYM
21990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21991 conftest$ac_exeext conftest.$ac_ext
21992 LIBS=$ac_check_lib_save_LIBS
21994 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21995 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21996 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
21997 have_com_err=yes
21998 else
21999 have_com_err=no
22002 if test $have_com_err = yes; then
22003 COM_ERRLIB=-lcom_err
22004 LIBS="$COM_ERRLIB $LIBS"
22006 cat >>confdefs.h <<\_ACEOF
22007 #define HAVE_LIBCOM_ERR 1
22008 _ACEOF
22011 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22012 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22013 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22014 $as_echo_n "(cached) " >&6
22015 else
22016 ac_check_lib_save_LIBS=$LIBS
22017 LIBS="-lcrypto $LIBS"
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. */
22025 /* Override any GCC internal prototype to avoid an error.
22026 Use char because int might match the return type of a GCC
22027 builtin and then its argument prototype would still apply. */
22028 #ifdef __cplusplus
22029 extern "C"
22030 #endif
22031 char mit_des_cbc_encrypt ();
22033 main ()
22035 return mit_des_cbc_encrypt ();
22037 return 0;
22039 _ACEOF
22040 rm -f conftest.$ac_objext conftest$ac_exeext
22041 if { (ac_try="$ac_link"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045 esac
22046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22047 $as_echo "$ac_try_echo") >&5
22048 (eval "$ac_link") 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest$ac_exeext && {
22058 test "$cross_compiling" = yes ||
22059 $as_test_x conftest$ac_exeext
22060 }; then
22061 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22062 else
22063 $as_echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22069 rm -rf conftest.dSYM
22070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22071 conftest$ac_exeext conftest.$ac_ext
22072 LIBS=$ac_check_lib_save_LIBS
22074 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22075 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22076 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22077 have_crypto=yes
22078 else
22079 have_crypto=no
22082 if test $have_crypto = yes; then
22083 CRYPTOLIB=-lcrypto
22084 LIBS="$CRYPTOLIB $LIBS"
22086 cat >>confdefs.h <<\_ACEOF
22087 #define HAVE_LIBCRYPTO 1
22088 _ACEOF
22091 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22092 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22093 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22094 $as_echo_n "(cached) " >&6
22095 else
22096 ac_check_lib_save_LIBS=$LIBS
22097 LIBS="-lk5crypto $LIBS"
22098 cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h. */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22105 /* Override any GCC internal prototype to avoid an error.
22106 Use char because int might match the return type of a GCC
22107 builtin and then its argument prototype would still apply. */
22108 #ifdef __cplusplus
22109 extern "C"
22110 #endif
22111 char mit_des_cbc_encrypt ();
22113 main ()
22115 return mit_des_cbc_encrypt ();
22117 return 0;
22119 _ACEOF
22120 rm -f conftest.$ac_objext conftest$ac_exeext
22121 if { (ac_try="$ac_link"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125 esac
22126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22127 $as_echo "$ac_try_echo") >&5
22128 (eval "$ac_link") 2>conftest.er1
22129 ac_status=$?
22130 grep -v '^ *+' conftest.er1 >conftest.err
22131 rm -f conftest.er1
22132 cat conftest.err >&5
22133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } && {
22135 test -z "$ac_c_werror_flag" ||
22136 test ! -s conftest.err
22137 } && test -s conftest$ac_exeext && {
22138 test "$cross_compiling" = yes ||
22139 $as_test_x conftest$ac_exeext
22140 }; then
22141 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22142 else
22143 $as_echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22149 rm -rf conftest.dSYM
22150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22151 conftest$ac_exeext conftest.$ac_ext
22152 LIBS=$ac_check_lib_save_LIBS
22154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22155 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22156 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22157 have_k5crypto=yes
22158 else
22159 have_k5crypto=no
22162 if test $have_k5crypto = yes; then
22163 CRYPTOLIB=-lk5crypto
22164 LIBS="$CRYPTOLIB $LIBS"
22166 cat >>confdefs.h <<\_ACEOF
22167 #define HAVE_LIBK5CRYPTO 1
22168 _ACEOF
22171 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22172 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22173 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22174 $as_echo_n "(cached) " >&6
22175 else
22176 ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lkrb5 $LIBS"
22178 cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h. */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 /* Override any GCC internal prototype to avoid an error.
22186 Use char because int might match the return type of a GCC
22187 builtin and then its argument prototype would still apply. */
22188 #ifdef __cplusplus
22189 extern "C"
22190 #endif
22191 char krb5_init_context ();
22193 main ()
22195 return krb5_init_context ();
22197 return 0;
22199 _ACEOF
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22205 esac
22206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22207 $as_echo "$ac_try_echo") >&5
22208 (eval "$ac_link") 2>conftest.er1
22209 ac_status=$?
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
22213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } && {
22215 test -z "$ac_c_werror_flag" ||
22216 test ! -s conftest.err
22217 } && test -s conftest$ac_exeext && {
22218 test "$cross_compiling" = yes ||
22219 $as_test_x conftest$ac_exeext
22220 }; then
22221 ac_cv_lib_krb5_krb5_init_context=yes
22222 else
22223 $as_echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 ac_cv_lib_krb5_krb5_init_context=no
22229 rm -rf conftest.dSYM
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231 conftest$ac_exeext conftest.$ac_ext
22232 LIBS=$ac_check_lib_save_LIBS
22234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22235 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22236 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22237 have_krb5=yes
22238 else
22239 have_krb5=no
22242 if test $have_krb5=yes; then
22243 KRB5LIB=-lkrb5
22244 LIBS="$KRB5LIB $LIBS"
22246 cat >>confdefs.h <<\_ACEOF
22247 #define HAVE_LIBKRB5 1
22248 _ACEOF
22251 if test "${with_kerberos5}" = no; then
22252 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22253 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22254 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22255 $as_echo_n "(cached) " >&6
22256 else
22257 ac_check_lib_save_LIBS=$LIBS
22258 LIBS="-ldes425 $LIBS"
22259 cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h. */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22269 #ifdef __cplusplus
22270 extern "C"
22271 #endif
22272 char des_cbc_encrypt ();
22274 main ()
22276 return des_cbc_encrypt ();
22278 return 0;
22280 _ACEOF
22281 rm -f conftest.$ac_objext conftest$ac_exeext
22282 if { (ac_try="$ac_link"
22283 case "(($ac_try" in
22284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285 *) ac_try_echo=$ac_try;;
22286 esac
22287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22288 $as_echo "$ac_try_echo") >&5
22289 (eval "$ac_link") 2>conftest.er1
22290 ac_status=$?
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
22294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } && {
22296 test -z "$ac_c_werror_flag" ||
22297 test ! -s conftest.err
22298 } && test -s conftest$ac_exeext && {
22299 test "$cross_compiling" = yes ||
22300 $as_test_x conftest$ac_exeext
22301 }; then
22302 ac_cv_lib_des425_des_cbc_encrypt=yes
22303 else
22304 $as_echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 ac_cv_lib_des425_des_cbc_encrypt=no
22310 rm -rf conftest.dSYM
22311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22312 conftest$ac_exeext conftest.$ac_ext
22313 LIBS=$ac_check_lib_save_LIBS
22315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22316 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22317 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22318 have_des425=yes
22319 else
22320 have_des425=no
22323 if test $have_des425 = yes; then
22324 DESLIB=-ldes425
22325 LIBS="$DESLIB $LIBS"
22327 cat >>confdefs.h <<\_ACEOF
22328 #define HAVE_LIBDES425 1
22329 _ACEOF
22331 else
22332 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22333 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22334 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22335 $as_echo_n "(cached) " >&6
22336 else
22337 ac_check_lib_save_LIBS=$LIBS
22338 LIBS="-ldes $LIBS"
22339 cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h. */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22346 /* Override any GCC internal prototype to avoid an error.
22347 Use char because int might match the return type of a GCC
22348 builtin and then its argument prototype would still apply. */
22349 #ifdef __cplusplus
22350 extern "C"
22351 #endif
22352 char des_cbc_encrypt ();
22354 main ()
22356 return des_cbc_encrypt ();
22358 return 0;
22360 _ACEOF
22361 rm -f conftest.$ac_objext conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22366 esac
22367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22368 $as_echo "$ac_try_echo") >&5
22369 (eval "$ac_link") 2>conftest.er1
22370 ac_status=$?
22371 grep -v '^ *+' conftest.er1 >conftest.err
22372 rm -f conftest.er1
22373 cat conftest.err >&5
22374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } && {
22376 test -z "$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 } && test -s conftest$ac_exeext && {
22379 test "$cross_compiling" = yes ||
22380 $as_test_x conftest$ac_exeext
22381 }; then
22382 ac_cv_lib_des_des_cbc_encrypt=yes
22383 else
22384 $as_echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ac_cv_lib_des_des_cbc_encrypt=no
22390 rm -rf conftest.dSYM
22391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22392 conftest$ac_exeext conftest.$ac_ext
22393 LIBS=$ac_check_lib_save_LIBS
22395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22396 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22397 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
22398 have_des=yes
22399 else
22400 have_des=no
22403 if test $have_des = yes; then
22404 DESLIB=-ldes
22405 LIBS="$DESLIB $LIBS"
22407 cat >>confdefs.h <<\_ACEOF
22408 #define HAVE_LIBDES 1
22409 _ACEOF
22413 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22414 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22415 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22416 $as_echo_n "(cached) " >&6
22417 else
22418 ac_check_lib_save_LIBS=$LIBS
22419 LIBS="-lkrb4 $LIBS"
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22427 /* Override any GCC internal prototype to avoid an error.
22428 Use char because int might match the return type of a GCC
22429 builtin and then its argument prototype would still apply. */
22430 #ifdef __cplusplus
22431 extern "C"
22432 #endif
22433 char krb_get_cred ();
22435 main ()
22437 return krb_get_cred ();
22439 return 0;
22441 _ACEOF
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22449 $as_echo "$ac_try_echo") >&5
22450 (eval "$ac_link") 2>conftest.er1
22451 ac_status=$?
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
22455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } && {
22457 test -z "$ac_c_werror_flag" ||
22458 test ! -s conftest.err
22459 } && test -s conftest$ac_exeext && {
22460 test "$cross_compiling" = yes ||
22461 $as_test_x conftest$ac_exeext
22462 }; then
22463 ac_cv_lib_krb4_krb_get_cred=yes
22464 else
22465 $as_echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ac_cv_lib_krb4_krb_get_cred=no
22471 rm -rf conftest.dSYM
22472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22473 conftest$ac_exeext conftest.$ac_ext
22474 LIBS=$ac_check_lib_save_LIBS
22476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22477 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22478 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
22479 have_krb4=yes
22480 else
22481 have_krb4=no
22484 if test $have_krb4 = yes; then
22485 KRB4LIB=-lkrb4
22486 LIBS="$KRB4LIB $LIBS"
22488 cat >>confdefs.h <<\_ACEOF
22489 #define HAVE_LIBKRB4 1
22490 _ACEOF
22492 else
22493 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22494 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22495 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22496 $as_echo_n "(cached) " >&6
22497 else
22498 ac_check_lib_save_LIBS=$LIBS
22499 LIBS="-lkrb $LIBS"
22500 cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h. */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22507 /* Override any GCC internal prototype to avoid an error.
22508 Use char because int might match the return type of a GCC
22509 builtin and then its argument prototype would still apply. */
22510 #ifdef __cplusplus
22511 extern "C"
22512 #endif
22513 char krb_get_cred ();
22515 main ()
22517 return krb_get_cred ();
22519 return 0;
22521 _ACEOF
22522 rm -f conftest.$ac_objext conftest$ac_exeext
22523 if { (ac_try="$ac_link"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527 esac
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530 (eval "$ac_link") 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest$ac_exeext && {
22540 test "$cross_compiling" = yes ||
22541 $as_test_x conftest$ac_exeext
22542 }; then
22543 ac_cv_lib_krb_krb_get_cred=yes
22544 else
22545 $as_echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_cv_lib_krb_krb_get_cred=no
22551 rm -rf conftest.dSYM
22552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22553 conftest$ac_exeext conftest.$ac_ext
22554 LIBS=$ac_check_lib_save_LIBS
22556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22557 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22558 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then
22559 have_krb=yes
22560 else
22561 have_krb=no
22564 if test $have_krb = yes; then
22565 KRB4LIB=-lkrb
22566 LIBS="$KRB4LIB $LIBS"
22568 cat >>confdefs.h <<\_ACEOF
22569 #define HAVE_LIBKRB 1
22570 _ACEOF
22576 if test "${with_kerberos5}" != no; then
22578 for ac_header in krb5.h
22580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22583 $as_echo_n "checking for $ac_header... " >&6; }
22584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22585 $as_echo_n "(cached) " >&6
22587 ac_res=`eval 'as_val=${'$as_ac_Header'}
22588 $as_echo "$as_val"'`
22589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22590 $as_echo "$ac_res" >&6; }
22591 else
22592 # Is the header compilable?
22593 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22594 $as_echo_n "checking $ac_header usability... " >&6; }
22595 cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h. */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 $ac_includes_default
22602 #include <$ac_header>
22603 _ACEOF
22604 rm -f conftest.$ac_objext
22605 if { (ac_try="$ac_compile"
22606 case "(($ac_try" in
22607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608 *) ac_try_echo=$ac_try;;
22609 esac
22610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22611 $as_echo "$ac_try_echo") >&5
22612 (eval "$ac_compile") 2>conftest.er1
22613 ac_status=$?
22614 grep -v '^ *+' conftest.er1 >conftest.err
22615 rm -f conftest.er1
22616 cat conftest.err >&5
22617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } && {
22619 test -z "$ac_c_werror_flag" ||
22620 test ! -s conftest.err
22621 } && test -s conftest.$ac_objext; then
22622 ac_header_compiler=yes
22623 else
22624 $as_echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ac_header_compiler=no
22630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22632 $as_echo "$ac_header_compiler" >&6; }
22634 # Is the header present?
22635 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22636 $as_echo_n "checking $ac_header presence... " >&6; }
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h. */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 #include <$ac_header>
22644 _ACEOF
22645 if { (ac_try="$ac_cpp conftest.$ac_ext"
22646 case "(($ac_try" in
22647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648 *) ac_try_echo=$ac_try;;
22649 esac
22650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22651 $as_echo "$ac_try_echo") >&5
22652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22653 ac_status=$?
22654 grep -v '^ *+' conftest.er1 >conftest.err
22655 rm -f conftest.er1
22656 cat conftest.err >&5
22657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } >/dev/null && {
22659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 }; then
22662 ac_header_preproc=yes
22663 else
22664 $as_echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ac_header_preproc=no
22670 rm -f conftest.err conftest.$ac_ext
22671 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22672 $as_echo "$ac_header_preproc" >&6; }
22674 # So? What about this header?
22675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22676 yes:no: )
22677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22678 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22681 ac_header_preproc=yes
22683 no:yes:* )
22684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22685 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22687 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22689 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22691 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22695 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22698 esac
22699 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22700 $as_echo_n "checking for $ac_header... " >&6; }
22701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22702 $as_echo_n "(cached) " >&6
22703 else
22704 eval "$as_ac_Header=\$ac_header_preproc"
22706 ac_res=`eval 'as_val=${'$as_ac_Header'}
22707 $as_echo "$as_val"'`
22708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22709 $as_echo "$ac_res" >&6; }
22712 as_val=`eval 'as_val=${'$as_ac_Header'}
22713 $as_echo "$as_val"'`
22714 if test "x$as_val" = x""yes; then
22715 cat >>confdefs.h <<_ACEOF
22716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22717 _ACEOF
22718 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22719 $as_echo_n "checking for krb5_error.text... " >&6; }
22720 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22721 $as_echo_n "(cached) " >&6
22722 else
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h. */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 #include <krb5.h>
22732 main ()
22734 static krb5_error ac_aggr;
22735 if (ac_aggr.text)
22736 return 0;
22738 return 0;
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (ac_try="$ac_compile"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746 esac
22747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22748 $as_echo "$ac_try_echo") >&5
22749 (eval "$ac_compile") 2>conftest.er1
22750 ac_status=$?
22751 grep -v '^ *+' conftest.er1 >conftest.err
22752 rm -f conftest.er1
22753 cat conftest.err >&5
22754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); } && {
22756 test -z "$ac_c_werror_flag" ||
22757 test ! -s conftest.err
22758 } && test -s conftest.$ac_objext; then
22759 ac_cv_member_krb5_error_text=yes
22760 else
22761 $as_echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22764 cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h. */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 #include <krb5.h>
22773 main ()
22775 static krb5_error ac_aggr;
22776 if (sizeof ac_aggr.text)
22777 return 0;
22779 return 0;
22781 _ACEOF
22782 rm -f conftest.$ac_objext
22783 if { (ac_try="$ac_compile"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22787 esac
22788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22789 $as_echo "$ac_try_echo") >&5
22790 (eval "$ac_compile") 2>conftest.er1
22791 ac_status=$?
22792 grep -v '^ *+' conftest.er1 >conftest.err
22793 rm -f conftest.er1
22794 cat conftest.err >&5
22795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest.$ac_objext; then
22800 ac_cv_member_krb5_error_text=yes
22801 else
22802 $as_echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 ac_cv_member_krb5_error_text=no
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22814 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22815 if test "x$ac_cv_member_krb5_error_text" = x""yes; then
22817 cat >>confdefs.h <<_ACEOF
22818 #define HAVE_KRB5_ERROR_TEXT 1
22819 _ACEOF
22823 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22824 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22825 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22826 $as_echo_n "(cached) " >&6
22827 else
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <krb5.h>
22837 main ()
22839 static krb5_error ac_aggr;
22840 if (ac_aggr.e_text)
22841 return 0;
22843 return 0;
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22851 esac
22852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22853 $as_echo "$ac_try_echo") >&5
22854 (eval "$ac_compile") 2>conftest.er1
22855 ac_status=$?
22856 grep -v '^ *+' conftest.er1 >conftest.err
22857 rm -f conftest.er1
22858 cat conftest.err >&5
22859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest.$ac_objext; then
22864 ac_cv_member_krb5_error_e_text=yes
22865 else
22866 $as_echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h. */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 #include <krb5.h>
22878 main ()
22880 static krb5_error ac_aggr;
22881 if (sizeof ac_aggr.e_text)
22882 return 0;
22884 return 0;
22886 _ACEOF
22887 rm -f conftest.$ac_objext
22888 if { (ac_try="$ac_compile"
22889 case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22892 esac
22893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22894 $as_echo "$ac_try_echo") >&5
22895 (eval "$ac_compile") 2>conftest.er1
22896 ac_status=$?
22897 grep -v '^ *+' conftest.er1 >conftest.err
22898 rm -f conftest.er1
22899 cat conftest.err >&5
22900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); } && {
22902 test -z "$ac_c_werror_flag" ||
22903 test ! -s conftest.err
22904 } && test -s conftest.$ac_objext; then
22905 ac_cv_member_krb5_error_e_text=yes
22906 else
22907 $as_echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22910 ac_cv_member_krb5_error_e_text=no
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22919 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22920 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then
22922 cat >>confdefs.h <<_ACEOF
22923 #define HAVE_KRB5_ERROR_E_TEXT 1
22924 _ACEOF
22931 done
22933 else
22935 for ac_header in des.h
22937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22939 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22940 $as_echo_n "checking for $ac_header... " >&6; }
22941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22942 $as_echo_n "(cached) " >&6
22944 ac_res=`eval 'as_val=${'$as_ac_Header'}
22945 $as_echo "$as_val"'`
22946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22947 $as_echo "$ac_res" >&6; }
22948 else
22949 # Is the header compilable?
22950 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22951 $as_echo_n "checking $ac_header usability... " >&6; }
22952 cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h. */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 #include <$ac_header>
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966 esac
22967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22970 ac_status=$?
22971 grep -v '^ *+' conftest.er1 >conftest.err
22972 rm -f conftest.er1
22973 cat conftest.err >&5
22974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest.$ac_objext; then
22979 ac_header_compiler=yes
22980 else
22981 $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_header_compiler=no
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22989 $as_echo "$ac_header_compiler" >&6; }
22991 # Is the header present?
22992 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22993 $as_echo_n "checking $ac_header presence... " >&6; }
22994 cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h. */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 #include <$ac_header>
23001 _ACEOF
23002 if { (ac_try="$ac_cpp conftest.$ac_ext"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23006 esac
23007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23010 ac_status=$?
23011 grep -v '^ *+' conftest.er1 >conftest.err
23012 rm -f conftest.er1
23013 cat conftest.err >&5
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } >/dev/null && {
23016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 }; then
23019 ac_header_preproc=yes
23020 else
23021 $as_echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23024 ac_header_preproc=no
23027 rm -f conftest.err conftest.$ac_ext
23028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23029 $as_echo "$ac_header_preproc" >&6; }
23031 # So? What about this header?
23032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23033 yes:no: )
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23038 ac_header_preproc=yes
23040 no:yes:* )
23041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23042 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23044 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23046 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23048 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23052 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23055 esac
23056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23057 $as_echo_n "checking for $ac_header... " >&6; }
23058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23059 $as_echo_n "(cached) " >&6
23060 else
23061 eval "$as_ac_Header=\$ac_header_preproc"
23063 ac_res=`eval 'as_val=${'$as_ac_Header'}
23064 $as_echo "$as_val"'`
23065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23066 $as_echo "$ac_res" >&6; }
23069 as_val=`eval 'as_val=${'$as_ac_Header'}
23070 $as_echo "$as_val"'`
23071 if test "x$as_val" = x""yes; then
23072 cat >>confdefs.h <<_ACEOF
23073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23074 _ACEOF
23076 else
23078 for ac_header in kerberosIV/des.h
23080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23083 $as_echo_n "checking for $ac_header... " >&6; }
23084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23085 $as_echo_n "(cached) " >&6
23087 ac_res=`eval 'as_val=${'$as_ac_Header'}
23088 $as_echo "$as_val"'`
23089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23090 $as_echo "$ac_res" >&6; }
23091 else
23092 # Is the header compilable?
23093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23094 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
23102 #include <$ac_header>
23103 _ACEOF
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109 esac
23110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23113 ac_status=$?
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
23117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23122 ac_header_compiler=yes
23123 else
23124 $as_echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_header_compiler=no
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23132 $as_echo "$ac_header_compiler" >&6; }
23134 # Is the header present?
23135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23136 $as_echo_n "checking $ac_header presence... " >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 #include <$ac_header>
23144 _ACEOF
23145 if { (ac_try="$ac_cpp conftest.$ac_ext"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23149 esac
23150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23151 $as_echo "$ac_try_echo") >&5
23152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23153 ac_status=$?
23154 grep -v '^ *+' conftest.er1 >conftest.err
23155 rm -f conftest.er1
23156 cat conftest.err >&5
23157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } >/dev/null && {
23159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23161 }; then
23162 ac_header_preproc=yes
23163 else
23164 $as_echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 ac_header_preproc=no
23170 rm -f conftest.err conftest.$ac_ext
23171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23172 $as_echo "$ac_header_preproc" >&6; }
23174 # So? What about this header?
23175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23176 yes:no: )
23177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23181 ac_header_preproc=yes
23183 no:yes:* )
23184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23187 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23198 esac
23199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23200 $as_echo_n "checking for $ac_header... " >&6; }
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202 $as_echo_n "(cached) " >&6
23203 else
23204 eval "$as_ac_Header=\$ac_header_preproc"
23206 ac_res=`eval 'as_val=${'$as_ac_Header'}
23207 $as_echo "$as_val"'`
23208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23209 $as_echo "$ac_res" >&6; }
23212 as_val=`eval 'as_val=${'$as_ac_Header'}
23213 $as_echo "$as_val"'`
23214 if test "x$as_val" = x""yes; then
23215 cat >>confdefs.h <<_ACEOF
23216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23217 _ACEOF
23219 else
23221 for ac_header in kerberos/des.h
23223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23226 $as_echo_n "checking for $ac_header... " >&6; }
23227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23228 $as_echo_n "(cached) " >&6
23230 ac_res=`eval 'as_val=${'$as_ac_Header'}
23231 $as_echo "$as_val"'`
23232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23233 $as_echo "$ac_res" >&6; }
23234 else
23235 # Is the header compilable?
23236 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23237 $as_echo_n "checking $ac_header usability... " >&6; }
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h. */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 $ac_includes_default
23245 #include <$ac_header>
23246 _ACEOF
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252 esac
23253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23254 $as_echo "$ac_try_echo") >&5
23255 (eval "$ac_compile") 2>conftest.er1
23256 ac_status=$?
23257 grep -v '^ *+' conftest.er1 >conftest.err
23258 rm -f conftest.er1
23259 cat conftest.err >&5
23260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } && {
23262 test -z "$ac_c_werror_flag" ||
23263 test ! -s conftest.err
23264 } && test -s conftest.$ac_objext; then
23265 ac_header_compiler=yes
23266 else
23267 $as_echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 ac_header_compiler=no
23273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23275 $as_echo "$ac_header_compiler" >&6; }
23277 # Is the header present?
23278 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23279 $as_echo_n "checking $ac_header presence... " >&6; }
23280 cat >conftest.$ac_ext <<_ACEOF
23281 /* confdefs.h. */
23282 _ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 #include <$ac_header>
23287 _ACEOF
23288 if { (ac_try="$ac_cpp conftest.$ac_ext"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292 esac
23293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23294 $as_echo "$ac_try_echo") >&5
23295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } >/dev/null && {
23302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23304 }; then
23305 ac_header_preproc=yes
23306 else
23307 $as_echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_header_preproc=no
23313 rm -f conftest.err conftest.$ac_ext
23314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23315 $as_echo "$ac_header_preproc" >&6; }
23317 # So? What about this header?
23318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23319 yes:no: )
23320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23321 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23324 ac_header_preproc=yes
23326 no:yes:* )
23327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23328 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23330 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23332 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23334 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23338 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23341 esac
23342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23343 $as_echo_n "checking for $ac_header... " >&6; }
23344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345 $as_echo_n "(cached) " >&6
23346 else
23347 eval "$as_ac_Header=\$ac_header_preproc"
23349 ac_res=`eval 'as_val=${'$as_ac_Header'}
23350 $as_echo "$as_val"'`
23351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23352 $as_echo "$ac_res" >&6; }
23355 as_val=`eval 'as_val=${'$as_ac_Header'}
23356 $as_echo "$as_val"'`
23357 if test "x$as_val" = x""yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23360 _ACEOF
23364 done
23368 done
23372 done
23375 for ac_header in krb.h
23377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23380 $as_echo_n "checking for $ac_header... " >&6; }
23381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23382 $as_echo_n "(cached) " >&6
23384 ac_res=`eval 'as_val=${'$as_ac_Header'}
23385 $as_echo "$as_val"'`
23386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23387 $as_echo "$ac_res" >&6; }
23388 else
23389 # Is the header compilable?
23390 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23391 $as_echo_n "checking $ac_header usability... " >&6; }
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h. */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 $ac_includes_default
23399 #include <$ac_header>
23400 _ACEOF
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23408 $as_echo "$ac_try_echo") >&5
23409 (eval "$ac_compile") 2>conftest.er1
23410 ac_status=$?
23411 grep -v '^ *+' conftest.er1 >conftest.err
23412 rm -f conftest.er1
23413 cat conftest.err >&5
23414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && {
23416 test -z "$ac_c_werror_flag" ||
23417 test ! -s conftest.err
23418 } && test -s conftest.$ac_objext; then
23419 ac_header_compiler=yes
23420 else
23421 $as_echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23424 ac_header_compiler=no
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23429 $as_echo "$ac_header_compiler" >&6; }
23431 # Is the header present?
23432 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23433 $as_echo_n "checking $ac_header presence... " >&6; }
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h. */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <$ac_header>
23441 _ACEOF
23442 if { (ac_try="$ac_cpp conftest.$ac_ext"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446 esac
23447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23448 $as_echo "$ac_try_echo") >&5
23449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } >/dev/null && {
23456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 }; then
23459 ac_header_preproc=yes
23460 else
23461 $as_echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ac_header_preproc=no
23467 rm -f conftest.err conftest.$ac_ext
23468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23469 $as_echo "$ac_header_preproc" >&6; }
23471 # So? What about this header?
23472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23473 yes:no: )
23474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23475 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23478 ac_header_preproc=yes
23480 no:yes:* )
23481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23482 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23484 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23486 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23488 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23492 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23495 esac
23496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23497 $as_echo_n "checking for $ac_header... " >&6; }
23498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23499 $as_echo_n "(cached) " >&6
23500 else
23501 eval "$as_ac_Header=\$ac_header_preproc"
23503 ac_res=`eval 'as_val=${'$as_ac_Header'}
23504 $as_echo "$as_val"'`
23505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23506 $as_echo "$ac_res" >&6; }
23509 as_val=`eval 'as_val=${'$as_ac_Header'}
23510 $as_echo "$as_val"'`
23511 if test "x$as_val" = x""yes; then
23512 cat >>confdefs.h <<_ACEOF
23513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23514 _ACEOF
23516 else
23518 for ac_header in kerberosIV/krb.h
23520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23522 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23523 $as_echo_n "checking for $ac_header... " >&6; }
23524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23525 $as_echo_n "(cached) " >&6
23527 ac_res=`eval 'as_val=${'$as_ac_Header'}
23528 $as_echo "$as_val"'`
23529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23530 $as_echo "$ac_res" >&6; }
23531 else
23532 # Is the header compilable?
23533 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23534 $as_echo_n "checking $ac_header usability... " >&6; }
23535 cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h. */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23541 $ac_includes_default
23542 #include <$ac_header>
23543 _ACEOF
23544 rm -f conftest.$ac_objext
23545 if { (ac_try="$ac_compile"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23549 esac
23550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552 (eval "$ac_compile") 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest.$ac_objext; then
23562 ac_header_compiler=yes
23563 else
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 ac_header_compiler=no
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23572 $as_echo "$ac_header_compiler" >&6; }
23574 # Is the header present?
23575 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23576 $as_echo_n "checking $ac_header presence... " >&6; }
23577 cat >conftest.$ac_ext <<_ACEOF
23578 /* confdefs.h. */
23579 _ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 #include <$ac_header>
23584 _ACEOF
23585 if { (ac_try="$ac_cpp conftest.$ac_ext"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589 esac
23590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23591 $as_echo "$ac_try_echo") >&5
23592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23593 ac_status=$?
23594 grep -v '^ *+' conftest.er1 >conftest.err
23595 rm -f conftest.er1
23596 cat conftest.err >&5
23597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } >/dev/null && {
23599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23600 test ! -s conftest.err
23601 }; then
23602 ac_header_preproc=yes
23603 else
23604 $as_echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 ac_header_preproc=no
23610 rm -f conftest.err conftest.$ac_ext
23611 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23612 $as_echo "$ac_header_preproc" >&6; }
23614 # So? What about this header?
23615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23616 yes:no: )
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23621 ac_header_preproc=yes
23623 no:yes:* )
23624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23625 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23627 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23629 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23631 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23635 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23638 esac
23639 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23640 $as_echo_n "checking for $ac_header... " >&6; }
23641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23642 $as_echo_n "(cached) " >&6
23643 else
23644 eval "$as_ac_Header=\$ac_header_preproc"
23646 ac_res=`eval 'as_val=${'$as_ac_Header'}
23647 $as_echo "$as_val"'`
23648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23649 $as_echo "$ac_res" >&6; }
23652 as_val=`eval 'as_val=${'$as_ac_Header'}
23653 $as_echo "$as_val"'`
23654 if test "x$as_val" = x""yes; then
23655 cat >>confdefs.h <<_ACEOF
23656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23657 _ACEOF
23659 else
23661 for ac_header in kerberos/krb.h
23663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23666 $as_echo_n "checking for $ac_header... " >&6; }
23667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23668 $as_echo_n "(cached) " >&6
23670 ac_res=`eval 'as_val=${'$as_ac_Header'}
23671 $as_echo "$as_val"'`
23672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23673 $as_echo "$ac_res" >&6; }
23674 else
23675 # Is the header compilable?
23676 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23677 $as_echo_n "checking $ac_header usability... " >&6; }
23678 cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h. */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23684 $ac_includes_default
23685 #include <$ac_header>
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23692 esac
23693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23694 $as_echo "$ac_try_echo") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23696 ac_status=$?
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
23700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23705 ac_header_compiler=yes
23706 else
23707 $as_echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 ac_header_compiler=no
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23715 $as_echo "$ac_header_compiler" >&6; }
23717 # Is the header present?
23718 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23719 $as_echo_n "checking $ac_header presence... " >&6; }
23720 cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h. */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 #include <$ac_header>
23727 _ACEOF
23728 if { (ac_try="$ac_cpp conftest.$ac_ext"
23729 case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23732 esac
23733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23734 $as_echo "$ac_try_echo") >&5
23735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23736 ac_status=$?
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
23740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } >/dev/null && {
23742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 }; then
23745 ac_header_preproc=yes
23746 else
23747 $as_echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23750 ac_header_preproc=no
23753 rm -f conftest.err conftest.$ac_ext
23754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23755 $as_echo "$ac_header_preproc" >&6; }
23757 # So? What about this header?
23758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23759 yes:no: )
23760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23761 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23764 ac_header_preproc=yes
23766 no:yes:* )
23767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23768 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23770 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23772 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23774 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23778 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23781 esac
23782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23783 $as_echo_n "checking for $ac_header... " >&6; }
23784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23785 $as_echo_n "(cached) " >&6
23786 else
23787 eval "$as_ac_Header=\$ac_header_preproc"
23789 ac_res=`eval 'as_val=${'$as_ac_Header'}
23790 $as_echo "$as_val"'`
23791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23792 $as_echo "$ac_res" >&6; }
23795 as_val=`eval 'as_val=${'$as_ac_Header'}
23796 $as_echo "$as_val"'`
23797 if test "x$as_val" = x""yes; then
23798 cat >>confdefs.h <<_ACEOF
23799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23800 _ACEOF
23804 done
23808 done
23812 done
23816 for ac_header in com_err.h
23818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23821 $as_echo_n "checking for $ac_header... " >&6; }
23822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23823 $as_echo_n "(cached) " >&6
23825 ac_res=`eval 'as_val=${'$as_ac_Header'}
23826 $as_echo "$as_val"'`
23827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23828 $as_echo "$ac_res" >&6; }
23829 else
23830 # Is the header compilable?
23831 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23832 $as_echo_n "checking $ac_header usability... " >&6; }
23833 cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h. */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 $ac_includes_default
23840 #include <$ac_header>
23841 _ACEOF
23842 rm -f conftest.$ac_objext
23843 if { (ac_try="$ac_compile"
23844 case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23847 esac
23848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23849 $as_echo "$ac_try_echo") >&5
23850 (eval "$ac_compile") 2>conftest.er1
23851 ac_status=$?
23852 grep -v '^ *+' conftest.er1 >conftest.err
23853 rm -f conftest.er1
23854 cat conftest.err >&5
23855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); } && {
23857 test -z "$ac_c_werror_flag" ||
23858 test ! -s conftest.err
23859 } && test -s conftest.$ac_objext; then
23860 ac_header_compiler=yes
23861 else
23862 $as_echo "$as_me: failed program was:" >&5
23863 sed 's/^/| /' conftest.$ac_ext >&5
23865 ac_header_compiler=no
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23870 $as_echo "$ac_header_compiler" >&6; }
23872 # Is the header present?
23873 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23874 $as_echo_n "checking $ac_header presence... " >&6; }
23875 cat >conftest.$ac_ext <<_ACEOF
23876 /* confdefs.h. */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h. */
23881 #include <$ac_header>
23882 _ACEOF
23883 if { (ac_try="$ac_cpp conftest.$ac_ext"
23884 case "(($ac_try" in
23885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886 *) ac_try_echo=$ac_try;;
23887 esac
23888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23889 $as_echo "$ac_try_echo") >&5
23890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23891 ac_status=$?
23892 grep -v '^ *+' conftest.er1 >conftest.err
23893 rm -f conftest.er1
23894 cat conftest.err >&5
23895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } >/dev/null && {
23897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23898 test ! -s conftest.err
23899 }; then
23900 ac_header_preproc=yes
23901 else
23902 $as_echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23905 ac_header_preproc=no
23908 rm -f conftest.err conftest.$ac_ext
23909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23910 $as_echo "$ac_header_preproc" >&6; }
23912 # So? What about this header?
23913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23914 yes:no: )
23915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23916 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23919 ac_header_preproc=yes
23921 no:yes:* )
23922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23923 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23925 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23927 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23929 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23933 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23936 esac
23937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23938 $as_echo_n "checking for $ac_header... " >&6; }
23939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23940 $as_echo_n "(cached) " >&6
23941 else
23942 eval "$as_ac_Header=\$ac_header_preproc"
23944 ac_res=`eval 'as_val=${'$as_ac_Header'}
23945 $as_echo "$as_val"'`
23946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23947 $as_echo "$ac_res" >&6; }
23950 as_val=`eval 'as_val=${'$as_ac_Header'}
23951 $as_echo "$as_val"'`
23952 if test "x$as_val" = x""yes; then
23953 cat >>confdefs.h <<_ACEOF
23954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23955 _ACEOF
23959 done
23969 # Solaris requires -lintl if you want strerror (which calls dgettext)
23970 # to return localized messages.
23972 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23973 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23974 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23975 $as_echo_n "(cached) " >&6
23976 else
23977 ac_check_lib_save_LIBS=$LIBS
23978 LIBS="-lintl $LIBS"
23979 cat >conftest.$ac_ext <<_ACEOF
23980 /* confdefs.h. */
23981 _ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23986 /* Override any GCC internal prototype to avoid an error.
23987 Use char because int might match the return type of a GCC
23988 builtin and then its argument prototype would still apply. */
23989 #ifdef __cplusplus
23990 extern "C"
23991 #endif
23992 char dgettext ();
23994 main ()
23996 return dgettext ();
23998 return 0;
24000 _ACEOF
24001 rm -f conftest.$ac_objext conftest$ac_exeext
24002 if { (ac_try="$ac_link"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24008 $as_echo "$ac_try_echo") >&5
24009 (eval "$ac_link") 2>conftest.er1
24010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } && {
24016 test -z "$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 } && test -s conftest$ac_exeext && {
24019 test "$cross_compiling" = yes ||
24020 $as_test_x conftest$ac_exeext
24021 }; then
24022 ac_cv_lib_intl_dgettext=yes
24023 else
24024 $as_echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24027 ac_cv_lib_intl_dgettext=no
24030 rm -rf conftest.dSYM
24031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24032 conftest$ac_exeext conftest.$ac_ext
24033 LIBS=$ac_check_lib_save_LIBS
24035 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24036 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24037 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
24038 cat >>confdefs.h <<_ACEOF
24039 #define HAVE_LIBINTL 1
24040 _ACEOF
24042 LIBS="-lintl $LIBS"
24047 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24048 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24049 if test "${emacs_cv_localtime_cache+set}" = set; then
24050 $as_echo_n "(cached) " >&6
24051 else
24052 if test x$ac_cv_func_tzset = xyes; then
24053 if test "$cross_compiling" = yes; then
24054 # If we have tzset, assume the worst when cross-compiling.
24055 emacs_cv_localtime_cache=yes
24056 else
24057 cat >conftest.$ac_ext <<_ACEOF
24058 /* confdefs.h. */
24059 _ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24063 #include <time.h>
24064 extern char **environ;
24065 unset_TZ ()
24067 char **from, **to;
24068 for (to = from = environ; (*to = *from); from++)
24069 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24070 to++;
24072 char TZ_GMT0[] = "TZ=GMT0";
24073 char TZ_PST8[] = "TZ=PST8";
24074 main()
24076 time_t now = time ((time_t *) 0);
24077 int hour_GMT0, hour_unset;
24078 if (putenv (TZ_GMT0) != 0)
24079 exit (1);
24080 hour_GMT0 = localtime (&now)->tm_hour;
24081 unset_TZ ();
24082 hour_unset = localtime (&now)->tm_hour;
24083 if (putenv (TZ_PST8) != 0)
24084 exit (1);
24085 if (localtime (&now)->tm_hour == hour_GMT0)
24086 exit (1);
24087 unset_TZ ();
24088 if (localtime (&now)->tm_hour != hour_unset)
24089 exit (1);
24090 exit (0);
24092 _ACEOF
24093 rm -f conftest$ac_exeext
24094 if { (ac_try="$ac_link"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24098 esac
24099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24100 $as_echo "$ac_try_echo") >&5
24101 (eval "$ac_link") 2>&5
24102 ac_status=$?
24103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24105 { (case "(($ac_try" in
24106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107 *) ac_try_echo=$ac_try;;
24108 esac
24109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24110 $as_echo "$ac_try_echo") >&5
24111 (eval "$ac_try") 2>&5
24112 ac_status=$?
24113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 emacs_cv_localtime_cache=no
24116 else
24117 $as_echo "$as_me: program exited with status $ac_status" >&5
24118 $as_echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ( exit $ac_status )
24122 emacs_cv_localtime_cache=yes
24124 rm -rf conftest.dSYM
24125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24129 else
24130 # If we lack tzset, report that localtime does not cache TZ,
24131 # since we can't invalidate the cache if we don't have tzset.
24132 emacs_cv_localtime_cache=no
24135 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24136 $as_echo "$emacs_cv_localtime_cache" >&6; }
24137 if test $emacs_cv_localtime_cache = yes; then
24139 cat >>confdefs.h <<\_ACEOF
24140 #define LOCALTIME_CACHE 1
24141 _ACEOF
24145 if test "x$HAVE_TIMEVAL" = xyes; then
24147 for ac_func in gettimeofday
24149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24150 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24151 $as_echo_n "checking for $ac_func... " >&6; }
24152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24153 $as_echo_n "(cached) " >&6
24154 else
24155 cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h. */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24163 #define $ac_func innocuous_$ac_func
24165 /* System header to define __stub macros and hopefully few prototypes,
24166 which can conflict with char $ac_func (); below.
24167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24168 <limits.h> exists even on freestanding compilers. */
24170 #ifdef __STDC__
24171 # include <limits.h>
24172 #else
24173 # include <assert.h>
24174 #endif
24176 #undef $ac_func
24178 /* Override any GCC internal prototype to avoid an error.
24179 Use char because int might match the return type of a GCC
24180 builtin and then its argument prototype would still apply. */
24181 #ifdef __cplusplus
24182 extern "C"
24183 #endif
24184 char $ac_func ();
24185 /* The GNU C library defines this for functions which it implements
24186 to always fail with ENOSYS. Some functions are actually named
24187 something starting with __ and the normal name is an alias. */
24188 #if defined __stub_$ac_func || defined __stub___$ac_func
24189 choke me
24190 #endif
24193 main ()
24195 return $ac_func ();
24197 return 0;
24199 _ACEOF
24200 rm -f conftest.$ac_objext conftest$ac_exeext
24201 if { (ac_try="$ac_link"
24202 case "(($ac_try" in
24203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24205 esac
24206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24207 $as_echo "$ac_try_echo") >&5
24208 (eval "$ac_link") 2>conftest.er1
24209 ac_status=$?
24210 grep -v '^ *+' conftest.er1 >conftest.err
24211 rm -f conftest.er1
24212 cat conftest.err >&5
24213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } && {
24215 test -z "$ac_c_werror_flag" ||
24216 test ! -s conftest.err
24217 } && test -s conftest$ac_exeext && {
24218 test "$cross_compiling" = yes ||
24219 $as_test_x conftest$ac_exeext
24220 }; then
24221 eval "$as_ac_var=yes"
24222 else
24223 $as_echo "$as_me: failed program was:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24226 eval "$as_ac_var=no"
24229 rm -rf conftest.dSYM
24230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24231 conftest$ac_exeext conftest.$ac_ext
24233 ac_res=`eval 'as_val=${'$as_ac_var'}
24234 $as_echo "$as_val"'`
24235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24236 $as_echo "$ac_res" >&6; }
24237 as_val=`eval 'as_val=${'$as_ac_var'}
24238 $as_echo "$as_val"'`
24239 if test "x$as_val" = x""yes; then
24240 cat >>confdefs.h <<_ACEOF
24241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24242 _ACEOF
24245 done
24247 if test $ac_cv_func_gettimeofday = yes; then
24248 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24249 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24250 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24251 $as_echo_n "(cached) " >&6
24252 else
24253 cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h. */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24260 #ifdef TIME_WITH_SYS_TIME
24261 #include <sys/time.h>
24262 #include <time.h>
24263 #else
24264 #ifdef HAVE_SYS_TIME_H
24265 #include <sys/time.h>
24266 #else
24267 #include <time.h>
24268 #endif
24269 #endif
24271 main ()
24273 struct timeval time;
24274 gettimeofday (&time, 0);
24276 return 0;
24278 _ACEOF
24279 rm -f conftest.$ac_objext
24280 if { (ac_try="$ac_compile"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24284 esac
24285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24286 $as_echo "$ac_try_echo") >&5
24287 (eval "$ac_compile") 2>conftest.er1
24288 ac_status=$?
24289 grep -v '^ *+' conftest.er1 >conftest.err
24290 rm -f conftest.er1
24291 cat conftest.err >&5
24292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); } && {
24294 test -z "$ac_c_werror_flag" ||
24295 test ! -s conftest.err
24296 } && test -s conftest.$ac_objext; then
24297 emacs_cv_gettimeofday_two_arguments=yes
24298 else
24299 $as_echo "$as_me: failed program was:" >&5
24300 sed 's/^/| /' conftest.$ac_ext >&5
24302 emacs_cv_gettimeofday_two_arguments=no
24305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24308 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24309 if test $emacs_cv_gettimeofday_two_arguments = no; then
24311 cat >>confdefs.h <<\_ACEOF
24312 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24313 _ACEOF
24319 ok_so_far=yes
24320 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24321 $as_echo_n "checking for socket... " >&6; }
24322 if test "${ac_cv_func_socket+set}" = set; then
24323 $as_echo_n "(cached) " >&6
24324 else
24325 cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h. */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24333 #define socket innocuous_socket
24335 /* System header to define __stub macros and hopefully few prototypes,
24336 which can conflict with char socket (); below.
24337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24338 <limits.h> exists even on freestanding compilers. */
24340 #ifdef __STDC__
24341 # include <limits.h>
24342 #else
24343 # include <assert.h>
24344 #endif
24346 #undef socket
24348 /* Override any GCC internal prototype to avoid an error.
24349 Use char because int might match the return type of a GCC
24350 builtin and then its argument prototype would still apply. */
24351 #ifdef __cplusplus
24352 extern "C"
24353 #endif
24354 char socket ();
24355 /* The GNU C library defines this for functions which it implements
24356 to always fail with ENOSYS. Some functions are actually named
24357 something starting with __ and the normal name is an alias. */
24358 #if defined __stub_socket || defined __stub___socket
24359 choke me
24360 #endif
24363 main ()
24365 return socket ();
24367 return 0;
24369 _ACEOF
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (ac_try="$ac_link"
24372 case "(($ac_try" in
24373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24374 *) ac_try_echo=$ac_try;;
24375 esac
24376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24377 $as_echo "$ac_try_echo") >&5
24378 (eval "$ac_link") 2>conftest.er1
24379 ac_status=$?
24380 grep -v '^ *+' conftest.er1 >conftest.err
24381 rm -f conftest.er1
24382 cat conftest.err >&5
24383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } && {
24385 test -z "$ac_c_werror_flag" ||
24386 test ! -s conftest.err
24387 } && test -s conftest$ac_exeext && {
24388 test "$cross_compiling" = yes ||
24389 $as_test_x conftest$ac_exeext
24390 }; then
24391 ac_cv_func_socket=yes
24392 else
24393 $as_echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 ac_cv_func_socket=no
24399 rm -rf conftest.dSYM
24400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24401 conftest$ac_exeext conftest.$ac_ext
24403 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24404 $as_echo "$ac_cv_func_socket" >&6; }
24405 if test "x$ac_cv_func_socket" = x""yes; then
24407 else
24408 ok_so_far=no
24411 if test $ok_so_far = yes; then
24412 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24413 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24414 $as_echo_n "checking for netinet/in.h... " >&6; }
24415 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24416 $as_echo_n "(cached) " >&6
24418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24419 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24420 else
24421 # Is the header compilable?
24422 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24423 $as_echo_n "checking netinet/in.h usability... " >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h. */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 $ac_includes_default
24431 #include <netinet/in.h>
24432 _ACEOF
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_compile") 2>conftest.er1
24442 ac_status=$?
24443 grep -v '^ *+' conftest.er1 >conftest.err
24444 rm -f conftest.er1
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest.$ac_objext; then
24451 ac_header_compiler=yes
24452 else
24453 $as_echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_header_compiler=no
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24461 $as_echo "$ac_header_compiler" >&6; }
24463 # Is the header present?
24464 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24465 $as_echo_n "checking netinet/in.h presence... " >&6; }
24466 cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h. */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 #include <netinet/in.h>
24473 _ACEOF
24474 if { (ac_try="$ac_cpp conftest.$ac_ext"
24475 case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24478 esac
24479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24480 $as_echo "$ac_try_echo") >&5
24481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24482 ac_status=$?
24483 grep -v '^ *+' conftest.er1 >conftest.err
24484 rm -f conftest.er1
24485 cat conftest.err >&5
24486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } >/dev/null && {
24488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24489 test ! -s conftest.err
24490 }; then
24491 ac_header_preproc=yes
24492 else
24493 $as_echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ac_header_preproc=no
24499 rm -f conftest.err conftest.$ac_ext
24500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24501 $as_echo "$ac_header_preproc" >&6; }
24503 # So? What about this header?
24504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24505 yes:no: )
24506 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24507 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24508 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24509 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24510 ac_header_preproc=yes
24512 no:yes:* )
24513 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24514 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24515 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24516 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24517 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24518 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24520 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24522 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24524 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24527 esac
24528 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24529 $as_echo_n "checking for netinet/in.h... " >&6; }
24530 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24531 $as_echo_n "(cached) " >&6
24532 else
24533 ac_cv_header_netinet_in_h=$ac_header_preproc
24535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24536 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24539 if test "x$ac_cv_header_netinet_in_h" = x""yes; then
24541 else
24542 ok_so_far=no
24547 if test $ok_so_far = yes; then
24548 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24549 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24550 $as_echo_n "checking for arpa/inet.h... " >&6; }
24551 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24552 $as_echo_n "(cached) " >&6
24554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24555 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24556 else
24557 # Is the header compilable?
24558 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24559 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24560 cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h. */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24566 $ac_includes_default
24567 #include <arpa/inet.h>
24568 _ACEOF
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24574 esac
24575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24576 $as_echo "$ac_try_echo") >&5
24577 (eval "$ac_compile") 2>conftest.er1
24578 ac_status=$?
24579 grep -v '^ *+' conftest.er1 >conftest.err
24580 rm -f conftest.er1
24581 cat conftest.err >&5
24582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } && {
24584 test -z "$ac_c_werror_flag" ||
24585 test ! -s conftest.err
24586 } && test -s conftest.$ac_objext; then
24587 ac_header_compiler=yes
24588 else
24589 $as_echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_header_compiler=no
24595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24597 $as_echo "$ac_header_compiler" >&6; }
24599 # Is the header present?
24600 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24601 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24602 cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h. */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 #include <arpa/inet.h>
24609 _ACEOF
24610 if { (ac_try="$ac_cpp conftest.$ac_ext"
24611 case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24614 esac
24615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24616 $as_echo "$ac_try_echo") >&5
24617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24618 ac_status=$?
24619 grep -v '^ *+' conftest.er1 >conftest.err
24620 rm -f conftest.er1
24621 cat conftest.err >&5
24622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); } >/dev/null && {
24624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24625 test ! -s conftest.err
24626 }; then
24627 ac_header_preproc=yes
24628 else
24629 $as_echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24632 ac_header_preproc=no
24635 rm -f conftest.err conftest.$ac_ext
24636 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24637 $as_echo "$ac_header_preproc" >&6; }
24639 # So? What about this header?
24640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24641 yes:no: )
24642 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24643 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24644 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24645 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24646 ac_header_preproc=yes
24648 no:yes:* )
24649 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24650 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24651 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24652 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24653 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24654 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24655 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24656 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24657 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24658 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24659 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24660 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24663 esac
24664 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24665 $as_echo_n "checking for arpa/inet.h... " >&6; }
24666 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24667 $as_echo_n "(cached) " >&6
24668 else
24669 ac_cv_header_arpa_inet_h=$ac_header_preproc
24671 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24672 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24675 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then
24677 else
24678 ok_so_far=no
24683 if test $ok_so_far = yes; then
24685 cat >>confdefs.h <<\_ACEOF
24686 #define HAVE_INET_SOCKETS 1
24687 _ACEOF
24692 for ac_header in sys/ioctl.h
24694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24696 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24697 $as_echo_n "checking for $ac_header... " >&6; }
24698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24699 $as_echo_n "(cached) " >&6
24701 ac_res=`eval 'as_val=${'$as_ac_Header'}
24702 $as_echo "$as_val"'`
24703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24704 $as_echo "$ac_res" >&6; }
24705 else
24706 # Is the header compilable?
24707 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24708 $as_echo_n "checking $ac_header usability... " >&6; }
24709 cat >conftest.$ac_ext <<_ACEOF
24710 /* confdefs.h. */
24711 _ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h. */
24715 $ac_includes_default
24716 #include <$ac_header>
24717 _ACEOF
24718 rm -f conftest.$ac_objext
24719 if { (ac_try="$ac_compile"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24723 esac
24724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24725 $as_echo "$ac_try_echo") >&5
24726 (eval "$ac_compile") 2>conftest.er1
24727 ac_status=$?
24728 grep -v '^ *+' conftest.er1 >conftest.err
24729 rm -f conftest.er1
24730 cat conftest.err >&5
24731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } && {
24733 test -z "$ac_c_werror_flag" ||
24734 test ! -s conftest.err
24735 } && test -s conftest.$ac_objext; then
24736 ac_header_compiler=yes
24737 else
24738 $as_echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ac_header_compiler=no
24744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24746 $as_echo "$ac_header_compiler" >&6; }
24748 # Is the header present?
24749 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24750 $as_echo_n "checking $ac_header presence... " >&6; }
24751 cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h. */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 #include <$ac_header>
24758 _ACEOF
24759 if { (ac_try="$ac_cpp conftest.$ac_ext"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24763 esac
24764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24765 $as_echo "$ac_try_echo") >&5
24766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24767 ac_status=$?
24768 grep -v '^ *+' conftest.er1 >conftest.err
24769 rm -f conftest.er1
24770 cat conftest.err >&5
24771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } >/dev/null && {
24773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24774 test ! -s conftest.err
24775 }; then
24776 ac_header_preproc=yes
24777 else
24778 $as_echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24781 ac_header_preproc=no
24784 rm -f conftest.err conftest.$ac_ext
24785 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24786 $as_echo "$ac_header_preproc" >&6; }
24788 # So? What about this header?
24789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24790 yes:no: )
24791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24792 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24795 ac_header_preproc=yes
24797 no:yes:* )
24798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24799 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24801 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24803 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24805 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24807 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24809 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24812 esac
24813 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24814 $as_echo_n "checking for $ac_header... " >&6; }
24815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24816 $as_echo_n "(cached) " >&6
24817 else
24818 eval "$as_ac_Header=\$ac_header_preproc"
24820 ac_res=`eval 'as_val=${'$as_ac_Header'}
24821 $as_echo "$as_val"'`
24822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24823 $as_echo "$ac_res" >&6; }
24826 as_val=`eval 'as_val=${'$as_ac_Header'}
24827 $as_echo "$as_val"'`
24828 if test "x$as_val" = x""yes; then
24829 cat >>confdefs.h <<_ACEOF
24830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24831 _ACEOF
24835 done
24838 if test -f /usr/lpp/X11/bin/smt.exp; then
24840 cat >>confdefs.h <<\_ACEOF
24841 #define HAVE_AIX_SMT_EXP 1
24842 _ACEOF
24846 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24847 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24848 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24849 { $as_echo "$as_me:$LINENO: result: yes" >&5
24850 $as_echo "yes" >&6; }
24852 cat >>confdefs.h <<\_ACEOF
24853 #define HAVE_DEV_PTMX 1
24854 _ACEOF
24856 else
24857 { $as_echo "$as_me:$LINENO: result: no" >&5
24858 $as_echo "no" >&6; }
24861 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24862 $as_echo_n "checking for pid_t... " >&6; }
24863 if test "${ac_cv_type_pid_t+set}" = set; then
24864 $as_echo_n "(cached) " >&6
24865 else
24866 ac_cv_type_pid_t=no
24867 cat >conftest.$ac_ext <<_ACEOF
24868 /* confdefs.h. */
24869 _ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24873 $ac_includes_default
24875 main ()
24877 if (sizeof (pid_t))
24878 return 0;
24880 return 0;
24882 _ACEOF
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24888 esac
24889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24890 $as_echo "$ac_try_echo") >&5
24891 (eval "$ac_compile") 2>conftest.er1
24892 ac_status=$?
24893 grep -v '^ *+' conftest.er1 >conftest.err
24894 rm -f conftest.er1
24895 cat conftest.err >&5
24896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest.$ac_objext; then
24901 cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h. */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24907 $ac_includes_default
24909 main ()
24911 if (sizeof ((pid_t)))
24912 return 0;
24914 return 0;
24916 _ACEOF
24917 rm -f conftest.$ac_objext
24918 if { (ac_try="$ac_compile"
24919 case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24922 esac
24923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24924 $as_echo "$ac_try_echo") >&5
24925 (eval "$ac_compile") 2>conftest.er1
24926 ac_status=$?
24927 grep -v '^ *+' conftest.er1 >conftest.err
24928 rm -f conftest.er1
24929 cat conftest.err >&5
24930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } && {
24932 test -z "$ac_c_werror_flag" ||
24933 test ! -s conftest.err
24934 } && test -s conftest.$ac_objext; then
24936 else
24937 $as_echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24940 ac_cv_type_pid_t=yes
24943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24944 else
24945 $as_echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24953 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24954 $as_echo "$ac_cv_type_pid_t" >&6; }
24955 if test "x$ac_cv_type_pid_t" = x""yes; then
24957 else
24959 cat >>confdefs.h <<_ACEOF
24960 #define pid_t int
24961 _ACEOF
24966 for ac_header in vfork.h
24968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24971 $as_echo_n "checking for $ac_header... " >&6; }
24972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24973 $as_echo_n "(cached) " >&6
24975 ac_res=`eval 'as_val=${'$as_ac_Header'}
24976 $as_echo "$as_val"'`
24977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24978 $as_echo "$ac_res" >&6; }
24979 else
24980 # Is the header compilable?
24981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24982 $as_echo_n "checking $ac_header usability... " >&6; }
24983 cat >conftest.$ac_ext <<_ACEOF
24984 /* confdefs.h. */
24985 _ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 $ac_includes_default
24990 #include <$ac_header>
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997 esac
24998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24999 $as_echo "$ac_try_echo") >&5
25000 (eval "$ac_compile") 2>conftest.er1
25001 ac_status=$?
25002 grep -v '^ *+' conftest.er1 >conftest.err
25003 rm -f conftest.er1
25004 cat conftest.err >&5
25005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } && {
25007 test -z "$ac_c_werror_flag" ||
25008 test ! -s conftest.err
25009 } && test -s conftest.$ac_objext; then
25010 ac_header_compiler=yes
25011 else
25012 $as_echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 ac_header_compiler=no
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25020 $as_echo "$ac_header_compiler" >&6; }
25022 # Is the header present?
25023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25024 $as_echo_n "checking $ac_header presence... " >&6; }
25025 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h. */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 #include <$ac_header>
25032 _ACEOF
25033 if { (ac_try="$ac_cpp conftest.$ac_ext"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25037 esac
25038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25039 $as_echo "$ac_try_echo") >&5
25040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25041 ac_status=$?
25042 grep -v '^ *+' conftest.er1 >conftest.err
25043 rm -f conftest.er1
25044 cat conftest.err >&5
25045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } >/dev/null && {
25047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25049 }; then
25050 ac_header_preproc=yes
25051 else
25052 $as_echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 ac_header_preproc=no
25058 rm -f conftest.err conftest.$ac_ext
25059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25060 $as_echo "$ac_header_preproc" >&6; }
25062 # So? What about this header?
25063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25064 yes:no: )
25065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25069 ac_header_preproc=yes
25071 no:yes:* )
25072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25086 esac
25087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25088 $as_echo_n "checking for $ac_header... " >&6; }
25089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25090 $as_echo_n "(cached) " >&6
25091 else
25092 eval "$as_ac_Header=\$ac_header_preproc"
25094 ac_res=`eval 'as_val=${'$as_ac_Header'}
25095 $as_echo "$as_val"'`
25096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25097 $as_echo "$ac_res" >&6; }
25100 as_val=`eval 'as_val=${'$as_ac_Header'}
25101 $as_echo "$as_val"'`
25102 if test "x$as_val" = x""yes; then
25103 cat >>confdefs.h <<_ACEOF
25104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25105 _ACEOF
25109 done
25113 for ac_func in fork vfork
25115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25116 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25117 $as_echo_n "checking for $ac_func... " >&6; }
25118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25119 $as_echo_n "(cached) " >&6
25120 else
25121 cat >conftest.$ac_ext <<_ACEOF
25122 /* confdefs.h. */
25123 _ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h. */
25127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25129 #define $ac_func innocuous_$ac_func
25131 /* System header to define __stub macros and hopefully few prototypes,
25132 which can conflict with char $ac_func (); below.
25133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25134 <limits.h> exists even on freestanding compilers. */
25136 #ifdef __STDC__
25137 # include <limits.h>
25138 #else
25139 # include <assert.h>
25140 #endif
25142 #undef $ac_func
25144 /* Override any GCC internal prototype to avoid an error.
25145 Use char because int might match the return type of a GCC
25146 builtin and then its argument prototype would still apply. */
25147 #ifdef __cplusplus
25148 extern "C"
25149 #endif
25150 char $ac_func ();
25151 /* The GNU C library defines this for functions which it implements
25152 to always fail with ENOSYS. Some functions are actually named
25153 something starting with __ and the normal name is an alias. */
25154 #if defined __stub_$ac_func || defined __stub___$ac_func
25155 choke me
25156 #endif
25159 main ()
25161 return $ac_func ();
25163 return 0;
25165 _ACEOF
25166 rm -f conftest.$ac_objext conftest$ac_exeext
25167 if { (ac_try="$ac_link"
25168 case "(($ac_try" in
25169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170 *) ac_try_echo=$ac_try;;
25171 esac
25172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25173 $as_echo "$ac_try_echo") >&5
25174 (eval "$ac_link") 2>conftest.er1
25175 ac_status=$?
25176 grep -v '^ *+' conftest.er1 >conftest.err
25177 rm -f conftest.er1
25178 cat conftest.err >&5
25179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } && {
25181 test -z "$ac_c_werror_flag" ||
25182 test ! -s conftest.err
25183 } && test -s conftest$ac_exeext && {
25184 test "$cross_compiling" = yes ||
25185 $as_test_x conftest$ac_exeext
25186 }; then
25187 eval "$as_ac_var=yes"
25188 else
25189 $as_echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25192 eval "$as_ac_var=no"
25195 rm -rf conftest.dSYM
25196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25197 conftest$ac_exeext conftest.$ac_ext
25199 ac_res=`eval 'as_val=${'$as_ac_var'}
25200 $as_echo "$as_val"'`
25201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25202 $as_echo "$ac_res" >&6; }
25203 as_val=`eval 'as_val=${'$as_ac_var'}
25204 $as_echo "$as_val"'`
25205 if test "x$as_val" = x""yes; then
25206 cat >>confdefs.h <<_ACEOF
25207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25208 _ACEOF
25211 done
25213 if test "x$ac_cv_func_fork" = xyes; then
25214 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25215 $as_echo_n "checking for working fork... " >&6; }
25216 if test "${ac_cv_func_fork_works+set}" = set; then
25217 $as_echo_n "(cached) " >&6
25218 else
25219 if test "$cross_compiling" = yes; then
25220 ac_cv_func_fork_works=cross
25221 else
25222 cat >conftest.$ac_ext <<_ACEOF
25223 /* confdefs.h. */
25224 _ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25228 $ac_includes_default
25230 main ()
25233 /* By Ruediger Kuhlmann. */
25234 return fork () < 0;
25237 return 0;
25239 _ACEOF
25240 rm -f conftest$ac_exeext
25241 if { (ac_try="$ac_link"
25242 case "(($ac_try" in
25243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25244 *) ac_try_echo=$ac_try;;
25245 esac
25246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25247 $as_echo "$ac_try_echo") >&5
25248 (eval "$ac_link") 2>&5
25249 ac_status=$?
25250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25252 { (case "(($ac_try" in
25253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25255 esac
25256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25257 $as_echo "$ac_try_echo") >&5
25258 (eval "$ac_try") 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 ac_cv_func_fork_works=yes
25263 else
25264 $as_echo "$as_me: program exited with status $ac_status" >&5
25265 $as_echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 ( exit $ac_status )
25269 ac_cv_func_fork_works=no
25271 rm -rf conftest.dSYM
25272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25278 $as_echo "$ac_cv_func_fork_works" >&6; }
25280 else
25281 ac_cv_func_fork_works=$ac_cv_func_fork
25283 if test "x$ac_cv_func_fork_works" = xcross; then
25284 case $host in
25285 *-*-amigaos* | *-*-msdosdjgpp*)
25286 # Override, as these systems have only a dummy fork() stub
25287 ac_cv_func_fork_works=no
25290 ac_cv_func_fork_works=yes
25292 esac
25293 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25294 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25296 ac_cv_func_vfork_works=$ac_cv_func_vfork
25297 if test "x$ac_cv_func_vfork" = xyes; then
25298 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25299 $as_echo_n "checking for working vfork... " >&6; }
25300 if test "${ac_cv_func_vfork_works+set}" = set; then
25301 $as_echo_n "(cached) " >&6
25302 else
25303 if test "$cross_compiling" = yes; then
25304 ac_cv_func_vfork_works=cross
25305 else
25306 cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h. */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25312 /* Thanks to Paul Eggert for this test. */
25313 $ac_includes_default
25314 #include <sys/wait.h>
25315 #ifdef HAVE_VFORK_H
25316 # include <vfork.h>
25317 #endif
25318 /* On some sparc systems, changes by the child to local and incoming
25319 argument registers are propagated back to the parent. The compiler
25320 is told about this with #include <vfork.h>, but some compilers
25321 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25322 static variable whose address is put into a register that is
25323 clobbered by the vfork. */
25324 static void
25325 #ifdef __cplusplus
25326 sparc_address_test (int arg)
25327 # else
25328 sparc_address_test (arg) int arg;
25329 #endif
25331 static pid_t child;
25332 if (!child) {
25333 child = vfork ();
25334 if (child < 0) {
25335 perror ("vfork");
25336 _exit(2);
25338 if (!child) {
25339 arg = getpid();
25340 write(-1, "", 0);
25341 _exit (arg);
25347 main ()
25349 pid_t parent = getpid ();
25350 pid_t child;
25352 sparc_address_test (0);
25354 child = vfork ();
25356 if (child == 0) {
25357 /* Here is another test for sparc vfork register problems. This
25358 test uses lots of local variables, at least as many local
25359 variables as main has allocated so far including compiler
25360 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25361 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25362 reuse the register of parent for one of the local variables,
25363 since it will think that parent can't possibly be used any more
25364 in this routine. Assigning to the local variable will thus
25365 munge parent in the parent process. */
25366 pid_t
25367 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25368 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25369 /* Convince the compiler that p..p7 are live; otherwise, it might
25370 use the same hardware register for all 8 local variables. */
25371 if (p != p1 || p != p2 || p != p3 || p != p4
25372 || p != p5 || p != p6 || p != p7)
25373 _exit(1);
25375 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25376 from child file descriptors. If the child closes a descriptor
25377 before it execs or exits, this munges the parent's descriptor
25378 as well. Test for this by closing stdout in the child. */
25379 _exit(close(fileno(stdout)) != 0);
25380 } else {
25381 int status;
25382 struct stat st;
25384 while (wait(&status) != child)
25386 return (
25387 /* Was there some problem with vforking? */
25388 child < 0
25390 /* Did the child fail? (This shouldn't happen.) */
25391 || status
25393 /* Did the vfork/compiler bug occur? */
25394 || parent != getpid()
25396 /* Did the file descriptor bug occur? */
25397 || fstat(fileno(stdout), &st) != 0
25401 _ACEOF
25402 rm -f conftest$ac_exeext
25403 if { (ac_try="$ac_link"
25404 case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25407 esac
25408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25409 $as_echo "$ac_try_echo") >&5
25410 (eval "$ac_link") 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25414 { (case "(($ac_try" in
25415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25416 *) ac_try_echo=$ac_try;;
25417 esac
25418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25419 $as_echo "$ac_try_echo") >&5
25420 (eval "$ac_try") 2>&5
25421 ac_status=$?
25422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; }; then
25424 ac_cv_func_vfork_works=yes
25425 else
25426 $as_echo "$as_me: program exited with status $ac_status" >&5
25427 $as_echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25430 ( exit $ac_status )
25431 ac_cv_func_vfork_works=no
25433 rm -rf conftest.dSYM
25434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25439 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25440 $as_echo "$ac_cv_func_vfork_works" >&6; }
25443 if test "x$ac_cv_func_fork_works" = xcross; then
25444 ac_cv_func_vfork_works=$ac_cv_func_vfork
25445 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25446 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25449 if test "x$ac_cv_func_vfork_works" = xyes; then
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_WORKING_VFORK 1
25453 _ACEOF
25455 else
25457 cat >>confdefs.h <<\_ACEOF
25458 #define vfork fork
25459 _ACEOF
25462 if test "x$ac_cv_func_fork_works" = xyes; then
25464 cat >>confdefs.h <<\_ACEOF
25465 #define HAVE_WORKING_FORK 1
25466 _ACEOF
25471 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25472 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25473 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25474 $as_echo_n "(cached) " >&6
25475 else
25476 cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h. */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 #include <langinfo.h>
25484 main ()
25486 char* cs = nl_langinfo(CODESET);
25488 return 0;
25490 _ACEOF
25491 rm -f conftest.$ac_objext conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25496 esac
25497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25498 $as_echo "$ac_try_echo") >&5
25499 (eval "$ac_link") 2>conftest.er1
25500 ac_status=$?
25501 grep -v '^ *+' conftest.er1 >conftest.err
25502 rm -f conftest.er1
25503 cat conftest.err >&5
25504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } && {
25506 test -z "$ac_c_werror_flag" ||
25507 test ! -s conftest.err
25508 } && test -s conftest$ac_exeext && {
25509 test "$cross_compiling" = yes ||
25510 $as_test_x conftest$ac_exeext
25511 }; then
25512 emacs_cv_langinfo_codeset=yes
25513 else
25514 $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25517 emacs_cv_langinfo_codeset=no
25520 rm -rf conftest.dSYM
25521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25522 conftest$ac_exeext conftest.$ac_ext
25525 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25526 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25527 if test $emacs_cv_langinfo_codeset = yes; then
25529 cat >>confdefs.h <<\_ACEOF
25530 #define HAVE_LANGINFO_CODESET 1
25531 _ACEOF
25535 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25536 $as_echo_n "checking for size_t... " >&6; }
25537 if test "${ac_cv_type_size_t+set}" = set; then
25538 $as_echo_n "(cached) " >&6
25539 else
25540 ac_cv_type_size_t=no
25541 cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h. */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25547 $ac_includes_default
25549 main ()
25551 if (sizeof (size_t))
25552 return 0;
25554 return 0;
25556 _ACEOF
25557 rm -f conftest.$ac_objext
25558 if { (ac_try="$ac_compile"
25559 case "(($ac_try" in
25560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561 *) ac_try_echo=$ac_try;;
25562 esac
25563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25564 $as_echo "$ac_try_echo") >&5
25565 (eval "$ac_compile") 2>conftest.er1
25566 ac_status=$?
25567 grep -v '^ *+' conftest.er1 >conftest.err
25568 rm -f conftest.er1
25569 cat conftest.err >&5
25570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } && {
25572 test -z "$ac_c_werror_flag" ||
25573 test ! -s conftest.err
25574 } && test -s conftest.$ac_objext; then
25575 cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h. */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 $ac_includes_default
25583 main ()
25585 if (sizeof ((size_t)))
25586 return 0;
25588 return 0;
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25596 esac
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25600 ac_status=$?
25601 grep -v '^ *+' conftest.er1 >conftest.err
25602 rm -f conftest.er1
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25610 else
25611 $as_echo "$as_me: failed program was:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25614 ac_cv_type_size_t=yes
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 else
25619 $as_echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25628 $as_echo "$ac_cv_type_size_t" >&6; }
25629 if test "x$ac_cv_type_size_t" = x""yes; then
25631 cat >>confdefs.h <<_ACEOF
25632 #define HAVE_SIZE_T 1
25633 _ACEOF
25639 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25640 $as_echo_n "checking for mbstate_t... " >&6; }
25641 if test "${ac_cv_type_mbstate_t+set}" = set; then
25642 $as_echo_n "(cached) " >&6
25643 else
25644 cat >conftest.$ac_ext <<_ACEOF
25645 /* confdefs.h. */
25646 _ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h. */
25650 $ac_includes_default
25651 # include <wchar.h>
25653 main ()
25655 mbstate_t x; return sizeof x;
25657 return 0;
25659 _ACEOF
25660 rm -f conftest.$ac_objext
25661 if { (ac_try="$ac_compile"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25665 esac
25666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25667 $as_echo "$ac_try_echo") >&5
25668 (eval "$ac_compile") 2>conftest.er1
25669 ac_status=$?
25670 grep -v '^ *+' conftest.er1 >conftest.err
25671 rm -f conftest.er1
25672 cat conftest.err >&5
25673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } && {
25675 test -z "$ac_c_werror_flag" ||
25676 test ! -s conftest.err
25677 } && test -s conftest.$ac_objext; then
25678 ac_cv_type_mbstate_t=yes
25679 else
25680 $as_echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25683 ac_cv_type_mbstate_t=no
25686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25688 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25689 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25690 if test $ac_cv_type_mbstate_t = yes; then
25692 cat >>confdefs.h <<\_ACEOF
25693 #define HAVE_MBSTATE_T 1
25694 _ACEOF
25696 else
25698 cat >>confdefs.h <<\_ACEOF
25699 #define mbstate_t int
25700 _ACEOF
25704 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25705 $as_echo_n "checking for C restrict keyword... " >&6; }
25706 if test "${emacs_cv_c_restrict+set}" = set; then
25707 $as_echo_n "(cached) " >&6
25708 else
25709 cat >conftest.$ac_ext <<_ACEOF
25710 /* confdefs.h. */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h. */
25715 void fred (int *restrict x);
25717 main ()
25721 return 0;
25723 _ACEOF
25724 rm -f conftest.$ac_objext
25725 if { (ac_try="$ac_compile"
25726 case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25729 esac
25730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25731 $as_echo "$ac_try_echo") >&5
25732 (eval "$ac_compile") 2>conftest.er1
25733 ac_status=$?
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
25737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } && {
25739 test -z "$ac_c_werror_flag" ||
25740 test ! -s conftest.err
25741 } && test -s conftest.$ac_objext; then
25742 emacs_cv_c_restrict=yes
25743 else
25744 $as_echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25747 cat >conftest.$ac_ext <<_ACEOF
25748 /* confdefs.h. */
25749 _ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h. */
25753 void fred (int *__restrict x);
25755 main ()
25759 return 0;
25761 _ACEOF
25762 rm -f conftest.$ac_objext
25763 if { (ac_try="$ac_compile"
25764 case "(($ac_try" in
25765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766 *) ac_try_echo=$ac_try;;
25767 esac
25768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25769 $as_echo "$ac_try_echo") >&5
25770 (eval "$ac_compile") 2>conftest.er1
25771 ac_status=$?
25772 grep -v '^ *+' conftest.er1 >conftest.err
25773 rm -f conftest.er1
25774 cat conftest.err >&5
25775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } && {
25777 test -z "$ac_c_werror_flag" ||
25778 test ! -s conftest.err
25779 } && test -s conftest.$ac_objext; then
25780 emacs_cv_c_restrict=__restrict
25781 else
25782 $as_echo "$as_me: failed program was:" >&5
25783 sed 's/^/| /' conftest.$ac_ext >&5
25785 emacs_cv_c_restrict=no
25788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25794 $as_echo "$emacs_cv_c_restrict" >&6; }
25795 case "$emacs_cv_c_restrict" in
25796 yes) emacs_restrict=restrict;;
25797 no) emacs_restrict="";;
25798 *) emacs_restrict="$emacs_cv_c_restrict";;
25799 esac
25800 if test "$emacs_restrict" != __restrict; then
25802 cat >>confdefs.h <<_ACEOF
25803 #define __restrict $emacs_restrict
25804 _ACEOF
25808 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25809 $as_echo_n "checking for C restricted array declarations... " >&6; }
25810 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25811 $as_echo_n "(cached) " >&6
25812 else
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h. */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 void fred (int x[__restrict]);
25821 main ()
25825 return 0;
25827 _ACEOF
25828 rm -f conftest.$ac_objext
25829 if { (ac_try="$ac_compile"
25830 case "(($ac_try" in
25831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832 *) ac_try_echo=$ac_try;;
25833 esac
25834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25835 $as_echo "$ac_try_echo") >&5
25836 (eval "$ac_compile") 2>conftest.er1
25837 ac_status=$?
25838 grep -v '^ *+' conftest.er1 >conftest.err
25839 rm -f conftest.er1
25840 cat conftest.err >&5
25841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } && {
25843 test -z "$ac_c_werror_flag" ||
25844 test ! -s conftest.err
25845 } && test -s conftest.$ac_objext; then
25846 emacs_cv_c_restrict_arr=yes
25847 else
25848 $as_echo "$as_me: failed program was:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25851 emacs_cv_c_restrict_arr=no
25854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25857 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25858 if test "$emacs_cv_c_restrict_arr" = yes; then
25860 cat >>confdefs.h <<\_ACEOF
25861 #define __restrict_arr __restrict
25862 _ACEOF
25868 # Set up the CFLAGS for real compilation, so we can substitute it.
25869 CFLAGS="$REAL_CFLAGS"
25870 CPPFLAGS="$REAL_CPPFLAGS"
25872 #### Find out which version of Emacs this is.
25873 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25874 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25875 if test x"${version}" = x; then
25876 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25877 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25878 { (exit 1); exit 1; }; }
25880 if test x"${version}" != x"$PACKAGE_VERSION"; then
25881 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25882 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25885 ### Specify what sort of things we'll be editing into Makefile and config.h.
25886 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25931 cat >>confdefs.h <<_ACEOF
25932 #define EMACS_CONFIGURATION "${canonical}"
25933 _ACEOF
25936 cat >>confdefs.h <<_ACEOF
25937 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25938 _ACEOF
25941 cat >>confdefs.h <<_ACEOF
25942 #define config_machfile "${machfile}"
25943 _ACEOF
25946 cat >>confdefs.h <<_ACEOF
25947 #define config_opsysfile "${opsysfile}"
25948 _ACEOF
25951 cat >>confdefs.h <<_ACEOF
25952 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25953 _ACEOF
25956 cat >>confdefs.h <<_ACEOF
25957 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25958 _ACEOF
25961 cat >>confdefs.h <<_ACEOF
25962 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25963 _ACEOF
25966 cat >>confdefs.h <<_ACEOF
25967 #define UNEXEC_SRC ${UNEXEC_SRC}
25968 _ACEOF
25971 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25973 cat >>confdefs.h <<\_ACEOF
25974 #define HAVE_X_WINDOWS 1
25975 _ACEOF
25978 if test "${USE_X_TOOLKIT}" != "none" ; then
25980 cat >>confdefs.h <<\_ACEOF
25981 #define USE_X_TOOLKIT 1
25982 _ACEOF
25984 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25986 cat >>confdefs.h <<\_ACEOF
25987 #define USE_LUCID 1
25988 _ACEOF
25990 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25992 cat >>confdefs.h <<\_ACEOF
25993 #define USE_MOTIF 1
25994 _ACEOF
25998 if test "${HAVE_X11}" = "yes" ; then
26000 cat >>confdefs.h <<\_ACEOF
26001 #define HAVE_X11 1
26002 _ACEOF
26005 if test "${HAVE_MENUS}" = "yes" ; then
26007 cat >>confdefs.h <<\_ACEOF
26008 #define HAVE_MENUS 1
26009 _ACEOF
26012 if test "${GNU_MALLOC}" = "yes" ; then
26014 cat >>confdefs.h <<\_ACEOF
26015 #define GNU_MALLOC 1
26016 _ACEOF
26019 if test "${REL_ALLOC}" = "yes" ; then
26021 cat >>confdefs.h <<\_ACEOF
26022 #define REL_ALLOC 1
26023 _ACEOF
26032 #### Report on what we decided to do.
26033 #### Report GTK as a toolkit, even if it doesn't use Xt.
26034 #### It makes printing result more understandable as using GTK sets
26035 #### toolkit_scroll_bars to yes by default.
26036 if test "${HAVE_GTK}" = "yes"; then
26037 USE_X_TOOLKIT=GTK
26040 echo "
26041 Configured for \`${canonical}'.
26043 Where should the build process find the source code? ${srcdir}
26044 What operating system and machine description files should Emacs use?
26045 \`${opsysfile}' and \`${machfile}'
26046 What compiler should emacs be built with? ${CC} ${CFLAGS}
26047 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26048 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26049 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26050 What window system should Emacs use? ${window_system}
26051 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26053 if test -n "${x_includes}"; then
26054 echo " Where do we find X Windows header files? ${x_includes}"
26055 else
26056 echo " Where do we find X Windows header files? Standard dirs"
26058 if test -n "${x_libraries}"; then
26059 echo " Where do we find X Windows libraries? ${x_libraries}"
26060 else
26061 echo " Where do we find X Windows libraries? Standard dirs"
26064 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26065 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26066 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26067 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26068 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26069 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26070 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26071 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26072 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26073 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26074 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26076 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26077 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26078 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26079 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26081 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26082 echo
26084 if test $USE_XASSERTS = yes; then
26085 echo " Compiling with asserts turned on."
26086 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26089 echo
26091 if test "$HAVE_NS" = "yes"; then
26092 echo
26093 echo "You must run \"make install\" in order to test the built application.
26094 The installed application will go to nextstep/Emacs.app and can be
26095 run or moved from there."
26096 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26097 echo "The application will be fully self-contained."
26098 else
26099 echo "The lisp resources for the application will be installed under ${prefix}.
26100 You may need to run \"make install\" with sudo. The application will fail
26101 to run if these resources are not installed."
26103 echo
26106 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26107 echo "D-Bus integration has been tested for GNU/Linux only."
26108 echo
26112 # Remove any trailing slashes in these variables.
26113 test "${prefix}" != NONE &&
26114 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26115 test "${exec_prefix}" != NONE &&
26116 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26118 # Now get this: Some word that is part of the ${srcdir} directory name
26119 # or the ${configuration} value might, just might, happen to be an
26120 # identifier like `sun4' or `i386' or something, and be predefined by
26121 # the C preprocessor to some helpful value like 1, or maybe the empty
26122 # string. Needless to say consequent macro substitutions are less
26123 # than conducive to the makefile finding the correct directory.
26124 cpp_undefs="`echo $srcdir $configuration $canonical |
26125 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26126 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26128 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26129 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26130 ## from Makefile.c can correctly provide the arg `-traditional' to the
26131 ## C preprocessor.
26133 cat >conftest.$ac_ext <<_ACEOF
26134 /* confdefs.h. */
26135 _ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h. */
26139 yes..yes
26140 _ACEOF
26141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26142 $EGREP "yes..yes" >/dev/null 2>&1; then
26143 CPP_NEED_TRADITIONAL=no
26144 else
26145 CPP_NEED_TRADITIONAL=yes
26147 rm -f conftest*
26150 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"
26152 ac_config_commands="$ac_config_commands default"
26154 cat >confcache <<\_ACEOF
26155 # This file is a shell script that caches the results of configure
26156 # tests run on this system so they can be shared between configure
26157 # scripts and configure runs, see configure's option --config-cache.
26158 # It is not useful on other systems. If it contains results you don't
26159 # want to keep, you may remove or edit it.
26161 # config.status only pays attention to the cache file if you give it
26162 # the --recheck option to rerun configure.
26164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26166 # following values.
26168 _ACEOF
26170 # The following way of writing the cache mishandles newlines in values,
26171 # but we know of no workaround that is simple, portable, and efficient.
26172 # So, we kill variables containing newlines.
26173 # Ultrix sh set writes to stderr and can't be redirected directly,
26174 # and sets the high bit in the cache file unless we assign to the vars.
26176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26177 eval ac_val=\$$ac_var
26178 case $ac_val in #(
26179 *${as_nl}*)
26180 case $ac_var in #(
26181 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26183 esac
26184 case $ac_var in #(
26185 _ | IFS | as_nl) ;; #(
26186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26187 *) $as_unset $ac_var ;;
26188 esac ;;
26189 esac
26190 done
26192 (set) 2>&1 |
26193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26194 *${as_nl}ac_space=\ *)
26195 # `set' does not quote correctly, so add quotes (double-quote
26196 # substitution turns \\\\ into \\, and sed turns \\ into \).
26197 sed -n \
26198 "s/'/'\\\\''/g;
26199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26200 ;; #(
26202 # `set' quotes correctly as required by POSIX, so do not add quotes.
26203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26205 esac |
26206 sort
26208 sed '
26209 /^ac_cv_env_/b end
26210 t clear
26211 :clear
26212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26213 t end
26214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26215 :end' >>confcache
26216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26217 if test -w "$cache_file"; then
26218 test "x$cache_file" != "x/dev/null" &&
26219 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26220 $as_echo "$as_me: updating cache $cache_file" >&6;}
26221 cat confcache >$cache_file
26222 else
26223 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26227 rm -f confcache
26229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26230 # Let make expand exec_prefix.
26231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26233 DEFS=-DHAVE_CONFIG_H
26235 ac_libobjs=
26236 ac_ltlibobjs=
26237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26238 # 1. Remove the extension, and $U if already installed.
26239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26240 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26242 # will be set to the directory where LIBOBJS objects are built.
26243 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26244 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26245 done
26246 LIBOBJS=$ac_libobjs
26248 LTLIBOBJS=$ac_ltlibobjs
26252 : ${CONFIG_STATUS=./config.status}
26253 ac_write_fail=0
26254 ac_clean_files_save=$ac_clean_files
26255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26256 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26257 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26258 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26259 #! $SHELL
26260 # Generated by $as_me.
26261 # Run this file to recreate the current configuration.
26262 # Compiler output produced by configure, useful for debugging
26263 # configure, is in config.log if it exists.
26265 debug=false
26266 ac_cs_recheck=false
26267 ac_cs_silent=false
26268 SHELL=\${CONFIG_SHELL-$SHELL}
26269 _ACEOF
26271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26272 ## --------------------- ##
26273 ## M4sh Initialization. ##
26274 ## --------------------- ##
26276 # Be more Bourne compatible
26277 DUALCASE=1; export DUALCASE # for MKS sh
26278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26279 emulate sh
26280 NULLCMD=:
26281 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26282 # is contrary to our usage. Disable this feature.
26283 alias -g '${1+"$@"}'='"$@"'
26284 setopt NO_GLOB_SUBST
26285 else
26286 case `(set -o) 2>/dev/null` in
26287 *posix*) set -o posix ;;
26288 esac
26295 # PATH needs CR
26296 # Avoid depending upon Character Ranges.
26297 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26298 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26299 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26300 as_cr_digits='0123456789'
26301 as_cr_alnum=$as_cr_Letters$as_cr_digits
26303 as_nl='
26305 export as_nl
26306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26310 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26311 as_echo='printf %s\n'
26312 as_echo_n='printf %s'
26313 else
26314 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26315 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26316 as_echo_n='/usr/ucb/echo -n'
26317 else
26318 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26319 as_echo_n_body='eval
26320 arg=$1;
26321 case $arg in
26322 *"$as_nl"*)
26323 expr "X$arg" : "X\\(.*\\)$as_nl";
26324 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26325 esac;
26326 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26328 export as_echo_n_body
26329 as_echo_n='sh -c $as_echo_n_body as_echo'
26331 export as_echo_body
26332 as_echo='sh -c $as_echo_body as_echo'
26335 # The user is always right.
26336 if test "${PATH_SEPARATOR+set}" != set; then
26337 PATH_SEPARATOR=:
26338 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26339 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26340 PATH_SEPARATOR=';'
26344 # Support unset when possible.
26345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26346 as_unset=unset
26347 else
26348 as_unset=false
26352 # IFS
26353 # We need space, tab and new line, in precisely that order. Quoting is
26354 # there to prevent editors from complaining about space-tab.
26355 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26356 # splitting by setting IFS to empty value.)
26357 IFS=" "" $as_nl"
26359 # Find who we are. Look in the path if we contain no directory separator.
26360 case $0 in
26361 *[\\/]* ) as_myself=$0 ;;
26362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26363 for as_dir in $PATH
26365 IFS=$as_save_IFS
26366 test -z "$as_dir" && as_dir=.
26367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26368 done
26369 IFS=$as_save_IFS
26372 esac
26373 # We did not find ourselves, most probably we were run as `sh COMMAND'
26374 # in which case we are not to be found in the path.
26375 if test "x$as_myself" = x; then
26376 as_myself=$0
26378 if test ! -f "$as_myself"; then
26379 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26380 { (exit 1); exit 1; }
26383 # Work around bugs in pre-3.0 UWIN ksh.
26384 for as_var in ENV MAIL MAILPATH
26385 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26386 done
26387 PS1='$ '
26388 PS2='> '
26389 PS4='+ '
26391 # NLS nuisances.
26392 LC_ALL=C
26393 export LC_ALL
26394 LANGUAGE=C
26395 export LANGUAGE
26397 # Required to use basename.
26398 if expr a : '\(a\)' >/dev/null 2>&1 &&
26399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26400 as_expr=expr
26401 else
26402 as_expr=false
26405 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26406 as_basename=basename
26407 else
26408 as_basename=false
26412 # Name of the executable.
26413 as_me=`$as_basename -- "$0" ||
26414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26415 X"$0" : 'X\(//\)$' \| \
26416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26417 $as_echo X/"$0" |
26418 sed '/^.*\/\([^/][^/]*\)\/*$/{
26419 s//\1/
26422 /^X\/\(\/\/\)$/{
26423 s//\1/
26426 /^X\/\(\/\).*/{
26427 s//\1/
26430 s/.*/./; q'`
26432 # CDPATH.
26433 $as_unset CDPATH
26437 as_lineno_1=$LINENO
26438 as_lineno_2=$LINENO
26439 test "x$as_lineno_1" != "x$as_lineno_2" &&
26440 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26442 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26443 # uniformly replaced by the line number. The first 'sed' inserts a
26444 # line-number line after each line using $LINENO; the second 'sed'
26445 # does the real work. The second script uses 'N' to pair each
26446 # line-number line with the line containing $LINENO, and appends
26447 # trailing '-' during substitution so that $LINENO is not a special
26448 # case at line end.
26449 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26450 # scripts with optimization help from Paolo Bonzini. Blame Lee
26451 # E. McMahon (1931-1989) for sed's syntax. :-)
26452 sed -n '
26454 /[$]LINENO/=
26455 ' <$as_myself |
26456 sed '
26457 s/[$]LINENO.*/&-/
26458 t lineno
26460 :lineno
26462 :loop
26463 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26464 t loop
26465 s/-\n.*//
26466 ' >$as_me.lineno &&
26467 chmod +x "$as_me.lineno" ||
26468 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26469 { (exit 1); exit 1; }; }
26471 # Don't try to exec as it changes $[0], causing all sort of problems
26472 # (the dirname of $[0] is not the place where we might find the
26473 # original and so on. Autoconf is especially sensitive to this).
26474 . "./$as_me.lineno"
26475 # Exit status is that of the last command.
26476 exit
26480 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26481 as_dirname=dirname
26482 else
26483 as_dirname=false
26486 ECHO_C= ECHO_N= ECHO_T=
26487 case `echo -n x` in
26488 -n*)
26489 case `echo 'x\c'` in
26490 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26491 *) ECHO_C='\c';;
26492 esac;;
26494 ECHO_N='-n';;
26495 esac
26496 if expr a : '\(a\)' >/dev/null 2>&1 &&
26497 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26498 as_expr=expr
26499 else
26500 as_expr=false
26503 rm -f conf$$ conf$$.exe conf$$.file
26504 if test -d conf$$.dir; then
26505 rm -f conf$$.dir/conf$$.file
26506 else
26507 rm -f conf$$.dir
26508 mkdir conf$$.dir 2>/dev/null
26510 if (echo >conf$$.file) 2>/dev/null; then
26511 if ln -s conf$$.file conf$$ 2>/dev/null; then
26512 as_ln_s='ln -s'
26513 # ... but there are two gotchas:
26514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26516 # In both cases, we have to default to `cp -p'.
26517 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26518 as_ln_s='cp -p'
26519 elif ln conf$$.file conf$$ 2>/dev/null; then
26520 as_ln_s=ln
26521 else
26522 as_ln_s='cp -p'
26524 else
26525 as_ln_s='cp -p'
26527 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26528 rmdir conf$$.dir 2>/dev/null
26530 if mkdir -p . 2>/dev/null; then
26531 as_mkdir_p=:
26532 else
26533 test -d ./-p && rmdir ./-p
26534 as_mkdir_p=false
26537 if test -x / >/dev/null 2>&1; then
26538 as_test_x='test -x'
26539 else
26540 if ls -dL / >/dev/null 2>&1; then
26541 as_ls_L_option=L
26542 else
26543 as_ls_L_option=
26545 as_test_x='
26546 eval sh -c '\''
26547 if test -d "$1"; then
26548 test -d "$1/.";
26549 else
26550 case $1 in
26551 -*)set "./$1";;
26552 esac;
26553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26554 ???[sx]*):;;*)false;;esac;fi
26555 '\'' sh
26558 as_executable_p=$as_test_x
26560 # Sed expression to map a string onto a valid CPP name.
26561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26563 # Sed expression to map a string onto a valid variable name.
26564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26567 exec 6>&1
26569 # Save the log message, to keep $[0] and so on meaningful, and to
26570 # report actual input values of CONFIG_FILES etc. instead of their
26571 # values after options handling.
26572 ac_log="
26573 This file was extended by emacs $as_me 24.0.50, which was
26574 generated by GNU Autoconf 2.63. Invocation command line was
26576 CONFIG_FILES = $CONFIG_FILES
26577 CONFIG_HEADERS = $CONFIG_HEADERS
26578 CONFIG_LINKS = $CONFIG_LINKS
26579 CONFIG_COMMANDS = $CONFIG_COMMANDS
26580 $ $0 $@
26582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26585 _ACEOF
26587 case $ac_config_files in *"
26588 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26589 esac
26591 case $ac_config_headers in *"
26592 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26593 esac
26596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26597 # Files that config.status was made for.
26598 config_files="$ac_config_files"
26599 config_headers="$ac_config_headers"
26600 config_commands="$ac_config_commands"
26602 _ACEOF
26604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26605 ac_cs_usage="\
26606 \`$as_me' instantiates files from templates according to the
26607 current configuration.
26609 Usage: $0 [OPTION]... [FILE]...
26611 -h, --help print this help, then exit
26612 -V, --version print version number and configuration settings, then exit
26613 -q, --quiet, --silent
26614 do not print progress messages
26615 -d, --debug don't remove temporary files
26616 --recheck update $as_me by reconfiguring in the same conditions
26617 --file=FILE[:TEMPLATE]
26618 instantiate the configuration file FILE
26619 --header=FILE[:TEMPLATE]
26620 instantiate the configuration header FILE
26622 Configuration files:
26623 $config_files
26625 Configuration headers:
26626 $config_headers
26628 Configuration commands:
26629 $config_commands
26631 Report bugs to <bug-autoconf@gnu.org>."
26633 _ACEOF
26634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26635 ac_cs_version="\\
26636 emacs config.status 24.0.50
26637 configured by $0, generated by GNU Autoconf 2.63,
26638 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26640 Copyright (C) 2008 Free Software Foundation, Inc.
26641 This config.status script is free software; the Free Software Foundation
26642 gives unlimited permission to copy, distribute and modify it."
26644 ac_pwd='$ac_pwd'
26645 srcdir='$srcdir'
26646 INSTALL='$INSTALL'
26647 test -n "\$AWK" || AWK=awk
26648 _ACEOF
26650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26651 # The default lists apply if the user does not specify any file.
26652 ac_need_defaults=:
26653 while test $# != 0
26655 case $1 in
26656 --*=*)
26657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26659 ac_shift=:
26662 ac_option=$1
26663 ac_optarg=$2
26664 ac_shift=shift
26666 esac
26668 case $ac_option in
26669 # Handling of the options.
26670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26671 ac_cs_recheck=: ;;
26672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26673 $as_echo "$ac_cs_version"; exit ;;
26674 --debug | --debu | --deb | --de | --d | -d )
26675 debug=: ;;
26676 --file | --fil | --fi | --f )
26677 $ac_shift
26678 case $ac_optarg in
26679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26680 esac
26681 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26682 ac_need_defaults=false;;
26683 --header | --heade | --head | --hea )
26684 $ac_shift
26685 case $ac_optarg in
26686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26687 esac
26688 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26689 ac_need_defaults=false;;
26690 --he | --h)
26691 # Conflict between --help and --header
26692 { $as_echo "$as_me: error: ambiguous option: $1
26693 Try \`$0 --help' for more information." >&2
26694 { (exit 1); exit 1; }; };;
26695 --help | --hel | -h )
26696 $as_echo "$ac_cs_usage"; exit ;;
26697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26698 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26699 ac_cs_silent=: ;;
26701 # This is an error.
26702 -*) { $as_echo "$as_me: error: unrecognized option: $1
26703 Try \`$0 --help' for more information." >&2
26704 { (exit 1); exit 1; }; } ;;
26706 *) ac_config_targets="$ac_config_targets $1"
26707 ac_need_defaults=false ;;
26709 esac
26710 shift
26711 done
26713 ac_configure_extra_args=
26715 if $ac_cs_silent; then
26716 exec 6>/dev/null
26717 ac_configure_extra_args="$ac_configure_extra_args --silent"
26720 _ACEOF
26721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26722 if \$ac_cs_recheck; then
26723 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26724 shift
26725 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26726 CONFIG_SHELL='$SHELL'
26727 export CONFIG_SHELL
26728 exec "\$@"
26731 _ACEOF
26732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26733 exec 5>>config.log
26735 echo
26736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26737 ## Running $as_me. ##
26738 _ASBOX
26739 $as_echo "$ac_log"
26740 } >&5
26742 _ACEOF
26743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26745 # INIT-COMMANDS
26747 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26749 _ACEOF
26751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26753 # Handling of arguments.
26754 for ac_config_target in $ac_config_targets
26756 case $ac_config_target in
26757 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26759 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26760 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26761 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26762 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26763 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26764 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26765 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26766 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26767 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26768 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26769 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26771 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26772 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26773 { (exit 1); exit 1; }; };;
26774 esac
26775 done
26778 # If the user did not use the arguments to specify the items to instantiate,
26779 # then the envvar interface is used. Set only those that are not.
26780 # We use the long form for the default assignment because of an extremely
26781 # bizarre bug on SunOS 4.1.3.
26782 if $ac_need_defaults; then
26783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26788 # Have a temporary directory for convenience. Make it in the build tree
26789 # simply because there is no reason against having it here, and in addition,
26790 # creating and moving files from /tmp can sometimes cause problems.
26791 # Hook for its removal unless debugging.
26792 # Note that there is a small window in which the directory will not be cleaned:
26793 # after its creation but before its name has been assigned to `$tmp'.
26794 $debug ||
26796 tmp=
26797 trap 'exit_status=$?
26798 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26800 trap '{ (exit 1); exit 1; }' 1 2 13 15
26802 # Create a (secure) tmp directory for tmp files.
26805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26806 test -n "$tmp" && test -d "$tmp"
26807 } ||
26809 tmp=./conf$$-$RANDOM
26810 (umask 077 && mkdir "$tmp")
26811 } ||
26813 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26814 { (exit 1); exit 1; }
26817 # Set up the scripts for CONFIG_FILES section.
26818 # No need to generate them if there are no CONFIG_FILES.
26819 # This happens for instance with `./config.status config.h'.
26820 if test -n "$CONFIG_FILES"; then
26823 ac_cr=' '
26824 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26826 ac_cs_awk_cr='\\r'
26827 else
26828 ac_cs_awk_cr=$ac_cr
26831 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26832 _ACEOF
26836 echo "cat >conf$$subs.awk <<_ACEOF" &&
26837 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26838 echo "_ACEOF"
26839 } >conf$$subs.sh ||
26840 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26841 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26842 { (exit 1); exit 1; }; }
26843 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26844 ac_delim='%!_!# '
26845 for ac_last_try in false false false false false :; do
26846 . ./conf$$subs.sh ||
26847 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26848 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26849 { (exit 1); exit 1; }; }
26851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26852 if test $ac_delim_n = $ac_delim_num; then
26853 break
26854 elif $ac_last_try; then
26855 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26856 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26857 { (exit 1); exit 1; }; }
26858 else
26859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26861 done
26862 rm -f conf$$subs.sh
26864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26865 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26866 _ACEOF
26867 sed -n '
26869 s/^/S["/; s/!.*/"]=/
26872 s/^[^!]*!//
26873 :repl
26874 t repl
26875 s/'"$ac_delim"'$//
26876 t delim
26879 s/\(.\{148\}\).*/\1/
26880 t more1
26881 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26884 b repl
26885 :more1
26886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26889 s/.\{148\}//
26890 t nl
26891 :delim
26893 s/\(.\{148\}\).*/\1/
26894 t more2
26895 s/["\\]/\\&/g; s/^/"/; s/$/"/
26898 :more2
26899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26902 s/.\{148\}//
26903 t delim
26904 ' <conf$$subs.awk | sed '
26905 /^[^""]/{
26907 s/\n//
26909 ' >>$CONFIG_STATUS || ac_write_fail=1
26910 rm -f conf$$subs.awk
26911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26912 _ACAWK
26913 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26914 for (key in S) S_is_set[key] = 1
26915 FS = "\a"
26919 line = $ 0
26920 nfields = split(line, field, "@")
26921 substed = 0
26922 len = length(field[1])
26923 for (i = 2; i < nfields; i++) {
26924 key = field[i]
26925 keylen = length(key)
26926 if (S_is_set[key]) {
26927 value = S[key]
26928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26929 len += length(value) + length(field[++i])
26930 substed = 1
26931 } else
26932 len += 1 + keylen
26935 print line
26938 _ACAWK
26939 _ACEOF
26940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26941 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26942 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26943 else
26945 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26946 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26947 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26948 { (exit 1); exit 1; }; }
26949 _ACEOF
26951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26953 # trailing colons and then remove the whole line if VPATH becomes empty
26954 # (actually we leave an empty line to preserve line numbers).
26955 if test "x$srcdir" = x.; then
26956 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26957 s/:*\$(srcdir):*/:/
26958 s/:*\${srcdir}:*/:/
26959 s/:*@srcdir@:*/:/
26960 s/^\([^=]*=[ ]*\):*/\1/
26961 s/:*$//
26962 s/^[^=]*=[ ]*$//
26966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26967 fi # test -n "$CONFIG_FILES"
26969 # Set up the scripts for CONFIG_HEADERS section.
26970 # No need to generate them if there are no CONFIG_HEADERS.
26971 # This happens for instance with `./config.status Makefile'.
26972 if test -n "$CONFIG_HEADERS"; then
26973 cat >"$tmp/defines.awk" <<\_ACAWK ||
26974 BEGIN {
26975 _ACEOF
26977 # Transform confdefs.h into an awk script `defines.awk', embedded as
26978 # here-document in config.status, that substitutes the proper values into
26979 # config.h.in to produce config.h.
26981 # Create a delimiter string that does not exist in confdefs.h, to ease
26982 # handling of long lines.
26983 ac_delim='%!_!# '
26984 for ac_last_try in false false :; do
26985 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26986 if test -z "$ac_t"; then
26987 break
26988 elif $ac_last_try; then
26989 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26990 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26991 { (exit 1); exit 1; }; }
26992 else
26993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26995 done
26997 # For the awk script, D is an array of macro values keyed by name,
26998 # likewise P contains macro parameters if any. Preserve backslash
26999 # newline sequences.
27001 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27002 sed -n '
27003 s/.\{148\}/&'"$ac_delim"'/g
27004 t rset
27005 :rset
27006 s/^[ ]*#[ ]*define[ ][ ]*/ /
27007 t def
27009 :def
27010 s/\\$//
27011 t bsnl
27012 s/["\\]/\\&/g
27013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27014 D["\1"]=" \3"/p
27015 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27017 :bsnl
27018 s/["\\]/\\&/g
27019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27020 D["\1"]=" \3\\\\\\n"\\/p
27021 t cont
27022 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27023 t cont
27025 :cont
27027 s/.\{148\}/&'"$ac_delim"'/g
27028 t clear
27029 :clear
27030 s/\\$//
27031 t bsnlc
27032 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27034 :bsnlc
27035 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27036 b cont
27037 ' <confdefs.h | sed '
27038 s/'"$ac_delim"'/"\\\
27039 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27042 for (key in D) D_is_set[key] = 1
27043 FS = "\a"
27045 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27046 line = \$ 0
27047 split(line, arg, " ")
27048 if (arg[1] == "#") {
27049 defundef = arg[2]
27050 mac1 = arg[3]
27051 } else {
27052 defundef = substr(arg[1], 2)
27053 mac1 = arg[2]
27055 split(mac1, mac2, "(") #)
27056 macro = mac2[1]
27057 prefix = substr(line, 1, index(line, defundef) - 1)
27058 if (D_is_set[macro]) {
27059 # Preserve the white space surrounding the "#".
27060 print prefix "define", macro P[macro] D[macro]
27061 next
27062 } else {
27063 # Replace #undef with comments. This is necessary, for example,
27064 # in the case of _POSIX_SOURCE, which is predefined and required
27065 # on some systems where configure will not decide to define it.
27066 if (defundef == "undef") {
27067 print "/*", prefix defundef, macro, "*/"
27068 next
27072 { print }
27073 _ACAWK
27074 _ACEOF
27075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27076 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27077 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27078 { (exit 1); exit 1; }; }
27079 fi # test -n "$CONFIG_HEADERS"
27082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27083 shift
27084 for ac_tag
27086 case $ac_tag in
27087 :[FHLC]) ac_mode=$ac_tag; continue;;
27088 esac
27089 case $ac_mode$ac_tag in
27090 :[FHL]*:*);;
27091 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27092 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27093 { (exit 1); exit 1; }; };;
27094 :[FH]-) ac_tag=-:-;;
27095 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27096 esac
27097 ac_save_IFS=$IFS
27098 IFS=:
27099 set x $ac_tag
27100 IFS=$ac_save_IFS
27101 shift
27102 ac_file=$1
27103 shift
27105 case $ac_mode in
27106 :L) ac_source=$1;;
27107 :[FH])
27108 ac_file_inputs=
27109 for ac_f
27111 case $ac_f in
27112 -) ac_f="$tmp/stdin";;
27113 *) # Look for the file first in the build tree, then in the source tree
27114 # (if the path is not absolute). The absolute path cannot be DOS-style,
27115 # because $ac_f cannot contain `:'.
27116 test -f "$ac_f" ||
27117 case $ac_f in
27118 [\\/$]*) false;;
27119 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27120 esac ||
27121 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27122 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27123 { (exit 1); exit 1; }; };;
27124 esac
27125 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27126 ac_file_inputs="$ac_file_inputs '$ac_f'"
27127 done
27129 # Let's still pretend it is `configure' which instantiates (i.e., don't
27130 # use $as_me), people would be surprised to read:
27131 # /* config.h. Generated by config.status. */
27132 configure_input='Generated from '`
27133 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27134 `' by configure.'
27135 if test x"$ac_file" != x-; then
27136 configure_input="$ac_file. $configure_input"
27137 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27138 $as_echo "$as_me: creating $ac_file" >&6;}
27140 # Neutralize special characters interpreted by sed in replacement strings.
27141 case $configure_input in #(
27142 *\&* | *\|* | *\\* )
27143 ac_sed_conf_input=`$as_echo "$configure_input" |
27144 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27145 *) ac_sed_conf_input=$configure_input;;
27146 esac
27148 case $ac_tag in
27149 *:-:* | *:-) cat >"$tmp/stdin" \
27150 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27151 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27152 { (exit 1); exit 1; }; } ;;
27153 esac
27155 esac
27157 ac_dir=`$as_dirname -- "$ac_file" ||
27158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27159 X"$ac_file" : 'X\(//\)[^/]' \| \
27160 X"$ac_file" : 'X\(//\)$' \| \
27161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27162 $as_echo X"$ac_file" |
27163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27164 s//\1/
27167 /^X\(\/\/\)[^/].*/{
27168 s//\1/
27171 /^X\(\/\/\)$/{
27172 s//\1/
27175 /^X\(\/\).*/{
27176 s//\1/
27179 s/.*/./; q'`
27180 { as_dir="$ac_dir"
27181 case $as_dir in #(
27182 -*) as_dir=./$as_dir;;
27183 esac
27184 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27185 as_dirs=
27186 while :; do
27187 case $as_dir in #(
27188 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27189 *) as_qdir=$as_dir;;
27190 esac
27191 as_dirs="'$as_qdir' $as_dirs"
27192 as_dir=`$as_dirname -- "$as_dir" ||
27193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27194 X"$as_dir" : 'X\(//\)[^/]' \| \
27195 X"$as_dir" : 'X\(//\)$' \| \
27196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27197 $as_echo X"$as_dir" |
27198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27199 s//\1/
27202 /^X\(\/\/\)[^/].*/{
27203 s//\1/
27206 /^X\(\/\/\)$/{
27207 s//\1/
27210 /^X\(\/\).*/{
27211 s//\1/
27214 s/.*/./; q'`
27215 test -d "$as_dir" && break
27216 done
27217 test -z "$as_dirs" || eval "mkdir $as_dirs"
27218 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27219 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27220 { (exit 1); exit 1; }; }; }
27221 ac_builddir=.
27223 case "$ac_dir" in
27224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27227 # A ".." for each directory in $ac_dir_suffix.
27228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27229 case $ac_top_builddir_sub in
27230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27232 esac ;;
27233 esac
27234 ac_abs_top_builddir=$ac_pwd
27235 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27236 # for backward compatibility:
27237 ac_top_builddir=$ac_top_build_prefix
27239 case $srcdir in
27240 .) # We are building in place.
27241 ac_srcdir=.
27242 ac_top_srcdir=$ac_top_builddir_sub
27243 ac_abs_top_srcdir=$ac_pwd ;;
27244 [\\/]* | ?:[\\/]* ) # Absolute name.
27245 ac_srcdir=$srcdir$ac_dir_suffix;
27246 ac_top_srcdir=$srcdir
27247 ac_abs_top_srcdir=$srcdir ;;
27248 *) # Relative name.
27249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27250 ac_top_srcdir=$ac_top_build_prefix$srcdir
27251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27252 esac
27253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27256 case $ac_mode in
27259 # CONFIG_FILE
27262 case $INSTALL in
27263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27265 esac
27266 _ACEOF
27268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27269 # If the template does not know about datarootdir, expand it.
27270 # FIXME: This hack should be removed a few years after 2.60.
27271 ac_datarootdir_hack=; ac_datarootdir_seen=
27273 ac_sed_dataroot='
27274 /datarootdir/ {
27278 /@datadir@/p
27279 /@docdir@/p
27280 /@infodir@/p
27281 /@localedir@/p
27282 /@mandir@/p
27284 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27285 *datarootdir*) ac_datarootdir_seen=yes;;
27286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27287 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27288 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27289 _ACEOF
27290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27291 ac_datarootdir_hack='
27292 s&@datadir@&$datadir&g
27293 s&@docdir@&$docdir&g
27294 s&@infodir@&$infodir&g
27295 s&@localedir@&$localedir&g
27296 s&@mandir@&$mandir&g
27297 s&\\\${datarootdir}&$datarootdir&g' ;;
27298 esac
27299 _ACEOF
27301 # Neutralize VPATH when `$srcdir' = `.'.
27302 # Shell code in configure.ac might set extrasub.
27303 # FIXME: do we really want to maintain this feature?
27304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27305 ac_sed_extra="$ac_vpsub
27306 $extrasub
27307 _ACEOF
27308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27311 s|@configure_input@|$ac_sed_conf_input|;t t
27312 s&@top_builddir@&$ac_top_builddir_sub&;t t
27313 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27314 s&@srcdir@&$ac_srcdir&;t t
27315 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27316 s&@top_srcdir@&$ac_top_srcdir&;t t
27317 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27318 s&@builddir@&$ac_builddir&;t t
27319 s&@abs_builddir@&$ac_abs_builddir&;t t
27320 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27321 s&@INSTALL@&$ac_INSTALL&;t t
27322 $ac_datarootdir_hack
27324 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27325 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27326 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27327 { (exit 1); exit 1; }; }
27329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27330 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27332 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27333 which seems to be undefined. Please make sure it is defined." >&5
27334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27335 which seems to be undefined. Please make sure it is defined." >&2;}
27337 rm -f "$tmp/stdin"
27338 case $ac_file in
27339 -) cat "$tmp/out" && rm -f "$tmp/out";;
27340 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27341 esac \
27342 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27344 { (exit 1); exit 1; }; }
27348 # CONFIG_HEADER
27350 if test x"$ac_file" != x-; then
27352 $as_echo "/* $configure_input */" \
27353 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27354 } >"$tmp/config.h" \
27355 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27356 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27357 { (exit 1); exit 1; }; }
27358 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27359 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27360 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27361 else
27362 rm -f "$ac_file"
27363 mv "$tmp/config.h" "$ac_file" \
27364 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27365 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27366 { (exit 1); exit 1; }; }
27368 else
27369 $as_echo "/* $configure_input */" \
27370 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27371 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27372 $as_echo "$as_me: error: could not create -" >&2;}
27373 { (exit 1); exit 1; }; }
27377 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27378 $as_echo "$as_me: executing $ac_file commands" >&6;}
27380 esac
27383 case $ac_file$ac_mode in
27384 "default":C)
27386 ### Make the necessary directories, if they don't exist.
27387 for dir in etc lisp ; do
27388 test -d ${dir} || mkdir ${dir}
27389 done
27391 # Build src/Makefile from ${srcdir}/src/Makefile.c
27392 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27393 # This must be done after src/config.h is built, since we rely on that file.
27395 echo creating src/epaths.h
27396 ${MAKE-make} epaths-force
27398 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27399 # `..' to `. .' unless invoked with -traditional
27401 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27402 CPPFLAGS="$CPPFLAGS -traditional"
27405 echo creating lib-src/Makefile
27406 ( cd lib-src
27407 rm -f junk.c junk1.c junk2.c
27408 sed -e '/start of cpp stuff/q' \
27409 < Makefile.c > junk1.c
27410 sed -e '1,/start of cpp stuff/d'\
27411 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27412 < Makefile.c > junk.c
27413 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27414 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27415 cat junk1.c junk2.c > Makefile.new
27416 rm -f junk.c junk1.c junk2.c
27417 chmod 444 Makefile.new
27418 mv -f Makefile.new Makefile
27421 echo creating src/Makefile
27422 ( cd src
27423 rm -f junk.c junk1.c junk2.c
27424 sed -e '/start of cpp stuff/q' \
27425 < Makefile.c > junk1.c
27426 sed -e '1,/start of cpp stuff/d'\
27427 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27428 < Makefile.c > junk.c
27429 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27430 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27431 cat junk1.c junk2.c > Makefile.new
27432 rm -f junk.c junk1.c junk2.c
27433 chmod 444 Makefile.new
27434 mv -f Makefile.new Makefile
27437 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27438 echo creating src/.gdbinit
27439 echo source $srcdir/src/.gdbinit > src/.gdbinit
27444 esac
27445 done # for ac_tag
27448 { (exit 0); exit 0; }
27449 _ACEOF
27450 chmod +x $CONFIG_STATUS
27451 ac_clean_files=$ac_clean_files_save
27453 test $ac_write_fail = 0 ||
27454 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27455 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27456 { (exit 1); exit 1; }; }
27459 # configure is writing to config.log, and then calls config.status.
27460 # config.status does its own redirection, appending to config.log.
27461 # Unfortunately, on DOS this fails, as config.log is still kept open
27462 # by configure, so config.status won't be able to write to it; its
27463 # output is simply discarded. So we exec the FD to /dev/null,
27464 # effectively closing config.log, so it can be properly (re)opened and
27465 # appended to by config.status. When coming back to configure, we
27466 # need to make the FD available again.
27467 if test "$no_create" != yes; then
27468 ac_cs_success=:
27469 ac_config_status_args=
27470 test "$silent" = yes &&
27471 ac_config_status_args="$ac_config_status_args --quiet"
27472 exec 5>/dev/null
27473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27474 exec 5>>config.log
27475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27476 # would make configure fail if this is the last instruction.
27477 $ac_cs_success || { (exit 1); exit 1; }
27479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27480 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}