Revert removal of `mm-hack-charsets' in Gnus
[emacs.git] / configure
blobe9e845c0fd46c33d7da110d92518378feecfbc7f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-gcc don't use GCC to compile Emacs even if GCC is found
1349 --without-pop don't support POP mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version 5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server host
1353 --without-sound don't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --with-gtk use GTK toolkit
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1372 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1373 console
1374 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.50
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.50, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1470 $ $0 $@
1472 _ACEOF
1473 exec 5>>config.log
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 _ASUNAME
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1508 } >&5
1510 cat >&5 <<_ACEOF
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1517 _ACEOF
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1531 for ac_arg
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1576 echo
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 esac |
1611 sort
1613 echo
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1712 shift
1713 for ac_site_file
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1721 done
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1850 gameuser=games
1855 # Check whether --with-gcc was given.
1856 if test "${with_gcc+set}" = set; then
1857 withval=$with_gcc;
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1864 withval=$with_pop;
1865 else
1866 with_pop=yes
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h <<\_ACEOF
1871 #define MAIL_USE_POP 1
1872 _ACEOF
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos;
1881 else
1882 with_kerberos=no
1885 if test "$with_kerberos" = yes; then
1886 cat >>confdefs.h <<\_ACEOF
1887 #define KERBEROS 1
1888 _ACEOF
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval=$with_kerberos5;
1897 else
1898 with_kerberos5=no
1901 if test "${with_kerberos5}" = yes; then
1902 if test "${with_kerberos}" != yes; then
1903 with_kerberos=yes
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS 1
1906 _ACEOF
1910 cat >>confdefs.h <<\_ACEOF
1911 #define KERBEROS5 1
1912 _ACEOF
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval=$with_hesiod;
1920 else
1921 with_hesiod=no
1924 if test "$with_hesiod" = yes; then
1926 cat >>confdefs.h <<\_ACEOF
1927 #define HESIOD 1
1928 _ACEOF
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval=$with_sound;
1936 else
1937 with_sound=yes
1942 # Check whether --with-x-toolkit was given.
1943 if test "${with_x_toolkit+set}" = set; then
1944 withval=$with_x_toolkit; case "${withval}" in
1945 y | ye | yes ) val=gtk ;;
1946 n | no ) val=no ;;
1947 l | lu | luc | luci | lucid ) val=lucid ;;
1948 a | at | ath | athe | athen | athena ) val=athena ;;
1949 m | mo | mot | moti | motif ) val=motif ;;
1950 g | gt | gtk ) val=gtk ;;
1952 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1953 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1954 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1955 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1956 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1957 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1958 { (exit 1); exit 1; }; }
1960 esac
1961 with_x_toolkit=$val
1967 # Check whether --with-xpm was given.
1968 if test "${with_xpm+set}" = set; then
1969 withval=$with_xpm;
1970 else
1971 with_xpm=yes
1975 # Check whether --with-jpeg was given.
1976 if test "${with_jpeg+set}" = set; then
1977 withval=$with_jpeg;
1978 else
1979 with_jpeg=yes
1983 # Check whether --with-tiff was given.
1984 if test "${with_tiff+set}" = set; then
1985 withval=$with_tiff;
1986 else
1987 with_tiff=yes
1991 # Check whether --with-gif was given.
1992 if test "${with_gif+set}" = set; then
1993 withval=$with_gif;
1994 else
1995 with_gif=yes
1999 # Check whether --with-png was given.
2000 if test "${with_png+set}" = set; then
2001 withval=$with_png;
2002 else
2003 with_png=yes
2007 # Check whether --with-rsvg was given.
2008 if test "${with_rsvg+set}" = set; then
2009 withval=$with_rsvg;
2010 else
2011 with_rsvg=yes
2016 # Check whether --with-freetype was given.
2017 if test "${with_freetype+set}" = set; then
2018 withval=$with_freetype;
2019 else
2020 with_freetype=yes
2024 # Check whether --with-xft was given.
2025 if test "${with_xft+set}" = set; then
2026 withval=$with_xft;
2027 else
2028 with_xft=yes
2032 # Check whether --with-libotf was given.
2033 if test "${with_libotf+set}" = set; then
2034 withval=$with_libotf;
2035 else
2036 with_libotf=yes
2040 # Check whether --with-m17n-flt was given.
2041 if test "${with_m17n_flt+set}" = set; then
2042 withval=$with_m17n_flt;
2043 else
2044 with_m17n_flt=yes
2049 # Check whether --with-gtk was given.
2050 if test "${with_gtk+set}" = set; then
2051 withval=$with_gtk;
2052 else
2053 with_gtk=no
2057 # Check whether --with-toolkit-scroll-bars was given.
2058 if test "${with_toolkit_scroll_bars+set}" = set; then
2059 withval=$with_toolkit_scroll_bars;
2060 else
2061 with_toolkit_scroll_bars=yes
2065 # Check whether --with-xaw3d was given.
2066 if test "${with_xaw3d+set}" = set; then
2067 withval=$with_xaw3d;
2068 else
2069 with_xaw3d=yes
2073 # Check whether --with-xim was given.
2074 if test "${with_xim+set}" = set; then
2075 withval=$with_xim;
2076 else
2077 with_xim=yes
2081 # Check whether --with-carbon was given.
2082 if test "${with_carbon+set}" = set; then
2083 withval=$with_carbon;
2084 else
2085 with_carbon=no
2090 # Check whether --with-gpm was given.
2091 if test "${with_gpm+set}" = set; then
2092 withval=$with_gpm;
2093 else
2094 with_gpm=yes
2098 # Check whether --with-dbus was given.
2099 if test "${with_dbus+set}" = set; then
2100 withval=$with_dbus;
2101 else
2102 with_dbus=yes
2107 # Check whether --with-pkg-config-prog was given.
2108 if test "${with_pkg_config_prog+set}" = set; then
2109 withval=$with_pkg_config_prog;
2112 if test "X${with_pkg_config_prog}" != X; then
2113 if test "${with_pkg_config_prog}" != yes; then
2114 PKG_CONFIG="${with_pkg_config_prog}"
2118 # Check whether --enable-carbon-app was given.
2119 if test "${enable_carbon_app+set}" = set; then
2120 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2124 # Check whether --enable-font-backend was given.
2125 if test "${enable_font_backend+set}" = set; then
2126 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2127 else
2128 USE_FONT_BACKEND=no
2132 # Check whether --enable-asserts was given.
2133 if test "${enable_asserts+set}" = set; then
2134 enableval=$enable_asserts; USE_XASSERTS=$enableval
2135 else
2136 USE_XASSERTS=no
2140 # Check whether --enable-maintainer-mode was given.
2141 if test "${enable_maintainer_mode+set}" = set; then
2142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2143 else
2144 USE_MAINTAINER_MODE=no
2147 if test $USE_MAINTAINER_MODE = yes; then
2148 MAINT=
2149 else
2150 MAINT=#
2154 # Check whether --enable-locallisppath was given.
2155 if test "${enable_locallisppath+set}" = set; then
2156 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2157 locallisppath=
2158 elif test "${enableval}" != "yes"; then
2159 locallisppath=${enableval}
2164 #### Make srcdir absolute, if it isn't already. It's important to
2165 #### avoid running the path through pwd unnecessarily, since pwd can
2166 #### give you automounter prefixes, which can go away. We do all this
2167 #### so Emacs can find its files when run uninstalled.
2168 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2169 unset CDPATH
2170 case "${srcdir}" in
2171 /* ) ;;
2173 ## We may be able to use the $PWD environment variable to make this
2174 ## absolute. But sometimes PWD is inaccurate.
2175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2176 ## but that tested only for a well-formed and valid PWD,
2177 ## it did not object when PWD was well-formed and valid but just wrong.
2178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2179 then
2180 srcdir="$PWD"
2181 else
2182 srcdir="`(cd ${srcdir}; pwd)`"
2185 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2186 esac
2188 #### Check if the source directory already has a configured system in it.
2189 if test `pwd` != `(cd ${srcdir} && pwd)` \
2190 && test -f "${srcdir}/src/config.h" ; then
2191 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2192 as a build directory right now; it has been configured in its own
2193 right. To configure in another directory as well, you MUST
2194 use GNU make. If you do not have GNU make, then you must
2195 now do \`make distclean' in ${srcdir},
2196 and then run $0 again." >&5
2197 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&2;}
2205 #### Given the configuration name, set machfile and opsysfile to the
2206 #### names of the m/*.h and s/*.h files we should use.
2208 ### Canonicalize the configuration name.
2210 ac_aux_dir=
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 if test -f "$ac_dir/install-sh"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/install-sh -c"
2215 break
2216 elif test -f "$ac_dir/install.sh"; then
2217 ac_aux_dir=$ac_dir
2218 ac_install_sh="$ac_aux_dir/install.sh -c"
2219 break
2220 elif test -f "$ac_dir/shtool"; then
2221 ac_aux_dir=$ac_dir
2222 ac_install_sh="$ac_aux_dir/shtool install -c"
2223 break
2225 done
2226 if test -z "$ac_aux_dir"; then
2227 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2228 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2229 { (exit 1); exit 1; }; }
2232 # These three variables are undocumented and unsupported,
2233 # and are intended to be withdrawn in a future Autoconf release.
2234 # They can cause serious problems if a builder's source tree is in a directory
2235 # whose full name contains unusual characters.
2236 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2237 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2238 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2241 # Make sure we can run config.sub.
2242 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2243 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2245 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: checking build system type" >&5
2248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2249 if test "${ac_cv_build+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 ac_build_alias=$build_alias
2253 test "x$ac_build_alias" = x &&
2254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x &&
2256 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2258 { (exit 1); exit 1; }; }
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2266 echo "${ECHO_T}$ac_cv_build" >&6; }
2267 case $ac_cv_build in
2268 *-*-*) ;;
2269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2270 echo "$as_me: error: invalid value of canonical build" >&2;}
2271 { (exit 1); exit 1; }; };;
2272 esac
2273 build=$ac_cv_build
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_build
2276 shift
2277 build_cpu=$1
2278 build_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 build_os=$*
2283 IFS=$ac_save_IFS
2284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2287 { echo "$as_me:$LINENO: checking host system type" >&5
2288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2289 if test "${ac_cv_host+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test "x$host_alias" = x; then
2293 ac_cv_host=$ac_cv_build
2294 else
2295 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303 echo "${ECHO_T}$ac_cv_host" >&6; }
2304 case $ac_cv_host in
2305 *-*-*) ;;
2306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2307 echo "$as_me: error: invalid value of canonical host" >&2;}
2308 { (exit 1); exit 1; }; };;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2324 canonical=$host
2325 configuration=${host_alias-${build_alias-$host}}
2329 ### If you add support for a new configuration, add code to this
2330 ### switch statement to recognize your configuration name and select
2331 ### the appropriate operating system and machine description files.
2333 ### You would hope that you could choose an m/*.h file pretty much
2334 ### based on the machine portion of the configuration name, and an s-
2335 ### file based on the operating system portion. However, it turns out
2336 ### that each m/*.h file is pretty manufacturer-specific - for
2337 ### example hp9000s300.h is a 68000 machine;
2338 ### mips.h, pmax.h are all MIPS
2339 ### machines. So we basically have to have a special case for each
2340 ### configuration name.
2342 ### As far as handling version numbers on operating systems is
2343 ### concerned, make sure things will fail in a fixable way. If
2344 ### /etc/MACHINES doesn't say anything about version numbers, be
2345 ### prepared to handle anything reasonably. If version numbers
2346 ### matter, be sure /etc/MACHINES says something about it.
2348 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2349 ### "System V Release 4"; he writes, "The old convention encouraged
2350 ### confusion between `system' and `release' levels'."
2352 machine='' opsys='' unported=no
2353 case "${canonical}" in
2355 ## FreeBSD ports
2356 *-*-freebsd* )
2357 opsys=freebsd
2358 case "${canonical}" in
2359 alpha*-*-freebsd*) machine=alpha ;;
2360 arm*-*-freebsd*) machine=arm ;;
2361 ia64-*-freebsd*) machine=ia64 ;;
2362 sparc64-*-freebsd*) machine=sparc ;;
2363 powerpc-*-freebsd*) machine=macppc ;;
2364 i[3456]86-*-freebsd*) machine=intel386 ;;
2365 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2366 esac
2369 ## FreeBSD kernel + glibc based userland
2370 *-*-kfreebsd*gnu* )
2371 opsys=gnu-kfreebsd
2372 case "${canonical}" in
2373 alpha*-*-kfreebsd*) machine=alpha ;;
2374 ia64-*-kfreebsd*) machine=ia64 ;;
2375 sparc64-*-kfreebsd*) machine=sparc ;;
2376 powerpc-*-kfreebsd*) machine=macppc ;;
2377 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2378 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2379 esac
2382 ## NetBSD ports
2383 *-*-netbsd* )
2384 opsys=netbsd
2385 if test -f /usr/lib/crti.o; then
2387 cat >>confdefs.h <<\_ACEOF
2388 #define HAVE_CRTIN
2389 _ACEOF
2393 case "${canonical}" in
2394 alpha*-*-netbsd*) machine=alpha ;;
2395 i[3456]86-*-netbsd*) machine=intel386 ;;
2396 m68k-*-netbsd*)
2397 # This is somewhat bogus.
2398 machine=hp9000s300 ;;
2399 mips-*-netbsd*) machine=pmax ;;
2400 mipsel-*-netbsd*) machine=pmax ;;
2401 mipseb-*-netbsd*) machine=pmax ;;
2402 powerpc-*-netbsd*) machine=macppc ;;
2403 sparc*-*-netbsd*) machine=sparc ;;
2404 vax-*-netbsd*) machine=vax ;;
2405 arm-*-netbsd*) machine=arm ;;
2406 x86_64-*-netbsd*) machine=amdx86-64 ;;
2407 hppa-*-netbsd*) machine=hp800 ;;
2408 esac
2411 ## OpenBSD ports
2412 *-*-openbsd* )
2413 opsys=openbsd
2414 case "${canonical}" in
2415 alpha*-*-openbsd*) machine=alpha ;;
2416 arm-*-openbsd*) machine=arm ;;
2417 hppa-*-openbsd*) machine=hp9000s300 ;;
2418 i386-*-openbsd*) machine=intel386 ;;
2419 m68k-*-openbsd*) machine=hp9000s300 ;;
2420 mips64-*-openbsd*) machine=mips64 ;;
2421 powerpc-*-openbsd*) machine=macppc ;;
2422 sparc*-*-openbsd*) machine=sparc ;;
2423 vax-*-openbsd*) machine=vax ;;
2424 x86_64-*-openbsd*) machine=amdx86-64 ;;
2425 esac
2428 ## LynxOS ports
2429 *-*-lynxos* )
2430 opsys=lynxos
2431 case "${canonical}" in
2432 i[3456]86-*-lynxos*) machine=intel386 ;;
2433 powerpc-*-lynxos*) machine=powerpc ;;
2434 esac
2437 ## BSDI ports
2438 *-*-bsdi* )
2439 opsys=bsdi
2440 case "${canonical}" in
2441 i[345]86-*-bsdi*) machine=intel386 ;;
2442 sparc-*-bsdi*) machine=sparc ;;
2443 powerpc-*-bsdi*) machine=macppc ;;
2444 esac
2445 case "${canonical}" in
2446 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2447 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2448 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2449 *-*-bsdi3* ) opsys=bsdos3 ;;
2450 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2451 esac
2454 ## Alpha (DEC) machines.
2455 alpha*-dec-osf* )
2456 machine=alpha opsys=osf1
2457 # This is needed to find X11R6.1 libraries for certain tests.
2458 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2459 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2460 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2461 # due to non-traditional preprocessing with the current compiler
2462 # defaults. OSF 4 can also have that compiler version, and there
2463 # seems always to have been a usable /usr/bin/cpp.
2464 NON_GNU_CPP=/usr/bin/cpp
2465 case "${canonical}" in
2466 alpha*-dec-osf[5-9]*)
2467 opsys=osf5-0 ;;
2468 esac
2471 alpha*-*-linux-gnu* )
2472 machine=alpha opsys=gnu-linux
2475 arm*-*-linux-gnu* )
2476 machine=arm opsys=gnu-linux
2479 ## Apple Darwin / Mac OS X
2480 *-apple-darwin* )
2481 case "${canonical}" in
2482 i[3456]86-* ) machine=intel386 ;;
2483 powerpc-* ) machine=powermac ;;
2484 * ) unported=yes ;;
2485 esac
2486 opsys=darwin
2487 # Define CPP as follows to make autoconf work correctly.
2488 CPP="${CC-cc} -E -no-cpp-precomp"
2489 # Use fink packages if available.
2490 if test -d /sw/include && test -d /sw/lib; then
2491 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2492 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2493 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2497 ## Compaq Nonstop
2498 mips-compaq-nonstopux* )
2499 machine=nonstopux opsys=nonstopux
2502 ## Cubix QBx/386
2503 i[3456]86-cubix-sysv* )
2504 machine=intel386 opsys=usg5-3
2507 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2508 machine=pmax opsys=bsd4-2
2510 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2511 machine=pmax opsys=bsd4-3
2513 mips-dec-ultrix* )
2514 machine=pmax opsys=ultrix4-3
2516 mips-dec-osf* )
2517 machine=pmax opsys=osf1
2519 mips-dec-mach_bsd4.3* )
2520 machine=pmax opsys=mach-bsd4-3
2523 ## HP 9000 series 200 or 300
2524 m68*-hp-bsd* )
2525 machine=hp9000s300 opsys=bsd4-3
2527 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2528 m68*-hp-hpux* )
2529 case "`uname -r`" in
2530 ## Someone's system reports A.B8.05 for this.
2531 ## I wonder what other possibilities there are.
2532 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2533 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2534 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2535 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2536 *) machine=hp9000s300 opsys=hpux ;;
2537 esac
2540 ## HP 9000 series 700 and 800, running HP/UX
2541 hppa*-hp-hpux7* )
2542 machine=hp800 opsys=hpux
2544 hppa*-hp-hpux8* )
2545 machine=hp800 opsys=hpux8
2547 hppa*-hp-hpux9shr* )
2548 machine=hp800 opsys=hpux9shr
2550 hppa*-hp-hpux9* )
2551 machine=hp800 opsys=hpux9
2553 hppa*-hp-hpux10.2* )
2554 machine=hp800 opsys=hpux10-20
2556 hppa*-hp-hpux10* )
2557 machine=hp800 opsys=hpux10
2559 hppa*-hp-hpux1[1-9]* )
2560 machine=hp800 opsys=hpux11
2561 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2564 hppa*-*-linux-gnu* )
2565 machine=hp800 opsys=gnu-linux
2568 ## HP 9000 series 700 and 800, running HP/UX
2569 hppa*-hp-hpux* )
2570 ## Cross-compilation? Nah!
2571 case "`uname -r`" in
2572 ## Someone's system reports A.B8.05 for this.
2573 ## I wonder what other possibilities there are.
2574 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2575 *.08.* ) machine=hp800 opsys=hpux8 ;;
2576 *.09.* ) machine=hp800 opsys=hpux9 ;;
2577 *) machine=hp800 opsys=hpux10 ;;
2578 esac
2580 hppa*-*-nextstep* )
2581 machine=hp800 opsys=nextstep
2584 ## IBM machines
2585 i370-ibm-aix*)
2586 machine=ibm370aix opsys=usg5-3
2588 s390-*-linux-gnu* )
2589 machine=ibms390 opsys=gnu-linux
2591 s390x-*-linux-gnu* )
2592 machine=ibms390x opsys=gnu-linux
2594 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2595 machine=ibmrs6000 opsys=aix3-1
2597 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2598 machine=ibmrs6000 opsys=aix3-2-5
2600 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2601 machine=ibmrs6000 opsys=aix4-1
2603 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2604 machine=ibmrs6000 opsys=aix4-2
2606 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2607 machine=ibmrs6000 opsys=aix4-2
2609 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2610 machine=ibmrs6000 opsys=aix4-2
2612 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2613 machine=ibmrs6000 opsys=aix4
2615 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2616 machine=ibmrs6000 opsys=aix4-1
2618 rs6000-ibm-aix* | powerpc-ibm-aix* )
2619 machine=ibmrs6000 opsys=aix3-2
2622 ## Prime EXL
2623 i[3456]86-prime-sysv* )
2624 machine=i386 opsys=usg5-3
2627 ## ncr machine running svr4.3.
2628 i[3456]86-ncr-sysv4.3 )
2629 machine=ncr386 opsys=usg5-4-3
2632 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2633 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2634 i[3456]86-ncr-sysv* )
2635 machine=ncr386 opsys=usg5-4-2
2638 ## Macintosh PowerPC
2639 powerpc*-*-linux-gnu* )
2640 machine=macppc opsys=gnu-linux
2643 ## Workstations sold by MIPS
2644 ## This is not necessarily all workstations using the MIPS processor -
2645 ## Irises are produced by SGI, and DECstations by DEC.
2647 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2648 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2649 ## it gives for choosing between the alternatives seems to be "Use
2650 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2651 ## the BSD world." I'll assume that these are instructions for
2652 ## handling two odd situations, and that every other situation
2653 ## should use mips.h and usg5-2-2, they being listed first.
2654 mips-mips-usg* )
2655 machine=mips4
2656 ## Fall through to the general code at the bottom to decide on the OS.
2658 mips-mips-riscos4* )
2659 machine=mips4 opsys=bsd4-3
2660 NON_GNU_CC="cc -systype bsd43"
2661 NON_GNU_CPP="cc -systype bsd43 -E"
2663 mips-mips-riscos5* )
2664 machine=mips4 opsys=riscos5
2665 NON_GNU_CC="cc -systype bsd43"
2666 NON_GNU_CPP="cc -systype bsd43 -E"
2668 mips-mips-bsd* )
2669 machine=mips opsys=bsd4-3
2671 mips-mips-* )
2672 machine=mips opsys=usg5-2-2
2675 ## NeXT
2676 m68*-next-* | m68k-*-nextstep* )
2677 machine=m68k opsys=nextstep
2680 ## NEC EWS4800
2681 mips-nec-sysv4*)
2682 machine=ews4800 opsys=ux4800
2685 ## Siemens Nixdorf
2686 mips-siemens-sysv* | mips-sni-sysv*)
2687 machine=mips-siemens opsys=usg5-4
2688 NON_GNU_CC=/usr/ccs/bin/cc
2689 NON_GNU_CPP=/usr/ccs/lib/cpp
2692 ## Silicon Graphics machines
2693 ## Iris 4D
2694 mips-sgi-irix6.5 )
2695 machine=iris4d opsys=irix6-5
2696 # Without defining _LANGUAGE_C, things get masked out in the headers
2697 # so that, for instance, grepping for `free' in stdlib.h fails and
2698 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2699 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2700 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2702 mips-sgi-irix6* )
2703 machine=iris4d opsys=irix6-0
2704 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2705 # but presumably it does no harm.
2706 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2707 # -32 probably isn't necessary in later v.6s -- anyone know which?
2708 NON_GCC_TEST_OPTIONS=-32
2710 mips-sgi-irix5.[01]* )
2711 machine=iris4d opsys=irix5-0
2713 mips-sgi-irix5* | mips-sgi-irix* )
2714 machine=iris4d opsys=irix5-2
2717 ## Suns
2718 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2719 machine=sparc opsys=gnu-linux
2722 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2723 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2724 | rs6000-*-solaris2*)
2725 case "${canonical}" in
2726 i[3456]86-*-* ) machine=intel386 ;;
2727 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2728 powerpcle* ) machine=powerpcle ;;
2729 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2730 sparc* ) machine=sparc ;;
2731 * ) unported=yes ;;
2732 esac
2733 case "${canonical}" in
2734 *-sunos5.3* | *-solaris2.3* )
2735 opsys=sol2-3
2736 NON_GNU_CPP=/usr/ccs/lib/cpp
2738 *-sunos5.4* | *-solaris2.4* )
2739 opsys=sol2-4
2740 NON_GNU_CPP=/usr/ccs/lib/cpp
2741 RANLIB="ar -ts"
2743 *-sunos5.5* | *-solaris2.5* )
2744 opsys=sol2-5
2745 NON_GNU_CPP=/usr/ccs/lib/cpp
2746 RANLIB="ar -ts"
2748 *-sunos5.6* | *-solaris2.6* )
2749 opsys=sol2-6
2750 NON_GNU_CPP=/usr/ccs/lib/cpp
2751 RANLIB="ar -ts"
2753 *-sunos5* | *-solaris* )
2754 opsys=sol2-6
2755 emacs_check_sunpro_c=yes
2756 NON_GNU_CPP=/usr/ccs/lib/cpp
2758 * ) opsys=bsd4-2 ;;
2759 esac
2760 ## Watch out for a compiler that we know will not work.
2761 case "${canonical}" in
2762 *-solaris* | *-sunos5* )
2763 if [ "x$CC" = x/usr/ucb/cc ]; then
2764 ## /usr/ucb/cc doesn't work;
2765 ## we should find some other compiler that does work.
2766 unset CC
2769 *) ;;
2770 esac
2772 sparc-*-nextstep* )
2773 machine=sparc opsys=nextstep
2776 ## Tandem Integrity S2
2777 mips-tandem-sysv* )
2778 machine=tandem-s2 opsys=usg5-3
2781 ## Vaxen.
2782 vax-dec-* )
2783 machine=vax
2784 case "${canonical}" in
2785 *-bsd4.1* ) opsys=bsd4-1 ;;
2786 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2787 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2788 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2789 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2790 *-vms* ) opsys=vms ;;
2791 * ) unported=yes
2792 esac
2795 ## IA-64
2796 ia64*-*-linux* )
2797 machine=ia64 opsys=gnu-linux
2800 ## Intel 386 machines where we don't care about the manufacturer
2801 i[3456]86-*-* )
2802 machine=intel386
2803 case "${canonical}" in
2804 *-cygwin ) opsys=cygwin ;;
2805 *-darwin* ) opsys=darwin
2806 CPP="${CC-cc} -E -no-cpp-precomp"
2808 *-xenix* ) opsys=xenix ;;
2809 *-linux-gnu* ) opsys=gnu-linux ;;
2810 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2811 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2812 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2813 *-386bsd* ) opsys=386bsd ;;
2814 *-nextstep* ) opsys=nextstep ;;
2815 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2816 esac
2819 ## m68k Linux-based GNU system
2820 m68k-*-linux-gnu* )
2821 machine=m68k opsys=gnu-linux
2824 ## Mips Linux-based GNU system
2825 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2826 machine=mips opsys=gnu-linux
2829 ## UXP/DS
2830 sparc-fujitsu-sysv4* )
2831 machine=sparc opsys=uxpds
2832 NON_GNU_CPP=/usr/ccs/lib/cpp
2833 RANLIB="ar -ts"
2836 ## AMD x86-64 Linux-based GNU system
2837 x86_64-*-linux-gnu* )
2838 machine=amdx86-64 opsys=gnu-linux
2841 ## Tensilica Xtensa Linux-based GNU system
2842 xtensa*-*-linux-gnu* )
2843 machine=xtensa opsys=gnu-linux
2847 unported=yes
2849 esac
2851 ### If the code above didn't choose an operating system, just choose
2852 ### an operating system based on the configuration name. You really
2853 ### only want to use this when you have no idea what the right
2854 ### operating system is; if you know what operating systems a machine
2855 ### runs, it's cleaner to make it explicit in the case statement
2856 ### above.
2857 if test x"${opsys}" = x; then
2858 case "${canonical}" in
2859 *-gnu* ) opsys=gnu ;;
2860 *-bsd4.[01] ) opsys=bsd4-1 ;;
2861 *-bsd4.2 ) opsys=bsd4-2 ;;
2862 *-bsd4.3 ) opsys=bsd4-3 ;;
2863 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2864 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2865 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2866 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2867 *-sysv4.2uw* ) opsys=unixware ;;
2868 *-sysv5uw* ) opsys=unixware ;;
2869 *-sysv5OpenUNIX* ) opsys=unixware ;;
2870 *-sysv4.1* | *-sysvr4.1* )
2871 NON_GNU_CPP=/usr/lib/cpp
2872 opsys=usg5-4 ;;
2873 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2874 if [ x$NON_GNU_CPP = x ]; then
2875 if [ -f /usr/ccs/lib/cpp ]; then
2876 NON_GNU_CPP=/usr/ccs/lib/cpp
2877 else
2878 NON_GNU_CPP=/lib/cpp
2881 opsys=usg5-4-2 ;;
2882 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2884 unported=yes
2886 esac
2891 if test $unported = yes; then
2892 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2893 Check \`etc/MACHINES' for recognized configuration names." >&5
2894 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2895 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2896 { (exit 1); exit 1; }; }
2899 machfile="m/${machine}.h"
2900 opsysfile="s/${opsys}.h"
2903 #### Choose a compiler.
2904 test -n "$CC" && cc_specified=yes
2906 # Save the value of CFLAGS that the user specified.
2907 SPECIFIED_CFLAGS="$CFLAGS"
2909 case ${with_gcc} in
2910 "yes" ) CC="gcc" GCC=yes ;;
2911 "no" ) : ${CC=cc} ;;
2913 esac
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2951 else
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2958 if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "gcc", so it can be a program name with args.
2961 set dummy gcc; ac_word=$2
2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC="gcc"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2981 done
2982 done
2983 IFS=$as_save_IFS
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2990 echo "${ECHO_T}$ac_ct_CC" >&6; }
2991 else
2992 { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2996 if test "x$ac_ct_CC" = x; then
2997 CC=""
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3002 whose name does not start with the host triplet. If you think this
3003 configuration is useful to you, please write to autoconf@gnu.org." >&5
3004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3005 whose name does not start with the host triplet. If you think this
3006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3007 ac_tool_warned=yes ;;
3008 esac
3009 CC=$ac_ct_CC
3011 else
3012 CC="$ac_cv_prog_CC"
3015 if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}cc; ac_word=$2
3019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034 ac_cv_prog_CC="${ac_tool_prefix}cc"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3040 IFS=$as_save_IFS
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046 { echo "$as_me:$LINENO: result: $CC" >&5
3047 echo "${ECHO_T}$CC" >&6; }
3048 else
3049 { echo "$as_me:$LINENO: result: no" >&5
3050 echo "${ECHO_T}no" >&6; }
3056 if test -z "$CC"; then
3057 # Extract the first word of "cc", so it can be a program name with args.
3058 set dummy cc; ac_word=$2
3059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_CC+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 ac_prog_rejected=no
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3076 ac_prog_rejected=yes
3077 continue
3079 ac_cv_prog_CC="cc"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3083 done
3084 done
3085 IFS=$as_save_IFS
3087 if test $ac_prog_rejected = yes; then
3088 # We found a bogon in the path, so make sure we never use it.
3089 set dummy $ac_cv_prog_CC
3090 shift
3091 if test $# != 0; then
3092 # We chose a different compiler from the bogus one.
3093 # However, it has the same basename, so the bogon will be chosen
3094 # first if we set CC to just the basename; use the full file name.
3095 shift
3096 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { echo "$as_me:$LINENO: result: $CC" >&5
3104 echo "${ECHO_T}$CC" >&6; }
3105 else
3106 { echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6; }
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 for ac_prog in cl.exe
3116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3120 if test "${ac_cv_prog_CC+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3137 done
3138 done
3139 IFS=$as_save_IFS
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { echo "$as_me:$LINENO: result: $CC" >&5
3146 echo "${ECHO_T}$CC" >&6; }
3147 else
3148 { echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6; }
3153 test -n "$CC" && break
3154 done
3156 if test -z "$CC"; then
3157 ac_ct_CC=$CC
3158 for ac_prog in cl.exe
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy $ac_prog; ac_word=$2
3162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$ac_ct_CC"; then
3168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_ac_ct_CC="$ac_prog"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3183 IFS=$as_save_IFS
3187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3188 if test -n "$ac_ct_CC"; then
3189 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3190 echo "${ECHO_T}$ac_ct_CC" >&6; }
3191 else
3192 { echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6; }
3197 test -n "$ac_ct_CC" && break
3198 done
3200 if test "x$ac_ct_CC" = x; then
3201 CC=""
3202 else
3203 case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3206 whose name does not start with the host triplet. If you think this
3207 configuration is useful to you, please write to autoconf@gnu.org." >&5
3208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3209 whose name does not start with the host triplet. If you think this
3210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213 CC=$ac_ct_CC
3220 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details." >&5
3222 echo "$as_me: error: no acceptable C compiler found in \$PATH
3223 See \`config.log' for more details." >&2;}
3224 { (exit 1); exit 1; }; }
3226 # Provide some information about the compiler.
3227 echo "$as_me:$LINENO: checking for C compiler version" >&5
3228 ac_compiler=`set X $ac_compile; echo $2`
3229 { (ac_try="$ac_compiler --version >&5"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compiler --version >&5") 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3239 { (ac_try="$ac_compiler -v >&5"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compiler -v >&5") 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3249 { (ac_try="$ac_compiler -V >&5"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compiler -V >&5") 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 ac_clean_files_save=$ac_clean_files
3276 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3277 # Try to create an executable without -o first, disregard a.out.
3278 # It will help us diagnose broken compilers, and finding out an intuition
3279 # of exeext.
3280 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3281 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3282 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3284 # List of possible output files, starting from the most likely.
3285 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3286 # only as a last resort. b.out is created by i960 compilers.
3287 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3289 # The IRIX 6 linker writes into existing files which may not be
3290 # executable, retaining their permissions. Remove them first so a
3291 # subsequent execution test works.
3292 ac_rmfiles=
3293 for ac_file in $ac_files
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298 esac
3299 done
3300 rm -f $ac_rmfiles
3302 if { (ac_try="$ac_link_default"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_link_default") 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; then
3312 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3313 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3314 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3315 # so that the user can short-circuit this test for compilers unknown to
3316 # Autoconf.
3317 for ac_file in $ac_files ''
3319 test -f "$ac_file" || continue
3320 case $ac_file in
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3323 [ab].out )
3324 # We found the default executable, but exeext='' is most
3325 # certainly right.
3326 break;;
3327 *.* )
3328 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329 then :; else
3330 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 # We set ac_cv_exeext here because the later test for it is not
3333 # safe: cross compilers may not add the suffix if given an `-o'
3334 # argument, so we may need to know it at that point already.
3335 # Even if this section looks crufty: it has the advantage of
3336 # actually working.
3337 break;;
3339 break;;
3340 esac
3341 done
3342 test "$ac_cv_exeext" = no && ac_cv_exeext=
3344 else
3345 ac_file=''
3348 { echo "$as_me:$LINENO: result: $ac_file" >&5
3349 echo "${ECHO_T}$ac_file" >&6; }
3350 if test -z "$ac_file"; then
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C compiler cannot create executables
3357 See \`config.log' for more details." >&2;}
3358 { (exit 77); exit 77; }; }
3361 ac_exeext=$ac_cv_exeext
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3366 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3367 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3368 # If not cross compiling, check that we can run a simple program.
3369 if test "$cross_compiling" != yes; then
3370 if { ac_try='./$ac_file'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 cross_compiling=no
3381 else
3382 if test "$cross_compiling" = maybe; then
3383 cross_compiling=yes
3384 else
3385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3386 If you meant to cross compile, use \`--host'.
3387 See \`config.log' for more details." >&5
3388 echo "$as_me: error: cannot run C compiled programs.
3389 If you meant to cross compile, use \`--host'.
3390 See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3395 { echo "$as_me:$LINENO: result: yes" >&5
3396 echo "${ECHO_T}yes" >&6; }
3398 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3399 ac_clean_files=$ac_clean_files_save
3400 # Check that the compiler produces executables we can run. If not, either
3401 # the compiler is broken, or we cross compile.
3402 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3404 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3405 echo "${ECHO_T}$cross_compiling" >&6; }
3407 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3409 if { (ac_try="$ac_link"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; then
3419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3421 # work properly (i.e., refer to `conftest.exe'), while it won't with
3422 # `rm'.
3423 for ac_file in conftest.exe conftest conftest.*; do
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 break;;
3429 * ) break;;
3430 esac
3431 done
3432 else
3433 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details." >&5
3435 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3436 See \`config.log' for more details." >&2;}
3437 { (exit 1); exit 1; }; }
3440 rm -f conftest$ac_cv_exeext
3441 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3442 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3444 rm -f conftest.$ac_ext
3445 EXEEXT=$ac_cv_exeext
3446 ac_exeext=$EXEEXT
3447 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3448 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3449 if test "${ac_cv_objext+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3460 main ()
3464 return 0;
3466 _ACEOF
3467 rm -f conftest.o conftest.obj
3468 if { (ac_try="$ac_compile"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_compile") 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; then
3478 for ac_file in conftest.o conftest.obj conftest.*; do
3479 test -f "$ac_file" || continue;
3480 case $ac_file in
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3482 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3483 break;;
3484 esac
3485 done
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details." >&5
3492 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3493 See \`config.log' for more details." >&2;}
3494 { (exit 1); exit 1; }; }
3497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3499 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3500 echo "${ECHO_T}$ac_cv_objext" >&6; }
3501 OBJEXT=$ac_cv_objext
3502 ac_objext=$OBJEXT
3503 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3504 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3505 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3516 main ()
3518 #ifndef __GNUC__
3519 choke me
3520 #endif
3523 return 0;
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compile") 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } && {
3540 test -z "$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 } && test -s conftest.$ac_objext; then
3543 ac_compiler_gnu=yes
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 ac_compiler_gnu=no
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3556 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3557 GCC=`test $ac_compiler_gnu = yes && echo yes`
3558 ac_test_CFLAGS=${CFLAGS+set}
3559 ac_save_CFLAGS=$CFLAGS
3560 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3561 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3562 if test "${ac_cv_prog_cc_g+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565 ac_save_c_werror_flag=$ac_c_werror_flag
3566 ac_c_werror_flag=yes
3567 ac_cv_prog_cc_g=no
3568 CFLAGS="-g"
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3577 main ()
3581 return 0;
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3601 ac_cv_prog_cc_g=yes
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 CFLAGS=""
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3615 main ()
3619 return 0;
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 ac_c_werror_flag=$ac_save_c_werror_flag
3645 CFLAGS="-g"
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h. */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3654 main ()
3658 return 0;
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.$ac_objext; then
3678 ac_cv_prog_cc_g=yes
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3695 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3696 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3697 if test "$ac_test_CFLAGS" = set; then
3698 CFLAGS=$ac_save_CFLAGS
3699 elif test $ac_cv_prog_cc_g = yes; then
3700 if test "$GCC" = yes; then
3701 CFLAGS="-g -O2"
3702 else
3703 CFLAGS="-g"
3705 else
3706 if test "$GCC" = yes; then
3707 CFLAGS="-O2"
3708 else
3709 CFLAGS=
3712 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3713 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3714 if test "${ac_cv_prog_cc_c89+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 ac_cv_prog_cc_c89=no
3718 ac_save_CC=$CC
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h. */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <stdarg.h>
3726 #include <stdio.h>
3727 #include <sys/types.h>
3728 #include <sys/stat.h>
3729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3730 struct buf { int x; };
3731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732 static char *e (p, i)
3733 char **p;
3734 int i;
3736 return p[i];
3738 static char *f (char * (*g) (char **, int), char **p, ...)
3740 char *s;
3741 va_list v;
3742 va_start (v,p);
3743 s = g (p, va_arg (v,int));
3744 va_end (v);
3745 return s;
3748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3749 function prototypes and stuff, but not '\xHH' hex character constants.
3750 These don't provoke an error unfortunately, instead are silently treated
3751 as 'x'. The following induces an error, until -std is added to get
3752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3753 array size at least. It's necessary to write '\x00'==0 to get something
3754 that's true only with -std. */
3755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758 inside strings and character constants. */
3759 #define FOO(x) 'x'
3760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3762 int test (int i, double x);
3763 struct s1 {int (*f) (int a);};
3764 struct s2 {int (*f) (double a);};
3765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766 int argc;
3767 char **argv;
3769 main ()
3771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3773 return 0;
3775 _ACEOF
3776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779 CC="$ac_save_CC $ac_arg"
3780 rm -f conftest.$ac_objext
3781 if { (ac_try="$ac_compile"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compile") 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } && {
3794 test -z "$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 } && test -s conftest.$ac_objext; then
3797 ac_cv_prog_cc_c89=$ac_arg
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3805 rm -f core conftest.err conftest.$ac_objext
3806 test "x$ac_cv_prog_cc_c89" != "xno" && break
3807 done
3808 rm -f conftest.$ac_ext
3809 CC=$ac_save_CC
3812 # AC_CACHE_VAL
3813 case "x$ac_cv_prog_cc_c89" in
3815 { echo "$as_me:$LINENO: result: none needed" >&5
3816 echo "${ECHO_T}none needed" >&6; } ;;
3817 xno)
3818 { echo "$as_me:$LINENO: result: unsupported" >&5
3819 echo "${ECHO_T}unsupported" >&6; } ;;
3821 CC="$CC $ac_cv_prog_cc_c89"
3822 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3823 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3824 esac
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836 CPP=
3839 ## If not using gcc, and on Solaris, and no CPP specified, see if
3840 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3841 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3842 test x"$CPP" = x; then
3843 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3844 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3846 if test "${emacs_cv_sunpro_c+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3857 main ()
3859 #ifndef __SUNPRO_C
3860 fail;
3861 #endif
3864 return 0;
3866 _ACEOF
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (ac_try="$ac_link"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_link") 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest$ac_exeext &&
3884 $as_test_x conftest$ac_exeext; then
3885 emacs_cv_sunpro_c=yes
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 emacs_cv_sunpro_c=no
3893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3894 conftest$ac_exeext conftest.$ac_ext
3897 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3898 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3900 if test x"$emacs_cv_sunpro_c" = xyes; then
3901 NON_GNU_CPP="$CC -E -Xs"
3905 #### Some systems specify a CPP to use unless we are using GCC.
3906 #### Now that we know whether we are using GCC, we can decide whether
3907 #### to use that one.
3908 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3909 then
3910 CPP="$NON_GNU_CPP"
3913 #### Some systems specify a CC to use unless we are using GCC.
3914 #### Now that we know whether we are using GCC, we can decide whether
3915 #### to use that one.
3916 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3917 test x$cc_specified != xyes
3918 then
3919 CC="$NON_GNU_CC"
3922 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3923 then
3924 CC="$CC $GCC_TEST_OPTIONS"
3927 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3928 then
3929 CC="$CC $NON_GCC_TEST_OPTIONS"
3932 ac_ext=c
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3939 # On Suns, sometimes $CPP names a directory.
3940 if test -n "$CPP" && test -d "$CPP"; then
3941 CPP=
3943 if test -z "$CPP"; then
3944 if test "${ac_cv_prog_CPP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 # Double quotes because CPP needs to be expanded
3948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3950 ac_preproc_ok=false
3951 for ac_c_preproc_warn_flag in '' yes
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error" is here to catch this case.
3959 cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h. */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3965 #ifdef __STDC__
3966 # include <limits.h>
3967 #else
3968 # include <assert.h>
3969 #endif
3970 Syntax error
3971 _ACEOF
3972 if { (ac_try="$ac_cpp conftest.$ac_ext"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } >/dev/null && {
3985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 }; then
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 # Broken: fails on valid input.
3994 continue
3997 rm -f conftest.err conftest.$ac_ext
3999 # OK, works on sane cases. Now check whether nonexistent headers
4000 # can be detected and how.
4001 cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h. */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <ac_nonexistent.h>
4008 _ACEOF
4009 if { (ac_try="$ac_cpp conftest.$ac_ext"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null && {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 }; then
4025 # Broken: success on invalid input.
4026 continue
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Passes both tests.
4032 ac_preproc_ok=:
4033 break
4036 rm -f conftest.err conftest.$ac_ext
4038 done
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.$ac_ext
4041 if $ac_preproc_ok; then
4042 break
4045 done
4046 ac_cv_prog_CPP=$CPP
4049 CPP=$ac_cv_prog_CPP
4050 else
4051 ac_cv_prog_CPP=$CPP
4053 { echo "$as_me:$LINENO: result: $CPP" >&5
4054 echo "${ECHO_T}$CPP" >&6; }
4055 ac_preproc_ok=false
4056 for ac_c_preproc_warn_flag in '' yes
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error" is here to catch this case.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #ifdef __STDC__
4071 # include <limits.h>
4072 #else
4073 # include <assert.h>
4074 #endif
4075 Syntax error
4076 _ACEOF
4077 if { (ac_try="$ac_cpp conftest.$ac_ext"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } >/dev/null && {
4090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4092 }; then
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 # Broken: fails on valid input.
4099 continue
4102 rm -f conftest.err conftest.$ac_ext
4104 # OK, works on sane cases. Now check whether nonexistent headers
4105 # can be detected and how.
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4113 _ACEOF
4114 if { (ac_try="$ac_cpp conftest.$ac_ext"
4115 case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } >/dev/null && {
4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 }; then
4130 # Broken: success on invalid input.
4131 continue
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 # Passes both tests.
4137 ac_preproc_ok=:
4138 break
4141 rm -f conftest.err conftest.$ac_ext
4143 done
4144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4145 rm -f conftest.err conftest.$ac_ext
4146 if $ac_preproc_ok; then
4148 else
4149 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log' for more details." >&5
4151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4152 See \`config.log' for more details." >&2;}
4153 { (exit 1); exit 1; }; }
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4164 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4165 if test "${ac_cv_path_GREP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 # Extract the first word of "grep ggrep" to use in msg output
4169 if test -z "$GREP"; then
4170 set dummy grep ggrep; ac_prog_name=$2
4171 if test "${ac_cv_path_GREP+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 ac_path_GREP_found=false
4175 # Loop through the user's path and test for each of PROGNAME-LIST
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_prog in grep ggrep; do
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4184 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4185 # Check for GNU ac_path_GREP and select it if it is found.
4186 # Check for GNU $ac_path_GREP
4187 case `"$ac_path_GREP" --version 2>&1` in
4188 *GNU*)
4189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4191 ac_count=0
4192 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4193 while :
4195 cat "conftest.in" "conftest.in" >"conftest.tmp"
4196 mv "conftest.tmp" "conftest.in"
4197 cp "conftest.in" "conftest.nl"
4198 echo 'GREP' >> "conftest.nl"
4199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4201 ac_count=`expr $ac_count + 1`
4202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4203 # Best one so far, save it but keep looking for a better one
4204 ac_cv_path_GREP="$ac_path_GREP"
4205 ac_path_GREP_max=$ac_count
4207 # 10*(2^10) chars as input seems more than enough
4208 test $ac_count -gt 10 && break
4209 done
4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211 esac
4214 $ac_path_GREP_found && break 3
4215 done
4216 done
4218 done
4219 IFS=$as_save_IFS
4224 GREP="$ac_cv_path_GREP"
4225 if test -z "$GREP"; then
4226 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4227 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4228 { (exit 1); exit 1; }; }
4231 else
4232 ac_cv_path_GREP=$GREP
4237 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4238 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4239 GREP="$ac_cv_path_GREP"
4242 { echo "$as_me:$LINENO: checking for egrep" >&5
4243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4244 if test "${ac_cv_path_EGREP+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4248 then ac_cv_path_EGREP="$GREP -E"
4249 else
4250 # Extract the first word of "egrep" to use in msg output
4251 if test -z "$EGREP"; then
4252 set dummy egrep; ac_prog_name=$2
4253 if test "${ac_cv_path_EGREP+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 ac_path_EGREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in egrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4267 # Check for GNU ac_path_EGREP and select it if it is found.
4268 # Check for GNU $ac_path_EGREP
4269 case `"$ac_path_EGREP" --version 2>&1` in
4270 *GNU*)
4271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4273 ac_count=0
4274 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4275 while :
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 echo 'EGREP' >> "conftest.nl"
4281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 ac_count=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_EGREP="$ac_path_EGREP"
4287 ac_path_EGREP_max=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 esac
4296 $ac_path_EGREP_found && break 3
4297 done
4298 done
4300 done
4301 IFS=$as_save_IFS
4306 EGREP="$ac_cv_path_EGREP"
4307 if test -z "$EGREP"; then
4308 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4309 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4310 { (exit 1); exit 1; }; }
4313 else
4314 ac_cv_path_EGREP=$EGREP
4320 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4321 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4322 EGREP="$ac_cv_path_EGREP"
4326 { echo "$as_me:$LINENO: checking for AIX" >&5
4327 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #ifdef _AIX
4336 #endif
4338 _ACEOF
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "yes" >/dev/null 2>&1; then
4341 { echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6; }
4343 cat >>confdefs.h <<\_ACEOF
4344 #define _ALL_SOURCE 1
4345 _ACEOF
4347 else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4351 rm -f conftest*
4355 cat >>confdefs.h <<\_ACEOF
4356 #define _GNU_SOURCE 1
4357 _ACEOF
4361 ### Use -Wno-pointer-sign if the compiler supports it
4362 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4363 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4364 SAVE_CFLAGS="$CFLAGS"
4365 CFLAGS="$CFLAGS -Wno-pointer-sign"
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4374 main ()
4378 return 0;
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
4398 has_option=yes
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 has_option=no
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 if test $has_option = yes; then
4408 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4410 { echo "$as_me:$LINENO: result: $has_option" >&5
4411 echo "${ECHO_T}$has_option" >&6; }
4412 CFLAGS="$SAVE_CFLAGS"
4413 unset has_option
4414 unset SAVE_CFLAGS
4416 #### Some other nice autoconf tests.
4418 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4419 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4420 LN_S=$as_ln_s
4421 if test "$LN_S" = "ln -s"; then
4422 { echo "$as_me:$LINENO: result: yes" >&5
4423 echo "${ECHO_T}yes" >&6; }
4424 else
4425 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4426 echo "${ECHO_T}no, using $LN_S" >&6; }
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4435 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4436 # On Suns, sometimes $CPP names a directory.
4437 if test -n "$CPP" && test -d "$CPP"; then
4438 CPP=
4440 if test -z "$CPP"; then
4441 if test "${ac_cv_prog_CPP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 # Double quotes because CPP needs to be expanded
4445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4447 ac_preproc_ok=false
4448 for ac_c_preproc_warn_flag in '' yes
4450 # Use a header file that comes with gcc, so configuring glibc
4451 # with a fresh cross-compiler works.
4452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453 # <limits.h> exists even on freestanding compilers.
4454 # On the NeXT, cc -E runs the code through the compiler's parser,
4455 # not just through cpp. "Syntax error" is here to catch this case.
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #ifdef __STDC__
4463 # include <limits.h>
4464 #else
4465 # include <assert.h>
4466 #endif
4467 Syntax error
4468 _ACEOF
4469 if { (ac_try="$ac_cpp conftest.$ac_ext"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } >/dev/null && {
4482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 }; then
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # Broken: fails on valid input.
4491 continue
4494 rm -f conftest.err conftest.$ac_ext
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 #include <ac_nonexistent.h>
4505 _ACEOF
4506 if { (ac_try="$ac_cpp conftest.$ac_ext"
4507 case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } >/dev/null && {
4519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4520 test ! -s conftest.err
4521 }; then
4522 # Broken: success on invalid input.
4523 continue
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 # Passes both tests.
4529 ac_preproc_ok=:
4530 break
4533 rm -f conftest.err conftest.$ac_ext
4535 done
4536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4537 rm -f conftest.err conftest.$ac_ext
4538 if $ac_preproc_ok; then
4539 break
4542 done
4543 ac_cv_prog_CPP=$CPP
4546 CPP=$ac_cv_prog_CPP
4547 else
4548 ac_cv_prog_CPP=$CPP
4550 { echo "$as_me:$LINENO: result: $CPP" >&5
4551 echo "${ECHO_T}$CPP" >&6; }
4552 ac_preproc_ok=false
4553 for ac_c_preproc_warn_flag in '' yes
4555 # Use a header file that comes with gcc, so configuring glibc
4556 # with a fresh cross-compiler works.
4557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558 # <limits.h> exists even on freestanding compilers.
4559 # On the NeXT, cc -E runs the code through the compiler's parser,
4560 # not just through cpp. "Syntax error" is here to catch this case.
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #ifdef __STDC__
4568 # include <limits.h>
4569 #else
4570 # include <assert.h>
4571 #endif
4572 Syntax error
4573 _ACEOF
4574 if { (ac_try="$ac_cpp conftest.$ac_ext"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev/null && {
4587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 }; then
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 # Broken: fails on valid input.
4596 continue
4599 rm -f conftest.err conftest.$ac_ext
4601 # OK, works on sane cases. Now check whether nonexistent headers
4602 # can be detected and how.
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 #include <ac_nonexistent.h>
4610 _ACEOF
4611 if { (ac_try="$ac_cpp conftest.$ac_ext"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } >/dev/null && {
4624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 }; then
4627 # Broken: success on invalid input.
4628 continue
4629 else
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 # Passes both tests.
4634 ac_preproc_ok=:
4635 break
4638 rm -f conftest.err conftest.$ac_ext
4640 done
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then
4645 else
4646 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4649 See \`config.log' for more details." >&2;}
4650 { (exit 1); exit 1; }; }
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 # Find a good install program. We prefer a C program (faster),
4660 # so one script is as good as another. But avoid the broken or
4661 # incompatible versions:
4662 # SysV /etc/install, /usr/sbin/install
4663 # SunOS /usr/etc/install
4664 # IRIX /sbin/install
4665 # AIX /bin/install
4666 # AmigaOS /C/install, which installs bootblocks on floppy discs
4667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4670 # OS/2's system install, which has a completely different semantic
4671 # ./install, which can be erroneously created by make from ./install.sh.
4672 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4673 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4674 if test -z "$INSTALL"; then
4675 if test "${ac_cv_path_install+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 # Account for people who put trailing slashes in PATH elements.
4684 case $as_dir/ in
4685 ./ | .// | /cC/* | \
4686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4688 /usr/ucb/* ) ;;
4690 # OSF1 and SCO ODT 3.0 have their own names for install.
4691 # Don't use installbsd from OSF since it installs stuff as root
4692 # by default.
4693 for ac_prog in ginstall scoinst install; do
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4696 if test $ac_prog = install &&
4697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4698 # AIX install. It has an incompatible calling convention.
4700 elif test $ac_prog = install &&
4701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4702 # program-specific install script used by HP pwplus--don't use.
4704 else
4705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4706 break 3
4709 done
4710 done
4712 esac
4713 done
4714 IFS=$as_save_IFS
4718 if test "${ac_cv_path_install+set}" = set; then
4719 INSTALL=$ac_cv_path_install
4720 else
4721 # As a last resort, use the slow shell script. Don't cache a
4722 # value for INSTALL within a source directory, because that will
4723 # break other packages using the cache if that directory is
4724 # removed, or if the value is a relative name.
4725 INSTALL=$ac_install_sh
4728 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4729 echo "${ECHO_T}$INSTALL" >&6; }
4731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4732 # It thinks the first close brace ends the variable substitution.
4733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4739 if test "x$RANLIB" = x; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745 if test "${ac_cv_prog_RANLIB+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 if test -n "$RANLIB"; then
4749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4762 done
4763 done
4764 IFS=$as_save_IFS
4768 RANLIB=$ac_cv_prog_RANLIB
4769 if test -n "$RANLIB"; then
4770 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4771 echo "${ECHO_T}$RANLIB" >&6; }
4772 else
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4779 if test -z "$ac_cv_prog_RANLIB"; then
4780 ac_ct_RANLIB=$RANLIB
4781 # Extract the first word of "ranlib", so it can be a program name with args.
4782 set dummy ranlib; ac_word=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788 if test -n "$ac_ct_RANLIB"; then
4789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_ac_ct_RANLIB="ranlib"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4802 done
4803 done
4804 IFS=$as_save_IFS
4808 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4809 if test -n "$ac_ct_RANLIB"; then
4810 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4811 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4812 else
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4817 if test "x$ac_ct_RANLIB" = x; then
4818 RANLIB=":"
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821 yes:)
4822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4823 whose name does not start with the host triplet. If you think this
4824 configuration is useful to you, please write to autoconf@gnu.org." >&5
4825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4826 whose name does not start with the host triplet. If you think this
4827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4828 ac_tool_warned=yes ;;
4829 esac
4830 RANLIB=$ac_ct_RANLIB
4832 else
4833 RANLIB="$ac_cv_prog_RANLIB"
4837 # Extract the first word of "install-info", so it can be a program name with args.
4838 set dummy install-info; ac_word=$2
4839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 case $INSTALL_INFO in
4845 [\\/]* | ?:[\\/]*)
4846 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 break 2
4860 done
4861 done
4862 IFS=$as_save_IFS
4865 esac
4867 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4868 if test -n "$INSTALL_INFO"; then
4869 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4870 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4871 else
4872 { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4877 # Extract the first word of "install-info", so it can be a program name with args.
4878 set dummy install-info; ac_word=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 case $INSTALL_INFO in
4885 [\\/]* | ?:[\\/]*)
4886 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in /usr/sbin
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4905 esac
4907 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4908 if test -n "$INSTALL_INFO"; then
4909 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4910 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4911 else
4912 { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4917 # Extract the first word of "install-info", so it can be a program name with args.
4918 set dummy install-info; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 case $INSTALL_INFO in
4925 [\\/]* | ?:[\\/]*)
4926 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in /sbin
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4944 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4946 esac
4948 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4949 if test -n "$INSTALL_INFO"; then
4950 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4951 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4952 else
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4958 # Extract the first word of "gzip", so it can be a program name with args.
4959 set dummy gzip; ac_word=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 case $GZIP_PROG in
4966 [\\/]* | ?:[\\/]*)
4967 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4981 done
4982 done
4983 IFS=$as_save_IFS
4986 esac
4988 GZIP_PROG=$ac_cv_path_GZIP_PROG
4989 if test -n "$GZIP_PROG"; then
4990 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4991 echo "${ECHO_T}$GZIP_PROG" >&6; }
4992 else
4993 { echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6; }
5000 ## Need makeinfo >= 4.6 (?) to build the manuals.
5001 # Extract the first word of "makeinfo", so it can be a program name with args.
5002 set dummy makeinfo; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 case $MAKEINFO in
5009 [\\/]* | ?:[\\/]*)
5010 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5026 IFS=$as_save_IFS
5028 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5030 esac
5032 MAKEINFO=$ac_cv_path_MAKEINFO
5033 if test -n "$MAKEINFO"; then
5034 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5035 echo "${ECHO_T}$MAKEINFO" >&6; }
5036 else
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5042 if test "$MAKEINFO" != "no" && \
5043 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
5044 MAKEINFO=no
5047 if test "$MAKEINFO" = "no"; then
5048 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5049 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5050 { (exit 1); exit 1; }; }
5055 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5056 then
5057 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5060 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5061 then
5062 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5066 late_LDFLAGS=$LDFLAGS
5067 if test "$GCC" = yes; then
5068 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5069 else
5070 LDFLAGS="$LDFLAGS -znocombreloc"
5073 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5074 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5076 main(){return 0;}
5077 _ACEOF
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (ac_try="$ac_link"
5080 case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_link") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest$ac_exeext &&
5095 $as_test_x conftest$ac_exeext; then
5096 { echo "$as_me:$LINENO: result: yes" >&5
5097 echo "${ECHO_T}yes" >&6; }
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 LDFLAGS=$late_LDFLAGS
5103 { echo "$as_me:$LINENO: result: no" >&5
5104 echo "${ECHO_T}no" >&6; }
5107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5108 conftest$ac_exeext conftest.$ac_ext
5110 #### Extract some information from the operating system and machine files.
5112 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5113 - which libraries the lib-src programs will want, and
5114 - whether the GNU malloc routines are usable..." >&5
5115 echo "$as_me: checking the machine- and system-dependent files to find out
5116 - which libraries the lib-src programs will want, and
5117 - whether the GNU malloc routines are usable..." >&6;}
5119 ### First figure out CFLAGS (which we use for running the compiler here)
5120 ### and REAL_CFLAGS (which we use for real compilation).
5121 ### The two are the same except on a few systems, where they are made
5122 ### different to work around various lossages. For example,
5123 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5124 ### as implying static linking.
5126 ### If the CFLAGS env var is specified, we use that value
5127 ### instead of the default.
5129 ### It's not important that this name contain the PID; you can't run
5130 ### two configures in the same directory and have anything work
5131 ### anyway.
5132 tempcname="conftest.c"
5134 echo '
5135 #include "'${srcdir}'/src/'${opsysfile}'"
5136 #include "'${srcdir}'/src/'${machfile}'"
5137 #ifndef LIBS_MACHINE
5138 #define LIBS_MACHINE
5139 #endif
5140 #ifndef LIBS_SYSTEM
5141 #define LIBS_SYSTEM
5142 #endif
5143 #ifndef C_SWITCH_SYSTEM
5144 #define C_SWITCH_SYSTEM
5145 #endif
5146 #ifndef C_SWITCH_MACHINE
5147 #define C_SWITCH_MACHINE
5148 #endif
5149 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5150 configure___ c_switch_system=C_SWITCH_SYSTEM
5151 configure___ c_switch_machine=C_SWITCH_MACHINE
5153 #ifndef LIB_X11_LIB
5154 #define LIB_X11_LIB -lX11
5155 #endif
5157 #ifndef LIBX11_MACHINE
5158 #define LIBX11_MACHINE
5159 #endif
5161 #ifndef LIBX11_SYSTEM
5162 #define LIBX11_SYSTEM
5163 #endif
5164 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5166 #ifdef UNEXEC
5167 configure___ unexec=UNEXEC
5168 #else
5169 configure___ unexec=unexec.o
5170 #endif
5172 #ifdef SYSTEM_MALLOC
5173 configure___ system_malloc=yes
5174 #else
5175 configure___ system_malloc=no
5176 #endif
5178 #ifdef USE_MMAP_FOR_BUFFERS
5179 configure___ use_mmap_for_buffers=yes
5180 #else
5181 configure___ use_mmap_for_buffers=no
5182 #endif
5184 #ifndef C_DEBUG_SWITCH
5185 #define C_DEBUG_SWITCH -g
5186 #endif
5188 #ifndef C_OPTIMIZE_SWITCH
5189 #ifdef __GNUC__
5190 #define C_OPTIMIZE_SWITCH -O2
5191 #else
5192 #define C_OPTIMIZE_SWITCH -O
5193 #endif
5194 #endif
5196 #ifndef C_WARNINGS_SWITCH
5197 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5198 #endif
5200 #ifndef LD_SWITCH_MACHINE
5201 #define LD_SWITCH_MACHINE
5202 #endif
5204 #ifndef LD_SWITCH_SYSTEM
5205 #define LD_SWITCH_SYSTEM
5206 #endif
5208 #ifndef LD_SWITCH_X_SITE_AUX
5209 #define LD_SWITCH_X_SITE_AUX
5210 #endif
5212 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5213 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5215 #ifdef THIS_IS_CONFIGURE
5217 /* Get the CFLAGS for tests in configure. */
5218 #ifdef __GNUC__
5219 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5220 #else
5221 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5222 #endif
5224 #else /* not THIS_IS_CONFIGURE */
5226 /* Get the CFLAGS for real compilation. */
5227 #ifdef __GNUC__
5228 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5229 #else
5230 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5231 #endif
5233 #endif /* not THIS_IS_CONFIGURE */
5234 ' > ${tempcname}
5236 # The value of CPP is a quoted variable reference, so we need to do this
5237 # to get its actual value...
5238 CPP=`eval "echo $CPP"`
5239 eval `${CPP} -Isrc ${tempcname} \
5240 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5241 if test "x$SPECIFIED_CFLAGS" = x; then
5242 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5243 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5244 else
5245 REAL_CFLAGS="$CFLAGS"
5247 rm ${tempcname}
5249 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5251 ### Make sure subsequent tests use flags consistent with the build flags.
5253 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5254 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5255 else
5256 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5261 # Check whether --enable-largefile was given.
5262 if test "${enable_largefile+set}" = set; then
5263 enableval=$enable_largefile;
5266 if test "$enable_largefile" != no; then
5268 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5269 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5270 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 ac_cv_sys_largefile_CC=no
5274 if test "$GCC" != yes; then
5275 ac_save_CC=$CC
5276 while :; do
5277 # IRIX 6.2 and later do not support large files by default,
5278 # so use the C compiler's -n32 option if that helps.
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286 /* Check that off_t can represent 2**63 - 1 correctly.
5287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288 since some C++ compilers masquerading as C compilers
5289 incorrectly reject 9223372036854775807. */
5290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292 && LARGE_OFF_T % 2147483647 == 1)
5293 ? 1 : -1];
5295 main ()
5299 return 0;
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (ac_try="$ac_compile"
5304 case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_compile") 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && {
5316 test -z "$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5318 } && test -s conftest.$ac_objext; then
5319 break
5320 else
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5327 rm -f core conftest.err conftest.$ac_objext
5328 CC="$CC -n32"
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_cv_sys_largefile_CC=' -n32'; break
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f core conftest.err conftest.$ac_objext
5355 break
5356 done
5357 CC=$ac_save_CC
5358 rm -f conftest.$ac_ext
5361 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5362 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5363 if test "$ac_cv_sys_largefile_CC" != no; then
5364 CC=$CC$ac_cv_sys_largefile_CC
5367 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5368 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5369 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 while :; do
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <sys/types.h>
5380 /* Check that off_t can represent 2**63 - 1 correctly.
5381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5382 since some C++ compilers masquerading as C compilers
5383 incorrectly reject 9223372036854775807. */
5384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5386 && LARGE_OFF_T % 2147483647 == 1)
5387 ? 1 : -1];
5389 main ()
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
5413 ac_cv_sys_file_offset_bits=no; break
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #define _FILE_OFFSET_BITS 64
5429 #include <sys/types.h>
5430 /* Check that off_t can represent 2**63 - 1 correctly.
5431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5432 since some C++ compilers masquerading as C compilers
5433 incorrectly reject 9223372036854775807. */
5434 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5436 && LARGE_OFF_T % 2147483647 == 1)
5437 ? 1 : -1];
5439 main ()
5443 return 0;
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest.$ac_objext; then
5463 ac_cv_sys_file_offset_bits=64; break
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 ac_cv_sys_file_offset_bits=unknown
5473 break
5474 done
5476 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5477 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5478 case $ac_cv_sys_file_offset_bits in #(
5479 no | unknown) ;;
5481 cat >>confdefs.h <<_ACEOF
5482 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5483 _ACEOF
5485 esac
5486 rm -f conftest*
5487 if test $ac_cv_sys_file_offset_bits = unknown; then
5488 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5489 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5490 if test "${ac_cv_sys_large_files+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 while :; do
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503 since some C++ compilers masquerading as C compilers
5504 incorrectly reject 9223372036854775807. */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507 && LARGE_OFF_T % 2147483647 == 1)
5508 ? 1 : -1];
5510 main ()
5514 return 0;
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_sys_large_files=no; break
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 #define _LARGE_FILES 1
5550 #include <sys/types.h>
5551 /* Check that off_t can represent 2**63 - 1 correctly.
5552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5553 since some C++ compilers masquerading as C compilers
5554 incorrectly reject 9223372036854775807. */
5555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5557 && LARGE_OFF_T % 2147483647 == 1)
5558 ? 1 : -1];
5560 main ()
5564 return 0;
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5569 case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_sys_large_files=1; break
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_cv_sys_large_files=unknown
5594 break
5595 done
5597 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5598 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5599 case $ac_cv_sys_large_files in #(
5600 no | unknown) ;;
5602 cat >>confdefs.h <<_ACEOF
5603 #define _LARGE_FILES $ac_cv_sys_large_files
5604 _ACEOF
5606 esac
5607 rm -f conftest*
5613 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5614 ### be located in either /usr/lib64 or /usr/lib.
5615 case "${canonical}" in
5616 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5617 if test -d /usr/lib64; then
5619 cat >>confdefs.h <<\_ACEOF
5620 #define HAVE_LIB64_DIR 1
5621 _ACEOF
5624 esac
5629 if test "${with_sound}" != "no"; then
5630 # Sound support for GNU/Linux and the free BSDs.
5631 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5632 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5633 if test "${ac_cv_header_stdc+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <stdlib.h>
5643 #include <stdarg.h>
5644 #include <string.h>
5645 #include <float.h>
5648 main ()
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_cv_header_stdc=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_header_stdc=no
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 if test $ac_cv_header_stdc = yes; then
5683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <string.h>
5692 _ACEOF
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "memchr" >/dev/null 2>&1; then
5696 else
5697 ac_cv_header_stdc=no
5699 rm -f conftest*
5703 if test $ac_cv_header_stdc = yes; then
5704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 #include <stdlib.h>
5713 _ACEOF
5714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5715 $EGREP "free" >/dev/null 2>&1; then
5717 else
5718 ac_cv_header_stdc=no
5720 rm -f conftest*
5724 if test $ac_cv_header_stdc = yes; then
5725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5726 if test "$cross_compiling" = yes; then
5728 else
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ctype.h>
5736 #include <stdlib.h>
5737 #if ((' ' & 0x0FF) == 0x020)
5738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5740 #else
5741 # define ISLOWER(c) \
5742 (('a' <= (c) && (c) <= 'i') \
5743 || ('j' <= (c) && (c) <= 'r') \
5744 || ('s' <= (c) && (c) <= 'z'))
5745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5746 #endif
5748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5750 main ()
5752 int i;
5753 for (i = 0; i < 256; i++)
5754 if (XOR (islower (i), ISLOWER (i))
5755 || toupper (i) != TOUPPER (i))
5756 return 2;
5757 return 0;
5759 _ACEOF
5760 rm -f conftest$ac_exeext
5761 if { (ac_try="$ac_link"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_link") 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5771 { (case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_try") 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5781 else
5782 echo "$as_me: program exited with status $ac_status" >&5
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 ( exit $ac_status )
5787 ac_cv_header_stdc=no
5789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5795 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5796 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5797 if test $ac_cv_header_stdc = yes; then
5799 cat >>confdefs.h <<\_ACEOF
5800 #define STDC_HEADERS 1
5801 _ACEOF
5805 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5815 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5816 inttypes.h stdint.h unistd.h
5818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5832 #include <$ac_header>
5833 _ACEOF
5834 rm -f conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5836 case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 eval "$as_ac_Header=yes"
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 eval "$as_ac_Header=no"
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_res=`eval echo '${'$as_ac_Header'}'`
5862 { echo "$as_me:$LINENO: result: $ac_res" >&5
5863 echo "${ECHO_T}$ac_res" >&6; }
5864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5865 cat >>confdefs.h <<_ACEOF
5866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5867 _ACEOF
5871 done
5877 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_res=`eval echo '${'$as_ac_Header'}'`
5887 { echo "$as_me:$LINENO: result: $ac_res" >&5
5888 echo "${ECHO_T}$ac_res" >&6; }
5889 else
5890 # Is the header compilable?
5891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 $ac_includes_default
5900 #include <$ac_header>
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 ac_header_compiler=yes
5920 else
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 ac_header_compiler=no
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5929 echo "${ECHO_T}$ac_header_compiler" >&6; }
5931 # Is the header present?
5932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <$ac_header>
5941 _ACEOF
5942 if { (ac_try="$ac_cpp conftest.$ac_ext"
5943 case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } >/dev/null && {
5955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 }; then
5958 ac_header_preproc=yes
5959 else
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_header_preproc=no
5966 rm -f conftest.err conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5968 echo "${ECHO_T}$ac_header_preproc" >&6; }
5970 # So? What about this header?
5971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5972 yes:no: )
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5977 ac_header_preproc=yes
5979 no:yes:* )
5980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5994 esac
5995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 eval "$as_ac_Header=\$ac_header_preproc"
6002 ac_res=`eval echo '${'$as_ac_Header'}'`
6003 { echo "$as_me:$LINENO: result: $ac_res" >&5
6004 echo "${ECHO_T}$ac_res" >&6; }
6007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 _ACEOF
6014 done
6016 # Emulation library used on NetBSD.
6017 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6018 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6019 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 ac_check_lib_save_LIBS=$LIBS
6023 LIBS="-lossaudio $LIBS"
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6031 /* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
6034 #ifdef __cplusplus
6035 extern "C"
6036 #endif
6037 char _oss_ioctl ();
6039 main ()
6041 return _oss_ioctl ();
6043 return 0;
6045 _ACEOF
6046 rm -f conftest.$ac_objext conftest$ac_exeext
6047 if { (ac_try="$ac_link"
6048 case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_link") 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest$ac_exeext &&
6063 $as_test_x conftest$ac_exeext; then
6064 ac_cv_lib_ossaudio__oss_ioctl=yes
6065 else
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 ac_cv_lib_ossaudio__oss_ioctl=no
6072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6073 conftest$ac_exeext conftest.$ac_ext
6074 LIBS=$ac_check_lib_save_LIBS
6076 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6077 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6078 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6079 LIBSOUND=-lossaudio
6080 else
6081 LIBSOUND=
6086 ALSA_REQUIRED=1.0.0
6087 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6089 succeeded=no
6091 # Extract the first word of "pkg-config", so it can be a program name with args.
6092 set dummy pkg-config; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 case $PKG_CONFIG in
6099 [\\/]* | ?:[\\/]*)
6100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6116 IFS=$as_save_IFS
6118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6120 esac
6122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6123 if test -n "$PKG_CONFIG"; then
6124 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6125 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6126 else
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6133 if test "$PKG_CONFIG" = "no" ; then
6134 HAVE_ALSA=no
6135 else
6136 PKG_CONFIG_MIN_VERSION=0.9.0
6137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6138 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6139 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6141 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6142 { echo "$as_me:$LINENO: result: yes" >&5
6143 echo "${ECHO_T}yes" >&6; }
6144 succeeded=yes
6146 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6147 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6148 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6149 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6150 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6152 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6153 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6154 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6155 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6156 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6157 else
6158 { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6160 ALSA_CFLAGS=""
6161 ALSA_LIBS=""
6162 ## If we have a custom action on failure, don't print errors, but
6163 ## do set a variable so people can do so.
6164 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6170 else
6171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6176 if test $succeeded = yes; then
6177 HAVE_ALSA=yes
6178 else
6179 HAVE_ALSA=no
6182 if test $HAVE_ALSA = yes; then
6183 SAVE_CFLAGS="$CFLAGS"
6184 SAVE_LDFLAGS="$LDFLAGS"
6185 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6186 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <asoundlib.h>
6195 main ()
6197 snd_lib_error_set_handler (0);
6199 return 0;
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219 emacs_alsa_normal=yes
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 emacs_alsa_normal=no
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 if test "$emacs_alsa_normal" != yes; then
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <alsa/asoundlib.h>
6237 main ()
6239 snd_lib_error_set_handler (0);
6241 return 0;
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 emacs_alsa_subdir=yes
6262 else
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 emacs_alsa_subdir=no
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 if test "$emacs_alsa_subdir" != yes; then
6271 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6272 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6273 { (exit 1); exit 1; }; }
6275 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6278 CFLAGS="$SAVE_CFLAGS"
6279 LDFLAGS="$SAVE_LDFLAGS"
6280 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6281 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6283 cat >>confdefs.h <<\_ACEOF
6284 #define HAVE_ALSA 1
6285 _ACEOF
6316 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6317 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6318 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6319 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6320 sys/utsname.h pwd.h
6322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 ac_res=`eval echo '${'$as_ac_Header'}'`
6330 { echo "$as_me:$LINENO: result: $ac_res" >&5
6331 echo "${ECHO_T}$ac_res" >&6; }
6332 else
6333 # Is the header compilable?
6334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 $ac_includes_default
6343 #include <$ac_header>
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6347 case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compile") 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.$ac_objext; then
6362 ac_header_compiler=yes
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 ac_header_compiler=no
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6372 echo "${ECHO_T}$ac_header_compiler" >&6; }
6374 # Is the header present?
6375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 #include <$ac_header>
6384 _ACEOF
6385 if { (ac_try="$ac_cpp conftest.$ac_ext"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } >/dev/null && {
6398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 }; then
6401 ac_header_preproc=yes
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_header_preproc=no
6409 rm -f conftest.err conftest.$ac_ext
6410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6411 echo "${ECHO_T}$ac_header_preproc" >&6; }
6413 # So? What about this header?
6414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6415 yes:no: )
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6420 ac_header_preproc=yes
6422 no:yes:* )
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6437 esac
6438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 eval "$as_ac_Header=\$ac_header_preproc"
6445 ac_res=`eval echo '${'$as_ac_Header'}'`
6446 { echo "$as_me:$LINENO: result: $ac_res" >&5
6447 echo "${ECHO_T}$ac_res" >&6; }
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h <<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453 _ACEOF
6457 done
6460 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6461 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <sys/personality.h>
6470 main ()
6472 personality (PER_LINUX32)
6474 return 0;
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest.$ac_objext; then
6494 emacs_cv_personality_linux32=yes
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 emacs_cv_personality_linux32=no
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6504 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6506 if test $emacs_cv_personality_linux32 = yes; then
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_PERSONALITY_LINUX32 1
6510 _ACEOF
6515 for ac_header in term.h
6517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 #include <$ac_header>
6530 _ACEOF
6531 if { (ac_try="$ac_cpp conftest.$ac_ext"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } >/dev/null && {
6544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 }; then
6547 eval "$as_ac_Header=yes"
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 eval "$as_ac_Header=no"
6555 rm -f conftest.err conftest.$ac_ext
6557 ac_res=`eval echo '${'$as_ac_Header'}'`
6558 { echo "$as_me:$LINENO: result: $ac_res" >&5
6559 echo "${ECHO_T}$ac_res" >&6; }
6560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6561 cat >>confdefs.h <<_ACEOF
6562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6563 _ACEOF
6567 done
6569 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6570 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6571 if test "${ac_cv_header_stdc+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
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 <stdlib.h>
6581 #include <stdarg.h>
6582 #include <string.h>
6583 #include <float.h>
6586 main ()
6590 return 0;
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (ac_try="$ac_compile"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_compile") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest.$ac_objext; then
6610 ac_cv_header_stdc=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_cv_header_stdc=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 if test $ac_cv_header_stdc = yes; then
6621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <string.h>
6630 _ACEOF
6631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6632 $EGREP "memchr" >/dev/null 2>&1; then
6634 else
6635 ac_cv_header_stdc=no
6637 rm -f conftest*
6641 if test $ac_cv_header_stdc = yes; then
6642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 #include <stdlib.h>
6651 _ACEOF
6652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6653 $EGREP "free" >/dev/null 2>&1; then
6655 else
6656 ac_cv_header_stdc=no
6658 rm -f conftest*
6662 if test $ac_cv_header_stdc = yes; then
6663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6664 if test "$cross_compiling" = yes; then
6666 else
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <ctype.h>
6674 #include <stdlib.h>
6675 #if ((' ' & 0x0FF) == 0x020)
6676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6678 #else
6679 # define ISLOWER(c) \
6680 (('a' <= (c) && (c) <= 'i') \
6681 || ('j' <= (c) && (c) <= 'r') \
6682 || ('s' <= (c) && (c) <= 'z'))
6683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6684 #endif
6686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6688 main ()
6690 int i;
6691 for (i = 0; i < 256; i++)
6692 if (XOR (islower (i), ISLOWER (i))
6693 || toupper (i) != TOUPPER (i))
6694 return 2;
6695 return 0;
6697 _ACEOF
6698 rm -f conftest$ac_exeext
6699 if { (ac_try="$ac_link"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_link") 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6719 else
6720 echo "$as_me: program exited with status $ac_status" >&5
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 ( exit $ac_status )
6725 ac_cv_header_stdc=no
6727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6733 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6734 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6735 if test $ac_cv_header_stdc = yes; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define STDC_HEADERS 1
6739 _ACEOF
6743 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6744 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6745 if test "${ac_cv_header_time+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 #include <sys/types.h>
6755 #include <sys/time.h>
6756 #include <time.h>
6759 main ()
6761 if ((struct tm *) 0)
6762 return 0;
6764 return 0;
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (ac_try="$ac_compile"
6769 case "(($ac_try" in
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6772 esac
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest.$ac_objext; then
6784 ac_cv_header_time=yes
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 ac_cv_header_time=no
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6795 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6796 if test $ac_cv_header_time = yes; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define TIME_WITH_SYS_TIME 1
6800 _ACEOF
6804 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6805 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6806 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 $ac_includes_default
6817 main ()
6819 #ifndef sys_siglist
6820 (void) sys_siglist;
6821 #endif
6824 return 0;
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } && {
6841 test -z "$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 } && test -s conftest.$ac_objext; then
6844 ac_cv_have_decl_sys_siglist=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_cv_have_decl_sys_siglist=no
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6855 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6856 if test $ac_cv_have_decl_sys_siglist = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_DECL_SYS_SIGLIST 1
6860 _ACEOF
6863 else
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_DECL_SYS_SIGLIST 0
6866 _ACEOF
6872 if test $ac_cv_have_decl_sys_siglist != yes; then
6873 # For Tru64, at least:
6874 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6875 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6876 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6887 main ()
6889 #ifndef __sys_siglist
6890 (void) __sys_siglist;
6891 #endif
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 ac_cv_have_decl___sys_siglist=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_have_decl___sys_siglist=no
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6925 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6926 if test $ac_cv_have_decl___sys_siglist = yes; then
6928 cat >>confdefs.h <<_ACEOF
6929 #define HAVE_DECL___SYS_SIGLIST 1
6930 _ACEOF
6933 else
6934 cat >>confdefs.h <<_ACEOF
6935 #define HAVE_DECL___SYS_SIGLIST 0
6936 _ACEOF
6942 if test $ac_cv_have_decl___sys_siglist = yes; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define sys_siglist __sys_siglist
6946 _ACEOF
6950 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6951 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6952 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h. */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 #include <sys/types.h>
6962 #include <sys/wait.h>
6963 #ifndef WEXITSTATUS
6964 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6965 #endif
6966 #ifndef WIFEXITED
6967 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6968 #endif
6971 main ()
6973 int s;
6974 wait (&s);
6975 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6977 return 0;
6979 _ACEOF
6980 rm -f conftest.$ac_objext
6981 if { (ac_try="$ac_compile"
6982 case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985 esac
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_compile") 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
6997 ac_cv_header_sys_wait_h=yes
6998 else
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_cv_header_sys_wait_h=no
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7008 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7009 if test $ac_cv_header_sys_wait_h = yes; then
7011 cat >>confdefs.h <<\_ACEOF
7012 #define HAVE_SYS_WAIT_H 1
7013 _ACEOF
7018 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7019 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7020 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
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 #ifdef TIME_WITH_SYS_TIME
7030 #include <sys/time.h>
7031 #include <time.h>
7032 #else
7033 #ifdef HAVE_SYS_TIME_H
7034 #include <sys/time.h>
7035 #else
7036 #include <time.h>
7037 #endif
7038 #endif
7039 #ifdef HAVE_UTIME_H
7040 #include <utime.h>
7041 #endif
7043 main ()
7045 static struct utimbuf x; x.actime = x.modtime;
7047 return 0;
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7052 case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055 esac
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
7058 ac_status=$?
7059 grep -v '^ *+' conftest.er1 >conftest.err
7060 rm -f conftest.er1
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.$ac_objext; then
7067 emacs_cv_struct_utimbuf=yes
7068 else
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 emacs_cv_struct_utimbuf=no
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7078 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7079 if test $emacs_cv_struct_utimbuf = yes; then
7081 cat >>confdefs.h <<\_ACEOF
7082 #define HAVE_STRUCT_UTIMBUF 1
7083 _ACEOF
7087 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7088 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7089 if test "${ac_cv_type_signal+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <sys/types.h>
7099 #include <signal.h>
7102 main ()
7104 return *(signal (0, 0)) (0) == 1;
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 ac_cv_type_signal=int
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_type_signal=void
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7137 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7139 cat >>confdefs.h <<_ACEOF
7140 #define RETSIGTYPE $ac_cv_type_signal
7141 _ACEOF
7145 { echo "$as_me:$LINENO: checking for speed_t" >&5
7146 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7147 if test "${emacs_cv_speed_t+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <termios.h>
7158 main ()
7160 speed_t x = 1;
7162 return 0;
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7182 emacs_cv_speed_t=yes
7183 else
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 emacs_cv_speed_t=no
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7193 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7194 if test $emacs_cv_speed_t = yes; then
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_SPEED_T 1
7198 _ACEOF
7202 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7203 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7204 if test "${emacs_cv_struct_timeval+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #ifdef TIME_WITH_SYS_TIME
7214 #include <sys/time.h>
7215 #include <time.h>
7216 #else
7217 #ifdef HAVE_SYS_TIME_H
7218 #include <sys/time.h>
7219 #else
7220 #include <time.h>
7221 #endif
7222 #endif
7224 main ()
7226 static struct timeval x; x.tv_sec = x.tv_usec;
7228 return 0;
7230 _ACEOF
7231 rm -f conftest.$ac_objext
7232 if { (ac_try="$ac_compile"
7233 case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.$ac_objext; then
7248 emacs_cv_struct_timeval=yes
7249 else
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7253 emacs_cv_struct_timeval=no
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7259 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7260 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7261 if test $emacs_cv_struct_timeval = yes; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_TIMEVAL 1
7265 _ACEOF
7269 { echo "$as_me:$LINENO: checking for struct exception" >&5
7270 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7271 if test "${emacs_cv_struct_exception+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 #include <math.h>
7282 main ()
7284 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7286 return 0;
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7291 case "(($ac_try" in
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.$ac_objext; then
7306 emacs_cv_struct_exception=yes
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 emacs_cv_struct_exception=no
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7317 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7318 HAVE_EXCEPTION=$emacs_cv_struct_exception
7319 if test $emacs_cv_struct_exception != yes; then
7321 cat >>confdefs.h <<\_ACEOF
7322 #define NO_MATHERR 1
7323 _ACEOF
7328 for ac_header in sys/socket.h
7330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 ac_res=`eval echo '${'$as_ac_Header'}'`
7338 { echo "$as_me:$LINENO: result: $ac_res" >&5
7339 echo "${ECHO_T}$ac_res" >&6; }
7340 else
7341 # Is the header compilable?
7342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7344 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 $ac_includes_default
7351 #include <$ac_header>
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 ac_header_compiler=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_header_compiler=no
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7380 echo "${ECHO_T}$ac_header_compiler" >&6; }
7382 # Is the header present?
7383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 #include <$ac_header>
7392 _ACEOF
7393 if { (ac_try="$ac_cpp conftest.$ac_ext"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } >/dev/null && {
7406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 }; then
7409 ac_header_preproc=yes
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_header_preproc=no
7417 rm -f conftest.err conftest.$ac_ext
7418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7419 echo "${ECHO_T}$ac_header_preproc" >&6; }
7421 # So? What about this header?
7422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7423 yes:no: )
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7428 ac_header_preproc=yes
7430 no:yes:* )
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7445 esac
7446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 eval "$as_ac_Header=\$ac_header_preproc"
7453 ac_res=`eval echo '${'$as_ac_Header'}'`
7454 { echo "$as_me:$LINENO: result: $ac_res" >&5
7455 echo "${ECHO_T}$ac_res" >&6; }
7458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7459 cat >>confdefs.h <<_ACEOF
7460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7461 _ACEOF
7465 done
7468 for ac_header in net/if.h
7470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h. */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 $ac_includes_default
7483 #if HAVE_SYS_SOCKET_H
7484 #include <sys/socket.h>
7485 #endif
7487 #include <$ac_header>
7488 _ACEOF
7489 rm -f conftest.$ac_objext
7490 if { (ac_try="$ac_compile"
7491 case "(($ac_try" in
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7494 esac
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_compile") 2>conftest.er1
7497 ac_status=$?
7498 grep -v '^ *+' conftest.er1 >conftest.err
7499 rm -f conftest.er1
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest.$ac_objext; then
7506 eval "$as_ac_Header=yes"
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 eval "$as_ac_Header=no"
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 ac_res=`eval echo '${'$as_ac_Header'}'`
7517 { echo "$as_me:$LINENO: result: $ac_res" >&5
7518 echo "${ECHO_T}$ac_res" >&6; }
7519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7520 cat >>confdefs.h <<_ACEOF
7521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7522 _ACEOF
7526 done
7529 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7530 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7531 if test "${ac_cv_struct_tm+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 #include <sys/types.h>
7541 #include <time.h>
7544 main ()
7546 struct tm tm;
7547 int *p = &tm.tm_sec;
7548 return !p;
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 ac_cv_struct_tm=time.h
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_cv_struct_tm=sys/time.h
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7581 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7582 if test $ac_cv_struct_tm = sys/time.h; then
7584 cat >>confdefs.h <<\_ACEOF
7585 #define TM_IN_SYS_TIME 1
7586 _ACEOF
7590 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <$ac_cv_struct_tm>
7606 main ()
7608 static struct tm ac_aggr;
7609 if (ac_aggr.tm_zone)
7610 return 0;
7612 return 0;
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 ac_cv_member_struct_tm_tm_zone=yes
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <sys/types.h>
7644 #include <$ac_cv_struct_tm>
7648 main ()
7650 static struct tm ac_aggr;
7651 if (sizeof ac_aggr.tm_zone)
7652 return 0;
7654 return 0;
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_cv_member_struct_tm_tm_zone=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_cv_member_struct_tm_tm_zone=no
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7688 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7689 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7691 cat >>confdefs.h <<_ACEOF
7692 #define HAVE_STRUCT_TM_TM_ZONE 1
7693 _ACEOF
7698 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7700 cat >>confdefs.h <<\_ACEOF
7701 #define HAVE_TM_ZONE 1
7702 _ACEOF
7704 else
7705 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7706 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7707 if test "${ac_cv_have_decl_tzname+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 #include <time.h>
7719 main ()
7721 #ifndef tzname
7722 (void) tzname;
7723 #endif
7726 return 0;
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (ac_try="$ac_compile"
7731 case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734 esac
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 ac_cv_have_decl_tzname=yes
7747 else
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_have_decl_tzname=no
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7757 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7758 if test $ac_cv_have_decl_tzname = yes; then
7760 cat >>confdefs.h <<_ACEOF
7761 #define HAVE_DECL_TZNAME 1
7762 _ACEOF
7765 else
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_DECL_TZNAME 0
7768 _ACEOF
7774 { echo "$as_me:$LINENO: checking for tzname" >&5
7775 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7776 if test "${ac_cv_var_tzname+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 #include <time.h>
7786 #if !HAVE_DECL_TZNAME
7787 extern char *tzname[];
7788 #endif
7791 main ()
7793 return tzname[0][0];
7795 return 0;
7797 _ACEOF
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_link") 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest$ac_exeext &&
7815 $as_test_x conftest$ac_exeext; then
7816 ac_cv_var_tzname=yes
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_cv_var_tzname=no
7824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7825 conftest$ac_exeext conftest.$ac_ext
7827 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7828 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7829 if test $ac_cv_var_tzname = yes; then
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_TZNAME 1
7833 _ACEOF
7838 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7839 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7840 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 #include <time.h>
7852 main ()
7854 static struct tm ac_aggr;
7855 if (ac_aggr.tm_gmtoff)
7856 return 0;
7858 return 0;
7860 _ACEOF
7861 rm -f conftest.$ac_objext
7862 if { (ac_try="$ac_compile"
7863 case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_compile") 2>conftest.er1
7869 ac_status=$?
7870 grep -v '^ *+' conftest.er1 >conftest.err
7871 rm -f conftest.er1
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } && {
7875 test -z "$ac_c_werror_flag" ||
7876 test ! -s conftest.err
7877 } && test -s conftest.$ac_objext; then
7878 ac_cv_member_struct_tm_tm_gmtoff=yes
7879 else
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h. */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 #include <time.h>
7892 main ()
7894 static struct tm ac_aggr;
7895 if (sizeof ac_aggr.tm_gmtoff)
7896 return 0;
7898 return 0;
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (ac_try="$ac_compile"
7903 case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 ac_cv_member_struct_tm_tm_gmtoff=yes
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 ac_cv_member_struct_tm_tm_gmtoff=no
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7933 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7935 cat >>confdefs.h <<\_ACEOF
7936 #define HAVE_TM_GMTOFF 1
7937 _ACEOF
7941 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7942 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7943 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h. */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 #if HAVE_SYS_SOCKET_H
7954 #include <sys/socket.h>
7955 #endif
7956 #if HAVE_NET_IF_H
7957 #include <net/if.h>
7958 #endif
7961 main ()
7963 static struct ifreq ac_aggr;
7964 if (ac_aggr.ifr_flags)
7965 return 0;
7967 return 0;
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (ac_try="$ac_compile"
7972 case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_member_struct_ifreq_ifr_flags=yes
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 #if HAVE_SYS_SOCKET_H
8000 #include <sys/socket.h>
8001 #endif
8002 #if HAVE_NET_IF_H
8003 #include <net/if.h>
8004 #endif
8007 main ()
8009 static struct ifreq ac_aggr;
8010 if (sizeof ac_aggr.ifr_flags)
8011 return 0;
8013 return 0;
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (ac_try="$ac_compile"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8033 ac_cv_member_struct_ifreq_ifr_flags=yes
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_cv_member_struct_ifreq_ifr_flags=no
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8047 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8048 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8050 cat >>confdefs.h <<_ACEOF
8051 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8052 _ACEOF
8056 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8057 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8058 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 $ac_includes_default
8068 #if HAVE_SYS_SOCKET_H
8069 #include <sys/socket.h>
8070 #endif
8071 #if HAVE_NET_IF_H
8072 #include <net/if.h>
8073 #endif
8076 main ()
8078 static struct ifreq ac_aggr;
8079 if (ac_aggr.ifr_hwaddr)
8080 return 0;
8082 return 0;
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (ac_try="$ac_compile"
8087 case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090 esac
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_compile") 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest.$ac_objext; then
8102 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8103 else
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h. */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 $ac_includes_default
8114 #if HAVE_SYS_SOCKET_H
8115 #include <sys/socket.h>
8116 #endif
8117 #if HAVE_NET_IF_H
8118 #include <net/if.h>
8119 #endif
8122 main ()
8124 static struct ifreq ac_aggr;
8125 if (sizeof ac_aggr.ifr_hwaddr)
8126 return 0;
8128 return 0;
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8148 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8162 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8163 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8165 cat >>confdefs.h <<_ACEOF
8166 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8167 _ACEOF
8171 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8172 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8173 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8185 #endif
8186 #if HAVE_NET_IF_H
8187 #include <net/if.h>
8188 #endif
8191 main ()
8193 static struct ifreq ac_aggr;
8194 if (ac_aggr.ifr_netmask)
8195 return 0;
8197 return 0;
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217 ac_cv_member_struct_ifreq_ifr_netmask=yes
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h. */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 $ac_includes_default
8229 #if HAVE_SYS_SOCKET_H
8230 #include <sys/socket.h>
8231 #endif
8232 #if HAVE_NET_IF_H
8233 #include <net/if.h>
8234 #endif
8237 main ()
8239 static struct ifreq ac_aggr;
8240 if (sizeof ac_aggr.ifr_netmask)
8241 return 0;
8243 return 0;
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8248 case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.$ac_objext; then
8263 ac_cv_member_struct_ifreq_ifr_netmask=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 ac_cv_member_struct_ifreq_ifr_netmask=no
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8277 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8278 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8280 cat >>confdefs.h <<_ACEOF
8281 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8282 _ACEOF
8286 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8287 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8288 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 #if HAVE_SYS_SOCKET_H
8299 #include <sys/socket.h>
8300 #endif
8301 #if HAVE_NET_IF_H
8302 #include <net/if.h>
8303 #endif
8306 main ()
8308 static struct ifreq ac_aggr;
8309 if (ac_aggr.ifr_broadaddr)
8310 return 0;
8312 return 0;
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h. */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 #if HAVE_SYS_SOCKET_H
8345 #include <sys/socket.h>
8346 #endif
8347 #if HAVE_NET_IF_H
8348 #include <net/if.h>
8349 #endif
8352 main ()
8354 static struct ifreq ac_aggr;
8355 if (sizeof ac_aggr.ifr_broadaddr)
8356 return 0;
8358 return 0;
8360 _ACEOF
8361 rm -f conftest.$ac_objext
8362 if { (ac_try="$ac_compile"
8363 case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_compile") 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && {
8375 test -z "$ac_c_werror_flag" ||
8376 test ! -s conftest.err
8377 } && test -s conftest.$ac_objext; then
8378 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8392 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8393 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8395 cat >>confdefs.h <<_ACEOF
8396 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8397 _ACEOF
8401 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8402 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8403 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #if HAVE_SYS_SOCKET_H
8414 #include <sys/socket.h>
8415 #endif
8416 #if HAVE_NET_IF_H
8417 #include <net/if.h>
8418 #endif
8421 main ()
8423 static struct ifreq ac_aggr;
8424 if (ac_aggr.ifr_addr)
8425 return 0;
8427 return 0;
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_cv_member_struct_ifreq_ifr_addr=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 #if HAVE_SYS_SOCKET_H
8460 #include <sys/socket.h>
8461 #endif
8462 #if HAVE_NET_IF_H
8463 #include <net/if.h>
8464 #endif
8467 main ()
8469 static struct ifreq ac_aggr;
8470 if (sizeof ac_aggr.ifr_addr)
8471 return 0;
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest.$ac_objext; then
8493 ac_cv_member_struct_ifreq_ifr_addr=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 ac_cv_member_struct_ifreq_ifr_addr=no
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8507 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8508 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8512 _ACEOF
8519 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8520 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8521 if test "$ac_cv_prog_cc_c89" != no; then
8522 { echo "$as_me:$LINENO: result: yes" >&5
8523 echo "${ECHO_T}yes" >&6; }
8525 cat >>confdefs.h <<\_ACEOF
8526 #define PROTOTYPES 1
8527 _ACEOF
8530 cat >>confdefs.h <<\_ACEOF
8531 #define __PROTOTYPES 1
8532 _ACEOF
8534 else
8535 { echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6; }
8539 { echo "$as_me:$LINENO: checking for working volatile" >&5
8540 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8541 if test "${ac_cv_c_volatile+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h. */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8552 main ()
8555 volatile int x;
8556 int * volatile y = (int *) 0;
8557 return !x && !y;
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.$ac_objext; then
8579 ac_cv_c_volatile=yes
8580 else
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_cv_c_volatile=no
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8590 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8591 if test $ac_cv_c_volatile = no; then
8593 cat >>confdefs.h <<\_ACEOF
8594 #define volatile
8595 _ACEOF
8599 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8600 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8601 if test "${ac_cv_c_const+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8612 main ()
8614 /* FIXME: Include the comments suggested by Paul. */
8615 #ifndef __cplusplus
8616 /* Ultrix mips cc rejects this. */
8617 typedef int charset[2];
8618 const charset cs;
8619 /* SunOS 4.1.1 cc rejects this. */
8620 char const *const *pcpcc;
8621 char **ppc;
8622 /* NEC SVR4.0.2 mips cc rejects this. */
8623 struct point {int x, y;};
8624 static struct point const zero = {0,0};
8625 /* AIX XL C 1.02.0.0 rejects this.
8626 It does not let you subtract one const X* pointer from another in
8627 an arm of an if-expression whose if-part is not a constant
8628 expression */
8629 const char *g = "string";
8630 pcpcc = &g + (g ? g-g : 0);
8631 /* HPUX 7.0 cc rejects these. */
8632 ++pcpcc;
8633 ppc = (char**) pcpcc;
8634 pcpcc = (char const *const *) ppc;
8635 { /* SCO 3.2v4 cc rejects this. */
8636 char *t;
8637 char const *s = 0 ? (char *) 0 : (char const *) 0;
8639 *t++ = 0;
8640 if (s) return 0;
8642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8643 int x[] = {25, 17};
8644 const int *foo = &x[0];
8645 ++foo;
8647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8648 typedef const int *iptr;
8649 iptr p = 0;
8650 ++p;
8652 { /* AIX XL C 1.02.0.0 rejects this saying
8653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8654 struct s { int j; const int *ap[3]; };
8655 struct s *b; b->j = 5;
8657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8658 const int foo = 10;
8659 if (!foo) return 0;
8661 return !cs[0] && !zero.x;
8662 #endif
8665 return 0;
8667 _ACEOF
8668 rm -f conftest.$ac_objext
8669 if { (ac_try="$ac_compile"
8670 case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673 esac
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_compile") 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && {
8682 test -z "$ac_c_werror_flag" ||
8683 test ! -s conftest.err
8684 } && test -s conftest.$ac_objext; then
8685 ac_cv_c_const=yes
8686 else
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 ac_cv_c_const=no
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8696 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8697 if test $ac_cv_c_const = no; then
8699 cat >>confdefs.h <<\_ACEOF
8700 #define const
8701 _ACEOF
8705 { echo "$as_me:$LINENO: checking for void * support" >&5
8706 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8707 if test "${emacs_cv_void_star+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8718 main ()
8720 void * foo;
8722 return 0;
8724 _ACEOF
8725 rm -f conftest.$ac_objext
8726 if { (ac_try="$ac_compile"
8727 case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 emacs_cv_void_star=yes
8743 else
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 emacs_cv_void_star=no
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8753 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8754 if test $emacs_cv_void_star = yes; then
8755 cat >>confdefs.h <<\_ACEOF
8756 #define POINTER_TYPE void
8757 _ACEOF
8759 else
8760 cat >>confdefs.h <<\_ACEOF
8761 #define POINTER_TYPE char
8762 _ACEOF
8770 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8771 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8772 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8773 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 cat >conftest.make <<\_ACEOF
8777 SHELL = /bin/sh
8778 all:
8779 @echo '@@@%%%=$(MAKE)=@@@%%%'
8780 _ACEOF
8781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8782 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8783 *@@@%%%=?*=@@@%%%*)
8784 eval ac_cv_prog_make_${ac_make}_set=yes;;
8786 eval ac_cv_prog_make_${ac_make}_set=no;;
8787 esac
8788 rm -f conftest.make
8790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8791 { echo "$as_me:$LINENO: result: yes" >&5
8792 echo "${ECHO_T}yes" >&6; }
8793 SET_MAKE=
8794 else
8795 { echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6; }
8797 SET_MAKE="MAKE=${MAKE-make}"
8801 { echo "$as_me:$LINENO: checking for long file names" >&5
8802 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8803 if test "${ac_cv_sys_long_file_names+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 ac_cv_sys_long_file_names=yes
8807 # Test for long file names in all the places we know might matter:
8808 # . the current directory, where building will happen
8809 # $prefix/lib where we will be installing things
8810 # $exec_prefix/lib likewise
8811 # $TMPDIR if set, where it might want to write temporary files
8812 # /tmp where it might want to write temporary files
8813 # /var/tmp likewise
8814 # /usr/tmp likewise
8815 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8816 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8817 # in the usual case where exec_prefix is '${prefix}'.
8818 case $ac_dir in #(
8819 . | /* | ?:[\\/]*) ;; #(
8820 *) continue;;
8821 esac
8822 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8823 ac_xdir=$ac_dir/cf$$
8824 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8825 ac_tf1=$ac_xdir/conftest9012345
8826 ac_tf2=$ac_xdir/conftest9012346
8827 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8828 ac_cv_sys_long_file_names=no
8829 rm -f -r "$ac_xdir" 2>/dev/null
8830 test $ac_cv_sys_long_file_names = no && break
8831 done
8833 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8834 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8835 if test $ac_cv_sys_long_file_names = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define HAVE_LONG_FILE_NAMES 1
8839 _ACEOF
8844 #### Choose a window system.
8846 { echo "$as_me:$LINENO: checking for X" >&5
8847 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8850 # Check whether --with-x was given.
8851 if test "${with_x+set}" = set; then
8852 withval=$with_x;
8855 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8856 if test "x$with_x" = xno; then
8857 # The user explicitly disabled X.
8858 have_x=disabled
8859 else
8860 case $x_includes,$x_libraries in #(
8861 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8862 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8863 { (exit 1); exit 1; }; };; #(
8864 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 # One or both of the vars are not set, and there is no cached value.
8868 ac_x_includes=no ac_x_libraries=no
8869 rm -f -r conftest.dir
8870 if mkdir conftest.dir; then
8871 cd conftest.dir
8872 cat >Imakefile <<'_ACEOF'
8873 incroot:
8874 @echo incroot='${INCROOT}'
8875 usrlibdir:
8876 @echo usrlibdir='${USRLIBDIR}'
8877 libdir:
8878 @echo libdir='${LIBDIR}'
8879 _ACEOF
8880 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8882 for ac_var in incroot usrlibdir libdir; do
8883 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8884 done
8885 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8886 for ac_extension in a so sl; do
8887 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8888 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8889 ac_im_usrlibdir=$ac_im_libdir; break
8891 done
8892 # Screen out bogus values from the imake configuration. They are
8893 # bogus both because they are the default anyway, and because
8894 # using them would break gcc on systems where it needs fixed includes.
8895 case $ac_im_incroot in
8896 /usr/include) ac_x_includes= ;;
8897 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8898 esac
8899 case $ac_im_usrlibdir in
8900 /usr/lib | /lib) ;;
8901 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8902 esac
8904 cd ..
8905 rm -f -r conftest.dir
8908 # Standard set of common directories for X headers.
8909 # Check X11 before X11Rn because it is often a symlink to the current release.
8910 ac_x_header_dirs='
8911 /usr/X11/include
8912 /usr/X11R6/include
8913 /usr/X11R5/include
8914 /usr/X11R4/include
8916 /usr/include/X11
8917 /usr/include/X11R6
8918 /usr/include/X11R5
8919 /usr/include/X11R4
8921 /usr/local/X11/include
8922 /usr/local/X11R6/include
8923 /usr/local/X11R5/include
8924 /usr/local/X11R4/include
8926 /usr/local/include/X11
8927 /usr/local/include/X11R6
8928 /usr/local/include/X11R5
8929 /usr/local/include/X11R4
8931 /usr/X386/include
8932 /usr/x386/include
8933 /usr/XFree86/include/X11
8935 /usr/include
8936 /usr/local/include
8937 /usr/unsupported/include
8938 /usr/athena/include
8939 /usr/local/x11r5/include
8940 /usr/lpp/Xamples/include
8942 /usr/openwin/include
8943 /usr/openwin/share/include'
8945 if test "$ac_x_includes" = no; then
8946 # Guess where to find include files, by looking for Xlib.h.
8947 # First, try using that file with no special directory specified.
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #include <X11/Xlib.h>
8955 _ACEOF
8956 if { (ac_try="$ac_cpp conftest.$ac_ext"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } >/dev/null && {
8969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 }; then
8972 # We can compile using X headers with no special include directory.
8973 ac_x_includes=
8974 else
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 for ac_dir in $ac_x_header_dirs; do
8979 if test -r "$ac_dir/X11/Xlib.h"; then
8980 ac_x_includes=$ac_dir
8981 break
8983 done
8986 rm -f conftest.err conftest.$ac_ext
8987 fi # $ac_x_includes = no
8989 if test "$ac_x_libraries" = no; then
8990 # Check for the libraries.
8991 # See if we find them without any special options.
8992 # Don't add to $LIBS permanently.
8993 ac_save_LIBS=$LIBS
8994 LIBS="-lX11 $LIBS"
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 #include <X11/Xlib.h>
9003 main ()
9005 XrmInitialize ()
9007 return 0;
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (ac_try="$ac_link"
9012 case "(($ac_try" in
9013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9014 *) ac_try_echo=$ac_try;;
9015 esac
9016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9017 (eval "$ac_link") 2>conftest.er1
9018 ac_status=$?
9019 grep -v '^ *+' conftest.er1 >conftest.err
9020 rm -f conftest.er1
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } && {
9024 test -z "$ac_c_werror_flag" ||
9025 test ! -s conftest.err
9026 } && test -s conftest$ac_exeext &&
9027 $as_test_x conftest$ac_exeext; then
9028 LIBS=$ac_save_LIBS
9029 # We can link X programs with no special library path.
9030 ac_x_libraries=
9031 else
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 LIBS=$ac_save_LIBS
9036 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9038 # Don't even attempt the hair of trying to link an X program!
9039 for ac_extension in a so sl; do
9040 if test -r "$ac_dir/libX11.$ac_extension"; then
9041 ac_x_libraries=$ac_dir
9042 break 2
9044 done
9045 done
9048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
9050 fi # $ac_x_libraries = no
9052 case $ac_x_includes,$ac_x_libraries in #(
9053 no,* | *,no | *\'*)
9054 # Didn't find X, or a directory has "'" in its name.
9055 ac_cv_have_x="have_x=no";; #(
9057 # Record where we found X for the cache.
9058 ac_cv_have_x="have_x=yes\
9059 ac_x_includes='$ac_x_includes'\
9060 ac_x_libraries='$ac_x_libraries'"
9061 esac
9063 ;; #(
9064 *) have_x=yes;;
9065 esac
9066 eval "$ac_cv_have_x"
9067 fi # $with_x != no
9069 if test "$have_x" != yes; then
9070 { echo "$as_me:$LINENO: result: $have_x" >&5
9071 echo "${ECHO_T}$have_x" >&6; }
9072 no_x=yes
9073 else
9074 # If each of the values was on the command line, it overrides each guess.
9075 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9076 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9077 # Update the cache value to reflect the command line values.
9078 ac_cv_have_x="have_x=yes\
9079 ac_x_includes='$x_includes'\
9080 ac_x_libraries='$x_libraries'"
9081 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9082 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9085 if test "$no_x" = yes; then
9086 window_system=none
9087 else
9088 window_system=x11
9091 if test "${x_libraries}" != NONE; then
9092 if test -n "${x_libraries}"; then
9093 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9094 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9096 x_default_search_path=""
9097 x_search_path=${x_libraries}
9098 if test -z "${x_search_path}"; then
9099 x_search_path=/usr/lib
9101 for x_library in `echo ${x_search_path}: | \
9102 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9103 x_search_path="\
9104 ${x_library}/X11/%L/%T/%N%C%S:\
9105 ${x_library}/X11/%l/%T/%N%C%S:\
9106 ${x_library}/X11/%T/%N%C%S:\
9107 ${x_library}/X11/%L/%T/%N%S:\
9108 ${x_library}/X11/%l/%T/%N%S:\
9109 ${x_library}/X11/%T/%N%S"
9110 if test x"${x_default_search_path}" = x; then
9111 x_default_search_path=${x_search_path}
9112 else
9113 x_default_search_path="${x_search_path}:${x_default_search_path}"
9115 done
9117 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9118 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9121 if test x"${x_includes}" = x; then
9122 bitmapdir=/usr/include/X11/bitmaps
9123 else
9124 # accumulate include directories that have X11 bitmap subdirectories
9125 bmd_acc="dummyval"
9126 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9127 if test -d "${bmd}/X11/bitmaps"; then
9128 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9130 if test -d "${bmd}/bitmaps"; then
9131 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9133 done
9134 if test ${bmd_acc} != "dummyval"; then
9135 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9139 HAVE_CARBON=no
9140 if test "${with_carbon}" != no; then
9141 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9142 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9143 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9144 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9148 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9149 else
9150 # Is the header compilable?
9151 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9152 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 #include <Carbon/Carbon.h>
9161 _ACEOF
9162 rm -f conftest.$ac_objext
9163 if { (ac_try="$ac_compile"
9164 case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_compile") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.$ac_objext; then
9179 ac_header_compiler=yes
9180 else
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 ac_header_compiler=no
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9189 echo "${ECHO_T}$ac_header_compiler" >&6; }
9191 # Is the header present?
9192 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9193 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 #include <Carbon/Carbon.h>
9201 _ACEOF
9202 if { (ac_try="$ac_cpp conftest.$ac_ext"
9203 case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206 esac
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } >/dev/null && {
9215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9217 }; then
9218 ac_header_preproc=yes
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_header_preproc=no
9226 rm -f conftest.err conftest.$ac_ext
9227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9228 echo "${ECHO_T}$ac_header_preproc" >&6; }
9230 # So? What about this header?
9231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9232 yes:no: )
9233 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9234 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9236 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9237 ac_header_preproc=yes
9239 no:yes:* )
9240 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9241 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9243 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9245 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9247 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9249 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9251 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9254 esac
9255 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9256 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9257 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9262 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9263 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9266 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9267 HAVE_CARBON=yes
9272 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9273 if test "${with_carbon+set}" != set \
9274 && test "${carbon_appdir_x+set}" != set; then
9275 for var in with_x with_x_toolkit with_gtk with_xim \
9276 with_xpm with_jpeg with_tiff with_gif with_png; do
9277 if eval test \"\${$var+set}\" = set; then
9278 HAVE_CARBON=no
9279 break
9281 done
9284 if test "${HAVE_CARBON}" = yes; then
9285 window_system=mac
9288 case "${window_system}" in
9289 x11 )
9290 HAVE_X_WINDOWS=yes
9291 HAVE_X11=yes
9292 case "${with_x_toolkit}" in
9293 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9294 motif ) USE_X_TOOLKIT=MOTIF ;;
9295 gtk ) with_gtk=yes
9296 USE_X_TOOLKIT=none ;;
9297 no ) USE_X_TOOLKIT=none ;;
9299 if test x"$with_gtk" = xyes; then
9300 USE_X_TOOLKIT=none
9301 else
9302 USE_X_TOOLKIT=maybe
9305 esac
9307 mac | none )
9308 HAVE_X_WINDOWS=no
9309 HAVE_X11=no
9310 USE_X_TOOLKIT=none
9312 esac
9314 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9315 # Extract the first word of "X", so it can be a program name with args.
9316 set dummy X; ac_word=$2
9317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9319 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322 if test -n "$HAVE_XSERVER"; then
9323 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_prog_HAVE_XSERVER="true"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9336 done
9337 done
9338 IFS=$as_save_IFS
9340 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9343 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9344 if test -n "$HAVE_XSERVER"; then
9345 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9346 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9347 else
9348 { echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6; }
9353 if test "$HAVE_XSERVER" = true ||
9354 test -n "$DISPLAY" ||
9355 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9356 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9357 were found. You should install the relevant development files for X
9358 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9359 sure you have development files for image handling, i.e.
9360 tiff, gif, jpeg, png and xpm.
9361 If you are sure you want Emacs compiled without X window support, pass
9362 --without-x
9363 to configure." >&5
9364 echo "$as_me: error: You seem to be running X, but no X development libraries
9365 were found. You should install the relevant development files for X
9366 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9367 sure you have development files for image handling, i.e.
9368 tiff, gif, jpeg, png and xpm.
9369 If you are sure you want Emacs compiled without X window support, pass
9370 --without-x
9371 to configure." >&2;}
9372 { (exit 1); exit 1; }; }
9376 ### If we're using X11, we should use the X menu package.
9377 HAVE_MENUS=no
9378 case ${HAVE_X11} in
9379 yes ) HAVE_MENUS=yes ;;
9380 esac
9382 ### Compute the unexec source name from the object name.
9383 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9385 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9386 # Assume not, until told otherwise.
9387 GNU_MALLOC=yes
9388 doug_lea_malloc=yes
9389 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9390 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9391 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h. */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define malloc_get_state innocuous_malloc_get_state
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char malloc_get_state (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9409 #ifdef __STDC__
9410 # include <limits.h>
9411 #else
9412 # include <assert.h>
9413 #endif
9415 #undef malloc_get_state
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 char malloc_get_state ();
9424 /* The GNU C library defines this for functions which it implements
9425 to always fail with ENOSYS. Some functions are actually named
9426 something starting with __ and the normal name is an alias. */
9427 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9428 choke me
9429 #endif
9432 main ()
9434 return malloc_get_state ();
9436 return 0;
9438 _ACEOF
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (ac_try="$ac_link"
9441 case "(($ac_try" in
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9444 esac
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446 (eval "$ac_link") 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && {
9453 test -z "$ac_c_werror_flag" ||
9454 test ! -s conftest.err
9455 } && test -s conftest$ac_exeext &&
9456 $as_test_x conftest$ac_exeext; then
9457 ac_cv_func_malloc_get_state=yes
9458 else
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_cv_func_malloc_get_state=no
9465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9466 conftest$ac_exeext conftest.$ac_ext
9468 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9469 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9470 if test $ac_cv_func_malloc_get_state = yes; then
9472 else
9473 doug_lea_malloc=no
9476 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9477 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9478 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9489 #define malloc_set_state innocuous_malloc_set_state
9491 /* System header to define __stub macros and hopefully few prototypes,
9492 which can conflict with char malloc_set_state (); below.
9493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9494 <limits.h> exists even on freestanding compilers. */
9496 #ifdef __STDC__
9497 # include <limits.h>
9498 #else
9499 # include <assert.h>
9500 #endif
9502 #undef malloc_set_state
9504 /* Override any GCC internal prototype to avoid an error.
9505 Use char because int might match the return type of a GCC
9506 builtin and then its argument prototype would still apply. */
9507 #ifdef __cplusplus
9508 extern "C"
9509 #endif
9510 char malloc_set_state ();
9511 /* The GNU C library defines this for functions which it implements
9512 to always fail with ENOSYS. Some functions are actually named
9513 something starting with __ and the normal name is an alias. */
9514 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9515 choke me
9516 #endif
9519 main ()
9521 return malloc_set_state ();
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest$ac_exeext &&
9543 $as_test_x conftest$ac_exeext; then
9544 ac_cv_func_malloc_set_state=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_func_malloc_set_state=no
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553 conftest$ac_exeext conftest.$ac_ext
9555 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9556 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9557 if test $ac_cv_func_malloc_set_state = yes; then
9559 else
9560 doug_lea_malloc=no
9563 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9564 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9565 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 extern void (* __after_morecore_hook)();
9576 main ()
9578 __after_morecore_hook = 0
9580 return 0;
9582 _ACEOF
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9585 case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9588 esac
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9591 ac_status=$?
9592 grep -v '^ *+' conftest.er1 >conftest.err
9593 rm -f conftest.er1
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } && {
9597 test -z "$ac_c_werror_flag" ||
9598 test ! -s conftest.err
9599 } && test -s conftest$ac_exeext &&
9600 $as_test_x conftest$ac_exeext; then
9601 emacs_cv_var___after_morecore_hook=yes
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 emacs_cv_var___after_morecore_hook=no
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610 conftest$ac_exeext conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9613 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9614 if test $emacs_cv_var___after_morecore_hook = no; then
9615 doug_lea_malloc=no
9617 if test "${system_malloc}" = "yes"; then
9618 GNU_MALLOC=no
9619 GNU_MALLOC_reason="
9620 (The GNU allocators don't work with this system configuration.)"
9622 if test "$doug_lea_malloc" = "yes" ; then
9623 if test "$GNU_MALLOC" = yes ; then
9624 GNU_MALLOC_reason="
9625 (Using Doug Lea's new malloc from the GNU C Library.)"
9628 cat >>confdefs.h <<\_ACEOF
9629 #define DOUG_LEA_MALLOC 1
9630 _ACEOF
9634 if test x"${REL_ALLOC}" = x; then
9635 REL_ALLOC=${GNU_MALLOC}
9641 for ac_header in stdlib.h unistd.h
9643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 ac_res=`eval echo '${'$as_ac_Header'}'`
9651 { echo "$as_me:$LINENO: result: $ac_res" >&5
9652 echo "${ECHO_T}$ac_res" >&6; }
9653 else
9654 # Is the header compilable?
9655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9657 cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h. */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9663 $ac_includes_default
9664 #include <$ac_header>
9665 _ACEOF
9666 rm -f conftest.$ac_objext
9667 if { (ac_try="$ac_compile"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_compile") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
9683 ac_header_compiler=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_header_compiler=no
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693 echo "${ECHO_T}$ac_header_compiler" >&6; }
9695 # Is the header present?
9696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <$ac_header>
9705 _ACEOF
9706 if { (ac_try="$ac_cpp conftest.$ac_ext"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } >/dev/null && {
9719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 }; then
9722 ac_header_preproc=yes
9723 else
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_header_preproc=no
9730 rm -f conftest.err conftest.$ac_ext
9731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6; }
9734 # So? What about this header?
9735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9736 yes:no: )
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741 ac_header_preproc=yes
9743 no:yes:* )
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9758 esac
9759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 eval "$as_ac_Header=\$ac_header_preproc"
9766 ac_res=`eval echo '${'$as_ac_Header'}'`
9767 { echo "$as_me:$LINENO: result: $ac_res" >&5
9768 echo "${ECHO_T}$ac_res" >&6; }
9771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9772 cat >>confdefs.h <<_ACEOF
9773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9774 _ACEOF
9778 done
9781 for ac_func in getpagesize
9783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9797 #define $ac_func innocuous_$ac_func
9799 /* System header to define __stub macros and hopefully few prototypes,
9800 which can conflict with char $ac_func (); below.
9801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9802 <limits.h> exists even on freestanding compilers. */
9804 #ifdef __STDC__
9805 # include <limits.h>
9806 #else
9807 # include <assert.h>
9808 #endif
9810 #undef $ac_func
9812 /* Override any GCC internal prototype to avoid an error.
9813 Use char because int might match the return type of a GCC
9814 builtin and then its argument prototype would still apply. */
9815 #ifdef __cplusplus
9816 extern "C"
9817 #endif
9818 char $ac_func ();
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined __stub_$ac_func || defined __stub___$ac_func
9823 choke me
9824 #endif
9827 main ()
9829 return $ac_func ();
9831 return 0;
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_link") 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest$ac_exeext &&
9851 $as_test_x conftest$ac_exeext; then
9852 eval "$as_ac_var=yes"
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 eval "$as_ac_var=no"
9860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861 conftest$ac_exeext conftest.$ac_ext
9863 ac_res=`eval echo '${'$as_ac_var'}'`
9864 { echo "$as_me:$LINENO: result: $ac_res" >&5
9865 echo "${ECHO_T}$ac_res" >&6; }
9866 if test `eval echo '${'$as_ac_var'}'` = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9869 _ACEOF
9872 done
9874 { echo "$as_me:$LINENO: checking for working mmap" >&5
9875 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9876 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 if test "$cross_compiling" = yes; then
9880 ac_cv_func_mmap_fixed_mapped=no
9881 else
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h. */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 $ac_includes_default
9889 /* malloc might have been renamed as rpl_malloc. */
9890 #undef malloc
9892 /* Thanks to Mike Haertel and Jim Avera for this test.
9893 Here is a matrix of mmap possibilities:
9894 mmap private not fixed
9895 mmap private fixed at somewhere currently unmapped
9896 mmap private fixed at somewhere already mapped
9897 mmap shared not fixed
9898 mmap shared fixed at somewhere currently unmapped
9899 mmap shared fixed at somewhere already mapped
9900 For private mappings, we should verify that changes cannot be read()
9901 back from the file, nor mmap's back from the file at a different
9902 address. (There have been systems where private was not correctly
9903 implemented like the infamous i386 svr4.0, and systems where the
9904 VM page cache was not coherent with the file system buffer cache
9905 like early versions of FreeBSD and possibly contemporary NetBSD.)
9906 For shared mappings, we should conversely verify that changes get
9907 propagated back to all the places they're supposed to be.
9909 Grep wants private fixed already mapped.
9910 The main things grep needs to know about mmap are:
9911 * does it exist and is it safe to write into the mmap'd area
9912 * how to use it (BSD variants) */
9914 #include <fcntl.h>
9915 #include <sys/mman.h>
9917 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9918 char *malloc ();
9919 #endif
9921 /* This mess was copied from the GNU getpagesize.h. */
9922 #ifndef HAVE_GETPAGESIZE
9923 /* Assume that all systems that can run configure have sys/param.h. */
9924 # ifndef HAVE_SYS_PARAM_H
9925 # define HAVE_SYS_PARAM_H 1
9926 # endif
9928 # ifdef _SC_PAGESIZE
9929 # define getpagesize() sysconf(_SC_PAGESIZE)
9930 # else /* no _SC_PAGESIZE */
9931 # ifdef HAVE_SYS_PARAM_H
9932 # include <sys/param.h>
9933 # ifdef EXEC_PAGESIZE
9934 # define getpagesize() EXEC_PAGESIZE
9935 # else /* no EXEC_PAGESIZE */
9936 # ifdef NBPG
9937 # define getpagesize() NBPG * CLSIZE
9938 # ifndef CLSIZE
9939 # define CLSIZE 1
9940 # endif /* no CLSIZE */
9941 # else /* no NBPG */
9942 # ifdef NBPC
9943 # define getpagesize() NBPC
9944 # else /* no NBPC */
9945 # ifdef PAGESIZE
9946 # define getpagesize() PAGESIZE
9947 # endif /* PAGESIZE */
9948 # endif /* no NBPC */
9949 # endif /* no NBPG */
9950 # endif /* no EXEC_PAGESIZE */
9951 # else /* no HAVE_SYS_PARAM_H */
9952 # define getpagesize() 8192 /* punt totally */
9953 # endif /* no HAVE_SYS_PARAM_H */
9954 # endif /* no _SC_PAGESIZE */
9956 #endif /* no HAVE_GETPAGESIZE */
9959 main ()
9961 char *data, *data2, *data3;
9962 int i, pagesize;
9963 int fd;
9965 pagesize = getpagesize ();
9967 /* First, make a file with some known garbage in it. */
9968 data = (char *) malloc (pagesize);
9969 if (!data)
9970 return 1;
9971 for (i = 0; i < pagesize; ++i)
9972 *(data + i) = rand ();
9973 umask (0);
9974 fd = creat ("conftest.mmap", 0600);
9975 if (fd < 0)
9976 return 1;
9977 if (write (fd, data, pagesize) != pagesize)
9978 return 1;
9979 close (fd);
9981 /* Next, try to mmap the file at a fixed address which already has
9982 something else allocated at it. If we can, also make sure that
9983 we see the same garbage. */
9984 fd = open ("conftest.mmap", O_RDWR);
9985 if (fd < 0)
9986 return 1;
9987 data2 = (char *) malloc (2 * pagesize);
9988 if (!data2)
9989 return 1;
9990 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9991 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9992 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9993 return 1;
9994 for (i = 0; i < pagesize; ++i)
9995 if (*(data + i) != *(data2 + i))
9996 return 1;
9998 /* Finally, make sure that changes to the mapped area do not
9999 percolate back to the file as seen by read(). (This is a bug on
10000 some variants of i386 svr4.0.) */
10001 for (i = 0; i < pagesize; ++i)
10002 *(data2 + i) = *(data2 + i) + 1;
10003 data3 = (char *) malloc (pagesize);
10004 if (!data3)
10005 return 1;
10006 if (read (fd, data3, pagesize) != pagesize)
10007 return 1;
10008 for (i = 0; i < pagesize; ++i)
10009 if (*(data + i) != *(data3 + i))
10010 return 1;
10011 close (fd);
10012 return 0;
10014 _ACEOF
10015 rm -f conftest$ac_exeext
10016 if { (ac_try="$ac_link"
10017 case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10020 esac
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_link") 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10026 { (case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029 esac
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_try") 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_func_mmap_fixed_mapped=yes
10036 else
10037 echo "$as_me: program exited with status $ac_status" >&5
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ( exit $ac_status )
10042 ac_cv_func_mmap_fixed_mapped=no
10044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10049 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10050 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10051 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10053 cat >>confdefs.h <<\_ACEOF
10054 #define HAVE_MMAP 1
10055 _ACEOF
10058 rm -f conftest.mmap
10060 if test $use_mmap_for_buffers = yes; then
10061 REL_ALLOC=no
10064 LIBS="$libsrc_libs $LIBS"
10067 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10068 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10069 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 ac_check_lib_save_LIBS=$LIBS
10073 LIBS="-ldnet $LIBS"
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char dnet_ntoa ();
10089 main ()
10091 return dnet_ntoa ();
10093 return 0;
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10114 ac_cv_lib_dnet_dnet_ntoa=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_lib_dnet_dnet_ntoa=no
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10126 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10127 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10128 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10129 cat >>confdefs.h <<_ACEOF
10130 #define HAVE_LIBDNET 1
10131 _ACEOF
10133 LIBS="-ldnet $LIBS"
10138 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10139 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10140 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 ac_check_lib_save_LIBS=$LIBS
10144 LIBS="-lXbsd $LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10154 main ()
10156 return main ();
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_link") 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext &&
10178 $as_test_x conftest$ac_exeext; then
10179 ac_cv_lib_Xbsd_main=yes
10180 else
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_Xbsd_main=no
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10192 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10193 if test $ac_cv_lib_Xbsd_main = yes; then
10194 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10199 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10200 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204 ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-lpthreads $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char cma_open ();
10221 main ()
10223 return cma_open ();
10225 return 0;
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 ac_cv_lib_pthreads_cma_open=yes
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_lib_pthreads_cma_open=no
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10259 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10260 if test $ac_cv_lib_pthreads_cma_open = yes; then
10261 cat >>confdefs.h <<_ACEOF
10262 #define HAVE_LIBPTHREADS 1
10263 _ACEOF
10265 LIBS="-lpthreads $LIBS"
10270 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10271 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10272 if test -d /usr/X386/include; then
10273 HAVE_XFREE386=yes
10274 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10275 else
10276 HAVE_XFREE386=no
10278 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10279 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10282 case ${host_os} in
10283 aix*)
10284 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10285 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10286 if test "${gdb_cv_bigtoc+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10290 case $GCC in
10291 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10292 *) gdb_cv_bigtoc=-bbigtoc ;;
10293 esac
10295 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10304 main ()
10306 int i;
10308 return 0;
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (ac_try="$ac_link"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && {
10325 test -z "$ac_c_werror_flag" ||
10326 test ! -s conftest.err
10327 } && test -s conftest$ac_exeext &&
10328 $as_test_x conftest$ac_exeext; then
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 gdb_cv_bigtoc=
10337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10338 conftest$ac_exeext conftest.$ac_ext
10341 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10342 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10344 esac
10346 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10347 # used for the tests that follow. We set them back to REAL_CFLAGS and
10348 # REAL_CPPFLAGS later on.
10350 REAL_CPPFLAGS="$CPPFLAGS"
10352 if test "${HAVE_X11}" = "yes"; then
10353 DEFS="$C_SWITCH_X_SITE $DEFS"
10354 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10355 LIBS="$LIBX $LIBS"
10356 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10357 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10359 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10360 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10361 # but it's more convenient here to set LD_RUN_PATH
10362 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10363 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10364 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10365 export LD_RUN_PATH
10368 if test "${opsys}" = "gnu-linux"; then
10369 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10370 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10379 main ()
10381 XOpenDisplay ("foo");
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest$ac_exeext &&
10403 $as_test_x conftest$ac_exeext; then
10404 xlinux_first_failure=no
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 xlinux_first_failure=yes
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413 conftest$ac_exeext conftest.$ac_ext
10414 if test "${xlinux_first_failure}" = "yes"; then
10415 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10416 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10417 OLD_CPPFLAGS="$CPPFLAGS"
10418 OLD_LIBS="$LIBS"
10419 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10420 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10421 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10422 LIBS="$LIBS -b i486-linuxaout"
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10431 main ()
10433 XOpenDisplay ("foo");
10435 return 0;
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext &&
10455 $as_test_x conftest$ac_exeext; then
10456 xlinux_second_failure=no
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 xlinux_second_failure=yes
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10466 if test "${xlinux_second_failure}" = "yes"; then
10467 # If we get the same failure with -b, there is no use adding -b.
10468 # So take it out. This plays safe.
10469 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10470 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10471 CPPFLAGS="$OLD_CPPFLAGS"
10472 LIBS="$OLD_LIBS"
10473 { echo "$as_me:$LINENO: result: no" >&5
10474 echo "${ECHO_T}no" >&6; }
10475 else
10476 { echo "$as_me:$LINENO: result: yes" >&5
10477 echo "${ECHO_T}yes" >&6; }
10479 else
10480 { echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6; }
10485 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10486 # header files included from there.
10487 { echo "$as_me:$LINENO: checking for Xkb" >&5
10488 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h. */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 #include <X11/Xlib.h>
10496 #include <X11/XKBlib.h>
10498 main ()
10500 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10502 return 0;
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (ac_try="$ac_link"
10507 case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510 esac
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_link") 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } && {
10519 test -z "$ac_c_werror_flag" ||
10520 test ! -s conftest.err
10521 } && test -s conftest$ac_exeext &&
10522 $as_test_x conftest$ac_exeext; then
10523 emacs_xkb=yes
10524 else
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 emacs_xkb=no
10531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10532 conftest$ac_exeext conftest.$ac_ext
10533 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10534 echo "${ECHO_T}$emacs_xkb" >&6; }
10535 if test $emacs_xkb = yes; then
10537 cat >>confdefs.h <<\_ACEOF
10538 #define HAVE_XKBGETKEYBOARD 1
10539 _ACEOF
10547 for ac_func in XrmSetDatabase XScreenResourceString \
10548 XScreenNumberOfScreen XSetWMProtocols
10550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10551 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10564 #define $ac_func innocuous_$ac_func
10566 /* System header to define __stub macros and hopefully few prototypes,
10567 which can conflict with char $ac_func (); below.
10568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569 <limits.h> exists even on freestanding compilers. */
10571 #ifdef __STDC__
10572 # include <limits.h>
10573 #else
10574 # include <assert.h>
10575 #endif
10577 #undef $ac_func
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 char $ac_func ();
10586 /* The GNU C library defines this for functions which it implements
10587 to always fail with ENOSYS. Some functions are actually named
10588 something starting with __ and the normal name is an alias. */
10589 #if defined __stub_$ac_func || defined __stub___$ac_func
10590 choke me
10591 #endif
10594 main ()
10596 return $ac_func ();
10598 return 0;
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext &&
10618 $as_test_x conftest$ac_exeext; then
10619 eval "$as_ac_var=yes"
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 eval "$as_ac_var=no"
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10630 ac_res=`eval echo '${'$as_ac_var'}'`
10631 { echo "$as_me:$LINENO: result: $ac_res" >&5
10632 echo "${ECHO_T}$ac_res" >&6; }
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10636 _ACEOF
10639 done
10643 if test "${window_system}" = "x11"; then
10644 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10645 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10646 if test "${emacs_cv_x11_version_6+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 #include <X11/Xlib.h>
10657 main ()
10659 #if XlibSpecificationRelease < 6
10660 fail;
10661 #endif
10664 return 0;
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest$ac_exeext &&
10684 $as_test_x conftest$ac_exeext; then
10685 emacs_cv_x11_version_6=yes
10686 else
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 emacs_cv_x11_version_6=no
10693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694 conftest$ac_exeext conftest.$ac_ext
10697 if test $emacs_cv_x11_version_6 = yes; then
10698 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10699 echo "${ECHO_T}6 or newer" >&6; }
10701 cat >>confdefs.h <<\_ACEOF
10702 #define HAVE_X11R6 1
10703 _ACEOF
10705 else
10706 { echo "$as_me:$LINENO: result: before 6" >&5
10707 echo "${ECHO_T}before 6" >&6; }
10712 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10713 HAVE_RSVG=no
10714 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10715 if test "${with_rsvg}" != "no"; then
10716 RSVG_REQUIRED=2.0.0
10717 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10720 succeeded=no
10722 # Extract the first word of "pkg-config", so it can be a program name with args.
10723 set dummy pkg-config; ac_word=$2
10724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 case $PKG_CONFIG in
10730 [\\/]* | ?:[\\/]*)
10731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 break 2
10745 done
10746 done
10747 IFS=$as_save_IFS
10749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10751 esac
10753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10754 if test -n "$PKG_CONFIG"; then
10755 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10756 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10757 else
10758 { echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6; }
10764 if test "$PKG_CONFIG" = "no" ; then
10766 else
10767 PKG_CONFIG_MIN_VERSION=0.9.0
10768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10769 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10770 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10772 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10773 { echo "$as_me:$LINENO: result: yes" >&5
10774 echo "${ECHO_T}yes" >&6; }
10775 succeeded=yes
10777 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10778 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10779 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10780 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10781 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10783 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10784 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10785 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10786 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10787 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10788 else
10789 { echo "$as_me:$LINENO: result: no" >&5
10790 echo "${ECHO_T}no" >&6; }
10791 RSVG_CFLAGS=""
10792 RSVG_LIBS=""
10793 ## If we have a custom action on failure, don't print errors, but
10794 ## do set a variable so people can do so.
10795 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10801 else
10802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10807 if test $succeeded = yes; then
10809 else
10816 if test ".${RSVG_CFLAGS}" != "."; then
10817 HAVE_RSVG=yes
10819 cat >>confdefs.h <<\_ACEOF
10820 #define HAVE_RSVG 1
10821 _ACEOF
10823 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10824 LIBS="$RSVG_LIBS $LIBS"
10830 HAVE_GTK=no
10831 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10832 USE_X_TOOLKIT=none
10834 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10835 test "$USE_X_TOOLKIT" = "maybe"; then
10836 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10837 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10838 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10839 { (exit 1); exit 1; }; };
10841 GLIB_REQUIRED=2.6
10842 GTK_REQUIRED=2.6
10843 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10846 succeeded=no
10848 # Extract the first word of "pkg-config", so it can be a program name with args.
10849 set dummy pkg-config; ac_word=$2
10850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 case $PKG_CONFIG in
10856 [\\/]* | ?:[\\/]*)
10857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10871 done
10872 done
10873 IFS=$as_save_IFS
10875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10877 esac
10879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10880 if test -n "$PKG_CONFIG"; then
10881 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10882 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10883 else
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10890 if test "$PKG_CONFIG" = "no" ; then
10891 pkg_check_gtk=no
10892 else
10893 PKG_CONFIG_MIN_VERSION=0.9.0
10894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10895 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10896 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10898 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10899 { echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6; }
10901 succeeded=yes
10903 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10904 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10905 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10906 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10907 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10909 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10910 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10911 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10912 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10913 echo "${ECHO_T}$GTK_LIBS" >&6; }
10914 else
10915 { echo "$as_me:$LINENO: result: no" >&5
10916 echo "${ECHO_T}no" >&6; }
10917 GTK_CFLAGS=""
10918 GTK_LIBS=""
10919 ## If we have a custom action on failure, don't print errors, but
10920 ## do set a variable so people can do so.
10921 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10927 else
10928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 if test $succeeded = yes; then
10934 pkg_check_gtk=yes
10935 else
10936 pkg_check_gtk=no
10939 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10940 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10941 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10942 { (exit 1); exit 1; }; }
10947 if test x"$pkg_check_gtk" = xyes; then
10951 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10952 CFLAGS="$CFLAGS $GTK_CFLAGS"
10953 LIBS="$GTK_LIBS $LIBS"
10954 GTK_COMPILES=no
10956 for ac_func in gtk_main
10958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10972 #define $ac_func innocuous_$ac_func
10974 /* System header to define __stub macros and hopefully few prototypes,
10975 which can conflict with char $ac_func (); below.
10976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10977 <limits.h> exists even on freestanding compilers. */
10979 #ifdef __STDC__
10980 # include <limits.h>
10981 #else
10982 # include <assert.h>
10983 #endif
10985 #undef $ac_func
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char $ac_func ();
10994 /* The GNU C library defines this for functions which it implements
10995 to always fail with ENOSYS. Some functions are actually named
10996 something starting with __ and the normal name is an alias. */
10997 #if defined __stub_$ac_func || defined __stub___$ac_func
10998 choke me
10999 #endif
11002 main ()
11004 return $ac_func ();
11006 return 0;
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest$ac_exeext &&
11026 $as_test_x conftest$ac_exeext; then
11027 eval "$as_ac_var=yes"
11028 else
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 eval "$as_ac_var=no"
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11038 ac_res=`eval echo '${'$as_ac_var'}'`
11039 { echo "$as_me:$LINENO: result: $ac_res" >&5
11040 echo "${ECHO_T}$ac_res" >&6; }
11041 if test `eval echo '${'$as_ac_var'}'` = yes; then
11042 cat >>confdefs.h <<_ACEOF
11043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11044 _ACEOF
11045 GTK_COMPILES=yes
11047 done
11049 if test "${GTK_COMPILES}" != "yes"; then
11050 if test "$USE_X_TOOLKIT" != "maybe"; then
11051 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11052 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11053 { (exit 1); exit 1; }; };
11055 else
11056 HAVE_GTK=yes
11058 cat >>confdefs.h <<\_ACEOF
11059 #define HAVE_GTK 1
11060 _ACEOF
11062 USE_X_TOOLKIT=none
11068 if test "${HAVE_GTK}" = "yes"; then
11070 if test "$with_toolkit_scroll_bars" != no; then
11071 with_toolkit_scroll_bars=yes
11074 HAVE_GTK_MULTIDISPLAY=no
11076 for ac_func in gdk_display_open
11078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define $ac_func innocuous_$ac_func
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char $ac_func (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11099 #ifdef __STDC__
11100 # include <limits.h>
11101 #else
11102 # include <assert.h>
11103 #endif
11105 #undef $ac_func
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char $ac_func ();
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub_$ac_func || defined __stub___$ac_func
11118 choke me
11119 #endif
11122 main ()
11124 return $ac_func ();
11126 return 0;
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext &&
11146 $as_test_x conftest$ac_exeext; then
11147 eval "$as_ac_var=yes"
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 eval "$as_ac_var=no"
11155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11156 conftest$ac_exeext conftest.$ac_ext
11158 ac_res=`eval echo '${'$as_ac_var'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 if test `eval echo '${'$as_ac_var'}'` = yes; then
11162 cat >>confdefs.h <<_ACEOF
11163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11164 _ACEOF
11165 HAVE_GTK_MULTIDISPLAY=yes
11167 done
11169 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11171 cat >>confdefs.h <<\_ACEOF
11172 #define HAVE_GTK_MULTIDISPLAY 1
11173 _ACEOF
11177 HAVE_GTK_FILE_SELECTION=no
11179 for ac_func in gtk_file_selection_new
11181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11195 #define $ac_func innocuous_$ac_func
11197 /* System header to define __stub macros and hopefully few prototypes,
11198 which can conflict with char $ac_func (); below.
11199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11200 <limits.h> exists even on freestanding compilers. */
11202 #ifdef __STDC__
11203 # include <limits.h>
11204 #else
11205 # include <assert.h>
11206 #endif
11208 #undef $ac_func
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char $ac_func ();
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined __stub_$ac_func || defined __stub___$ac_func
11221 choke me
11222 #endif
11225 main ()
11227 return $ac_func ();
11229 return 0;
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (ac_try="$ac_link"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest$ac_exeext &&
11249 $as_test_x conftest$ac_exeext; then
11250 eval "$as_ac_var=yes"
11251 else
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 eval "$as_ac_var=no"
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11261 ac_res=`eval echo '${'$as_ac_var'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 _ACEOF
11268 HAVE_GTK_FILE_SELECTION=yes
11270 done
11273 HAVE_GTK_FILE_CHOOSER=no
11275 for ac_func in gtk_file_chooser_dialog_new
11277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h. */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11291 #define $ac_func innocuous_$ac_func
11293 /* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char $ac_func (); below.
11295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296 <limits.h> exists even on freestanding compilers. */
11298 #ifdef __STDC__
11299 # include <limits.h>
11300 #else
11301 # include <assert.h>
11302 #endif
11304 #undef $ac_func
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char $ac_func ();
11313 /* The GNU C library defines this for functions which it implements
11314 to always fail with ENOSYS. Some functions are actually named
11315 something starting with __ and the normal name is an alias. */
11316 #if defined __stub_$ac_func || defined __stub___$ac_func
11317 choke me
11318 #endif
11321 main ()
11323 return $ac_func ();
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (ac_try="$ac_link"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_link") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest$ac_exeext &&
11345 $as_test_x conftest$ac_exeext; then
11346 eval "$as_ac_var=yes"
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 eval "$as_ac_var=no"
11354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11355 conftest$ac_exeext conftest.$ac_ext
11357 ac_res=`eval echo '${'$as_ac_var'}'`
11358 { echo "$as_me:$LINENO: result: $ac_res" >&5
11359 echo "${ECHO_T}$ac_res" >&6; }
11360 if test `eval echo '${'$as_ac_var'}'` = yes; then
11361 cat >>confdefs.h <<_ACEOF
11362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11363 _ACEOF
11364 HAVE_GTK_FILE_CHOOSER=yes
11366 done
11369 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11370 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_GTK_FILE_BOTH 1
11374 _ACEOF
11378 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11379 HAVE_GTK_AND_PTHREAD=no
11381 for ac_header in pthread.h
11383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 ac_res=`eval echo '${'$as_ac_Header'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11393 else
11394 # Is the header compilable?
11395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11397 cat >conftest.$ac_ext <<_ACEOF
11398 /* confdefs.h. */
11399 _ACEOF
11400 cat confdefs.h >>conftest.$ac_ext
11401 cat >>conftest.$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11403 $ac_includes_default
11404 #include <$ac_header>
11405 _ACEOF
11406 rm -f conftest.$ac_objext
11407 if { (ac_try="$ac_compile"
11408 case "(($ac_try" in
11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11411 esac
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413 (eval "$ac_compile") 2>conftest.er1
11414 ac_status=$?
11415 grep -v '^ *+' conftest.er1 >conftest.err
11416 rm -f conftest.er1
11417 cat conftest.err >&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } && {
11420 test -z "$ac_c_werror_flag" ||
11421 test ! -s conftest.err
11422 } && test -s conftest.$ac_objext; then
11423 ac_header_compiler=yes
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_header_compiler=no
11431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11433 echo "${ECHO_T}$ac_header_compiler" >&6; }
11435 # Is the header present?
11436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h. */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 #include <$ac_header>
11445 _ACEOF
11446 if { (ac_try="$ac_cpp conftest.$ac_ext"
11447 case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } >/dev/null && {
11459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11460 test ! -s conftest.err
11461 }; then
11462 ac_header_preproc=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_header_preproc=no
11470 rm -f conftest.err conftest.$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11472 echo "${ECHO_T}$ac_header_preproc" >&6; }
11474 # So? What about this header?
11475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11476 yes:no: )
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11481 ac_header_preproc=yes
11483 no:yes:* )
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11498 esac
11499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504 eval "$as_ac_Header=\$ac_header_preproc"
11506 ac_res=`eval echo '${'$as_ac_Header'}'`
11507 { echo "$as_me:$LINENO: result: $ac_res" >&5
11508 echo "${ECHO_T}$ac_res" >&6; }
11511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11512 cat >>confdefs.h <<_ACEOF
11513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11514 _ACEOF
11518 done
11520 if test "$ac_cv_header_pthread_h"; then
11521 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11522 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11523 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526 ac_check_lib_save_LIBS=$LIBS
11527 LIBS="-lpthread $LIBS"
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char pthread_self ();
11543 main ()
11545 return pthread_self ();
11547 return 0;
11549 _ACEOF
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_link") 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && {
11564 test -z "$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11566 } && test -s conftest$ac_exeext &&
11567 $as_test_x conftest$ac_exeext; then
11568 ac_cv_lib_pthread_pthread_self=yes
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_cv_lib_pthread_pthread_self=no
11576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11577 conftest$ac_exeext conftest.$ac_ext
11578 LIBS=$ac_check_lib_save_LIBS
11580 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11581 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11582 if test $ac_cv_lib_pthread_pthread_self = yes; then
11583 HAVE_GTK_AND_PTHREAD=yes
11587 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11588 case "${canonical}" in
11589 *-hpux*) ;;
11590 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11591 esac
11593 cat >>confdefs.h <<\_ACEOF
11594 #define HAVE_GTK_AND_PTHREAD 1
11595 _ACEOF
11601 HAVE_DBUS=no
11602 if test "${with_dbus}" = "yes"; then
11604 succeeded=no
11606 # Extract the first word of "pkg-config", so it can be a program name with args.
11607 set dummy pkg-config; ac_word=$2
11608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11610 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 else
11613 case $PKG_CONFIG in
11614 [\\/]* | ?:[\\/]*)
11615 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11629 done
11630 done
11631 IFS=$as_save_IFS
11633 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11635 esac
11637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11638 if test -n "$PKG_CONFIG"; then
11639 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11640 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11641 else
11642 { echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6; }
11648 if test "$PKG_CONFIG" = "no" ; then
11649 HAVE_DBUS=no
11650 else
11651 PKG_CONFIG_MIN_VERSION=0.9.0
11652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11653 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11654 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11656 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11657 { echo "$as_me:$LINENO: result: yes" >&5
11658 echo "${ECHO_T}yes" >&6; }
11659 succeeded=yes
11661 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11662 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11663 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11664 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11665 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11667 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11668 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11669 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11670 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11671 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11672 else
11673 { echo "$as_me:$LINENO: result: no" >&5
11674 echo "${ECHO_T}no" >&6; }
11675 DBUS_CFLAGS=""
11676 DBUS_LIBS=""
11677 ## If we have a custom action on failure, don't print errors, but
11678 ## do set a variable so people can do so.
11679 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11685 else
11686 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11687 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11691 if test $succeeded = yes; then
11692 HAVE_DBUS=yes
11693 else
11694 HAVE_DBUS=no
11697 if test "$HAVE_DBUS" = yes; then
11699 cat >>confdefs.h <<\_ACEOF
11700 #define HAVE_DBUS 1
11701 _ACEOF
11706 HAVE_XAW3D=no
11707 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11708 if test "$with_xaw3d" != no; then
11709 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11710 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11711 if test "${emacs_cv_xaw3d+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 #include <X11/Intrinsic.h>
11722 #include <X11/Xaw3d/Simple.h>
11724 main ()
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest$ac_exeext &&
11748 $as_test_x conftest$ac_exeext; then
11749 emacs_cv_xaw3d=yes
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 emacs_cv_xaw3d=no
11757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11758 conftest$ac_exeext conftest.$ac_ext
11761 else
11762 emacs_cv_xaw3d=no
11764 if test $emacs_cv_xaw3d = yes; then
11765 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11766 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11767 USE_X_TOOLKIT=LUCID
11768 HAVE_XAW3D=yes
11770 cat >>confdefs.h <<\_ACEOF
11771 #define HAVE_XAW3D 1
11772 _ACEOF
11774 else
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 { echo "$as_me:$LINENO: checking for libXaw" >&5
11778 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11779 if test "${emacs_cv_xaw+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782 cat >conftest.$ac_ext <<_ACEOF
11783 /* confdefs.h. */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11789 #include <X11/Intrinsic.h>
11790 #include <X11/Xaw/Simple.h>
11792 main ()
11796 return 0;
11798 _ACEOF
11799 rm -f conftest.$ac_objext conftest$ac_exeext
11800 if { (ac_try="$ac_link"
11801 case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_link") 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest$ac_exeext &&
11816 $as_test_x conftest$ac_exeext; then
11817 emacs_cv_xaw=yes
11818 else
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 emacs_cv_xaw=no
11825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11826 conftest$ac_exeext conftest.$ac_ext
11829 if test $emacs_cv_xaw = yes; then
11830 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11831 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11832 USE_X_TOOLKIT=LUCID
11833 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11834 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11835 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11836 { (exit 1); exit 1; }; }
11837 else
11838 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11839 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11840 USE_X_TOOLKIT=none
11845 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11847 if test "${USE_X_TOOLKIT}" != "none"; then
11848 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11849 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11850 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853 cat >conftest.$ac_ext <<_ACEOF
11854 /* confdefs.h. */
11855 _ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 #include <X11/Intrinsic.h>
11861 main ()
11863 #if XtSpecificationRelease < 6
11864 fail;
11865 #endif
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (ac_try="$ac_link"
11873 case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_link") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest$ac_exeext &&
11888 $as_test_x conftest$ac_exeext; then
11889 emacs_cv_x11_toolkit_version_6=yes
11890 else
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 emacs_cv_x11_toolkit_version_6=no
11897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11898 conftest$ac_exeext conftest.$ac_ext
11901 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11902 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11903 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11904 echo "${ECHO_T}6 or newer" >&6; }
11906 cat >>confdefs.h <<\_ACEOF
11907 #define HAVE_X11XTR6 1
11908 _ACEOF
11910 else
11911 { echo "$as_me:$LINENO: result: before 6" >&5
11912 echo "${ECHO_T}before 6" >&6; }
11915 OLDLIBS="$LIBS"
11916 if test x$HAVE_X11XTR6 = xyes; then
11917 LIBS="-lXt -lSM -lICE $LIBS"
11918 else
11919 LIBS="-lXt $LIBS"
11922 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11923 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11924 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-lXmu $LIBS"
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char XmuConvertStandardSelection ();
11944 main ()
11946 return XmuConvertStandardSelection ();
11948 return 0;
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest$ac_exeext &&
11968 $as_test_x conftest$ac_exeext; then
11969 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11970 else
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11982 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11983 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985 #define HAVE_LIBXMU 1
11986 _ACEOF
11988 LIBS="-lXmu $LIBS"
11992 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11995 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11996 if test "${HAVE_X11}" = "yes"; then
11997 if test "${USE_X_TOOLKIT}" != "none"; then
11999 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12000 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12001 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lXext $LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12013 /* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12016 #ifdef __cplusplus
12017 extern "C"
12018 #endif
12019 char XShapeQueryExtension ();
12021 main ()
12023 return XShapeQueryExtension ();
12025 return 0;
12027 _ACEOF
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest$ac_exeext &&
12045 $as_test_x conftest$ac_exeext; then
12046 ac_cv_lib_Xext_XShapeQueryExtension=yes
12047 else
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_lib_Xext_XShapeQueryExtension=no
12054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12058 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12059 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12060 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12061 cat >>confdefs.h <<_ACEOF
12062 #define HAVE_LIBXEXT 1
12063 _ACEOF
12065 LIBS="-lXext $LIBS"
12072 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12073 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12074 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12075 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <Xm/Xm.h>
12086 main ()
12088 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12089 int x = 5;
12090 #else
12091 Motif version prior to 2.1.
12092 #endif
12094 return 0;
12096 _ACEOF
12097 rm -f conftest.$ac_objext
12098 if { (ac_try="$ac_compile"
12099 case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102 esac
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_compile") 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } && {
12111 test -z "$ac_c_werror_flag" ||
12112 test ! -s conftest.err
12113 } && test -s conftest.$ac_objext; then
12114 emacs_cv_motif_version_2_1=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 emacs_cv_motif_version_2_1=no
12122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12125 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12126 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12127 if test $emacs_cv_motif_version_2_1 = yes; then
12128 HAVE_LIBXP=no
12130 cat >>confdefs.h <<\_ACEOF
12131 #define HAVE_MOTIF_2_1 1
12132 _ACEOF
12134 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12135 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12136 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139 ac_check_lib_save_LIBS=$LIBS
12140 LIBS="-lXp $LIBS"
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h. */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 char XpCreateContext ();
12156 main ()
12158 return XpCreateContext ();
12160 return 0;
12162 _ACEOF
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_link") 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest$ac_exeext &&
12180 $as_test_x conftest$ac_exeext; then
12181 ac_cv_lib_Xp_XpCreateContext=yes
12182 else
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_cv_lib_Xp_XpCreateContext=no
12189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12190 conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12193 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12194 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12195 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12196 HAVE_LIBXP=yes
12199 if test ${HAVE_LIBXP} = yes; then
12201 cat >>confdefs.h <<\_ACEOF
12202 #define HAVE_LIBXP 1
12203 _ACEOF
12206 else
12207 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12208 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12209 if test "${emacs_cv_lesstif+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 # We put this in CFLAGS temporarily to precede other -I options
12213 # that might be in CFLAGS temporarily.
12214 # We put this in CPPFLAGS where it precedes the other -I options.
12215 OLD_CPPFLAGS=$CPPFLAGS
12216 OLD_CFLAGS=$CFLAGS
12217 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12218 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12227 main ()
12229 int x = 5;
12231 return 0;
12233 _ACEOF
12234 rm -f conftest.$ac_objext
12235 if { (ac_try="$ac_compile"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_compile") 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && {
12248 test -z "$ac_c_werror_flag" ||
12249 test ! -s conftest.err
12250 } && test -s conftest.$ac_objext; then
12251 emacs_cv_lesstif=yes
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 emacs_cv_lesstif=no
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12262 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12263 if test $emacs_cv_lesstif = yes; then
12264 # Make sure this -I option remains in CPPFLAGS after it is set
12265 # back to REAL_CPPFLAGS.
12266 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12267 # have those other -I options anyway. Ultimately, having this
12268 # directory ultimately in CPPFLAGS will be enough.
12269 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12270 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12271 else
12272 CFLAGS=$OLD_CFLAGS
12273 CPPFLAGS=$OLD_CPPFLAGS
12280 USE_TOOLKIT_SCROLL_BARS=no
12281 if test "${with_toolkit_scroll_bars}" != "no"; then
12282 if test "${USE_X_TOOLKIT}" != "none"; then
12283 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12284 cat >>confdefs.h <<\_ACEOF
12285 #define USE_TOOLKIT_SCROLL_BARS 1
12286 _ACEOF
12288 HAVE_XAW3D=no
12289 USE_TOOLKIT_SCROLL_BARS=yes
12290 elif test "${HAVE_XAW3D}" = "yes"; then
12291 cat >>confdefs.h <<\_ACEOF
12292 #define USE_TOOLKIT_SCROLL_BARS 1
12293 _ACEOF
12295 USE_TOOLKIT_SCROLL_BARS=yes
12297 elif test "${HAVE_GTK}" = "yes"; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define USE_TOOLKIT_SCROLL_BARS 1
12300 _ACEOF
12302 USE_TOOLKIT_SCROLL_BARS=yes
12303 elif test "${HAVE_CARBON}" = "yes"; then
12304 cat >>confdefs.h <<\_ACEOF
12305 #define USE_TOOLKIT_SCROLL_BARS 1
12306 _ACEOF
12308 USE_TOOLKIT_SCROLL_BARS=yes
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 #include <X11/Xlib.h>
12320 #include <X11/Xresource.h>
12322 main ()
12324 XIMProc callback;
12326 return 0;
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.$ac_objext; then
12346 HAVE_XIM=yes
12348 cat >>confdefs.h <<\_ACEOF
12349 #define HAVE_XIM 1
12350 _ACEOF
12352 else
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 HAVE_XIM=no
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 if test "${with_xim}" != "no"; then
12364 cat >>confdefs.h <<\_ACEOF
12365 #define USE_XIM 1
12366 _ACEOF
12371 if test "${HAVE_XIM}" != "no"; then
12372 late_CFLAGS=$CFLAGS
12373 if test "$GCC" = yes; then
12374 CFLAGS="$CFLAGS --pedantic-errors"
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 #include <X11/Xlib.h>
12384 #include <X11/Xresource.h>
12386 main ()
12388 Display *display;
12389 XrmDatabase db;
12390 char *res_name;
12391 char *res_class;
12392 XIMProc callback;
12393 XPointer *client_data;
12394 #ifndef __GNUC__
12395 /* If we're not using GCC, it's probably not XFree86, and this is
12396 probably right, but we can't use something like --pedantic-errors. */
12397 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12398 char*, XIMProc, XPointer*);
12399 #endif
12400 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12401 client_data);
12403 return 0;
12405 _ACEOF
12406 rm -f conftest.$ac_objext
12407 if { (ac_try="$ac_compile"
12408 case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12411 esac
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_compile") 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } && {
12420 test -z "$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 } && test -s conftest.$ac_objext; then
12423 emacs_cv_arg6_star=yes
12424 else
12425 echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433 if test "$emacs_cv_arg6_star" = yes; then
12434 cat >>confdefs.h <<\_ACEOF
12435 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12436 _ACEOF
12438 else
12439 cat >>confdefs.h <<\_ACEOF
12440 #define XRegisterIMInstantiateCallback_arg6 XPointer
12441 _ACEOF
12444 CFLAGS=$late_CFLAGS
12447 #### For font-backend
12448 if test "${USE_FONT_BACKEND}" = "yes"; then
12451 cat >>confdefs.h <<\_ACEOF
12452 #define USE_FONT_BACKEND 1
12453 _ACEOF
12456 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12457 HAVE_XFT=maybe
12458 if test "${HAVE_X11}" = "yes"; then
12459 if test "x${with_freetype}" = "xno"; then
12460 with_xft="no";
12462 if test "x${with_xft}" != "xno"; then
12464 if test "X${with_pkg_config_prog}" != X; then
12465 PKG_CONFIG="${with_pkg_config_prog}"
12469 succeeded=no
12471 # Extract the first word of "pkg-config", so it can be a program name with args.
12472 set dummy pkg-config; ac_word=$2
12473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12475 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478 case $PKG_CONFIG in
12479 [\\/]* | ?:[\\/]*)
12480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12494 done
12495 done
12496 IFS=$as_save_IFS
12498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12500 esac
12502 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12503 if test -n "$PKG_CONFIG"; then
12504 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12505 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12506 else
12507 { echo "$as_me:$LINENO: result: no" >&5
12508 echo "${ECHO_T}no" >&6; }
12513 if test "$PKG_CONFIG" = "no" ; then
12514 HAVE_XFT=no
12515 else
12516 PKG_CONFIG_MIN_VERSION=0.9.0
12517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12518 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12519 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12521 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12522 { echo "$as_me:$LINENO: result: yes" >&5
12523 echo "${ECHO_T}yes" >&6; }
12524 succeeded=yes
12526 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12527 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12528 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12529 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12530 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12532 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12533 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12534 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12535 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12536 echo "${ECHO_T}$XFT_LIBS" >&6; }
12537 else
12538 { echo "$as_me:$LINENO: result: no" >&5
12539 echo "${ECHO_T}no" >&6; }
12540 XFT_CFLAGS=""
12541 XFT_LIBS=""
12542 ## If we have a custom action on failure, don't print errors, but
12543 ## do set a variable so people can do so.
12544 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12550 else
12551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12556 if test $succeeded = yes; then
12558 else
12559 HAVE_XFT=no
12562 if test "$HAVE_XFT" != no; then
12563 OLD_CPPFLAGS="$CPPFLAGS"
12564 OLD_CFLAGS="$CFLAGS"
12565 OLD_LIBS="$LIBS"
12566 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12567 CFLAGS="$CFLAGS $XFT_CFLAGS"
12568 LIBS="$XFT_LIBS $LIBS"
12569 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12570 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12571 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12572 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12576 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12577 else
12578 # Is the header compilable?
12579 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12580 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 $ac_includes_default
12588 #include <X11/Xft/Xft.h>
12589 _ACEOF
12590 rm -f conftest.$ac_objext
12591 if { (ac_try="$ac_compile"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595 esac
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_compile") 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest.$ac_objext; then
12607 ac_header_compiler=yes
12608 else
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 ac_header_compiler=no
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617 echo "${ECHO_T}$ac_header_compiler" >&6; }
12619 # Is the header present?
12620 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12621 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 #include <X11/Xft/Xft.h>
12629 _ACEOF
12630 if { (ac_try="$ac_cpp conftest.$ac_ext"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev/null && {
12643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 }; then
12646 ac_header_preproc=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_header_preproc=no
12654 rm -f conftest.err conftest.$ac_ext
12655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12656 echo "${ECHO_T}$ac_header_preproc" >&6; }
12658 # So? What about this header?
12659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12660 yes:no: )
12661 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12662 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12664 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12665 ac_header_preproc=yes
12667 no:yes:* )
12668 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12669 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12671 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12673 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12675 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12677 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12679 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12682 esac
12683 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12684 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12685 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12690 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12691 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12694 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12695 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12696 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12697 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 ac_check_lib_save_LIBS=$LIBS
12701 LIBS="-lXft $XFT_LIBS $LIBS"
12702 cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h. */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char XftFontOpen ();
12717 main ()
12719 return XftFontOpen ();
12721 return 0;
12723 _ACEOF
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (ac_try="$ac_link"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_link") 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest$ac_exeext &&
12741 $as_test_x conftest$ac_exeext; then
12742 ac_cv_lib_Xft_XftFontOpen=yes
12743 else
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_cv_lib_Xft_XftFontOpen=no
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12752 LIBS=$ac_check_lib_save_LIBS
12754 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12755 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12756 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12757 HAVE_XFT=yes
12764 if test "${HAVE_XFT}" = "yes"; then
12766 cat >>confdefs.h <<\_ACEOF
12767 #define HAVE_XFT 1
12768 _ACEOF
12771 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12772 else
12773 CPPFLAGS="$OLD_CPPFLAGS"
12774 CFLAGS="$OLD_CFLAGS"
12775 LIBS="$OLD_LIBS"
12780 if test "$HAVE_XFT" != "yes"; then
12781 HAVE_XFT=no
12785 HAVE_FREETYPE=no
12786 ### Use -lfreetype if available, unless `--with-freetype=no'.
12787 if test "${HAVE_XFT}" = "yes"; then
12788 HAVE_FREETYPE=yes
12789 elif test "x${with_freetype}" != "xno"; then
12790 if test "X${with_pkg_config_prog}" != X; then
12791 PKG_CONFIG="${with_pkg_config_prog}"
12795 succeeded=no
12797 # Extract the first word of "pkg-config", so it can be a program name with args.
12798 set dummy pkg-config; ac_word=$2
12799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12801 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804 case $PKG_CONFIG in
12805 [\\/]* | ?:[\\/]*)
12806 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12816 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12820 done
12821 done
12822 IFS=$as_save_IFS
12824 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12826 esac
12828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12829 if test -n "$PKG_CONFIG"; then
12830 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12831 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12832 else
12833 { echo "$as_me:$LINENO: result: no" >&5
12834 echo "${ECHO_T}no" >&6; }
12839 if test "$PKG_CONFIG" = "no" ; then
12840 HAVE_FREETYPE=no
12841 else
12842 PKG_CONFIG_MIN_VERSION=0.9.0
12843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12844 { echo "$as_me:$LINENO: checking for freetype2" >&5
12845 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12847 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12848 { echo "$as_me:$LINENO: result: yes" >&5
12849 echo "${ECHO_T}yes" >&6; }
12850 succeeded=yes
12852 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12853 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12854 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12855 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12856 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12858 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12859 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12860 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12861 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12862 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12863 else
12864 { echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6; }
12866 FREETYPE_CFLAGS=""
12867 FREETYPE_LIBS=""
12868 ## If we have a custom action on failure, don't print errors, but
12869 ## do set a variable so people can do so.
12870 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12876 else
12877 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12878 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12882 if test $succeeded = yes; then
12883 HAVE_FREETYPE=yes
12884 else
12885 HAVE_FREETYPE=no
12888 if test "${HAVE_FREETYPE}" = "yes"; then
12890 succeeded=no
12892 # Extract the first word of "pkg-config", so it can be a program name with args.
12893 set dummy pkg-config; ac_word=$2
12894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12896 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 case $PKG_CONFIG in
12900 [\\/]* | ?:[\\/]*)
12901 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12915 done
12916 done
12917 IFS=$as_save_IFS
12919 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12921 esac
12923 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12924 if test -n "$PKG_CONFIG"; then
12925 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12926 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12927 else
12928 { echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6; }
12934 if test "$PKG_CONFIG" = "no" ; then
12935 HAVE_FC=no
12936 else
12937 PKG_CONFIG_MIN_VERSION=0.9.0
12938 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12939 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12940 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12942 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12943 { echo "$as_me:$LINENO: result: yes" >&5
12944 echo "${ECHO_T}yes" >&6; }
12945 succeeded=yes
12947 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12948 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12949 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12950 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12951 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12953 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12954 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12955 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12956 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12957 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12958 else
12959 { echo "$as_me:$LINENO: result: no" >&5
12960 echo "${ECHO_T}no" >&6; }
12961 FONTCONFIG_CFLAGS=""
12962 FONTCONFIG_LIBS=""
12963 ## If we have a custom action on failure, don't print errors, but
12964 ## do set a variable so people can do so.
12965 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12971 else
12972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12977 if test $succeeded = yes; then
12978 HAVE_FC=yes
12979 else
12980 HAVE_FC=no
12983 if test "${HAVE_FC}" = "no"; then
12984 HAVE_FREETYPE=no
12989 HAVE_LIBOTF=no
12990 if test "${HAVE_FREETYPE}" = "yes"; then
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_FREETYPE 1
12994 _ACEOF
12996 if test "${with_libotf}" != "no"; then
12997 if test "X${with_pkg_config_prog}" != X; then
12998 PKG_CONFIG="${with_pkg_config_prog}"
13001 succeeded=no
13003 # Extract the first word of "pkg-config", so it can be a program name with args.
13004 set dummy pkg-config; ac_word=$2
13005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13007 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010 case $PKG_CONFIG in
13011 [\\/]* | ?:[\\/]*)
13012 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13026 done
13027 done
13028 IFS=$as_save_IFS
13030 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13032 esac
13034 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13035 if test -n "$PKG_CONFIG"; then
13036 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13037 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13038 else
13039 { echo "$as_me:$LINENO: result: no" >&5
13040 echo "${ECHO_T}no" >&6; }
13045 if test "$PKG_CONFIG" = "no" ; then
13046 HAVE_LIBOTF=no
13047 else
13048 PKG_CONFIG_MIN_VERSION=0.9.0
13049 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13050 { echo "$as_me:$LINENO: checking for libotf" >&5
13051 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13053 if $PKG_CONFIG --exists "libotf" 2>&5; then
13054 { echo "$as_me:$LINENO: result: yes" >&5
13055 echo "${ECHO_T}yes" >&6; }
13056 succeeded=yes
13058 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13059 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13060 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13061 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13062 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13064 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13065 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13066 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13067 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13068 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13069 else
13070 { echo "$as_me:$LINENO: result: no" >&5
13071 echo "${ECHO_T}no" >&6; }
13072 LIBOTF_CFLAGS=""
13073 LIBOTF_LIBS=""
13074 ## If we have a custom action on failure, don't print errors, but
13075 ## do set a variable so people can do so.
13076 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13082 else
13083 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13084 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13088 if test $succeeded = yes; then
13089 HAVE_LIBOTF=yes
13090 else
13091 HAVE_LIBOTF=no
13094 if test "$HAVE_LIBOTF" = "yes"; then
13096 cat >>confdefs.h <<\_ACEOF
13097 #define HAVE_LIBOTF 1
13098 _ACEOF
13104 HAVE_M17N_FLT=no
13105 if test "${with_m17n_flt}" != "no"; then
13106 if test "X${with_pkg_config_prog}" != X; then
13107 PKG_CONFIG="${with_pkg_config_prog}"
13110 succeeded=no
13112 # Extract the first word of "pkg-config", so it can be a program name with args.
13113 set dummy pkg-config; ac_word=$2
13114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13116 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 case $PKG_CONFIG in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13135 done
13136 done
13137 IFS=$as_save_IFS
13139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13141 esac
13143 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13144 if test -n "$PKG_CONFIG"; then
13145 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13146 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13147 else
13148 { echo "$as_me:$LINENO: result: no" >&5
13149 echo "${ECHO_T}no" >&6; }
13154 if test "$PKG_CONFIG" = "no" ; then
13155 HAVE_M17N_FLT=no
13156 else
13157 PKG_CONFIG_MIN_VERSION=0.9.0
13158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13159 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13160 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13162 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13163 { echo "$as_me:$LINENO: result: yes" >&5
13164 echo "${ECHO_T}yes" >&6; }
13165 succeeded=yes
13167 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13168 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13169 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13170 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13171 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13173 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13174 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13175 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13176 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13177 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13178 else
13179 { echo "$as_me:$LINENO: result: no" >&5
13180 echo "${ECHO_T}no" >&6; }
13181 M17N_FLT_CFLAGS=""
13182 M17N_FLT_LIBS=""
13183 ## If we have a custom action on failure, don't print errors, but
13184 ## do set a variable so people can do so.
13185 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13191 else
13192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13197 if test $succeeded = yes; then
13198 HAVE_M17N_FLT=yes
13199 else
13200 HAVE_M17N_FLT=no
13203 if test "$HAVE_M17N_FLT" = "yes"; then
13205 cat >>confdefs.h <<\_ACEOF
13206 #define HAVE_M17N_FLT 1
13207 _ACEOF
13222 #### End for font-backend
13224 ### Use -lXpm if available, unless `--with-xpm=no'.
13225 HAVE_XPM=no
13226 if test "${HAVE_X11}" = "yes"; then
13227 if test "${with_xpm}" != "no"; then
13228 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13229 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13230 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13231 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13235 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13236 else
13237 # Is the header compilable?
13238 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13239 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 $ac_includes_default
13247 #include <X11/xpm.h>
13248 _ACEOF
13249 rm -f conftest.$ac_objext
13250 if { (ac_try="$ac_compile"
13251 case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.$ac_objext; then
13266 ac_header_compiler=yes
13267 else
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ac_header_compiler=no
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13276 echo "${ECHO_T}$ac_header_compiler" >&6; }
13278 # Is the header present?
13279 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13280 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <X11/xpm.h>
13288 _ACEOF
13289 if { (ac_try="$ac_cpp conftest.$ac_ext"
13290 case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } >/dev/null && {
13302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13303 test ! -s conftest.err
13304 }; then
13305 ac_header_preproc=yes
13306 else
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_header_preproc=no
13313 rm -f conftest.err conftest.$ac_ext
13314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13315 echo "${ECHO_T}$ac_header_preproc" >&6; }
13317 # So? What about this header?
13318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13319 yes:no: )
13320 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13321 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13323 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13324 ac_header_preproc=yes
13326 no:yes:* )
13327 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13328 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13330 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13332 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13334 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13336 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13338 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13341 esac
13342 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13343 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13344 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 ac_cv_header_X11_xpm_h=$ac_header_preproc
13349 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13350 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13353 if test $ac_cv_header_X11_xpm_h = yes; then
13354 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13355 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13356 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359 ac_check_lib_save_LIBS=$LIBS
13360 LIBS="-lXpm -lX11 $LIBS"
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h. */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13368 /* Override any GCC internal prototype to avoid an error.
13369 Use char because int might match the return type of a GCC
13370 builtin and then its argument prototype would still apply. */
13371 #ifdef __cplusplus
13372 extern "C"
13373 #endif
13374 char XpmReadFileToPixmap ();
13376 main ()
13378 return XpmReadFileToPixmap ();
13380 return 0;
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } && {
13397 test -z "$ac_c_werror_flag" ||
13398 test ! -s conftest.err
13399 } && test -s conftest$ac_exeext &&
13400 $as_test_x conftest$ac_exeext; then
13401 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13402 else
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13413 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13414 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13415 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13416 HAVE_XPM=yes
13422 if test "${HAVE_XPM}" = "yes"; then
13423 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13424 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 #include "X11/xpm.h"
13432 #ifndef XpmReturnAllocPixels
13433 no_return_alloc_pixels
13434 #endif
13436 _ACEOF
13437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13439 HAVE_XPM=no
13440 else
13441 HAVE_XPM=yes
13443 rm -f conftest*
13446 if test "${HAVE_XPM}" = "yes"; then
13447 { echo "$as_me:$LINENO: result: yes" >&5
13448 echo "${ECHO_T}yes" >&6; }
13449 else
13450 { echo "$as_me:$LINENO: result: no" >&5
13451 echo "${ECHO_T}no" >&6; }
13456 if test "${HAVE_XPM}" = "yes"; then
13458 cat >>confdefs.h <<\_ACEOF
13459 #define HAVE_XPM 1
13460 _ACEOF
13465 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13466 HAVE_JPEG=no
13467 if test "${HAVE_X11}" = "yes"; then
13468 if test "${with_jpeg}" != "no"; then
13469 if test "${ac_cv_header_jerror_h+set}" = set; then
13470 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13471 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13472 if test "${ac_cv_header_jerror_h+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13476 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13477 else
13478 # Is the header compilable?
13479 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13480 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h. */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 $ac_includes_default
13488 #include <jerror.h>
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_header_compiler=yes
13508 else
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 ac_header_compiler=no
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13517 echo "${ECHO_T}$ac_header_compiler" >&6; }
13519 # Is the header present?
13520 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13521 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13522 cat >conftest.$ac_ext <<_ACEOF
13523 /* confdefs.h. */
13524 _ACEOF
13525 cat confdefs.h >>conftest.$ac_ext
13526 cat >>conftest.$ac_ext <<_ACEOF
13527 /* end confdefs.h. */
13528 #include <jerror.h>
13529 _ACEOF
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13534 esac
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } >/dev/null && {
13543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13545 }; then
13546 ac_header_preproc=yes
13547 else
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_header_preproc=no
13554 rm -f conftest.err conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13556 echo "${ECHO_T}$ac_header_preproc" >&6; }
13558 # So? What about this header?
13559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13560 yes:no: )
13561 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13562 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13564 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13565 ac_header_preproc=yes
13567 no:yes:* )
13568 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13569 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13571 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13573 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13575 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13577 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13579 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13582 esac
13583 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13584 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13585 if test "${ac_cv_header_jerror_h+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 ac_cv_header_jerror_h=$ac_header_preproc
13590 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13591 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13594 if test $ac_cv_header_jerror_h = yes; then
13595 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13596 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13597 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 else
13600 ac_check_lib_save_LIBS=$LIBS
13601 LIBS="-ljpeg $LIBS"
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 /* Override any GCC internal prototype to avoid an error.
13610 Use char because int might match the return type of a GCC
13611 builtin and then its argument prototype would still apply. */
13612 #ifdef __cplusplus
13613 extern "C"
13614 #endif
13615 char jpeg_destroy_compress ();
13617 main ()
13619 return jpeg_destroy_compress ();
13621 return 0;
13623 _ACEOF
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (ac_try="$ac_link"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629 esac
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_link") 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest$ac_exeext &&
13641 $as_test_x conftest$ac_exeext; then
13642 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13651 conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_check_lib_save_LIBS
13654 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13655 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13656 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13657 HAVE_JPEG=yes
13666 if test "${HAVE_JPEG}" = "yes"; then
13667 cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_JPEG 1
13669 _ACEOF
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #include <jpeglib.h>
13678 version=JPEG_LIB_VERSION
13680 _ACEOF
13681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13683 cat >>confdefs.h <<\_ACEOF
13684 #define HAVE_JPEG 1
13685 _ACEOF
13687 else
13688 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13689 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13690 HAVE_JPEG=no
13692 rm -f conftest*
13697 ### Use -lpng if available, unless `--with-png=no'.
13698 HAVE_PNG=no
13699 if test "${HAVE_X11}" = "yes"; then
13700 if test "${with_png}" != "no"; then
13701 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13702 # in /usr/include/libpng.
13705 for ac_header in png.h libpng/png.h
13707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 ac_res=`eval echo '${'$as_ac_Header'}'`
13715 { echo "$as_me:$LINENO: result: $ac_res" >&5
13716 echo "${ECHO_T}$ac_res" >&6; }
13717 else
13718 # Is the header compilable?
13719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13728 #include <$ac_header>
13729 _ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (ac_try="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } && {
13744 test -z "$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 } && test -s conftest.$ac_objext; then
13747 ac_header_compiler=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_header_compiler=no
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13757 echo "${ECHO_T}$ac_header_compiler" >&6; }
13759 # Is the header present?
13760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h. */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 #include <$ac_header>
13769 _ACEOF
13770 if { (ac_try="$ac_cpp conftest.$ac_ext"
13771 case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } >/dev/null && {
13783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13785 }; then
13786 ac_header_preproc=yes
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 ac_header_preproc=no
13794 rm -f conftest.err conftest.$ac_ext
13795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13796 echo "${ECHO_T}$ac_header_preproc" >&6; }
13798 # So? What about this header?
13799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13800 yes:no: )
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13805 ac_header_preproc=yes
13807 no:yes:* )
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13822 esac
13823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828 eval "$as_ac_Header=\$ac_header_preproc"
13830 ac_res=`eval echo '${'$as_ac_Header'}'`
13831 { echo "$as_me:$LINENO: result: $ac_res" >&5
13832 echo "${ECHO_T}$ac_res" >&6; }
13835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13838 _ACEOF
13842 done
13844 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13845 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13846 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13847 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850 ac_check_lib_save_LIBS=$LIBS
13851 LIBS="-lpng -lz -lm $LIBS"
13852 cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h. */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13859 /* Override any GCC internal prototype to avoid an error.
13860 Use char because int might match the return type of a GCC
13861 builtin and then its argument prototype would still apply. */
13862 #ifdef __cplusplus
13863 extern "C"
13864 #endif
13865 char png_get_channels ();
13867 main ()
13869 return png_get_channels ();
13871 return 0;
13873 _ACEOF
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (ac_try="$ac_link"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_link") 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest$ac_exeext &&
13891 $as_test_x conftest$ac_exeext; then
13892 ac_cv_lib_png_png_get_channels=yes
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_cv_lib_png_png_get_channels=no
13900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13904 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13905 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13906 if test $ac_cv_lib_png_png_get_channels = yes; then
13907 HAVE_PNG=yes
13913 if test "${HAVE_PNG}" = "yes"; then
13915 cat >>confdefs.h <<\_ACEOF
13916 #define HAVE_PNG 1
13917 _ACEOF
13922 ### Use -ltiff if available, unless `--with-tiff=no'.
13923 HAVE_TIFF=no
13924 if test "${HAVE_X11}" = "yes"; then
13925 if test "${with_tiff}" != "no"; then
13926 if test "${ac_cv_header_tiffio_h+set}" = set; then
13927 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13928 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13929 if test "${ac_cv_header_tiffio_h+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13933 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13934 else
13935 # Is the header compilable?
13936 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13937 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 $ac_includes_default
13945 #include <tiffio.h>
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (ac_try="$ac_compile"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_compile") 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest.$ac_objext; then
13964 ac_header_compiler=yes
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13978 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h. */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <tiffio.h>
13986 _ACEOF
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } >/dev/null && {
14000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 }; then
14003 ac_header_preproc=yes
14004 else
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_header_preproc=no
14011 rm -f conftest.err conftest.$ac_ext
14012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6; }
14015 # So? What about this header?
14016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 yes:no: )
14018 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14021 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14022 ac_header_preproc=yes
14024 no:yes:* )
14025 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14026 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14028 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14030 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14032 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14034 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14036 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14039 esac
14040 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14041 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_tiffio_h+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 ac_cv_header_tiffio_h=$ac_header_preproc
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14051 if test $ac_cv_header_tiffio_h = yes; then
14052 tifflibs="-lz -lm"
14053 # At least one tiff package requires the jpeg library.
14054 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14055 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14056 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14057 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-ltiff $tifflibs $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 char TIFFGetVersion ();
14077 main ()
14079 return TIFFGetVersion ();
14081 return 0;
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
14092 ac_status=$?
14093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest$ac_exeext &&
14101 $as_test_x conftest$ac_exeext; then
14102 ac_cv_lib_tiff_TIFFGetVersion=yes
14103 else
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_cv_lib_tiff_TIFFGetVersion=no
14110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14111 conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14115 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14116 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14117 HAVE_TIFF=yes
14125 if test "${HAVE_TIFF}" = "yes"; then
14127 cat >>confdefs.h <<\_ACEOF
14128 #define HAVE_TIFF 1
14129 _ACEOF
14134 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14135 HAVE_GIF=no
14136 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14137 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14138 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14139 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14140 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14144 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14145 else
14146 # Is the header compilable?
14147 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14148 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14156 #include <gif_lib.h>
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (ac_try="$ac_compile"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_compile") 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest.$ac_objext; then
14175 ac_header_compiler=yes
14176 else
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_header_compiler=no
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14185 echo "${ECHO_T}$ac_header_compiler" >&6; }
14187 # Is the header present?
14188 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14189 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h. */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <gif_lib.h>
14197 _ACEOF
14198 if { (ac_try="$ac_cpp conftest.$ac_ext"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } >/dev/null && {
14211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 }; then
14214 ac_header_preproc=yes
14215 else
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 ac_header_preproc=no
14222 rm -f conftest.err conftest.$ac_ext
14223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14224 echo "${ECHO_T}$ac_header_preproc" >&6; }
14226 # So? What about this header?
14227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14228 yes:no: )
14229 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14230 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14232 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14233 ac_header_preproc=yes
14235 no:yes:* )
14236 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14237 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14239 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14241 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14243 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14245 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14247 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14250 esac
14251 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14252 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14253 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 ac_cv_header_gif_lib_h=$ac_header_preproc
14258 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14259 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14262 if test $ac_cv_header_gif_lib_h = yes; then
14263 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14264 # Earlier versions can crash Emacs.
14265 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14266 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14267 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270 ac_check_lib_save_LIBS=$LIBS
14271 LIBS="-lgif $LIBS"
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14282 #ifdef __cplusplus
14283 extern "C"
14284 #endif
14285 char EGifPutExtensionLast ();
14287 main ()
14289 return EGifPutExtensionLast ();
14291 return 0;
14293 _ACEOF
14294 rm -f conftest.$ac_objext conftest$ac_exeext
14295 if { (ac_try="$ac_link"
14296 case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_link") 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } && {
14308 test -z "$ac_c_werror_flag" ||
14309 test ! -s conftest.err
14310 } && test -s conftest$ac_exeext &&
14311 $as_test_x conftest$ac_exeext; then
14312 ac_cv_lib_gif_EGifPutExtensionLast=yes
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 ac_cv_lib_gif_EGifPutExtensionLast=no
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321 conftest$ac_exeext conftest.$ac_ext
14322 LIBS=$ac_check_lib_save_LIBS
14324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14325 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14326 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14327 HAVE_GIF=yes
14328 else
14329 try_libungif=yes
14336 if test "$HAVE_GIF" = yes; then
14337 ac_gif_lib_name="-lgif"
14340 # If gif_lib.h but no libgif, try libungif.
14341 if test x"$try_libungif" = xyes; then
14342 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14343 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14344 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 ac_check_lib_save_LIBS=$LIBS
14348 LIBS="-lungif $LIBS"
14349 cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h. */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14359 #ifdef __cplusplus
14360 extern "C"
14361 #endif
14362 char EGifPutExtensionLast ();
14364 main ()
14366 return EGifPutExtensionLast ();
14368 return 0;
14370 _ACEOF
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (ac_try="$ac_link"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_link") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext &&
14388 $as_test_x conftest$ac_exeext; then
14389 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_cv_lib_ungif_EGifPutExtensionLast=no
14397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14398 conftest$ac_exeext conftest.$ac_ext
14399 LIBS=$ac_check_lib_save_LIBS
14401 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14402 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14403 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14404 HAVE_GIF=yes
14408 if test "$HAVE_GIF" = yes; then
14410 cat >>confdefs.h <<\_ACEOF
14411 #define LIBGIF -lungif
14412 _ACEOF
14414 ac_gif_lib_name="-lungif"
14418 if test "${HAVE_GIF}" = "yes"; then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define HAVE_GIF 1
14422 _ACEOF
14427 if test "${HAVE_X11}" = "yes"; then
14428 MISSING=""
14429 WITH_NO=""
14430 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14431 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14432 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14433 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14434 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14435 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14436 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14437 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14438 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14439 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14441 if test "X${MISSING}" != X; then
14442 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14443 $MISSING
14444 Maybe some development libraries/packages are missing?
14445 If you don't want to link with them give
14446 $WITH_NO
14447 as options to configure" >&5
14448 echo "$as_me: error: The following required libraries were not found:
14449 $MISSING
14450 Maybe some development libraries/packages are missing?
14451 If you don't want to link with them give
14452 $WITH_NO
14453 as options to configure" >&2;}
14454 { (exit 1); exit 1; }; }
14458 ### Use -lgpm if available, unless `--with-gpm=no'.
14459 HAVE_GPM=no
14460 if test "${with_gpm}" != "no"; then
14461 if test "${ac_cv_header_gpm_h+set}" = set; then
14462 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14463 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14464 if test "${ac_cv_header_gpm_h+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14468 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14469 else
14470 # Is the header compilable?
14471 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14472 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14480 #include <gpm.h>
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14487 esac
14488 eval "echo \"\$as_me:$LINENO: $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 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 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 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 echo "${ECHO_T}$ac_header_compiler" >&6; }
14511 # Is the header present?
14512 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14513 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&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 <gpm.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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev/null && {
14535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14536 test ! -s conftest.err
14537 }; then
14538 ac_header_preproc=yes
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_header_preproc=no
14546 rm -f conftest.err conftest.$ac_ext
14547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14548 echo "${ECHO_T}$ac_header_preproc" >&6; }
14550 # So? What about this header?
14551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14552 yes:no: )
14553 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14554 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14556 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14557 ac_header_preproc=yes
14559 no:yes:* )
14560 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14561 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14563 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14565 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14567 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14569 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14571 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14574 esac
14575 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14576 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14577 if test "${ac_cv_header_gpm_h+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580 ac_cv_header_gpm_h=$ac_header_preproc
14582 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14583 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14586 if test $ac_cv_header_gpm_h = yes; then
14587 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14588 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14589 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592 ac_check_lib_save_LIBS=$LIBS
14593 LIBS="-lgpm $LIBS"
14594 cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h. */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14601 /* Override any GCC internal prototype to avoid an error.
14602 Use char because int might match the return type of a GCC
14603 builtin and then its argument prototype would still apply. */
14604 #ifdef __cplusplus
14605 extern "C"
14606 #endif
14607 char Gpm_Open ();
14609 main ()
14611 return Gpm_Open ();
14613 return 0;
14615 _ACEOF
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (ac_try="$ac_link"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_link") 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest$ac_exeext &&
14633 $as_test_x conftest$ac_exeext; then
14634 ac_cv_lib_gpm_Gpm_Open=yes
14635 else
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ac_cv_lib_gpm_Gpm_Open=no
14642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14643 conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14646 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14647 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14648 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14649 HAVE_GPM=yes
14657 if test "${HAVE_GPM}" = "yes"; then
14659 cat >>confdefs.h <<\_ACEOF
14660 #define HAVE_GPM 1
14661 _ACEOF
14665 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14666 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14667 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14668 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14672 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14673 else
14674 # Is the header compilable?
14675 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14676 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h. */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 $ac_includes_default
14684 #include <malloc/malloc.h>
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (ac_try="$ac_compile"
14688 case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14691 esac
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_compile") 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } && {
14700 test -z "$ac_c_werror_flag" ||
14701 test ! -s conftest.err
14702 } && test -s conftest.$ac_objext; then
14703 ac_header_compiler=yes
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_header_compiler=no
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14713 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715 # Is the header present?
14716 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14717 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h. */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 #include <malloc/malloc.h>
14725 _ACEOF
14726 if { (ac_try="$ac_cpp conftest.$ac_ext"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } >/dev/null && {
14739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 }; then
14742 ac_header_preproc=yes
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_header_preproc=no
14750 rm -f conftest.err conftest.$ac_ext
14751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14752 echo "${ECHO_T}$ac_header_preproc" >&6; }
14754 # So? What about this header?
14755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14756 yes:no: )
14757 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14758 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14760 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14761 ac_header_preproc=yes
14763 no:yes:* )
14764 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14765 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14767 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14768 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14769 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14770 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14771 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14773 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14775 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14778 esac
14779 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14780 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14781 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14786 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14787 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14790 if test $ac_cv_header_malloc_malloc_h = yes; then
14792 cat >>confdefs.h <<\_ACEOF
14793 #define HAVE_MALLOC_MALLOC_H 1
14794 _ACEOF
14800 ### Use Mac OS X Carbon API to implement GUI.
14801 if test "${HAVE_CARBON}" = "yes"; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_CARBON 1
14805 _ACEOF
14807 ## Specify the install directory
14808 carbon_appdir=
14809 if test "${carbon_appdir_x}" != ""; then
14810 case ${carbon_appdir_x} in
14811 y | ye | yes) carbon_appdir=/Applications ;;
14812 * ) carbon_appdir=${carbon_appdir_x} ;;
14813 esac
14815 # We also have mouse menus.
14816 HAVE_MENUS=yes
14819 ### Use session management (-lSM -lICE) if available
14820 HAVE_X_SM=no
14821 if test "${HAVE_X11}" = "yes"; then
14822 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14823 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14824 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14825 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14829 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14830 else
14831 # Is the header compilable?
14832 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14833 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 $ac_includes_default
14841 #include <X11/SM/SMlib.h>
14842 _ACEOF
14843 rm -f conftest.$ac_objext
14844 if { (ac_try="$ac_compile"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_compile") 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && {
14857 test -z "$ac_c_werror_flag" ||
14858 test ! -s conftest.err
14859 } && test -s conftest.$ac_objext; then
14860 ac_header_compiler=yes
14861 else
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_header_compiler=no
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14870 echo "${ECHO_T}$ac_header_compiler" >&6; }
14872 # Is the header present?
14873 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14874 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 #include <X11/SM/SMlib.h>
14882 _ACEOF
14883 if { (ac_try="$ac_cpp conftest.$ac_ext"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } >/dev/null && {
14896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 }; then
14899 ac_header_preproc=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_header_preproc=no
14907 rm -f conftest.err conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14909 echo "${ECHO_T}$ac_header_preproc" >&6; }
14911 # So? What about this header?
14912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14913 yes:no: )
14914 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14915 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14917 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14918 ac_header_preproc=yes
14920 no:yes:* )
14921 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14922 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14924 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14926 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14928 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14930 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14932 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14935 esac
14936 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14937 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14938 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14943 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14944 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14947 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14948 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14949 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14950 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953 ac_check_lib_save_LIBS=$LIBS
14954 LIBS="-lSM -lICE $LIBS"
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965 #ifdef __cplusplus
14966 extern "C"
14967 #endif
14968 char SmcOpenConnection ();
14970 main ()
14972 return SmcOpenConnection ();
14974 return 0;
14976 _ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest$ac_exeext &&
14994 $as_test_x conftest$ac_exeext; then
14995 ac_cv_lib_SM_SmcOpenConnection=yes
14996 else
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ac_cv_lib_SM_SmcOpenConnection=no
15003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15004 conftest$ac_exeext conftest.$ac_ext
15005 LIBS=$ac_check_lib_save_LIBS
15007 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15008 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15009 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15010 HAVE_X_SM=yes
15017 if test "${HAVE_X_SM}" = "yes"; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_X_SM 1
15021 _ACEOF
15023 case "$LIBS" in
15024 *-lSM*) ;;
15025 *) LIBS="-lSM -lICE $LIBS" ;;
15026 esac
15030 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15031 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15032 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15033 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <netdb.h>
15044 main ()
15046 return h_errno;
15048 return 0;
15050 _ACEOF
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext &&
15068 $as_test_x conftest$ac_exeext; then
15069 emacs_cv_netdb_declares_h_errno=yes
15070 else
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 emacs_cv_netdb_declares_h_errno=no
15077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15078 conftest$ac_exeext conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15081 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15082 if test $emacs_cv_netdb_declares_h_errno = yes; then
15084 cat >>confdefs.h <<\_ACEOF
15085 #define HAVE_H_ERRNO 1
15086 _ACEOF
15090 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15091 # for constant arguments. Useless!
15092 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15093 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15094 if test "${ac_cv_working_alloca_h+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 #include <alloca.h>
15105 main ()
15107 char *p = (char *) alloca (2 * sizeof (int));
15108 if (p) return 0;
15110 return 0;
15112 _ACEOF
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (ac_try="$ac_link"
15115 case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118 esac
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_link") 2>conftest.er1
15121 ac_status=$?
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } && {
15127 test -z "$ac_c_werror_flag" ||
15128 test ! -s conftest.err
15129 } && test -s conftest$ac_exeext &&
15130 $as_test_x conftest$ac_exeext; then
15131 ac_cv_working_alloca_h=yes
15132 else
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15136 ac_cv_working_alloca_h=no
15139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15140 conftest$ac_exeext conftest.$ac_ext
15142 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15143 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15144 if test $ac_cv_working_alloca_h = yes; then
15146 cat >>confdefs.h <<\_ACEOF
15147 #define HAVE_ALLOCA_H 1
15148 _ACEOF
15152 { echo "$as_me:$LINENO: checking for alloca" >&5
15153 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15154 if test "${ac_cv_func_alloca_works+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h. */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 #ifdef __GNUC__
15164 # define alloca __builtin_alloca
15165 #else
15166 # ifdef _MSC_VER
15167 # include <malloc.h>
15168 # define alloca _alloca
15169 # else
15170 # ifdef HAVE_ALLOCA_H
15171 # include <alloca.h>
15172 # else
15173 # ifdef _AIX
15174 #pragma alloca
15175 # else
15176 # ifndef alloca /* predefined by HP cc +Olibcalls */
15177 char *alloca ();
15178 # endif
15179 # endif
15180 # endif
15181 # endif
15182 #endif
15185 main ()
15187 char *p = (char *) alloca (1);
15188 if (p) return 0;
15190 return 0;
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (ac_try="$ac_link"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_link") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest$ac_exeext &&
15210 $as_test_x conftest$ac_exeext; then
15211 ac_cv_func_alloca_works=yes
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_cv_func_alloca_works=no
15219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15220 conftest$ac_exeext conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15223 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15225 if test $ac_cv_func_alloca_works = yes; then
15227 cat >>confdefs.h <<\_ACEOF
15228 #define HAVE_ALLOCA 1
15229 _ACEOF
15231 else
15232 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15233 # that cause trouble. Some versions do not even contain alloca or
15234 # contain a buggy version. If you still want to use their alloca,
15235 # use ar to extract alloca.o from them instead of compiling alloca.c.
15237 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15239 cat >>confdefs.h <<\_ACEOF
15240 #define C_ALLOCA 1
15241 _ACEOF
15244 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15245 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15246 if test "${ac_cv_os_cray+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h. */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 #if defined CRAY && ! defined CRAY2
15256 webecray
15257 #else
15258 wenotbecray
15259 #endif
15261 _ACEOF
15262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15263 $EGREP "webecray" >/dev/null 2>&1; then
15264 ac_cv_os_cray=yes
15265 else
15266 ac_cv_os_cray=no
15268 rm -f conftest*
15271 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15272 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15273 if test $ac_cv_os_cray = yes; then
15274 for ac_func in _getb67 GETB67 getb67; do
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15296 #ifdef __STDC__
15297 # include <limits.h>
15298 #else
15299 # include <assert.h>
15300 #endif
15302 #undef $ac_func
15304 /* Override any GCC internal prototype to avoid an error.
15305 Use char because int might match the return type of a GCC
15306 builtin and then its argument prototype would still apply. */
15307 #ifdef __cplusplus
15308 extern "C"
15309 #endif
15310 char $ac_func ();
15311 /* The GNU C library defines this for functions which it implements
15312 to always fail with ENOSYS. Some functions are actually named
15313 something starting with __ and the normal name is an alias. */
15314 #if defined __stub_$ac_func || defined __stub___$ac_func
15315 choke me
15316 #endif
15319 main ()
15321 return $ac_func ();
15323 return 0;
15325 _ACEOF
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_link") 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest$ac_exeext &&
15343 $as_test_x conftest$ac_exeext; then
15344 eval "$as_ac_var=yes"
15345 else
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 eval "$as_ac_var=no"
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353 conftest$ac_exeext conftest.$ac_ext
15355 ac_res=`eval echo '${'$as_ac_var'}'`
15356 { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15358 if test `eval echo '${'$as_ac_var'}'` = yes; then
15360 cat >>confdefs.h <<_ACEOF
15361 #define CRAY_STACKSEG_END $ac_func
15362 _ACEOF
15364 break
15367 done
15370 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15371 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15372 if test "${ac_cv_c_stack_direction+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375 if test "$cross_compiling" = yes; then
15376 ac_cv_c_stack_direction=0
15377 else
15378 cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h. */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 $ac_includes_default
15386 find_stack_direction ()
15388 static char *addr = 0;
15389 auto char dummy;
15390 if (addr == 0)
15392 addr = &dummy;
15393 return find_stack_direction ();
15395 else
15396 return (&dummy > addr) ? 1 : -1;
15400 main ()
15402 return find_stack_direction () < 0;
15404 _ACEOF
15405 rm -f conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_cv_c_stack_direction=1
15426 else
15427 echo "$as_me: program exited with status $ac_status" >&5
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ( exit $ac_status )
15432 ac_cv_c_stack_direction=-1
15434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15439 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15440 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15442 cat >>confdefs.h <<_ACEOF
15443 #define STACK_DIRECTION $ac_cv_c_stack_direction
15444 _ACEOF
15450 if test x"$ac_cv_func_alloca_works" != xyes; then
15451 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15452 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15453 { (exit 1); exit 1; }; }
15456 # fmod, logb, and frexp are found in -lm on most systems.
15457 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15459 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15460 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15461 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464 ac_check_lib_save_LIBS=$LIBS
15465 LIBS="-lm $LIBS"
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h. */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15476 #ifdef __cplusplus
15477 extern "C"
15478 #endif
15479 char sqrt ();
15481 main ()
15483 return sqrt ();
15485 return 0;
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (ac_try="$ac_link"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_link") 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest$ac_exeext &&
15505 $as_test_x conftest$ac_exeext; then
15506 ac_cv_lib_m_sqrt=yes
15507 else
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_cv_lib_m_sqrt=no
15514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15518 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15519 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15520 if test $ac_cv_lib_m_sqrt = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define HAVE_LIBM 1
15523 _ACEOF
15525 LIBS="-lm $LIBS"
15530 # Check for mail-locking functions in a "mail" library. Probably this should
15531 # have the same check as for liblockfile below.
15533 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15534 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15535 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538 ac_check_lib_save_LIBS=$LIBS
15539 LIBS="-lmail $LIBS"
15540 cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h. */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15547 /* Override any GCC internal prototype to avoid an error.
15548 Use char because int might match the return type of a GCC
15549 builtin and then its argument prototype would still apply. */
15550 #ifdef __cplusplus
15551 extern "C"
15552 #endif
15553 char maillock ();
15555 main ()
15557 return maillock ();
15559 return 0;
15561 _ACEOF
15562 rm -f conftest.$ac_objext conftest$ac_exeext
15563 if { (ac_try="$ac_link"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_link") 2>conftest.er1
15570 ac_status=$?
15571 grep -v '^ *+' conftest.er1 >conftest.err
15572 rm -f conftest.er1
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } && {
15576 test -z "$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15578 } && test -s conftest$ac_exeext &&
15579 $as_test_x conftest$ac_exeext; then
15580 ac_cv_lib_mail_maillock=yes
15581 else
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 ac_cv_lib_mail_maillock=no
15588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15589 conftest$ac_exeext conftest.$ac_ext
15590 LIBS=$ac_check_lib_save_LIBS
15592 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15593 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15594 if test $ac_cv_lib_mail_maillock = yes; then
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_LIBMAIL 1
15597 _ACEOF
15599 LIBS="-lmail $LIBS"
15604 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15605 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15606 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609 ac_check_lib_save_LIBS=$LIBS
15610 LIBS="-llockfile $LIBS"
15611 cat >conftest.$ac_ext <<_ACEOF
15612 /* confdefs.h. */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15618 /* Override any GCC internal prototype to avoid an error.
15619 Use char because int might match the return type of a GCC
15620 builtin and then its argument prototype would still apply. */
15621 #ifdef __cplusplus
15622 extern "C"
15623 #endif
15624 char maillock ();
15626 main ()
15628 return maillock ();
15630 return 0;
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_link") 2>conftest.er1
15641 ac_status=$?
15642 grep -v '^ *+' conftest.er1 >conftest.err
15643 rm -f conftest.er1
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest$ac_exeext &&
15650 $as_test_x conftest$ac_exeext; then
15651 ac_cv_lib_lockfile_maillock=yes
15652 else
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_cv_lib_lockfile_maillock=no
15659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15660 conftest$ac_exeext conftest.$ac_ext
15661 LIBS=$ac_check_lib_save_LIBS
15663 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15664 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15665 if test $ac_cv_lib_lockfile_maillock = yes; then
15666 cat >>confdefs.h <<_ACEOF
15667 #define HAVE_LIBLOCKFILE 1
15668 _ACEOF
15670 LIBS="-llockfile $LIBS"
15674 # If we have the shared liblockfile, assume we must use it for mail
15675 # locking (e.g. Debian). If we couldn't link against liblockfile
15676 # (no liblockfile.a installed), ensure that we don't need to.
15677 if test "$ac_cv_lib_lockfile_maillock" = no; then
15678 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15679 set dummy liblockfile.so; ac_word=$2
15680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15682 if test "${ac_cv_prog_liblockfile+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 if test -n "$liblockfile"; then
15686 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15687 else
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15690 for as_dir in $as_dummy
15692 IFS=$as_save_IFS
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15696 ac_cv_prog_liblockfile="yes"
15697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15698 break 2
15700 done
15701 done
15702 IFS=$as_save_IFS
15704 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15707 liblockfile=$ac_cv_prog_liblockfile
15708 if test -n "$liblockfile"; then
15709 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15710 echo "${ECHO_T}$liblockfile" >&6; }
15711 else
15712 { echo "$as_me:$LINENO: result: no" >&5
15713 echo "${ECHO_T}no" >&6; }
15717 if test $ac_cv_prog_liblockfile = yes; then
15718 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15719 This probably means that movemail could lose mail.
15720 There may be a \`development' package to install containing liblockfile." >&5
15721 echo "$as_me: error: Shared liblockfile found but can't link against it.
15722 This probably means that movemail could lose mail.
15723 There may be a \`development' package to install containing liblockfile." >&2;}
15724 { (exit 1); exit 1; }; }
15725 else :
15729 for ac_func in touchlock
15731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737 cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h. */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15745 #define $ac_func innocuous_$ac_func
15747 /* System header to define __stub macros and hopefully few prototypes,
15748 which can conflict with char $ac_func (); below.
15749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15750 <limits.h> exists even on freestanding compilers. */
15752 #ifdef __STDC__
15753 # include <limits.h>
15754 #else
15755 # include <assert.h>
15756 #endif
15758 #undef $ac_func
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15763 #ifdef __cplusplus
15764 extern "C"
15765 #endif
15766 char $ac_func ();
15767 /* The GNU C library defines this for functions which it implements
15768 to always fail with ENOSYS. Some functions are actually named
15769 something starting with __ and the normal name is an alias. */
15770 #if defined __stub_$ac_func || defined __stub___$ac_func
15771 choke me
15772 #endif
15775 main ()
15777 return $ac_func ();
15779 return 0;
15781 _ACEOF
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (ac_try="$ac_link"
15784 case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787 esac
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_link") 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } && {
15796 test -z "$ac_c_werror_flag" ||
15797 test ! -s conftest.err
15798 } && test -s conftest$ac_exeext &&
15799 $as_test_x conftest$ac_exeext; then
15800 eval "$as_ac_var=yes"
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 eval "$as_ac_var=no"
15808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15809 conftest$ac_exeext conftest.$ac_ext
15811 ac_res=`eval echo '${'$as_ac_var'}'`
15812 { echo "$as_me:$LINENO: result: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15814 if test `eval echo '${'$as_ac_var'}'` = yes; then
15815 cat >>confdefs.h <<_ACEOF
15816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15817 _ACEOF
15820 done
15823 for ac_header in maillock.h
15825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 ac_res=`eval echo '${'$as_ac_Header'}'`
15833 { echo "$as_me:$LINENO: result: $ac_res" >&5
15834 echo "${ECHO_T}$ac_res" >&6; }
15835 else
15836 # Is the header compilable?
15837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 $ac_includes_default
15846 #include <$ac_header>
15847 _ACEOF
15848 rm -f conftest.$ac_objext
15849 if { (ac_try="$ac_compile"
15850 case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_compile") 2>conftest.er1
15856 ac_status=$?
15857 grep -v '^ *+' conftest.er1 >conftest.err
15858 rm -f conftest.er1
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } && {
15862 test -z "$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15864 } && test -s conftest.$ac_objext; then
15865 ac_header_compiler=yes
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_compiler=no
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875 echo "${ECHO_T}$ac_header_compiler" >&6; }
15877 # Is the header present?
15878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h. */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <$ac_header>
15887 _ACEOF
15888 if { (ac_try="$ac_cpp conftest.$ac_ext"
15889 case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15892 esac
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } >/dev/null && {
15901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15902 test ! -s conftest.err
15903 }; then
15904 ac_header_preproc=yes
15905 else
15906 echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15909 ac_header_preproc=no
15912 rm -f conftest.err conftest.$ac_ext
15913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15914 echo "${ECHO_T}$ac_header_preproc" >&6; }
15916 # So? What about this header?
15917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15918 yes:no: )
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15923 ac_header_preproc=yes
15925 no:yes:* )
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15940 esac
15941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 else
15946 eval "$as_ac_Header=\$ac_header_preproc"
15948 ac_res=`eval echo '${'$as_ac_Header'}'`
15949 { echo "$as_me:$LINENO: result: $ac_res" >&5
15950 echo "${ECHO_T}$ac_res" >&6; }
15953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15954 cat >>confdefs.h <<_ACEOF
15955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15956 _ACEOF
15960 done
16031 for ac_func in gethostname getdomainname dup2 \
16032 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16033 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16034 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16035 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16036 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16037 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16038 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16039 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16055 #define $ac_func innocuous_$ac_func
16057 /* System header to define __stub macros and hopefully few prototypes,
16058 which can conflict with char $ac_func (); below.
16059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16060 <limits.h> exists even on freestanding compilers. */
16062 #ifdef __STDC__
16063 # include <limits.h>
16064 #else
16065 # include <assert.h>
16066 #endif
16068 #undef $ac_func
16070 /* Override any GCC internal prototype to avoid an error.
16071 Use char because int might match the return type of a GCC
16072 builtin and then its argument prototype would still apply. */
16073 #ifdef __cplusplus
16074 extern "C"
16075 #endif
16076 char $ac_func ();
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined __stub_$ac_func || defined __stub___$ac_func
16081 choke me
16082 #endif
16085 main ()
16087 return $ac_func ();
16089 return 0;
16091 _ACEOF
16092 rm -f conftest.$ac_objext conftest$ac_exeext
16093 if { (ac_try="$ac_link"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_link") 2>conftest.er1
16100 ac_status=$?
16101 grep -v '^ *+' conftest.er1 >conftest.err
16102 rm -f conftest.er1
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && {
16106 test -z "$ac_c_werror_flag" ||
16107 test ! -s conftest.err
16108 } && test -s conftest$ac_exeext &&
16109 $as_test_x conftest$ac_exeext; then
16110 eval "$as_ac_var=yes"
16111 else
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 eval "$as_ac_var=no"
16118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16119 conftest$ac_exeext conftest.$ac_ext
16121 ac_res=`eval echo '${'$as_ac_var'}'`
16122 { echo "$as_me:$LINENO: result: $ac_res" >&5
16123 echo "${ECHO_T}$ac_res" >&6; }
16124 if test `eval echo '${'$as_ac_var'}'` = yes; then
16125 cat >>confdefs.h <<_ACEOF
16126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16127 _ACEOF
16130 done
16134 for ac_header in sys/un.h
16136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16146 else
16147 # Is the header compilable?
16148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $ac_includes_default
16157 #include <$ac_header>
16158 _ACEOF
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_compile") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } && {
16173 test -z "$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 } && test -s conftest.$ac_objext; then
16176 ac_header_compiler=yes
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_compiler=no
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16186 echo "${ECHO_T}$ac_header_compiler" >&6; }
16188 # Is the header present?
16189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h. */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <$ac_header>
16198 _ACEOF
16199 if { (ac_try="$ac_cpp conftest.$ac_ext"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } >/dev/null && {
16212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 }; then
16215 ac_header_preproc=yes
16216 else
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_preproc=no
16223 rm -f conftest.err conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16225 echo "${ECHO_T}$ac_header_preproc" >&6; }
16227 # So? What about this header?
16228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16229 yes:no: )
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16234 ac_header_preproc=yes
16236 no:yes:* )
16237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16251 esac
16252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 eval "$as_ac_Header=\$ac_header_preproc"
16259 ac_res=`eval echo '${'$as_ac_Header'}'`
16260 { echo "$as_me:$LINENO: result: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16265 cat >>confdefs.h <<_ACEOF
16266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16267 _ACEOF
16271 done
16278 for ac_header in $ac_header_list
16280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 ac_res=`eval echo '${'$as_ac_Header'}'`
16288 { echo "$as_me:$LINENO: result: $ac_res" >&5
16289 echo "${ECHO_T}$ac_res" >&6; }
16290 else
16291 # Is the header compilable?
16292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 $ac_includes_default
16301 #include <$ac_header>
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16320 ac_header_compiler=yes
16321 else
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_compiler=no
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16330 echo "${ECHO_T}$ac_header_compiler" >&6; }
16332 # Is the header present?
16333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 #include <$ac_header>
16342 _ACEOF
16343 if { (ac_try="$ac_cpp conftest.$ac_ext"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } >/dev/null && {
16356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16357 test ! -s conftest.err
16358 }; then
16359 ac_header_preproc=yes
16360 else
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_header_preproc=no
16367 rm -f conftest.err conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6; }
16371 # So? What about this header?
16372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373 yes:no: )
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16378 ac_header_preproc=yes
16380 no:yes:* )
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16395 esac
16396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401 eval "$as_ac_Header=\$ac_header_preproc"
16403 ac_res=`eval echo '${'$as_ac_Header'}'`
16404 { echo "$as_me:$LINENO: result: $ac_res" >&5
16405 echo "${ECHO_T}$ac_res" >&6; }
16408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16409 cat >>confdefs.h <<_ACEOF
16410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16411 _ACEOF
16415 done
16425 for ac_func in $ac_func_list
16427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16428 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h. */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16441 #define $ac_func innocuous_$ac_func
16443 /* System header to define __stub macros and hopefully few prototypes,
16444 which can conflict with char $ac_func (); below.
16445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16446 <limits.h> exists even on freestanding compilers. */
16448 #ifdef __STDC__
16449 # include <limits.h>
16450 #else
16451 # include <assert.h>
16452 #endif
16454 #undef $ac_func
16456 /* Override any GCC internal prototype to avoid an error.
16457 Use char because int might match the return type of a GCC
16458 builtin and then its argument prototype would still apply. */
16459 #ifdef __cplusplus
16460 extern "C"
16461 #endif
16462 char $ac_func ();
16463 /* The GNU C library defines this for functions which it implements
16464 to always fail with ENOSYS. Some functions are actually named
16465 something starting with __ and the normal name is an alias. */
16466 #if defined __stub_$ac_func || defined __stub___$ac_func
16467 choke me
16468 #endif
16471 main ()
16473 return $ac_func ();
16475 return 0;
16477 _ACEOF
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (ac_try="$ac_link"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_link") 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } && {
16492 test -z "$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 } && test -s conftest$ac_exeext &&
16495 $as_test_x conftest$ac_exeext; then
16496 eval "$as_ac_var=yes"
16497 else
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 eval "$as_ac_var=no"
16504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16505 conftest$ac_exeext conftest.$ac_ext
16507 ac_res=`eval echo '${'$as_ac_var'}'`
16508 { echo "$as_me:$LINENO: result: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16510 if test `eval echo '${'$as_ac_var'}'` = yes; then
16511 cat >>confdefs.h <<_ACEOF
16512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16513 _ACEOF
16516 done
16534 { echo "$as_me:$LINENO: checking for working mktime" >&5
16535 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16536 if test "${ac_cv_func_working_mktime+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539 if test "$cross_compiling" = yes; then
16540 ac_cv_func_working_mktime=no
16541 else
16542 cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h. */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 /* Test program from Paul Eggert and Tony Leneis. */
16549 #ifdef TIME_WITH_SYS_TIME
16550 # include <sys/time.h>
16551 # include <time.h>
16552 #else
16553 # ifdef HAVE_SYS_TIME_H
16554 # include <sys/time.h>
16555 # else
16556 # include <time.h>
16557 # endif
16558 #endif
16560 #include <stdlib.h>
16562 #ifdef HAVE_UNISTD_H
16563 # include <unistd.h>
16564 #endif
16566 #ifndef HAVE_ALARM
16567 # define alarm(X) /* empty */
16568 #endif
16570 /* Work around redefinition to rpl_putenv by other config tests. */
16571 #undef putenv
16573 static time_t time_t_max;
16574 static time_t time_t_min;
16576 /* Values we'll use to set the TZ environment variable. */
16577 static char *tz_strings[] = {
16578 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16579 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16581 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16583 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16584 Based on a problem report from Andreas Jaeger. */
16585 static int
16586 spring_forward_gap ()
16588 /* glibc (up to about 1998-10-07) failed this test. */
16589 struct tm tm;
16591 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16592 instead of "TZ=America/Vancouver" in order to detect the bug even
16593 on systems that don't support the Olson extension, or don't have the
16594 full zoneinfo tables installed. */
16595 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16597 tm.tm_year = 98;
16598 tm.tm_mon = 3;
16599 tm.tm_mday = 5;
16600 tm.tm_hour = 2;
16601 tm.tm_min = 0;
16602 tm.tm_sec = 0;
16603 tm.tm_isdst = -1;
16604 return mktime (&tm) != (time_t) -1;
16607 static int
16608 mktime_test1 (now)
16609 time_t now;
16611 struct tm *lt;
16612 return ! (lt = localtime (&now)) || mktime (lt) == now;
16615 static int
16616 mktime_test (now)
16617 time_t now;
16619 return (mktime_test1 (now)
16620 && mktime_test1 ((time_t) (time_t_max - now))
16621 && mktime_test1 ((time_t) (time_t_min + now)));
16624 static int
16625 irix_6_4_bug ()
16627 /* Based on code from Ariel Faigon. */
16628 struct tm tm;
16629 tm.tm_year = 96;
16630 tm.tm_mon = 3;
16631 tm.tm_mday = 0;
16632 tm.tm_hour = 0;
16633 tm.tm_min = 0;
16634 tm.tm_sec = 0;
16635 tm.tm_isdst = -1;
16636 mktime (&tm);
16637 return tm.tm_mon == 2 && tm.tm_mday == 31;
16640 static int
16641 bigtime_test (j)
16642 int j;
16644 struct tm tm;
16645 time_t now;
16646 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16647 now = mktime (&tm);
16648 if (now != (time_t) -1)
16650 struct tm *lt = localtime (&now);
16651 if (! (lt
16652 && lt->tm_year == tm.tm_year
16653 && lt->tm_mon == tm.tm_mon
16654 && lt->tm_mday == tm.tm_mday
16655 && lt->tm_hour == tm.tm_hour
16656 && lt->tm_min == tm.tm_min
16657 && lt->tm_sec == tm.tm_sec
16658 && lt->tm_yday == tm.tm_yday
16659 && lt->tm_wday == tm.tm_wday
16660 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16661 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16662 return 0;
16664 return 1;
16667 static int
16668 year_2050_test ()
16670 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16671 ignoring leap seconds. */
16672 unsigned long int answer = 2527315200UL;
16674 struct tm tm;
16675 time_t t;
16676 tm.tm_year = 2050 - 1900;
16677 tm.tm_mon = 2 - 1;
16678 tm.tm_mday = 1;
16679 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16680 tm.tm_isdst = -1;
16682 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16683 instead of "TZ=America/Vancouver" in order to detect the bug even
16684 on systems that don't support the Olson extension, or don't have the
16685 full zoneinfo tables installed. */
16686 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16688 t = mktime (&tm);
16690 /* Check that the result is either a failure, or close enough
16691 to the correct answer that we can assume the discrepancy is
16692 due to leap seconds. */
16693 return (t == (time_t) -1
16694 || (0 < t && answer - 120 <= t && t <= answer + 120));
16698 main ()
16700 time_t t, delta;
16701 int i, j;
16703 /* This test makes some buggy mktime implementations loop.
16704 Give up after 60 seconds; a mktime slower than that
16705 isn't worth using anyway. */
16706 alarm (60);
16708 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16709 continue;
16710 time_t_max--;
16711 if ((time_t) -1 < 0)
16712 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16713 continue;
16714 delta = time_t_max / 997; /* a suitable prime number */
16715 for (i = 0; i < N_STRINGS; i++)
16717 if (tz_strings[i])
16718 putenv (tz_strings[i]);
16720 for (t = 0; t <= time_t_max - delta; t += delta)
16721 if (! mktime_test (t))
16722 return 1;
16723 if (! (mktime_test ((time_t) 1)
16724 && mktime_test ((time_t) (60 * 60))
16725 && mktime_test ((time_t) (60 * 60 * 24))))
16726 return 1;
16728 for (j = 1; 0 < j; j *= 2)
16729 if (! bigtime_test (j))
16730 return 1;
16731 if (! bigtime_test (j - 1))
16732 return 1;
16734 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16736 _ACEOF
16737 rm -f conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16748 { (case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_try") 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_func_working_mktime=yes
16758 else
16759 echo "$as_me: program exited with status $ac_status" >&5
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ( exit $ac_status )
16764 ac_cv_func_working_mktime=no
16766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16771 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16772 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16773 if test $ac_cv_func_working_mktime = no; then
16774 case " $LIBOBJS " in
16775 *" mktime.$ac_objext "* ) ;;
16776 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16778 esac
16782 if test "$ac_cv_func_working_mktime" = no; then
16784 cat >>confdefs.h <<\_ACEOF
16785 #define BROKEN_MKTIME 1
16786 _ACEOF
16790 ac_have_func=no # yes means we've found a way to get the load average.
16792 # Make sure getloadavg.c is where it belongs, at configure-time.
16793 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16794 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16795 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16796 { (exit 1); exit 1; }; }
16798 ac_save_LIBS=$LIBS
16800 # Check for getloadavg, but be sure not to touch the cache variable.
16801 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16802 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16803 if test "${ac_cv_func_getloadavg+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806 cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h. */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16814 #define getloadavg innocuous_getloadavg
16816 /* System header to define __stub macros and hopefully few prototypes,
16817 which can conflict with char getloadavg (); below.
16818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819 <limits.h> exists even on freestanding compilers. */
16821 #ifdef __STDC__
16822 # include <limits.h>
16823 #else
16824 # include <assert.h>
16825 #endif
16827 #undef getloadavg
16829 /* Override any GCC internal prototype to avoid an error.
16830 Use char because int might match the return type of a GCC
16831 builtin and then its argument prototype would still apply. */
16832 #ifdef __cplusplus
16833 extern "C"
16834 #endif
16835 char getloadavg ();
16836 /* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839 #if defined __stub_getloadavg || defined __stub___getloadavg
16840 choke me
16841 #endif
16844 main ()
16846 return getloadavg ();
16848 return 0;
16850 _ACEOF
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } && {
16865 test -z "$ac_c_werror_flag" ||
16866 test ! -s conftest.err
16867 } && test -s conftest$ac_exeext &&
16868 $as_test_x conftest$ac_exeext; then
16869 ac_cv_func_getloadavg=yes
16870 else
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 ac_cv_func_getloadavg=no
16877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16878 conftest$ac_exeext conftest.$ac_ext
16880 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16881 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16882 if test $ac_cv_func_getloadavg = yes; then
16883 exit 0
16884 else
16885 exit 1
16887 ) && ac_have_func=yes
16889 # On HPUX9, an unprivileged user can get load averages through this function.
16891 for ac_func in pstat_getdynamic
16893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899 cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h. */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16907 #define $ac_func innocuous_$ac_func
16909 /* System header to define __stub macros and hopefully few prototypes,
16910 which can conflict with char $ac_func (); below.
16911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16912 <limits.h> exists even on freestanding compilers. */
16914 #ifdef __STDC__
16915 # include <limits.h>
16916 #else
16917 # include <assert.h>
16918 #endif
16920 #undef $ac_func
16922 /* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
16925 #ifdef __cplusplus
16926 extern "C"
16927 #endif
16928 char $ac_func ();
16929 /* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
16932 #if defined __stub_$ac_func || defined __stub___$ac_func
16933 choke me
16934 #endif
16937 main ()
16939 return $ac_func ();
16941 return 0;
16943 _ACEOF
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (ac_try="$ac_link"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_link") 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest$ac_exeext &&
16961 $as_test_x conftest$ac_exeext; then
16962 eval "$as_ac_var=yes"
16963 else
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 eval "$as_ac_var=no"
16970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16971 conftest$ac_exeext conftest.$ac_ext
16973 ac_res=`eval echo '${'$as_ac_var'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_var'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16979 _ACEOF
16982 done
16985 # Solaris has libkstat which does not require root.
16987 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16988 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16989 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992 ac_check_lib_save_LIBS=$LIBS
16993 LIBS="-lkstat $LIBS"
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17001 /* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17004 #ifdef __cplusplus
17005 extern "C"
17006 #endif
17007 char kstat_open ();
17009 main ()
17011 return kstat_open ();
17013 return 0;
17015 _ACEOF
17016 rm -f conftest.$ac_objext conftest$ac_exeext
17017 if { (ac_try="$ac_link"
17018 case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_link") 2>conftest.er1
17024 ac_status=$?
17025 grep -v '^ *+' conftest.er1 >conftest.err
17026 rm -f conftest.er1
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } && {
17030 test -z "$ac_c_werror_flag" ||
17031 test ! -s conftest.err
17032 } && test -s conftest$ac_exeext &&
17033 $as_test_x conftest$ac_exeext; then
17034 ac_cv_lib_kstat_kstat_open=yes
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_cv_lib_kstat_kstat_open=no
17042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17043 conftest$ac_exeext conftest.$ac_ext
17044 LIBS=$ac_check_lib_save_LIBS
17046 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17047 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17048 if test $ac_cv_lib_kstat_kstat_open = yes; then
17049 cat >>confdefs.h <<_ACEOF
17050 #define HAVE_LIBKSTAT 1
17051 _ACEOF
17053 LIBS="-lkstat $LIBS"
17057 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17059 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17060 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17061 # to get the right answer into the cache.
17062 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17063 if test $ac_have_func = no; then
17064 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17065 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17066 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069 ac_check_lib_save_LIBS=$LIBS
17070 LIBS="-lelf $LIBS"
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17078 /* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17081 #ifdef __cplusplus
17082 extern "C"
17083 #endif
17084 char elf_begin ();
17086 main ()
17088 return elf_begin ();
17090 return 0;
17092 _ACEOF
17093 rm -f conftest.$ac_objext conftest$ac_exeext
17094 if { (ac_try="$ac_link"
17095 case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_link") 2>conftest.er1
17101 ac_status=$?
17102 grep -v '^ *+' conftest.er1 >conftest.err
17103 rm -f conftest.er1
17104 cat conftest.err >&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); } && {
17107 test -z "$ac_c_werror_flag" ||
17108 test ! -s conftest.err
17109 } && test -s conftest$ac_exeext &&
17110 $as_test_x conftest$ac_exeext; then
17111 ac_cv_lib_elf_elf_begin=yes
17112 else
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_lib_elf_elf_begin=no
17119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17120 conftest$ac_exeext conftest.$ac_ext
17121 LIBS=$ac_check_lib_save_LIBS
17123 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17124 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17125 if test $ac_cv_lib_elf_elf_begin = yes; then
17126 LIBS="-lelf $LIBS"
17130 if test $ac_have_func = no; then
17131 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17132 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17133 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136 ac_check_lib_save_LIBS=$LIBS
17137 LIBS="-lkvm $LIBS"
17138 cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h. */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17145 /* Override any GCC internal prototype to avoid an error.
17146 Use char because int might match the return type of a GCC
17147 builtin and then its argument prototype would still apply. */
17148 #ifdef __cplusplus
17149 extern "C"
17150 #endif
17151 char kvm_open ();
17153 main ()
17155 return kvm_open ();
17157 return 0;
17159 _ACEOF
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest$ac_exeext &&
17177 $as_test_x conftest$ac_exeext; then
17178 ac_cv_lib_kvm_kvm_open=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_lib_kvm_kvm_open=no
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17190 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17191 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17192 if test $ac_cv_lib_kvm_kvm_open = yes; then
17193 LIBS="-lkvm $LIBS"
17196 # Check for the 4.4BSD definition of getloadavg.
17197 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17198 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17199 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202 ac_check_lib_save_LIBS=$LIBS
17203 LIBS="-lutil $LIBS"
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 /* Override any GCC internal prototype to avoid an error.
17212 Use char because int might match the return type of a GCC
17213 builtin and then its argument prototype would still apply. */
17214 #ifdef __cplusplus
17215 extern "C"
17216 #endif
17217 char getloadavg ();
17219 main ()
17221 return getloadavg ();
17223 return 0;
17225 _ACEOF
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_link") 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest$ac_exeext &&
17243 $as_test_x conftest$ac_exeext; then
17244 ac_cv_lib_util_getloadavg=yes
17245 else
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_cv_lib_util_getloadavg=no
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253 conftest$ac_exeext conftest.$ac_ext
17254 LIBS=$ac_check_lib_save_LIBS
17256 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17257 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17258 if test $ac_cv_lib_util_getloadavg = yes; then
17259 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17264 if test $ac_have_func = no; then
17265 # There is a commonly available library for RS/6000 AIX.
17266 # Since it is not a standard part of AIX, it might be installed locally.
17267 ac_getloadavg_LIBS=$LIBS
17268 LIBS="-L/usr/local/lib $LIBS"
17269 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17270 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17271 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 else
17274 ac_check_lib_save_LIBS=$LIBS
17275 LIBS="-lgetloadavg $LIBS"
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h. */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char getloadavg ();
17291 main ()
17293 return getloadavg ();
17295 return 0;
17297 _ACEOF
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 ac_cv_lib_getloadavg_getloadavg=yes
17317 else
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_cv_lib_getloadavg_getloadavg=no
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 LIBS=$ac_check_lib_save_LIBS
17328 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17329 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17330 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17331 LIBS="-lgetloadavg $LIBS"
17332 else
17333 LIBS=$ac_getloadavg_LIBS
17338 # Make sure it is really in the library, if we think we found it,
17339 # otherwise set up the replacement function.
17341 for ac_func in getloadavg
17343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17357 #define $ac_func innocuous_$ac_func
17359 /* System header to define __stub macros and hopefully few prototypes,
17360 which can conflict with char $ac_func (); below.
17361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17362 <limits.h> exists even on freestanding compilers. */
17364 #ifdef __STDC__
17365 # include <limits.h>
17366 #else
17367 # include <assert.h>
17368 #endif
17370 #undef $ac_func
17372 /* Override any GCC internal prototype to avoid an error.
17373 Use char because int might match the return type of a GCC
17374 builtin and then its argument prototype would still apply. */
17375 #ifdef __cplusplus
17376 extern "C"
17377 #endif
17378 char $ac_func ();
17379 /* The GNU C library defines this for functions which it implements
17380 to always fail with ENOSYS. Some functions are actually named
17381 something starting with __ and the normal name is an alias. */
17382 #if defined __stub_$ac_func || defined __stub___$ac_func
17383 choke me
17384 #endif
17387 main ()
17389 return $ac_func ();
17391 return 0;
17393 _ACEOF
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (ac_try="$ac_link"
17396 case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_link") 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } && {
17408 test -z "$ac_c_werror_flag" ||
17409 test ! -s conftest.err
17410 } && test -s conftest$ac_exeext &&
17411 $as_test_x conftest$ac_exeext; then
17412 eval "$as_ac_var=yes"
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 eval "$as_ac_var=no"
17420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17421 conftest$ac_exeext conftest.$ac_ext
17423 ac_res=`eval echo '${'$as_ac_var'}'`
17424 { echo "$as_me:$LINENO: result: $ac_res" >&5
17425 echo "${ECHO_T}$ac_res" >&6; }
17426 if test `eval echo '${'$as_ac_var'}'` = yes; then
17427 cat >>confdefs.h <<_ACEOF
17428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17429 _ACEOF
17431 else
17432 case " $LIBOBJS " in
17433 *" getloadavg.$ac_objext "* ) ;;
17434 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17436 esac
17439 cat >>confdefs.h <<\_ACEOF
17440 #define C_GETLOADAVG 1
17441 _ACEOF
17443 # Figure out what our getloadavg.c needs.
17444 ac_have_func=no
17445 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17446 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17447 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17448 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17452 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17453 else
17454 # Is the header compilable?
17455 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17456 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 $ac_includes_default
17464 #include <sys/dg_sys_info.h>
17465 _ACEOF
17466 rm -f conftest.$ac_objext
17467 if { (ac_try="$ac_compile"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_compile") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 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_objext; then
17483 ac_header_compiler=yes
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_header_compiler=no
17491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17493 echo "${ECHO_T}$ac_header_compiler" >&6; }
17495 # Is the header present?
17496 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17497 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 #include <sys/dg_sys_info.h>
17505 _ACEOF
17506 if { (ac_try="$ac_cpp conftest.$ac_ext"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } >/dev/null && {
17519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 }; then
17522 ac_header_preproc=yes
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_header_preproc=no
17530 rm -f conftest.err conftest.$ac_ext
17531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17532 echo "${ECHO_T}$ac_header_preproc" >&6; }
17534 # So? What about this header?
17535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17536 yes:no: )
17537 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17538 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17540 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17541 ac_header_preproc=yes
17543 no:yes:* )
17544 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17545 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17547 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17549 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17551 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17553 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17555 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17558 esac
17559 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17560 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17561 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17566 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17567 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17570 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17571 ac_have_func=yes
17573 cat >>confdefs.h <<\_ACEOF
17574 #define DGUX 1
17575 _ACEOF
17578 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17579 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17580 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583 ac_check_lib_save_LIBS=$LIBS
17584 LIBS="-ldgc $LIBS"
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h. */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17592 /* Override any GCC internal prototype to avoid an error.
17593 Use char because int might match the return type of a GCC
17594 builtin and then its argument prototype would still apply. */
17595 #ifdef __cplusplus
17596 extern "C"
17597 #endif
17598 char dg_sys_info ();
17600 main ()
17602 return dg_sys_info ();
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext &&
17624 $as_test_x conftest$ac_exeext; then
17625 ac_cv_lib_dgc_dg_sys_info=yes
17626 else
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_cv_lib_dgc_dg_sys_info=no
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17638 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17639 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17640 cat >>confdefs.h <<_ACEOF
17641 #define HAVE_LIBDGC 1
17642 _ACEOF
17644 LIBS="-ldgc $LIBS"
17652 if test "${ac_cv_header_locale_h+set}" = set; then
17653 { echo "$as_me:$LINENO: checking for locale.h" >&5
17654 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17655 if test "${ac_cv_header_locale_h+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17659 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17660 else
17661 # Is the header compilable?
17662 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17663 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 $ac_includes_default
17671 #include <locale.h>
17672 _ACEOF
17673 rm -f conftest.$ac_objext
17674 if { (ac_try="$ac_compile"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } && {
17687 test -z "$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17689 } && test -s conftest.$ac_objext; then
17690 ac_header_compiler=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_header_compiler=no
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17700 echo "${ECHO_T}$ac_header_compiler" >&6; }
17702 # Is the header present?
17703 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17704 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17705 cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h. */
17707 _ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 #include <locale.h>
17712 _ACEOF
17713 if { (ac_try="$ac_cpp conftest.$ac_ext"
17714 case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17717 esac
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } >/dev/null && {
17726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 }; then
17729 ac_header_preproc=yes
17730 else
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_header_preproc=no
17737 rm -f conftest.err conftest.$ac_ext
17738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17739 echo "${ECHO_T}$ac_header_preproc" >&6; }
17741 # So? What about this header?
17742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17743 yes:no: )
17744 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17745 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17746 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17747 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17748 ac_header_preproc=yes
17750 no:yes:* )
17751 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17752 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17754 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17756 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17758 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17759 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17760 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17761 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17762 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17765 esac
17766 { echo "$as_me:$LINENO: checking for locale.h" >&5
17767 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17768 if test "${ac_cv_header_locale_h+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771 ac_cv_header_locale_h=$ac_header_preproc
17773 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17774 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17780 for ac_func in setlocale
17782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h. */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17796 #define $ac_func innocuous_$ac_func
17798 /* System header to define __stub macros and hopefully few prototypes,
17799 which can conflict with char $ac_func (); below.
17800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17801 <limits.h> exists even on freestanding compilers. */
17803 #ifdef __STDC__
17804 # include <limits.h>
17805 #else
17806 # include <assert.h>
17807 #endif
17809 #undef $ac_func
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char $ac_func ();
17818 /* The GNU C library defines this for functions which it implements
17819 to always fail with ENOSYS. Some functions are actually named
17820 something starting with __ and the normal name is an alias. */
17821 #if defined __stub_$ac_func || defined __stub___$ac_func
17822 choke me
17823 #endif
17826 main ()
17828 return $ac_func ();
17830 return 0;
17832 _ACEOF
17833 rm -f conftest.$ac_objext conftest$ac_exeext
17834 if { (ac_try="$ac_link"
17835 case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_link") 2>conftest.er1
17841 ac_status=$?
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && {
17847 test -z "$ac_c_werror_flag" ||
17848 test ! -s conftest.err
17849 } && test -s conftest$ac_exeext &&
17850 $as_test_x conftest$ac_exeext; then
17851 eval "$as_ac_var=yes"
17852 else
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 eval "$as_ac_var=no"
17859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17860 conftest$ac_exeext conftest.$ac_ext
17862 ac_res=`eval echo '${'$as_ac_var'}'`
17863 { echo "$as_me:$LINENO: result: $ac_res" >&5
17864 echo "${ECHO_T}$ac_res" >&6; }
17865 if test `eval echo '${'$as_ac_var'}'` = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17868 _ACEOF
17871 done
17874 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17875 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17876 # Irix 4.0.5F has the header but not the library.
17877 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17878 ac_have_func=yes
17880 cat >>confdefs.h <<\_ACEOF
17881 #define SVR4 1
17882 _ACEOF
17886 if test $ac_have_func = no; then
17887 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17888 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17889 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17890 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17894 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17895 else
17896 # Is the header compilable?
17897 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17898 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 $ac_includes_default
17906 #include <inq_stats/cpustats.h>
17907 _ACEOF
17908 rm -f conftest.$ac_objext
17909 if { (ac_try="$ac_compile"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_compile") 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest.$ac_objext; then
17925 ac_header_compiler=yes
17926 else
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_header_compiler=no
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17935 echo "${ECHO_T}$ac_header_compiler" >&6; }
17937 # Is the header present?
17938 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17939 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17940 cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h. */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17946 #include <inq_stats/cpustats.h>
17947 _ACEOF
17948 if { (ac_try="$ac_cpp conftest.$ac_ext"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17955 ac_status=$?
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } >/dev/null && {
17961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17962 test ! -s conftest.err
17963 }; then
17964 ac_header_preproc=yes
17965 else
17966 echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17969 ac_header_preproc=no
17972 rm -f conftest.err conftest.$ac_ext
17973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17974 echo "${ECHO_T}$ac_header_preproc" >&6; }
17976 # So? What about this header?
17977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17978 yes:no: )
17979 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17980 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17981 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17982 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17983 ac_header_preproc=yes
17985 no:yes:* )
17986 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17987 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17988 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17989 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17990 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17991 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17992 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17993 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17994 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17995 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17996 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17997 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18000 esac
18001 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18002 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18003 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18008 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18009 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18012 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18013 ac_have_func=yes
18015 cat >>confdefs.h <<\_ACEOF
18016 #define UMAX 1
18017 _ACEOF
18020 cat >>confdefs.h <<\_ACEOF
18021 #define UMAX4_3 1
18022 _ACEOF
18029 if test $ac_have_func = no; then
18030 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18031 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18032 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18033 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18037 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18038 else
18039 # Is the header compilable?
18040 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18041 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $ac_includes_default
18049 #include <sys/cpustats.h>
18050 _ACEOF
18051 rm -f conftest.$ac_objext
18052 if { (ac_try="$ac_compile"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18068 ac_header_compiler=yes
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_header_compiler=no
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6; }
18080 # Is the header present?
18081 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18082 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <sys/cpustats.h>
18090 _ACEOF
18091 if { (ac_try="$ac_cpp conftest.$ac_ext"
18092 case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18095 esac
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } >/dev/null && {
18104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 }; then
18107 ac_header_preproc=yes
18108 else
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_header_preproc=no
18115 rm -f conftest.err conftest.$ac_ext
18116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18117 echo "${ECHO_T}$ac_header_preproc" >&6; }
18119 # So? What about this header?
18120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18121 yes:no: )
18122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18123 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18125 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18126 ac_header_preproc=yes
18128 no:yes:* )
18129 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18130 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18132 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18134 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18136 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18138 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18139 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18140 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18143 esac
18144 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18145 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18146 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18151 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18152 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18155 if test $ac_cv_header_sys_cpustats_h = yes; then
18156 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18157 #define UMAX 1
18158 _ACEOF
18165 if test $ac_have_func = no; then
18167 for ac_header in mach/mach.h
18169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 ac_res=`eval echo '${'$as_ac_Header'}'`
18177 { echo "$as_me:$LINENO: result: $ac_res" >&5
18178 echo "${ECHO_T}$ac_res" >&6; }
18179 else
18180 # Is the header compilable?
18181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 $ac_includes_default
18190 #include <$ac_header>
18191 _ACEOF
18192 rm -f conftest.$ac_objext
18193 if { (ac_try="$ac_compile"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_compile") 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } && {
18206 test -z "$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18208 } && test -s conftest.$ac_objext; then
18209 ac_header_compiler=yes
18210 else
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_header_compiler=no
18217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18219 echo "${ECHO_T}$ac_header_compiler" >&6; }
18221 # Is the header present?
18222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18224 cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h. */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 #include <$ac_header>
18231 _ACEOF
18232 if { (ac_try="$ac_cpp conftest.$ac_ext"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } >/dev/null && {
18245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 }; then
18248 ac_header_preproc=yes
18249 else
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_header_preproc=no
18256 rm -f conftest.err conftest.$ac_ext
18257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18258 echo "${ECHO_T}$ac_header_preproc" >&6; }
18260 # So? What about this header?
18261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18262 yes:no: )
18263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18267 ac_header_preproc=yes
18269 no:yes:* )
18270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18284 esac
18285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290 eval "$as_ac_Header=\$ac_header_preproc"
18292 ac_res=`eval echo '${'$as_ac_Header'}'`
18293 { echo "$as_me:$LINENO: result: $ac_res" >&5
18294 echo "${ECHO_T}$ac_res" >&6; }
18297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18298 cat >>confdefs.h <<_ACEOF
18299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18300 _ACEOF
18304 done
18309 for ac_header in nlist.h
18311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_res=`eval echo '${'$as_ac_Header'}'`
18319 { echo "$as_me:$LINENO: result: $ac_res" >&5
18320 echo "${ECHO_T}$ac_res" >&6; }
18321 else
18322 # Is the header compilable?
18323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 $ac_includes_default
18332 #include <$ac_header>
18333 _ACEOF
18334 rm -f conftest.$ac_objext
18335 if { (ac_try="$ac_compile"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_compile") 2>conftest.er1
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest.$ac_objext; then
18351 ac_header_compiler=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_header_compiler=no
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18361 echo "${ECHO_T}$ac_header_compiler" >&6; }
18363 # Is the header present?
18364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <$ac_header>
18373 _ACEOF
18374 if { (ac_try="$ac_cpp conftest.$ac_ext"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null && {
18387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18388 test ! -s conftest.err
18389 }; then
18390 ac_header_preproc=yes
18391 else
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_header_preproc=no
18398 rm -f conftest.err conftest.$ac_ext
18399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18400 echo "${ECHO_T}$ac_header_preproc" >&6; }
18402 # So? What about this header?
18403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18404 yes:no: )
18405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18409 ac_header_preproc=yes
18411 no:yes:* )
18412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18426 esac
18427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432 eval "$as_ac_Header=\$ac_header_preproc"
18434 ac_res=`eval echo '${'$as_ac_Header'}'`
18435 { echo "$as_me:$LINENO: result: $ac_res" >&5
18436 echo "${ECHO_T}$ac_res" >&6; }
18439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18440 cat >>confdefs.h <<_ACEOF
18441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18442 _ACEOF
18443 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18444 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18445 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18447 else
18448 cat >conftest.$ac_ext <<_ACEOF
18449 /* confdefs.h. */
18450 _ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h. */
18454 #include <nlist.h>
18457 main ()
18459 static struct nlist ac_aggr;
18460 if (ac_aggr.n_un.n_name)
18461 return 0;
18463 return 0;
18465 _ACEOF
18466 rm -f conftest.$ac_objext
18467 if { (ac_try="$ac_compile"
18468 case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471 esac
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_compile") 2>conftest.er1
18474 ac_status=$?
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } && {
18480 test -z "$ac_c_werror_flag" ||
18481 test ! -s conftest.err
18482 } && test -s conftest.$ac_objext; then
18483 ac_cv_member_struct_nlist_n_un_n_name=yes
18484 else
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h. */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h. */
18494 #include <nlist.h>
18497 main ()
18499 static struct nlist ac_aggr;
18500 if (sizeof ac_aggr.n_un.n_name)
18501 return 0;
18503 return 0;
18505 _ACEOF
18506 rm -f conftest.$ac_objext
18507 if { (ac_try="$ac_compile"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_compile") 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } && {
18520 test -z "$ac_c_werror_flag" ||
18521 test ! -s conftest.err
18522 } && test -s conftest.$ac_objext; then
18523 ac_cv_member_struct_nlist_n_un_n_name=yes
18524 else
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_cv_member_struct_nlist_n_un_n_name=no
18531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18537 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18538 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18540 cat >>confdefs.h <<_ACEOF
18541 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18542 _ACEOF
18545 cat >>confdefs.h <<\_ACEOF
18546 #define NLIST_NAME_UNION 1
18547 _ACEOF
18554 done
18557 done
18560 # Some definitions of getloadavg require that the program be installed setgid.
18561 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18562 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18563 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h. */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18572 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18573 #ifdef LDAV_PRIVILEGED
18574 Yowza Am I SETGID yet
18575 #endif
18576 _ACEOF
18577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18578 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18579 ac_cv_func_getloadavg_setgid=yes
18580 else
18581 ac_cv_func_getloadavg_setgid=no
18583 rm -f conftest*
18586 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18587 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18588 if test $ac_cv_func_getloadavg_setgid = yes; then
18589 NEED_SETGID=true
18591 cat >>confdefs.h <<\_ACEOF
18592 #define GETLOADAVG_PRIVILEGED 1
18593 _ACEOF
18595 else
18596 NEED_SETGID=false
18599 if test $ac_cv_func_getloadavg_setgid = yes; then
18600 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18601 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18602 if test "${ac_cv_group_kmem+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18606 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18607 # If we got an error (system does not support symlinks), try without -L.
18608 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18609 ac_cv_group_kmem=`echo $ac_ls_output \
18610 | sed -ne 's/[ ][ ]*/ /g;
18611 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18612 / /s/.* //;p;'`
18615 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18616 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18617 KMEM_GROUP=$ac_cv_group_kmem
18619 if test "x$ac_save_LIBS" = x; then
18620 GETLOADAVG_LIBS=$LIBS
18621 else
18622 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18624 LIBS=$ac_save_LIBS
18628 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18629 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18630 if test "${ac_cv_sys_largefile_source+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 else
18633 while :; do
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h. */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 #include <sys/types.h> /* for off_t */
18641 #include <stdio.h>
18643 main ()
18645 int (*fp) (FILE *, off_t, int) = fseeko;
18646 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18648 return 0;
18650 _ACEOF
18651 rm -f conftest.$ac_objext conftest$ac_exeext
18652 if { (ac_try="$ac_link"
18653 case "(($ac_try" in
18654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655 *) ac_try_echo=$ac_try;;
18656 esac
18657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18658 (eval "$ac_link") 2>conftest.er1
18659 ac_status=$?
18660 grep -v '^ *+' conftest.er1 >conftest.err
18661 rm -f conftest.er1
18662 cat conftest.err >&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } && {
18665 test -z "$ac_c_werror_flag" ||
18666 test ! -s conftest.err
18667 } && test -s conftest$ac_exeext &&
18668 $as_test_x conftest$ac_exeext; then
18669 ac_cv_sys_largefile_source=no; break
18670 else
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18678 conftest$ac_exeext conftest.$ac_ext
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h. */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 #define _LARGEFILE_SOURCE 1
18686 #include <sys/types.h> /* for off_t */
18687 #include <stdio.h>
18689 main ()
18691 int (*fp) (FILE *, off_t, int) = fseeko;
18692 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18694 return 0;
18696 _ACEOF
18697 rm -f conftest.$ac_objext conftest$ac_exeext
18698 if { (ac_try="$ac_link"
18699 case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18702 esac
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_link") 2>conftest.er1
18705 ac_status=$?
18706 grep -v '^ *+' conftest.er1 >conftest.err
18707 rm -f conftest.er1
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } && {
18711 test -z "$ac_c_werror_flag" ||
18712 test ! -s conftest.err
18713 } && test -s conftest$ac_exeext &&
18714 $as_test_x conftest$ac_exeext; then
18715 ac_cv_sys_largefile_source=1; break
18716 else
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18724 conftest$ac_exeext conftest.$ac_ext
18725 ac_cv_sys_largefile_source=unknown
18726 break
18727 done
18729 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18730 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18731 case $ac_cv_sys_largefile_source in #(
18732 no | unknown) ;;
18734 cat >>confdefs.h <<_ACEOF
18735 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18736 _ACEOF
18738 esac
18739 rm -f conftest*
18741 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18742 # in glibc 2.1.3, but that breaks too many other things.
18743 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18744 if test $ac_cv_sys_largefile_source != unknown; then
18746 cat >>confdefs.h <<\_ACEOF
18747 #define HAVE_FSEEKO 1
18748 _ACEOF
18753 # Configure getopt.
18754 # getopt.m4 serial 10
18756 # The getopt module assume you want GNU getopt, with getopt_long etc,
18757 # rather than vanilla POSIX getopt. This means your your code should
18758 # always include <getopt.h> for the getopt prototypes.
18770 # Prerequisites of lib/getopt*.
18775 GETOPT_H=
18777 for ac_header in getopt.h
18779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 ac_res=`eval echo '${'$as_ac_Header'}'`
18787 { echo "$as_me:$LINENO: result: $ac_res" >&5
18788 echo "${ECHO_T}$ac_res" >&6; }
18789 else
18790 # Is the header compilable?
18791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18800 #include <$ac_header>
18801 _ACEOF
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18820 else
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_header_compiler=no
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18829 echo "${ECHO_T}$ac_header_compiler" >&6; }
18831 # Is the header present?
18832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h. */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <$ac_header>
18841 _ACEOF
18842 if { (ac_try="$ac_cpp conftest.$ac_ext"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } >/dev/null && {
18855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 }; then
18858 ac_header_preproc=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_header_preproc=no
18866 rm -f conftest.err conftest.$ac_ext
18867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18868 echo "${ECHO_T}$ac_header_preproc" >&6; }
18870 # So? What about this header?
18871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18872 yes:no: )
18873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18877 ac_header_preproc=yes
18879 no:yes:* )
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18894 esac
18895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900 eval "$as_ac_Header=\$ac_header_preproc"
18902 ac_res=`eval echo '${'$as_ac_Header'}'`
18903 { echo "$as_me:$LINENO: result: $ac_res" >&5
18904 echo "${ECHO_T}$ac_res" >&6; }
18907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18908 cat >>confdefs.h <<_ACEOF
18909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18910 _ACEOF
18912 else
18913 GETOPT_H=getopt.h
18916 done
18918 if test -z "$GETOPT_H"; then
18920 for ac_func in getopt_long_only
18922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928 cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h. */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18936 #define $ac_func innocuous_$ac_func
18938 /* System header to define __stub macros and hopefully few prototypes,
18939 which can conflict with char $ac_func (); below.
18940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18941 <limits.h> exists even on freestanding compilers. */
18943 #ifdef __STDC__
18944 # include <limits.h>
18945 #else
18946 # include <assert.h>
18947 #endif
18949 #undef $ac_func
18951 /* Override any GCC internal prototype to avoid an error.
18952 Use char because int might match the return type of a GCC
18953 builtin and then its argument prototype would still apply. */
18954 #ifdef __cplusplus
18955 extern "C"
18956 #endif
18957 char $ac_func ();
18958 /* The GNU C library defines this for functions which it implements
18959 to always fail with ENOSYS. Some functions are actually named
18960 something starting with __ and the normal name is an alias. */
18961 #if defined __stub_$ac_func || defined __stub___$ac_func
18962 choke me
18963 #endif
18966 main ()
18968 return $ac_func ();
18970 return 0;
18972 _ACEOF
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (ac_try="$ac_link"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest$ac_exeext &&
18990 $as_test_x conftest$ac_exeext; then
18991 eval "$as_ac_var=yes"
18992 else
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 eval "$as_ac_var=no"
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000 conftest$ac_exeext conftest.$ac_ext
19002 ac_res=`eval echo '${'$as_ac_var'}'`
19003 { echo "$as_me:$LINENO: result: $ac_res" >&5
19004 echo "${ECHO_T}$ac_res" >&6; }
19005 if test `eval echo '${'$as_ac_var'}'` = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19008 _ACEOF
19010 else
19011 GETOPT_H=getopt.h
19013 done
19017 if test -z "$GETOPT_H"; then
19018 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19019 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19020 if test "${ac_cv_have_decl_optreset+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #include <getopt.h>
19032 main ()
19034 #ifndef optreset
19035 (void) optreset;
19036 #endif
19039 return 0;
19041 _ACEOF
19042 rm -f conftest.$ac_objext
19043 if { (ac_try="$ac_compile"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19047 esac
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_compile") 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } && {
19056 test -z "$ac_c_werror_flag" ||
19057 test ! -s conftest.err
19058 } && test -s conftest.$ac_objext; then
19059 ac_cv_have_decl_optreset=yes
19060 else
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_cv_have_decl_optreset=no
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19070 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19071 if test $ac_cv_have_decl_optreset = yes; then
19072 GETOPT_H=getopt.h
19077 if test -z "$GETOPT_H"; then
19078 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19079 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19080 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083 if test "$cross_compiling" = yes; then
19084 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19085 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19086 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088 else
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 #include <getopt.h>
19098 main ()
19100 #ifndef getopt_clip
19101 (void) getopt_clip;
19102 #endif
19105 return 0;
19107 _ACEOF
19108 rm -f conftest.$ac_objext
19109 if { (ac_try="$ac_compile"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_compile") 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } && {
19122 test -z "$ac_c_werror_flag" ||
19123 test ! -s conftest.err
19124 } && test -s conftest.$ac_objext; then
19125 ac_cv_have_decl_getopt_clip=yes
19126 else
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_cv_have_decl_getopt_clip=no
19133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19136 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19137 if test $ac_cv_have_decl_getopt_clip = yes; then
19138 gl_cv_func_gnu_getopt=no
19139 else
19140 gl_cv_func_gnu_getopt=yes
19143 else
19144 cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h. */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150 #include <getopt.h>
19152 main ()
19155 char *myargv[3];
19156 myargv[0] = "conftest";
19157 myargv[1] = "-+";
19158 myargv[2] = 0;
19159 return getopt (2, myargv, "+a") != '?';
19162 return 0;
19164 _ACEOF
19165 rm -f conftest$ac_exeext
19166 if { (ac_try="$ac_link"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170 esac
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_link") 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 gl_cv_func_gnu_getopt=yes
19186 else
19187 echo "$as_me: program exited with status $ac_status" >&5
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ( exit $ac_status )
19192 gl_cv_func_gnu_getopt=no
19194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19199 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19200 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19201 if test "$gl_cv_func_gnu_getopt" = "no"; then
19202 GETOPT_H=getopt.h
19208 if test -n "$GETOPT_H"; then
19211 GETOPT_H=getopt.h
19213 cat >>confdefs.h <<\_ACEOF
19214 #define __GETOPT_PREFIX rpl_
19215 _ACEOF
19220 GETOPTOBJS='getopt.o getopt1.o'
19227 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19228 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19229 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232 # Use it with a single arg.
19233 cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h. */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19241 main ()
19243 getpgrp (0);
19245 return 0;
19247 _ACEOF
19248 rm -f conftest.$ac_objext
19249 if { (ac_try="$ac_compile"
19250 case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_compile") 2>conftest.er1
19256 ac_status=$?
19257 grep -v '^ *+' conftest.er1 >conftest.err
19258 rm -f conftest.er1
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest.$ac_objext; then
19265 ac_cv_func_getpgrp_void=no
19266 else
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 ac_cv_func_getpgrp_void=yes
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19277 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19278 if test $ac_cv_func_getpgrp_void = yes; then
19280 cat >>confdefs.h <<\_ACEOF
19281 #define GETPGRP_VOID 1
19282 _ACEOF
19288 for ac_func in strftime
19290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19304 #define $ac_func innocuous_$ac_func
19306 /* System header to define __stub macros and hopefully few prototypes,
19307 which can conflict with char $ac_func (); below.
19308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 <limits.h> exists even on freestanding compilers. */
19311 #ifdef __STDC__
19312 # include <limits.h>
19313 #else
19314 # include <assert.h>
19315 #endif
19317 #undef $ac_func
19319 /* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19322 #ifdef __cplusplus
19323 extern "C"
19324 #endif
19325 char $ac_func ();
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined __stub_$ac_func || defined __stub___$ac_func
19330 choke me
19331 #endif
19334 main ()
19336 return $ac_func ();
19338 return 0;
19340 _ACEOF
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } && {
19355 test -z "$ac_c_werror_flag" ||
19356 test ! -s conftest.err
19357 } && test -s conftest$ac_exeext &&
19358 $as_test_x conftest$ac_exeext; then
19359 eval "$as_ac_var=yes"
19360 else
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19364 eval "$as_ac_var=no"
19367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19368 conftest$ac_exeext conftest.$ac_ext
19370 ac_res=`eval echo '${'$as_ac_var'}'`
19371 { echo "$as_me:$LINENO: result: $ac_res" >&5
19372 echo "${ECHO_T}$ac_res" >&6; }
19373 if test `eval echo '${'$as_ac_var'}'` = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19376 _ACEOF
19378 else
19379 # strftime is in -lintl on SCO UNIX.
19380 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19381 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lintl $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h. */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19397 #ifdef __cplusplus
19398 extern "C"
19399 #endif
19400 char strftime ();
19402 main ()
19404 return strftime ();
19406 return 0;
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && {
19423 test -z "$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 } && test -s conftest$ac_exeext &&
19426 $as_test_x conftest$ac_exeext; then
19427 ac_cv_lib_intl_strftime=yes
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_lib_intl_strftime=no
19435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19436 conftest$ac_exeext conftest.$ac_ext
19437 LIBS=$ac_check_lib_save_LIBS
19439 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19440 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19441 if test $ac_cv_lib_intl_strftime = yes; then
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_STRFTIME 1
19444 _ACEOF
19446 LIBS="-lintl $LIBS"
19450 done
19453 # UNIX98 PTYs.
19455 for ac_func in grantpt
19457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463 cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h. */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19471 #define $ac_func innocuous_$ac_func
19473 /* System header to define __stub macros and hopefully few prototypes,
19474 which can conflict with char $ac_func (); below.
19475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19476 <limits.h> exists even on freestanding compilers. */
19478 #ifdef __STDC__
19479 # include <limits.h>
19480 #else
19481 # include <assert.h>
19482 #endif
19484 #undef $ac_func
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19489 #ifdef __cplusplus
19490 extern "C"
19491 #endif
19492 char $ac_func ();
19493 /* The GNU C library defines this for functions which it implements
19494 to always fail with ENOSYS. Some functions are actually named
19495 something starting with __ and the normal name is an alias. */
19496 #if defined __stub_$ac_func || defined __stub___$ac_func
19497 choke me
19498 #endif
19501 main ()
19503 return $ac_func ();
19505 return 0;
19507 _ACEOF
19508 rm -f conftest.$ac_objext conftest$ac_exeext
19509 if { (ac_try="$ac_link"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_link") 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest$ac_exeext &&
19525 $as_test_x conftest$ac_exeext; then
19526 eval "$as_ac_var=yes"
19527 else
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 eval "$as_ac_var=no"
19534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19535 conftest$ac_exeext conftest.$ac_ext
19537 ac_res=`eval echo '${'$as_ac_var'}'`
19538 { echo "$as_me:$LINENO: result: $ac_res" >&5
19539 echo "${ECHO_T}$ac_res" >&6; }
19540 if test `eval echo '${'$as_ac_var'}'` = yes; then
19541 cat >>confdefs.h <<_ACEOF
19542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19543 _ACEOF
19546 done
19549 # PTY-related GNU extensions.
19551 for ac_func in getpt
19553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19567 #define $ac_func innocuous_$ac_func
19569 /* System header to define __stub macros and hopefully few prototypes,
19570 which can conflict with char $ac_func (); below.
19571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19572 <limits.h> exists even on freestanding compilers. */
19574 #ifdef __STDC__
19575 # include <limits.h>
19576 #else
19577 # include <assert.h>
19578 #endif
19580 #undef $ac_func
19582 /* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19585 #ifdef __cplusplus
19586 extern "C"
19587 #endif
19588 char $ac_func ();
19589 /* The GNU C library defines this for functions which it implements
19590 to always fail with ENOSYS. Some functions are actually named
19591 something starting with __ and the normal name is an alias. */
19592 #if defined __stub_$ac_func || defined __stub___$ac_func
19593 choke me
19594 #endif
19597 main ()
19599 return $ac_func ();
19601 return 0;
19603 _ACEOF
19604 rm -f conftest.$ac_objext conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_link") 2>conftest.er1
19612 ac_status=$?
19613 grep -v '^ *+' conftest.er1 >conftest.err
19614 rm -f conftest.er1
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest$ac_exeext &&
19621 $as_test_x conftest$ac_exeext; then
19622 eval "$as_ac_var=yes"
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 eval "$as_ac_var=no"
19630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631 conftest$ac_exeext conftest.$ac_ext
19633 ac_res=`eval echo '${'$as_ac_var'}'`
19634 { echo "$as_me:$LINENO: result: $ac_res" >&5
19635 echo "${ECHO_T}$ac_res" >&6; }
19636 if test `eval echo '${'$as_ac_var'}'` = yes; then
19637 cat >>confdefs.h <<_ACEOF
19638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19639 _ACEOF
19642 done
19645 # Check this now, so that we will NOT find the above functions in ncurses.
19646 # That is because we have not set up to link ncurses in lib-src.
19647 # It's better to believe a function is not available
19648 # than to expect to find it in ncurses.
19650 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19651 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19652 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 ac_check_lib_save_LIBS=$LIBS
19656 LIBS="-lncurses $LIBS"
19657 cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h. */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19664 /* Override any GCC internal prototype to avoid an error.
19665 Use char because int might match the return type of a GCC
19666 builtin and then its argument prototype would still apply. */
19667 #ifdef __cplusplus
19668 extern "C"
19669 #endif
19670 char tparm ();
19672 main ()
19674 return tparm ();
19676 return 0;
19678 _ACEOF
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (ac_try="$ac_link"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_link") 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } && {
19693 test -z "$ac_c_werror_flag" ||
19694 test ! -s conftest.err
19695 } && test -s conftest$ac_exeext &&
19696 $as_test_x conftest$ac_exeext; then
19697 ac_cv_lib_ncurses_tparm=yes
19698 else
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 ac_cv_lib_ncurses_tparm=no
19705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19706 conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19709 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19710 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19711 if test $ac_cv_lib_ncurses_tparm = yes; then
19712 cat >>confdefs.h <<_ACEOF
19713 #define HAVE_LIBNCURSES 1
19714 _ACEOF
19716 LIBS="-lncurses $LIBS"
19721 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19723 resolv=no
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h. */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 #include <netinet/in.h>
19731 #include <arpa/nameser.h>
19732 #include <resolv.h>
19734 main ()
19736 return res_init();
19738 return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 have_res_init=yes
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 have_res_init=no
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19769 if test "$have_res_init" = no; then
19770 OLIBS="$LIBS"
19771 LIBS="$LIBS -lresolv"
19772 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19773 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <netinet/in.h>
19781 #include <arpa/nameser.h>
19782 #include <resolv.h>
19784 main ()
19786 return res_init();
19788 return 0;
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_link") 2>conftest.er1
19799 ac_status=$?
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } && {
19805 test -z "$ac_c_werror_flag" ||
19806 test ! -s conftest.err
19807 } && test -s conftest$ac_exeext &&
19808 $as_test_x conftest$ac_exeext; then
19809 have_res_init=yes
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 have_res_init=no
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818 conftest$ac_exeext conftest.$ac_ext
19819 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19820 echo "${ECHO_T}$have_res_init" >&6; }
19821 if test "$have_res_init" = yes ; then
19822 resolv=yes
19824 LIBS="$OLIBS"
19827 if test "$have_res_init" = yes; then
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE_RES_INIT 1
19831 _ACEOF
19835 # Do we need the Hesiod library to provide the support routines?
19836 if test "$with_hesiod" = yes ; then
19837 # Don't set $LIBS here -- see comments above.
19838 { echo "$as_me:$LINENO: checking for res_send" >&5
19839 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19840 if test "${ac_cv_func_res_send+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843 cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h. */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19851 #define res_send innocuous_res_send
19853 /* System header to define __stub macros and hopefully few prototypes,
19854 which can conflict with char res_send (); below.
19855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19856 <limits.h> exists even on freestanding compilers. */
19858 #ifdef __STDC__
19859 # include <limits.h>
19860 #else
19861 # include <assert.h>
19862 #endif
19864 #undef res_send
19866 /* Override any GCC internal prototype to avoid an error.
19867 Use char because int might match the return type of a GCC
19868 builtin and then its argument prototype would still apply. */
19869 #ifdef __cplusplus
19870 extern "C"
19871 #endif
19872 char res_send ();
19873 /* The GNU C library defines this for functions which it implements
19874 to always fail with ENOSYS. Some functions are actually named
19875 something starting with __ and the normal name is an alias. */
19876 #if defined __stub_res_send || defined __stub___res_send
19877 choke me
19878 #endif
19881 main ()
19883 return res_send ();
19885 return 0;
19887 _ACEOF
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_link") 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } && {
19902 test -z "$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 } && test -s conftest$ac_exeext &&
19905 $as_test_x conftest$ac_exeext; then
19906 ac_cv_func_res_send=yes
19907 else
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_cv_func_res_send=no
19914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19915 conftest$ac_exeext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19918 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19919 if test $ac_cv_func_res_send = yes; then
19921 else
19922 { echo "$as_me:$LINENO: checking for __res_send" >&5
19923 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19924 if test "${ac_cv_func___res_send+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h. */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19935 #define __res_send innocuous___res_send
19937 /* System header to define __stub macros and hopefully few prototypes,
19938 which can conflict with char __res_send (); below.
19939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19940 <limits.h> exists even on freestanding compilers. */
19942 #ifdef __STDC__
19943 # include <limits.h>
19944 #else
19945 # include <assert.h>
19946 #endif
19948 #undef __res_send
19950 /* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19953 #ifdef __cplusplus
19954 extern "C"
19955 #endif
19956 char __res_send ();
19957 /* The GNU C library defines this for functions which it implements
19958 to always fail with ENOSYS. Some functions are actually named
19959 something starting with __ and the normal name is an alias. */
19960 #if defined __stub___res_send || defined __stub_____res_send
19961 choke me
19962 #endif
19965 main ()
19967 return __res_send ();
19969 return 0;
19971 _ACEOF
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (ac_try="$ac_link"
19974 case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_link") 2>conftest.er1
19980 ac_status=$?
19981 grep -v '^ *+' conftest.er1 >conftest.err
19982 rm -f conftest.er1
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } && {
19986 test -z "$ac_c_werror_flag" ||
19987 test ! -s conftest.err
19988 } && test -s conftest$ac_exeext &&
19989 $as_test_x conftest$ac_exeext; then
19990 ac_cv_func___res_send=yes
19991 else
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_func___res_send=no
19998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19999 conftest$ac_exeext conftest.$ac_ext
20001 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20002 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20003 if test $ac_cv_func___res_send = yes; then
20005 else
20006 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20007 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20008 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011 ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lresolv $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h. */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 char res_send ();
20028 main ()
20030 return res_send ();
20032 return 0;
20034 _ACEOF
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } && {
20049 test -z "$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20051 } && test -s conftest$ac_exeext &&
20052 $as_test_x conftest$ac_exeext; then
20053 ac_cv_lib_resolv_res_send=yes
20054 else
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_cv_lib_resolv_res_send=no
20061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062 conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_check_lib_save_LIBS
20065 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20066 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20067 if test $ac_cv_lib_resolv_res_send = yes; then
20068 resolv=yes
20069 else
20070 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20071 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20072 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075 ac_check_lib_save_LIBS=$LIBS
20076 LIBS="-lresolv $LIBS"
20077 cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h. */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20084 /* Override any GCC internal prototype to avoid an error.
20085 Use char because int might match the return type of a GCC
20086 builtin and then its argument prototype would still apply. */
20087 #ifdef __cplusplus
20088 extern "C"
20089 #endif
20090 char __res_send ();
20092 main ()
20094 return __res_send ();
20096 return 0;
20098 _ACEOF
20099 rm -f conftest.$ac_objext conftest$ac_exeext
20100 if { (ac_try="$ac_link"
20101 case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20104 esac
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_link") 2>conftest.er1
20107 ac_status=$?
20108 grep -v '^ *+' conftest.er1 >conftest.err
20109 rm -f conftest.er1
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } && {
20113 test -z "$ac_c_werror_flag" ||
20114 test ! -s conftest.err
20115 } && test -s conftest$ac_exeext &&
20116 $as_test_x conftest$ac_exeext; then
20117 ac_cv_lib_resolv___res_send=yes
20118 else
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 ac_cv_lib_resolv___res_send=no
20125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20126 conftest$ac_exeext conftest.$ac_ext
20127 LIBS=$ac_check_lib_save_LIBS
20129 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20130 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20131 if test $ac_cv_lib_resolv___res_send = yes; then
20132 resolv=yes
20141 if test "$resolv" = yes ; then
20142 RESOLVLIB=-lresolv
20143 else
20144 RESOLVLIB=
20146 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20147 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20148 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20159 #define hes_getmailhost innocuous_hes_getmailhost
20161 /* System header to define __stub macros and hopefully few prototypes,
20162 which can conflict with char hes_getmailhost (); below.
20163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20164 <limits.h> exists even on freestanding compilers. */
20166 #ifdef __STDC__
20167 # include <limits.h>
20168 #else
20169 # include <assert.h>
20170 #endif
20172 #undef hes_getmailhost
20174 /* Override any GCC internal prototype to avoid an error.
20175 Use char because int might match the return type of a GCC
20176 builtin and then its argument prototype would still apply. */
20177 #ifdef __cplusplus
20178 extern "C"
20179 #endif
20180 char hes_getmailhost ();
20181 /* The GNU C library defines this for functions which it implements
20182 to always fail with ENOSYS. Some functions are actually named
20183 something starting with __ and the normal name is an alias. */
20184 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20185 choke me
20186 #endif
20189 main ()
20191 return hes_getmailhost ();
20193 return 0;
20195 _ACEOF
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } && {
20210 test -z "$ac_c_werror_flag" ||
20211 test ! -s conftest.err
20212 } && test -s conftest$ac_exeext &&
20213 $as_test_x conftest$ac_exeext; then
20214 ac_cv_func_hes_getmailhost=yes
20215 else
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ac_cv_func_hes_getmailhost=no
20222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20223 conftest$ac_exeext conftest.$ac_ext
20225 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20226 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20227 if test $ac_cv_func_hes_getmailhost = yes; then
20229 else
20230 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20231 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20232 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235 ac_check_lib_save_LIBS=$LIBS
20236 LIBS="-lhesiod $RESOLVLIB $LIBS"
20237 cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h. */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char hes_getmailhost ();
20252 main ()
20254 return hes_getmailhost ();
20256 return 0;
20258 _ACEOF
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && {
20273 test -z "$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 } && test -s conftest$ac_exeext &&
20276 $as_test_x conftest$ac_exeext; then
20277 ac_cv_lib_hesiod_hes_getmailhost=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_lib_hesiod_hes_getmailhost=no
20285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20286 conftest$ac_exeext conftest.$ac_ext
20287 LIBS=$ac_check_lib_save_LIBS
20289 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20290 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20291 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_LIBHESIOD 1
20295 _ACEOF
20297 else
20305 # Do we need libresolv (due to res_init or Hesiod)?
20306 if test "$resolv" = yes ; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_LIBRESOLV 1
20310 _ACEOF
20314 # These tell us which Kerberos-related libraries to use.
20315 if test "${with_kerberos+set}" = set; then
20317 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20318 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20319 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 else
20322 ac_check_lib_save_LIBS=$LIBS
20323 LIBS="-lcom_err $LIBS"
20324 cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h. */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20331 /* Override any GCC internal prototype to avoid an error.
20332 Use char because int might match the return type of a GCC
20333 builtin and then its argument prototype would still apply. */
20334 #ifdef __cplusplus
20335 extern "C"
20336 #endif
20337 char com_err ();
20339 main ()
20341 return com_err ();
20343 return 0;
20345 _ACEOF
20346 rm -f conftest.$ac_objext conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>conftest.er1
20354 ac_status=$?
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } && {
20360 test -z "$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20362 } && test -s conftest$ac_exeext &&
20363 $as_test_x conftest$ac_exeext; then
20364 ac_cv_lib_com_err_com_err=yes
20365 else
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ac_cv_lib_com_err_com_err=no
20372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20373 conftest$ac_exeext conftest.$ac_ext
20374 LIBS=$ac_check_lib_save_LIBS
20376 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20377 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20378 if test $ac_cv_lib_com_err_com_err = yes; then
20379 cat >>confdefs.h <<_ACEOF
20380 #define HAVE_LIBCOM_ERR 1
20381 _ACEOF
20383 LIBS="-lcom_err $LIBS"
20388 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20389 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20390 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393 ac_check_lib_save_LIBS=$LIBS
20394 LIBS="-lk5crypto $LIBS"
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20402 /* Override any GCC internal prototype to avoid an error.
20403 Use char because int might match the return type of a GCC
20404 builtin and then its argument prototype would still apply. */
20405 #ifdef __cplusplus
20406 extern "C"
20407 #endif
20408 char mit_des_cbc_encrypt ();
20410 main ()
20412 return mit_des_cbc_encrypt ();
20414 return 0;
20416 _ACEOF
20417 rm -f conftest.$ac_objext conftest$ac_exeext
20418 if { (ac_try="$ac_link"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_link") 2>conftest.er1
20425 ac_status=$?
20426 grep -v '^ *+' conftest.er1 >conftest.err
20427 rm -f conftest.er1
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest$ac_exeext &&
20434 $as_test_x conftest$ac_exeext; then
20435 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20436 else
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20444 conftest$ac_exeext conftest.$ac_ext
20445 LIBS=$ac_check_lib_save_LIBS
20447 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20448 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20449 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20450 cat >>confdefs.h <<_ACEOF
20451 #define HAVE_LIBK5CRYPTO 1
20452 _ACEOF
20454 LIBS="-lk5crypto $LIBS"
20459 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20460 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20461 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464 ac_check_lib_save_LIBS=$LIBS
20465 LIBS="-lcrypto $LIBS"
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20473 /* Override any GCC internal prototype to avoid an error.
20474 Use char because int might match the return type of a GCC
20475 builtin and then its argument prototype would still apply. */
20476 #ifdef __cplusplus
20477 extern "C"
20478 #endif
20479 char mit_des_cbc_encrypt ();
20481 main ()
20483 return mit_des_cbc_encrypt ();
20485 return 0;
20487 _ACEOF
20488 rm -f conftest.$ac_objext conftest$ac_exeext
20489 if { (ac_try="$ac_link"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_link") 2>conftest.er1
20496 ac_status=$?
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest$ac_exeext &&
20505 $as_test_x conftest$ac_exeext; then
20506 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20507 else
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20515 conftest$ac_exeext conftest.$ac_ext
20516 LIBS=$ac_check_lib_save_LIBS
20518 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20519 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20520 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_LIBCRYPTO 1
20523 _ACEOF
20525 LIBS="-lcrypto $LIBS"
20530 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20531 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lkrb5 $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20547 #ifdef __cplusplus
20548 extern "C"
20549 #endif
20550 char krb5_init_context ();
20552 main ()
20554 return krb5_init_context ();
20556 return 0;
20558 _ACEOF
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
20577 ac_cv_lib_krb5_krb5_init_context=yes
20578 else
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_lib_krb5_krb5_init_context=no
20585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20586 conftest$ac_exeext conftest.$ac_ext
20587 LIBS=$ac_check_lib_save_LIBS
20589 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20590 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20591 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_LIBKRB5 1
20594 _ACEOF
20596 LIBS="-lkrb5 $LIBS"
20600 if test "${with_kerberos5+set}" != set; then
20602 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20603 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-ldes425 $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char des_cbc_encrypt ();
20624 main ()
20626 return des_cbc_encrypt ();
20628 return 0;
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest$ac_exeext &&
20648 $as_test_x conftest$ac_exeext; then
20649 ac_cv_lib_des425_des_cbc_encrypt=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_cv_lib_des425_des_cbc_encrypt=no
20657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20661 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20662 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20663 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_LIBDES425 1
20666 _ACEOF
20668 LIBS="-ldes425 $LIBS"
20670 else
20672 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20673 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20674 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 else
20677 ac_check_lib_save_LIBS=$LIBS
20678 LIBS="-ldes $LIBS"
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply. */
20689 #ifdef __cplusplus
20690 extern "C"
20691 #endif
20692 char des_cbc_encrypt ();
20694 main ()
20696 return des_cbc_encrypt ();
20698 return 0;
20700 _ACEOF
20701 rm -f conftest.$ac_objext conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest$ac_exeext &&
20718 $as_test_x conftest$ac_exeext; then
20719 ac_cv_lib_des_des_cbc_encrypt=yes
20720 else
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_cv_lib_des_des_cbc_encrypt=no
20727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20728 conftest$ac_exeext conftest.$ac_ext
20729 LIBS=$ac_check_lib_save_LIBS
20731 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20732 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20733 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20734 cat >>confdefs.h <<_ACEOF
20735 #define HAVE_LIBDES 1
20736 _ACEOF
20738 LIBS="-ldes $LIBS"
20745 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20746 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20747 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750 ac_check_lib_save_LIBS=$LIBS
20751 LIBS="-lkrb4 $LIBS"
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 /* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20762 #ifdef __cplusplus
20763 extern "C"
20764 #endif
20765 char krb_get_cred ();
20767 main ()
20769 return krb_get_cred ();
20771 return 0;
20773 _ACEOF
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext &&
20791 $as_test_x conftest$ac_exeext; then
20792 ac_cv_lib_krb4_krb_get_cred=yes
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_cv_lib_krb4_krb_get_cred=no
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20804 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20805 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20806 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_LIBKRB4 1
20809 _ACEOF
20811 LIBS="-lkrb4 $LIBS"
20813 else
20815 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20816 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20817 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820 ac_check_lib_save_LIBS=$LIBS
20821 LIBS="-lkrb $LIBS"
20822 cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h. */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 /* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20832 #ifdef __cplusplus
20833 extern "C"
20834 #endif
20835 char krb_get_cred ();
20837 main ()
20839 return krb_get_cred ();
20841 return 0;
20843 _ACEOF
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (ac_try="$ac_link"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_link") 2>conftest.er1
20852 ac_status=$?
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest$ac_exeext &&
20861 $as_test_x conftest$ac_exeext; then
20862 ac_cv_lib_krb_krb_get_cred=yes
20863 else
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 ac_cv_lib_krb_krb_get_cred=no
20870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20871 conftest$ac_exeext conftest.$ac_ext
20872 LIBS=$ac_check_lib_save_LIBS
20874 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20875 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20876 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_LIBKRB 1
20879 _ACEOF
20881 LIBS="-lkrb $LIBS"
20889 if test "${with_kerberos5+set}" = set; then
20891 for ac_header in krb5.h
20893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 ac_res=`eval echo '${'$as_ac_Header'}'`
20901 { echo "$as_me:$LINENO: result: $ac_res" >&5
20902 echo "${ECHO_T}$ac_res" >&6; }
20903 else
20904 # Is the header compilable?
20905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20907 cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h. */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 $ac_includes_default
20914 #include <$ac_header>
20915 _ACEOF
20916 rm -f conftest.$ac_objext
20917 if { (ac_try="$ac_compile"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_compile") 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest.$ac_objext; then
20933 ac_header_compiler=yes
20934 else
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_header_compiler=no
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20943 echo "${ECHO_T}$ac_header_compiler" >&6; }
20945 # Is the header present?
20946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h. */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 #include <$ac_header>
20955 _ACEOF
20956 if { (ac_try="$ac_cpp conftest.$ac_ext"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20963 ac_status=$?
20964 grep -v '^ *+' conftest.er1 >conftest.err
20965 rm -f conftest.er1
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } >/dev/null && {
20969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 }; then
20972 ac_header_preproc=yes
20973 else
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_header_preproc=no
20980 rm -f conftest.err conftest.$ac_ext
20981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20982 echo "${ECHO_T}$ac_header_preproc" >&6; }
20984 # So? What about this header?
20985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20986 yes:no: )
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20991 ac_header_preproc=yes
20993 no:yes:* )
20994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21008 esac
21009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014 eval "$as_ac_Header=\$ac_header_preproc"
21016 ac_res=`eval echo '${'$as_ac_Header'}'`
21017 { echo "$as_me:$LINENO: result: $ac_res" >&5
21018 echo "${ECHO_T}$ac_res" >&6; }
21021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21024 _ACEOF
21028 done
21030 else
21032 for ac_header in des.h
21034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042 { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21044 else
21045 # Is the header compilable?
21046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 $ac_includes_default
21055 #include <$ac_header>
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.$ac_objext; then
21074 ac_header_compiler=yes
21075 else
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 ac_header_compiler=no
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21084 echo "${ECHO_T}$ac_header_compiler" >&6; }
21086 # Is the header present?
21087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <$ac_header>
21096 _ACEOF
21097 if { (ac_try="$ac_cpp conftest.$ac_ext"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } >/dev/null && {
21110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 }; then
21113 ac_header_preproc=yes
21114 else
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_header_preproc=no
21121 rm -f conftest.err conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21123 echo "${ECHO_T}$ac_header_preproc" >&6; }
21125 # So? What about this header?
21126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21127 yes:no: )
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21132 ac_header_preproc=yes
21134 no:yes:* )
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21149 esac
21150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155 eval "$as_ac_Header=\$ac_header_preproc"
21157 ac_res=`eval echo '${'$as_ac_Header'}'`
21158 { echo "$as_me:$LINENO: result: $ac_res" >&5
21159 echo "${ECHO_T}$ac_res" >&6; }
21162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21163 cat >>confdefs.h <<_ACEOF
21164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21165 _ACEOF
21167 else
21169 for ac_header in kerberosIV/des.h
21171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 ac_res=`eval echo '${'$as_ac_Header'}'`
21179 { echo "$as_me:$LINENO: result: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21181 else
21182 # Is the header compilable?
21183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 #include <$ac_header>
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21199 esac
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } && {
21208 test -z "$ac_c_werror_flag" ||
21209 test ! -s conftest.err
21210 } && test -s conftest.$ac_objext; then
21211 ac_header_compiler=yes
21212 else
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ac_header_compiler=no
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21221 echo "${ECHO_T}$ac_header_compiler" >&6; }
21223 # Is the header present?
21224 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <$ac_header>
21233 _ACEOF
21234 if { (ac_try="$ac_cpp conftest.$ac_ext"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21241 ac_status=$?
21242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } >/dev/null && {
21247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 }; then
21250 ac_header_preproc=yes
21251 else
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_header_preproc=no
21258 rm -f conftest.err conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21260 echo "${ECHO_T}$ac_header_preproc" >&6; }
21262 # So? What about this header?
21263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21264 yes:no: )
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21269 ac_header_preproc=yes
21271 no:yes:* )
21272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21286 esac
21287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292 eval "$as_ac_Header=\$ac_header_preproc"
21294 ac_res=`eval echo '${'$as_ac_Header'}'`
21295 { echo "$as_me:$LINENO: result: $ac_res" >&5
21296 echo "${ECHO_T}$ac_res" >&6; }
21299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21300 cat >>confdefs.h <<_ACEOF
21301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21302 _ACEOF
21304 else
21306 for ac_header in kerberos/des.h
21308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 ac_res=`eval echo '${'$as_ac_Header'}'`
21316 { echo "$as_me:$LINENO: result: $ac_res" >&5
21317 echo "${ECHO_T}$ac_res" >&6; }
21318 else
21319 # Is the header compilable?
21320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21322 cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h. */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 $ac_includes_default
21329 #include <$ac_header>
21330 _ACEOF
21331 rm -f conftest.$ac_objext
21332 if { (ac_try="$ac_compile"
21333 case "(($ac_try" in
21334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21335 *) ac_try_echo=$ac_try;;
21336 esac
21337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21338 (eval "$ac_compile") 2>conftest.er1
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } && {
21345 test -z "$ac_c_werror_flag" ||
21346 test ! -s conftest.err
21347 } && test -s conftest.$ac_objext; then
21348 ac_header_compiler=yes
21349 else
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_header_compiler=no
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21358 echo "${ECHO_T}$ac_header_compiler" >&6; }
21360 # Is the header present?
21361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 #include <$ac_header>
21370 _ACEOF
21371 if { (ac_try="$ac_cpp conftest.$ac_ext"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21378 ac_status=$?
21379 grep -v '^ *+' conftest.er1 >conftest.err
21380 rm -f conftest.er1
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } >/dev/null && {
21384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 }; then
21387 ac_header_preproc=yes
21388 else
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_header_preproc=no
21395 rm -f conftest.err conftest.$ac_ext
21396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21397 echo "${ECHO_T}$ac_header_preproc" >&6; }
21399 # So? What about this header?
21400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21401 yes:no: )
21402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21406 ac_header_preproc=yes
21408 no:yes:* )
21409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21423 esac
21424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429 eval "$as_ac_Header=\$ac_header_preproc"
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432 { echo "$as_me:$LINENO: result: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21437 cat >>confdefs.h <<_ACEOF
21438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21439 _ACEOF
21443 done
21447 done
21451 done
21454 for ac_header in krb.h
21456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 ac_res=`eval echo '${'$as_ac_Header'}'`
21464 { echo "$as_me:$LINENO: result: $ac_res" >&5
21465 echo "${ECHO_T}$ac_res" >&6; }
21466 else
21467 # Is the header compilable?
21468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21470 cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h. */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476 $ac_includes_default
21477 #include <$ac_header>
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (ac_try="$ac_compile"
21481 case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21484 esac
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_compile") 2>conftest.er1
21487 ac_status=$?
21488 grep -v '^ *+' conftest.er1 >conftest.err
21489 rm -f conftest.er1
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } && {
21493 test -z "$ac_c_werror_flag" ||
21494 test ! -s conftest.err
21495 } && test -s conftest.$ac_objext; then
21496 ac_header_compiler=yes
21497 else
21498 echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21501 ac_header_compiler=no
21504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21506 echo "${ECHO_T}$ac_header_compiler" >&6; }
21508 # Is the header present?
21509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21511 cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h. */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 #include <$ac_header>
21518 _ACEOF
21519 if { (ac_try="$ac_cpp conftest.$ac_ext"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } >/dev/null && {
21532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21533 test ! -s conftest.err
21534 }; then
21535 ac_header_preproc=yes
21536 else
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_header_preproc=no
21543 rm -f conftest.err conftest.$ac_ext
21544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21545 echo "${ECHO_T}$ac_header_preproc" >&6; }
21547 # So? What about this header?
21548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21549 yes:no: )
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21554 ac_header_preproc=yes
21556 no:yes:* )
21557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21571 esac
21572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577 eval "$as_ac_Header=\$ac_header_preproc"
21579 ac_res=`eval echo '${'$as_ac_Header'}'`
21580 { echo "$as_me:$LINENO: result: $ac_res" >&5
21581 echo "${ECHO_T}$ac_res" >&6; }
21584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21585 cat >>confdefs.h <<_ACEOF
21586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21587 _ACEOF
21589 else
21591 for ac_header in kerberosIV/krb.h
21593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 ac_res=`eval echo '${'$as_ac_Header'}'`
21601 { echo "$as_me:$LINENO: result: $ac_res" >&5
21602 echo "${ECHO_T}$ac_res" >&6; }
21603 else
21604 # Is the header compilable?
21605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h. */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21614 #include <$ac_header>
21615 _ACEOF
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_compile") 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest.$ac_objext; then
21633 ac_header_compiler=yes
21634 else
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_header_compiler=no
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21643 echo "${ECHO_T}$ac_header_compiler" >&6; }
21645 # Is the header present?
21646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21648 cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h. */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 #include <$ac_header>
21655 _ACEOF
21656 if { (ac_try="$ac_cpp conftest.$ac_ext"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } >/dev/null && {
21669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 }; then
21672 ac_header_preproc=yes
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ac_header_preproc=no
21680 rm -f conftest.err conftest.$ac_ext
21681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21682 echo "${ECHO_T}$ac_header_preproc" >&6; }
21684 # So? What about this header?
21685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21686 yes:no: )
21687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21691 ac_header_preproc=yes
21693 no:yes:* )
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21708 esac
21709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714 eval "$as_ac_Header=\$ac_header_preproc"
21716 ac_res=`eval echo '${'$as_ac_Header'}'`
21717 { echo "$as_me:$LINENO: result: $ac_res" >&5
21718 echo "${ECHO_T}$ac_res" >&6; }
21721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21724 _ACEOF
21726 else
21728 for ac_header in kerberos/krb.h
21730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 ac_res=`eval echo '${'$as_ac_Header'}'`
21738 { echo "$as_me:$LINENO: result: $ac_res" >&5
21739 echo "${ECHO_T}$ac_res" >&6; }
21740 else
21741 # Is the header compilable?
21742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21744 cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h. */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750 $ac_includes_default
21751 #include <$ac_header>
21752 _ACEOF
21753 rm -f conftest.$ac_objext
21754 if { (ac_try="$ac_compile"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21758 esac
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_compile") 2>conftest.er1
21761 ac_status=$?
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest.$ac_objext; then
21770 ac_header_compiler=yes
21771 else
21772 echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21775 ac_header_compiler=no
21778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21780 echo "${ECHO_T}$ac_header_compiler" >&6; }
21782 # Is the header present?
21783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <$ac_header>
21792 _ACEOF
21793 if { (ac_try="$ac_cpp conftest.$ac_ext"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21800 ac_status=$?
21801 grep -v '^ *+' conftest.er1 >conftest.err
21802 rm -f conftest.er1
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } >/dev/null && {
21806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21808 }; then
21809 ac_header_preproc=yes
21810 else
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_header_preproc=no
21817 rm -f conftest.err conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21819 echo "${ECHO_T}$ac_header_preproc" >&6; }
21821 # So? What about this header?
21822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21823 yes:no: )
21824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21828 ac_header_preproc=yes
21830 no:yes:* )
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21845 esac
21846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851 eval "$as_ac_Header=\$ac_header_preproc"
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854 { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21859 cat >>confdefs.h <<_ACEOF
21860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21861 _ACEOF
21865 done
21869 done
21873 done
21877 for ac_header in com_err.h
21879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887 { echo "$as_me:$LINENO: result: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21889 else
21890 # Is the header compilable?
21891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21893 cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h. */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 $ac_includes_default
21900 #include <$ac_header>
21901 _ACEOF
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_compile") 2>conftest.er1
21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest.$ac_objext; then
21919 ac_header_compiler=yes
21920 else
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 ac_header_compiler=no
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21929 echo "${ECHO_T}$ac_header_compiler" >&6; }
21931 # Is the header present?
21932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21934 cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h. */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 #include <$ac_header>
21941 _ACEOF
21942 if { (ac_try="$ac_cpp conftest.$ac_ext"
21943 case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21949 ac_status=$?
21950 grep -v '^ *+' conftest.er1 >conftest.err
21951 rm -f conftest.er1
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } >/dev/null && {
21955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21956 test ! -s conftest.err
21957 }; then
21958 ac_header_preproc=yes
21959 else
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 ac_header_preproc=no
21966 rm -f conftest.err conftest.$ac_ext
21967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968 echo "${ECHO_T}$ac_header_preproc" >&6; }
21970 # So? What about this header?
21971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21972 yes:no: )
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21977 ac_header_preproc=yes
21979 no:yes:* )
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21994 esac
21995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
21999 else
22000 eval "$as_ac_Header=\$ac_header_preproc"
22002 ac_res=`eval echo '${'$as_ac_Header'}'`
22003 { echo "$as_me:$LINENO: result: $ac_res" >&5
22004 echo "${ECHO_T}$ac_res" >&6; }
22007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22008 cat >>confdefs.h <<_ACEOF
22009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22010 _ACEOF
22014 done
22018 # Solaris requires -lintl if you want strerror (which calls dgettext)
22019 # to return localized messages.
22021 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22022 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22023 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026 ac_check_lib_save_LIBS=$LIBS
22027 LIBS="-lintl $LIBS"
22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h. */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22035 /* Override any GCC internal prototype to avoid an error.
22036 Use char because int might match the return type of a GCC
22037 builtin and then its argument prototype would still apply. */
22038 #ifdef __cplusplus
22039 extern "C"
22040 #endif
22041 char dgettext ();
22043 main ()
22045 return dgettext ();
22047 return 0;
22049 _ACEOF
22050 rm -f conftest.$ac_objext conftest$ac_exeext
22051 if { (ac_try="$ac_link"
22052 case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055 esac
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_link") 2>conftest.er1
22058 ac_status=$?
22059 grep -v '^ *+' conftest.er1 >conftest.err
22060 rm -f conftest.er1
22061 cat conftest.err >&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } && {
22064 test -z "$ac_c_werror_flag" ||
22065 test ! -s conftest.err
22066 } && test -s conftest$ac_exeext &&
22067 $as_test_x conftest$ac_exeext; then
22068 ac_cv_lib_intl_dgettext=yes
22069 else
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ac_cv_lib_intl_dgettext=no
22076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22077 conftest$ac_exeext conftest.$ac_ext
22078 LIBS=$ac_check_lib_save_LIBS
22080 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22081 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22082 if test $ac_cv_lib_intl_dgettext = yes; then
22083 cat >>confdefs.h <<_ACEOF
22084 #define HAVE_LIBINTL 1
22085 _ACEOF
22087 LIBS="-lintl $LIBS"
22092 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22093 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22094 if test "${emacs_cv_localtime_cache+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097 if test x$ac_cv_func_tzset = xyes; then
22098 if test "$cross_compiling" = yes; then
22099 # If we have tzset, assume the worst when cross-compiling.
22100 emacs_cv_localtime_cache=yes
22101 else
22102 cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h. */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 #include <time.h>
22109 extern char **environ;
22110 unset_TZ ()
22112 char **from, **to;
22113 for (to = from = environ; (*to = *from); from++)
22114 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22115 to++;
22117 char TZ_GMT0[] = "TZ=GMT0";
22118 char TZ_PST8[] = "TZ=PST8";
22119 main()
22121 time_t now = time ((time_t *) 0);
22122 int hour_GMT0, hour_unset;
22123 if (putenv (TZ_GMT0) != 0)
22124 exit (1);
22125 hour_GMT0 = localtime (&now)->tm_hour;
22126 unset_TZ ();
22127 hour_unset = localtime (&now)->tm_hour;
22128 if (putenv (TZ_PST8) != 0)
22129 exit (1);
22130 if (localtime (&now)->tm_hour == hour_GMT0)
22131 exit (1);
22132 unset_TZ ();
22133 if (localtime (&now)->tm_hour != hour_unset)
22134 exit (1);
22135 exit (0);
22137 _ACEOF
22138 rm -f conftest$ac_exeext
22139 if { (ac_try="$ac_link"
22140 case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22143 esac
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_link") 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22149 { (case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_try") 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 emacs_cv_localtime_cache=no
22159 else
22160 echo "$as_me: program exited with status $ac_status" >&5
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22164 ( exit $ac_status )
22165 emacs_cv_localtime_cache=yes
22167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22171 else
22172 # If we lack tzset, report that localtime does not cache TZ,
22173 # since we can't invalidate the cache if we don't have tzset.
22174 emacs_cv_localtime_cache=no
22177 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22178 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22179 if test $emacs_cv_localtime_cache = yes; then
22181 cat >>confdefs.h <<\_ACEOF
22182 #define LOCALTIME_CACHE 1
22183 _ACEOF
22187 if test "x$HAVE_TIMEVAL" = xyes; then
22189 for ac_func in gettimeofday
22191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 else
22197 cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h. */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22205 #define $ac_func innocuous_$ac_func
22207 /* System header to define __stub macros and hopefully few prototypes,
22208 which can conflict with char $ac_func (); below.
22209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22210 <limits.h> exists even on freestanding compilers. */
22212 #ifdef __STDC__
22213 # include <limits.h>
22214 #else
22215 # include <assert.h>
22216 #endif
22218 #undef $ac_func
22220 /* Override any GCC internal prototype to avoid an error.
22221 Use char because int might match the return type of a GCC
22222 builtin and then its argument prototype would still apply. */
22223 #ifdef __cplusplus
22224 extern "C"
22225 #endif
22226 char $ac_func ();
22227 /* The GNU C library defines this for functions which it implements
22228 to always fail with ENOSYS. Some functions are actually named
22229 something starting with __ and the normal name is an alias. */
22230 #if defined __stub_$ac_func || defined __stub___$ac_func
22231 choke me
22232 #endif
22235 main ()
22237 return $ac_func ();
22239 return 0;
22241 _ACEOF
22242 rm -f conftest.$ac_objext conftest$ac_exeext
22243 if { (ac_try="$ac_link"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22247 esac
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_link") 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest$ac_exeext &&
22259 $as_test_x conftest$ac_exeext; then
22260 eval "$as_ac_var=yes"
22261 else
22262 echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 eval "$as_ac_var=no"
22268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22269 conftest$ac_exeext conftest.$ac_ext
22271 ac_res=`eval echo '${'$as_ac_var'}'`
22272 { echo "$as_me:$LINENO: result: $ac_res" >&5
22273 echo "${ECHO_T}$ac_res" >&6; }
22274 if test `eval echo '${'$as_ac_var'}'` = yes; then
22275 cat >>confdefs.h <<_ACEOF
22276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22277 _ACEOF
22280 done
22282 if test $ac_cv_func_gettimeofday = yes; then
22283 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22284 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22285 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288 cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h. */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22295 #ifdef TIME_WITH_SYS_TIME
22296 #include <sys/time.h>
22297 #include <time.h>
22298 #else
22299 #ifdef HAVE_SYS_TIME_H
22300 #include <sys/time.h>
22301 #else
22302 #include <time.h>
22303 #endif
22304 #endif
22306 main ()
22308 struct timeval time;
22309 gettimeofday (&time, 0);
22311 return 0;
22313 _ACEOF
22314 rm -f conftest.$ac_objext
22315 if { (ac_try="$ac_compile"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_compile") 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest.$ac_objext; then
22331 emacs_cv_gettimeofday_two_arguments=yes
22332 else
22333 echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 emacs_cv_gettimeofday_two_arguments=no
22339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22342 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22343 if test $emacs_cv_gettimeofday_two_arguments = no; then
22345 cat >>confdefs.h <<\_ACEOF
22346 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22347 _ACEOF
22353 ok_so_far=yes
22354 { echo "$as_me:$LINENO: checking for socket" >&5
22355 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22356 if test "${ac_cv_func_socket+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359 cat >conftest.$ac_ext <<_ACEOF
22360 /* confdefs.h. */
22361 _ACEOF
22362 cat confdefs.h >>conftest.$ac_ext
22363 cat >>conftest.$ac_ext <<_ACEOF
22364 /* end confdefs.h. */
22365 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22367 #define socket innocuous_socket
22369 /* System header to define __stub macros and hopefully few prototypes,
22370 which can conflict with char socket (); below.
22371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22372 <limits.h> exists even on freestanding compilers. */
22374 #ifdef __STDC__
22375 # include <limits.h>
22376 #else
22377 # include <assert.h>
22378 #endif
22380 #undef socket
22382 /* Override any GCC internal prototype to avoid an error.
22383 Use char because int might match the return type of a GCC
22384 builtin and then its argument prototype would still apply. */
22385 #ifdef __cplusplus
22386 extern "C"
22387 #endif
22388 char socket ();
22389 /* The GNU C library defines this for functions which it implements
22390 to always fail with ENOSYS. Some functions are actually named
22391 something starting with __ and the normal name is an alias. */
22392 #if defined __stub_socket || defined __stub___socket
22393 choke me
22394 #endif
22397 main ()
22399 return socket ();
22401 return 0;
22403 _ACEOF
22404 rm -f conftest.$ac_objext conftest$ac_exeext
22405 if { (ac_try="$ac_link"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409 esac
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_link") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest$ac_exeext &&
22421 $as_test_x conftest$ac_exeext; then
22422 ac_cv_func_socket=yes
22423 else
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_cv_func_socket=no
22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22431 conftest$ac_exeext conftest.$ac_ext
22433 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22434 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22435 if test $ac_cv_func_socket = yes; then
22437 else
22438 ok_so_far=no
22441 if test $ok_so_far = yes; then
22442 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22443 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22444 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22445 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22449 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22450 else
22451 # Is the header compilable?
22452 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22453 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22454 cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h. */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 $ac_includes_default
22461 #include <netinet/in.h>
22462 _ACEOF
22463 rm -f conftest.$ac_objext
22464 if { (ac_try="$ac_compile"
22465 case "(($ac_try" in
22466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467 *) ac_try_echo=$ac_try;;
22468 esac
22469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470 (eval "$ac_compile") 2>conftest.er1
22471 ac_status=$?
22472 grep -v '^ *+' conftest.er1 >conftest.err
22473 rm -f conftest.er1
22474 cat conftest.err >&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } && {
22477 test -z "$ac_c_werror_flag" ||
22478 test ! -s conftest.err
22479 } && test -s conftest.$ac_objext; then
22480 ac_header_compiler=yes
22481 else
22482 echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22485 ac_header_compiler=no
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22490 echo "${ECHO_T}$ac_header_compiler" >&6; }
22492 # Is the header present?
22493 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22494 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 #include <netinet/in.h>
22502 _ACEOF
22503 if { (ac_try="$ac_cpp conftest.$ac_ext"
22504 case "(($ac_try" in
22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506 *) ac_try_echo=$ac_try;;
22507 esac
22508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22510 ac_status=$?
22511 grep -v '^ *+' conftest.er1 >conftest.err
22512 rm -f conftest.er1
22513 cat conftest.err >&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } >/dev/null && {
22516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22518 }; then
22519 ac_header_preproc=yes
22520 else
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22524 ac_header_preproc=no
22527 rm -f conftest.err conftest.$ac_ext
22528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22529 echo "${ECHO_T}$ac_header_preproc" >&6; }
22531 # So? What about this header?
22532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22533 yes:no: )
22534 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22535 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22537 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22538 ac_header_preproc=yes
22540 no:yes:* )
22541 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22542 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22543 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22544 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22545 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22546 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22547 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22548 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22549 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22550 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22551 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22552 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22555 esac
22556 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22557 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22558 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22559 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 else
22561 ac_cv_header_netinet_in_h=$ac_header_preproc
22563 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22564 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22567 if test $ac_cv_header_netinet_in_h = yes; then
22569 else
22570 ok_so_far=no
22575 if test $ok_so_far = yes; then
22576 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22577 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22578 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22579 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22583 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22584 else
22585 # Is the header compilable?
22586 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22587 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22588 cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h. */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 $ac_includes_default
22595 #include <arpa/inet.h>
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22605 ac_status=$?
22606 grep -v '^ *+' conftest.er1 >conftest.err
22607 rm -f conftest.er1
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_header_compiler=yes
22615 else
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_header_compiler=no
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22624 echo "${ECHO_T}$ac_header_compiler" >&6; }
22626 # Is the header present?
22627 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22628 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22629 cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h. */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22635 #include <arpa/inet.h>
22636 _ACEOF
22637 if { (ac_try="$ac_cpp conftest.$ac_ext"
22638 case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22644 ac_status=$?
22645 grep -v '^ *+' conftest.er1 >conftest.err
22646 rm -f conftest.er1
22647 cat conftest.err >&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); } >/dev/null && {
22650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22651 test ! -s conftest.err
22652 }; then
22653 ac_header_preproc=yes
22654 else
22655 echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22658 ac_header_preproc=no
22661 rm -f conftest.err conftest.$ac_ext
22662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22663 echo "${ECHO_T}$ac_header_preproc" >&6; }
22665 # So? What about this header?
22666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22667 yes:no: )
22668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22669 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22671 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22672 ac_header_preproc=yes
22674 no:yes:* )
22675 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22676 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22677 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22678 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22680 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22682 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22684 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22685 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22686 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22689 esac
22690 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22691 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22692 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22694 else
22695 ac_cv_header_arpa_inet_h=$ac_header_preproc
22697 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22698 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22701 if test $ac_cv_header_arpa_inet_h = yes; then
22703 else
22704 ok_so_far=no
22709 if test $ok_so_far = yes; then
22711 cat >>confdefs.h <<\_ACEOF
22712 #define HAVE_INET_SOCKETS 1
22713 _ACEOF
22718 for ac_header in sys/ioctl.h
22720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 ac_res=`eval echo '${'$as_ac_Header'}'`
22728 { echo "$as_me:$LINENO: result: $ac_res" >&5
22729 echo "${ECHO_T}$ac_res" >&6; }
22730 else
22731 # Is the header compilable?
22732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22734 cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h. */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 $ac_includes_default
22741 #include <$ac_header>
22742 _ACEOF
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22748 esac
22749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750 (eval "$ac_compile") 2>conftest.er1
22751 ac_status=$?
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } && {
22757 test -z "$ac_c_werror_flag" ||
22758 test ! -s conftest.err
22759 } && test -s conftest.$ac_objext; then
22760 ac_header_compiler=yes
22761 else
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 ac_header_compiler=no
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22770 echo "${ECHO_T}$ac_header_compiler" >&6; }
22772 # Is the header present?
22773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22775 cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h. */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22781 #include <$ac_header>
22782 _ACEOF
22783 if { (ac_try="$ac_cpp conftest.$ac_ext"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22790 ac_status=$?
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } >/dev/null && {
22796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22797 test ! -s conftest.err
22798 }; then
22799 ac_header_preproc=yes
22800 else
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 ac_header_preproc=no
22807 rm -f conftest.err conftest.$ac_ext
22808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22809 echo "${ECHO_T}$ac_header_preproc" >&6; }
22811 # So? What about this header?
22812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22813 yes:no: )
22814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22818 ac_header_preproc=yes
22820 no:yes:* )
22821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22835 esac
22836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841 eval "$as_ac_Header=\$ac_header_preproc"
22843 ac_res=`eval echo '${'$as_ac_Header'}'`
22844 { echo "$as_me:$LINENO: result: $ac_res" >&5
22845 echo "${ECHO_T}$ac_res" >&6; }
22848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22849 cat >>confdefs.h <<_ACEOF
22850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22851 _ACEOF
22855 done
22858 if test -f /usr/lpp/X11/bin/smt.exp; then
22860 cat >>confdefs.h <<\_ACEOF
22861 #define HAVE_AIX_SMT_EXP 1
22862 _ACEOF
22866 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22867 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22868 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22869 { echo "$as_me:$LINENO: result: yes" >&5
22870 echo "${ECHO_T}yes" >&6; }
22872 cat >>confdefs.h <<\_ACEOF
22873 #define HAVE_DEV_PTMX 1
22874 _ACEOF
22876 else
22877 { echo "$as_me:$LINENO: result: no" >&5
22878 echo "${ECHO_T}no" >&6; }
22881 { echo "$as_me:$LINENO: checking for pid_t" >&5
22882 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22883 if test "${ac_cv_type_pid_t+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 else
22886 cat >conftest.$ac_ext <<_ACEOF
22887 /* confdefs.h. */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h. */
22892 $ac_includes_default
22893 typedef pid_t ac__type_new_;
22895 main ()
22897 if ((ac__type_new_ *) 0)
22898 return 0;
22899 if (sizeof (ac__type_new_))
22900 return 0;
22902 return 0;
22904 _ACEOF
22905 rm -f conftest.$ac_objext
22906 if { (ac_try="$ac_compile"
22907 case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_compile") 2>conftest.er1
22913 ac_status=$?
22914 grep -v '^ *+' conftest.er1 >conftest.err
22915 rm -f conftest.er1
22916 cat conftest.err >&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } && {
22919 test -z "$ac_c_werror_flag" ||
22920 test ! -s conftest.err
22921 } && test -s conftest.$ac_objext; then
22922 ac_cv_type_pid_t=yes
22923 else
22924 echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 ac_cv_type_pid_t=no
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22933 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22934 if test $ac_cv_type_pid_t = yes; then
22936 else
22938 cat >>confdefs.h <<_ACEOF
22939 #define pid_t int
22940 _ACEOF
22945 for ac_header in vfork.h
22947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22954 ac_res=`eval echo '${'$as_ac_Header'}'`
22955 { echo "$as_me:$LINENO: result: $ac_res" >&5
22956 echo "${ECHO_T}$ac_res" >&6; }
22957 else
22958 # Is the header compilable?
22959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22961 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h. */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 $ac_includes_default
22968 #include <$ac_header>
22969 _ACEOF
22970 rm -f conftest.$ac_objext
22971 if { (ac_try="$ac_compile"
22972 case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22975 esac
22976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977 (eval "$ac_compile") 2>conftest.er1
22978 ac_status=$?
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } && {
22984 test -z "$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22986 } && test -s conftest.$ac_objext; then
22987 ac_header_compiler=yes
22988 else
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_header_compiler=no
22995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22997 echo "${ECHO_T}$ac_header_compiler" >&6; }
22999 # Is the header present?
23000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23002 cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h. */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 #include <$ac_header>
23009 _ACEOF
23010 if { (ac_try="$ac_cpp conftest.$ac_ext"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23017 ac_status=$?
23018 grep -v '^ *+' conftest.er1 >conftest.err
23019 rm -f conftest.er1
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } >/dev/null && {
23023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23024 test ! -s conftest.err
23025 }; then
23026 ac_header_preproc=yes
23027 else
23028 echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23031 ac_header_preproc=no
23034 rm -f conftest.err conftest.$ac_ext
23035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23036 echo "${ECHO_T}$ac_header_preproc" >&6; }
23038 # So? What about this header?
23039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23040 yes:no: )
23041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23045 ac_header_preproc=yes
23047 no:yes:* )
23048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23062 esac
23063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 else
23068 eval "$as_ac_Header=\$ac_header_preproc"
23070 ac_res=`eval echo '${'$as_ac_Header'}'`
23071 { echo "$as_me:$LINENO: result: $ac_res" >&5
23072 echo "${ECHO_T}$ac_res" >&6; }
23075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23076 cat >>confdefs.h <<_ACEOF
23077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23078 _ACEOF
23082 done
23086 for ac_func in fork vfork
23088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23093 else
23094 cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h. */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23102 #define $ac_func innocuous_$ac_func
23104 /* System header to define __stub macros and hopefully few prototypes,
23105 which can conflict with char $ac_func (); below.
23106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23107 <limits.h> exists even on freestanding compilers. */
23109 #ifdef __STDC__
23110 # include <limits.h>
23111 #else
23112 # include <assert.h>
23113 #endif
23115 #undef $ac_func
23117 /* Override any GCC internal prototype to avoid an error.
23118 Use char because int might match the return type of a GCC
23119 builtin and then its argument prototype would still apply. */
23120 #ifdef __cplusplus
23121 extern "C"
23122 #endif
23123 char $ac_func ();
23124 /* The GNU C library defines this for functions which it implements
23125 to always fail with ENOSYS. Some functions are actually named
23126 something starting with __ and the normal name is an alias. */
23127 #if defined __stub_$ac_func || defined __stub___$ac_func
23128 choke me
23129 #endif
23132 main ()
23134 return $ac_func ();
23136 return 0;
23138 _ACEOF
23139 rm -f conftest.$ac_objext conftest$ac_exeext
23140 if { (ac_try="$ac_link"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_link") 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest$ac_exeext &&
23156 $as_test_x conftest$ac_exeext; then
23157 eval "$as_ac_var=yes"
23158 else
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 eval "$as_ac_var=no"
23165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23166 conftest$ac_exeext conftest.$ac_ext
23168 ac_res=`eval echo '${'$as_ac_var'}'`
23169 { echo "$as_me:$LINENO: result: $ac_res" >&5
23170 echo "${ECHO_T}$ac_res" >&6; }
23171 if test `eval echo '${'$as_ac_var'}'` = yes; then
23172 cat >>confdefs.h <<_ACEOF
23173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23174 _ACEOF
23177 done
23179 if test "x$ac_cv_func_fork" = xyes; then
23180 { echo "$as_me:$LINENO: checking for working fork" >&5
23181 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23182 if test "${ac_cv_func_fork_works+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185 if test "$cross_compiling" = yes; then
23186 ac_cv_func_fork_works=cross
23187 else
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h. */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23196 main ()
23199 /* By Ruediger Kuhlmann. */
23200 return fork () < 0;
23203 return 0;
23205 _ACEOF
23206 rm -f conftest$ac_exeext
23207 if { (ac_try="$ac_link"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_link") 2>&5
23214 ac_status=$?
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23217 { (case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23220 esac
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_try") 2>&5
23223 ac_status=$?
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; }; then
23226 ac_cv_func_fork_works=yes
23227 else
23228 echo "$as_me: program exited with status $ac_status" >&5
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ( exit $ac_status )
23233 ac_cv_func_fork_works=no
23235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23240 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23241 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23243 else
23244 ac_cv_func_fork_works=$ac_cv_func_fork
23246 if test "x$ac_cv_func_fork_works" = xcross; then
23247 case $host in
23248 *-*-amigaos* | *-*-msdosdjgpp*)
23249 # Override, as these systems have only a dummy fork() stub
23250 ac_cv_func_fork_works=no
23253 ac_cv_func_fork_works=yes
23255 esac
23256 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23257 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23259 ac_cv_func_vfork_works=$ac_cv_func_vfork
23260 if test "x$ac_cv_func_vfork" = xyes; then
23261 { echo "$as_me:$LINENO: checking for working vfork" >&5
23262 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23263 if test "${ac_cv_func_vfork_works+set}" = set; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23265 else
23266 if test "$cross_compiling" = yes; then
23267 ac_cv_func_vfork_works=cross
23268 else
23269 cat >conftest.$ac_ext <<_ACEOF
23270 /* confdefs.h. */
23271 _ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23275 /* Thanks to Paul Eggert for this test. */
23276 $ac_includes_default
23277 #include <sys/wait.h>
23278 #ifdef HAVE_VFORK_H
23279 # include <vfork.h>
23280 #endif
23281 /* On some sparc systems, changes by the child to local and incoming
23282 argument registers are propagated back to the parent. The compiler
23283 is told about this with #include <vfork.h>, but some compilers
23284 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23285 static variable whose address is put into a register that is
23286 clobbered by the vfork. */
23287 static void
23288 #ifdef __cplusplus
23289 sparc_address_test (int arg)
23290 # else
23291 sparc_address_test (arg) int arg;
23292 #endif
23294 static pid_t child;
23295 if (!child) {
23296 child = vfork ();
23297 if (child < 0) {
23298 perror ("vfork");
23299 _exit(2);
23301 if (!child) {
23302 arg = getpid();
23303 write(-1, "", 0);
23304 _exit (arg);
23310 main ()
23312 pid_t parent = getpid ();
23313 pid_t child;
23315 sparc_address_test (0);
23317 child = vfork ();
23319 if (child == 0) {
23320 /* Here is another test for sparc vfork register problems. This
23321 test uses lots of local variables, at least as many local
23322 variables as main has allocated so far including compiler
23323 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23324 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23325 reuse the register of parent for one of the local variables,
23326 since it will think that parent can't possibly be used any more
23327 in this routine. Assigning to the local variable will thus
23328 munge parent in the parent process. */
23329 pid_t
23330 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23331 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23332 /* Convince the compiler that p..p7 are live; otherwise, it might
23333 use the same hardware register for all 8 local variables. */
23334 if (p != p1 || p != p2 || p != p3 || p != p4
23335 || p != p5 || p != p6 || p != p7)
23336 _exit(1);
23338 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23339 from child file descriptors. If the child closes a descriptor
23340 before it execs or exits, this munges the parent's descriptor
23341 as well. Test for this by closing stdout in the child. */
23342 _exit(close(fileno(stdout)) != 0);
23343 } else {
23344 int status;
23345 struct stat st;
23347 while (wait(&status) != child)
23349 return (
23350 /* Was there some problem with vforking? */
23351 child < 0
23353 /* Did the child fail? (This shouldn't happen.) */
23354 || status
23356 /* Did the vfork/compiler bug occur? */
23357 || parent != getpid()
23359 /* Did the file descriptor bug occur? */
23360 || fstat(fileno(stdout), &st) != 0
23364 _ACEOF
23365 rm -f conftest$ac_exeext
23366 if { (ac_try="$ac_link"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23370 esac
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_link") 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23376 { (case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_try") 2>&5
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_func_vfork_works=yes
23386 else
23387 echo "$as_me: program exited with status $ac_status" >&5
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ( exit $ac_status )
23392 ac_cv_func_vfork_works=no
23394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23399 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23400 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23403 if test "x$ac_cv_func_fork_works" = xcross; then
23404 ac_cv_func_vfork_works=$ac_cv_func_vfork
23405 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23406 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23409 if test "x$ac_cv_func_vfork_works" = xyes; then
23411 cat >>confdefs.h <<\_ACEOF
23412 #define HAVE_WORKING_VFORK 1
23413 _ACEOF
23415 else
23417 cat >>confdefs.h <<\_ACEOF
23418 #define vfork fork
23419 _ACEOF
23422 if test "x$ac_cv_func_fork_works" = xyes; then
23424 cat >>confdefs.h <<\_ACEOF
23425 #define HAVE_WORKING_FORK 1
23426 _ACEOF
23431 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23432 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23433 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h. */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #include <langinfo.h>
23444 main ()
23446 char* cs = nl_langinfo(CODESET);
23448 return 0;
23450 _ACEOF
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>conftest.er1
23459 ac_status=$?
23460 grep -v '^ *+' conftest.er1 >conftest.err
23461 rm -f conftest.er1
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest$ac_exeext &&
23468 $as_test_x conftest$ac_exeext; then
23469 emacs_cv_langinfo_codeset=yes
23470 else
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23474 emacs_cv_langinfo_codeset=no
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478 conftest$ac_exeext conftest.$ac_ext
23481 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23482 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23483 if test $emacs_cv_langinfo_codeset = yes; then
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_LANGINFO_CODESET 1
23487 _ACEOF
23491 { echo "$as_me:$LINENO: checking for size_t" >&5
23492 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23493 if test "${ac_cv_type_size_t+set}" = set; then
23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23495 else
23496 cat >conftest.$ac_ext <<_ACEOF
23497 /* confdefs.h. */
23498 _ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h. */
23502 $ac_includes_default
23503 typedef size_t ac__type_new_;
23505 main ()
23507 if ((ac__type_new_ *) 0)
23508 return 0;
23509 if (sizeof (ac__type_new_))
23510 return 0;
23512 return 0;
23514 _ACEOF
23515 rm -f conftest.$ac_objext
23516 if { (ac_try="$ac_compile"
23517 case "(($ac_try" in
23518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23520 esac
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_compile") 2>conftest.er1
23523 ac_status=$?
23524 grep -v '^ *+' conftest.er1 >conftest.err
23525 rm -f conftest.er1
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } && {
23529 test -z "$ac_c_werror_flag" ||
23530 test ! -s conftest.err
23531 } && test -s conftest.$ac_objext; then
23532 ac_cv_type_size_t=yes
23533 else
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_cv_type_size_t=no
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23543 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23544 if test $ac_cv_type_size_t = yes; then
23546 cat >>confdefs.h <<_ACEOF
23547 #define HAVE_SIZE_T 1
23548 _ACEOF
23554 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23555 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23556 if test "${ac_cv_type_mbstate_t+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559 cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h. */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 $ac_includes_default
23566 # include <wchar.h>
23568 main ()
23570 mbstate_t x; return sizeof x;
23572 return 0;
23574 _ACEOF
23575 rm -f conftest.$ac_objext
23576 if { (ac_try="$ac_compile"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_compile") 2>conftest.er1
23583 ac_status=$?
23584 grep -v '^ *+' conftest.er1 >conftest.err
23585 rm -f conftest.er1
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && {
23589 test -z "$ac_c_werror_flag" ||
23590 test ! -s conftest.err
23591 } && test -s conftest.$ac_objext; then
23592 ac_cv_type_mbstate_t=yes
23593 else
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597 ac_cv_type_mbstate_t=no
23600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23603 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23604 if test $ac_cv_type_mbstate_t = yes; then
23606 cat >>confdefs.h <<\_ACEOF
23607 #define HAVE_MBSTATE_T 1
23608 _ACEOF
23610 else
23612 cat >>confdefs.h <<\_ACEOF
23613 #define mbstate_t int
23614 _ACEOF
23618 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23619 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23620 if test "${emacs_cv_c_restrict+set}" = set; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622 else
23623 cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h. */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23629 void fred (int *restrict x);
23631 main ()
23635 return 0;
23637 _ACEOF
23638 rm -f conftest.$ac_objext
23639 if { (ac_try="$ac_compile"
23640 case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643 esac
23644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_compile") 2>conftest.er1
23646 ac_status=$?
23647 grep -v '^ *+' conftest.er1 >conftest.err
23648 rm -f conftest.er1
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest.$ac_objext; then
23655 emacs_cv_c_restrict=yes
23656 else
23657 echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23660 cat >conftest.$ac_ext <<_ACEOF
23661 /* confdefs.h. */
23662 _ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h. */
23666 void fred (int *__restrict x);
23668 main ()
23672 return 0;
23674 _ACEOF
23675 rm -f conftest.$ac_objext
23676 if { (ac_try="$ac_compile"
23677 case "(($ac_try" in
23678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679 *) ac_try_echo=$ac_try;;
23680 esac
23681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23682 (eval "$ac_compile") 2>conftest.er1
23683 ac_status=$?
23684 grep -v '^ *+' conftest.er1 >conftest.err
23685 rm -f conftest.er1
23686 cat conftest.err >&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && {
23689 test -z "$ac_c_werror_flag" ||
23690 test ! -s conftest.err
23691 } && test -s conftest.$ac_objext; then
23692 emacs_cv_c_restrict=__restrict
23693 else
23694 echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23697 emacs_cv_c_restrict=no
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23705 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23706 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23707 case "$emacs_cv_c_restrict" in
23708 yes) emacs_restrict=restrict;;
23709 no) emacs_restrict="";;
23710 *) emacs_restrict="$emacs_cv_c_restrict";;
23711 esac
23712 if test "$emacs_restrict" != __restrict; then
23714 cat >>confdefs.h <<_ACEOF
23715 #define __restrict $emacs_restrict
23716 _ACEOF
23720 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23721 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23722 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23723 echo $ECHO_N "(cached) $ECHO_C" >&6
23724 else
23725 cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h. */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 void fred (int x[__restrict]);
23733 main ()
23737 return 0;
23739 _ACEOF
23740 rm -f conftest.$ac_objext
23741 if { (ac_try="$ac_compile"
23742 case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23745 esac
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_compile") 2>conftest.er1
23748 ac_status=$?
23749 grep -v '^ *+' conftest.er1 >conftest.err
23750 rm -f conftest.er1
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } && {
23754 test -z "$ac_c_werror_flag" ||
23755 test ! -s conftest.err
23756 } && test -s conftest.$ac_objext; then
23757 emacs_cv_c_restrict_arr=yes
23758 else
23759 echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23762 emacs_cv_c_restrict_arr=no
23765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23768 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23769 if test "$emacs_cv_c_restrict_arr" = yes; then
23771 cat >>confdefs.h <<\_ACEOF
23772 #define __restrict_arr __restrict
23773 _ACEOF
23779 # Set up the CFLAGS for real compilation, so we can substitute it.
23780 CFLAGS="$REAL_CFLAGS"
23781 CPPFLAGS="$REAL_CPPFLAGS"
23783 #### Find out which version of Emacs this is.
23784 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23785 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23786 if test x"${version}" = x; then
23787 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23788 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23789 { (exit 1); exit 1; }; }
23792 ### Specify what sort of things we'll be editing into Makefile and config.h.
23793 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23829 cat >>confdefs.h <<_ACEOF
23830 #define EMACS_CONFIGURATION "${canonical}"
23831 _ACEOF
23834 cat >>confdefs.h <<_ACEOF
23835 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23836 _ACEOF
23839 cat >>confdefs.h <<_ACEOF
23840 #define config_machfile "${machfile}"
23841 _ACEOF
23844 cat >>confdefs.h <<_ACEOF
23845 #define config_opsysfile "${opsysfile}"
23846 _ACEOF
23849 cat >>confdefs.h <<_ACEOF
23850 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23851 _ACEOF
23854 cat >>confdefs.h <<_ACEOF
23855 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23856 _ACEOF
23859 cat >>confdefs.h <<_ACEOF
23860 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23861 _ACEOF
23864 cat >>confdefs.h <<_ACEOF
23865 #define UNEXEC_SRC ${UNEXEC_SRC}
23866 _ACEOF
23869 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23871 cat >>confdefs.h <<\_ACEOF
23872 #define HAVE_X_WINDOWS 1
23873 _ACEOF
23876 if test "${USE_X_TOOLKIT}" != "none" ; then
23878 cat >>confdefs.h <<\_ACEOF
23879 #define USE_X_TOOLKIT 1
23880 _ACEOF
23883 if test "${HAVE_X11}" = "yes" ; then
23885 cat >>confdefs.h <<\_ACEOF
23886 #define HAVE_X11 1
23887 _ACEOF
23890 if test "${HAVE_XFREE386}" = "yes" ; then
23892 cat >>confdefs.h <<\_ACEOF
23893 #define HAVE_XFREE386 1
23894 _ACEOF
23897 if test "${HAVE_MENUS}" = "yes" ; then
23899 cat >>confdefs.h <<\_ACEOF
23900 #define HAVE_MENUS 1
23901 _ACEOF
23904 if test "${GNU_MALLOC}" = "yes" ; then
23906 cat >>confdefs.h <<\_ACEOF
23907 #define GNU_MALLOC 1
23908 _ACEOF
23911 if test "${REL_ALLOC}" = "yes" ; then
23913 cat >>confdefs.h <<\_ACEOF
23914 #define REL_ALLOC 1
23915 _ACEOF
23924 #### Report on what we decided to do.
23925 #### Report GTK as a toolkit, even if it doesn't use Xt.
23926 #### It makes printing result more understandable as using GTK sets
23927 #### toolkit_scroll_bars to yes by default.
23928 if test "${HAVE_GTK}" = "yes"; then
23929 USE_X_TOOLKIT=GTK
23932 echo "
23933 Configured for \`${canonical}'.
23935 Where should the build process find the source code? ${srcdir}
23936 What operating system and machine description files should Emacs use?
23937 \`${opsysfile}' and \`${machfile}'
23938 What compiler should emacs be built with? ${CC} ${CFLAGS}
23939 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23940 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23941 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23942 What window system should Emacs use? ${window_system}
23943 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23945 if test -n "${x_includes}"; then
23946 echo " Where do we find X Windows header files? ${x_includes}"
23947 else
23948 echo " Where do we find X Windows header files? Standard dirs"
23950 if test -n "${x_libraries}"; then
23951 echo " Where do we find X Windows libraries? ${x_libraries}"
23952 else
23953 echo " Where do we find X Windows libraries? Standard dirs"
23956 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23957 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23958 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23959 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23960 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23961 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23962 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23963 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23964 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23965 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23967 if test "${USE_FONT_BACKEND}" = "yes"; then
23968 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23969 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23970 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23971 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23973 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23974 echo
23976 if test $USE_XASSERTS = yes; then
23977 echo " Compiling with asserts turned on."
23978 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23979 echo
23982 if test "$USE_X_TOOLKIT" = GTK; then
23983 case "$canonical" in
23984 *cygwin*)
23985 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23986 will probably get a crash on startup. If this happens, please use another
23987 toolkit for Emacs. See etc/PROBLEMS for more information."
23989 esac
23993 if test "$HAVE_CARBON" = "yes"; then
23994 echo
23995 echo "Warning: The Mac Carbon port is currently unsupported and has
23996 known problems. It is not recommended for use by non-developers.
23997 Read the emacs-devel archives for more information."
23998 echo
24001 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24002 echo "D-Bus integration has been tested for GNU/Linux only."
24003 echo
24007 # Remove any trailing slashes in these variables.
24008 test "${prefix}" != NONE &&
24009 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24010 test "${exec_prefix}" != NONE &&
24011 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24013 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24014 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24015 ## from Makefile.c can correctly provide the arg `-traditional' to the
24016 ## C preprocessor.
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 yes..yes
24025 _ACEOF
24026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24027 $EGREP "yes..yes" >/dev/null 2>&1; then
24028 CPP_NEED_TRADITIONAL=no
24029 else
24030 CPP_NEED_TRADITIONAL=yes
24032 rm -f conftest*
24035 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"
24037 ac_config_commands="$ac_config_commands default"
24039 cat >confcache <<\_ACEOF
24040 # This file is a shell script that caches the results of configure
24041 # tests run on this system so they can be shared between configure
24042 # scripts and configure runs, see configure's option --config-cache.
24043 # It is not useful on other systems. If it contains results you don't
24044 # want to keep, you may remove or edit it.
24046 # config.status only pays attention to the cache file if you give it
24047 # the --recheck option to rerun configure.
24049 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24050 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24051 # following values.
24053 _ACEOF
24055 # The following way of writing the cache mishandles newlines in values,
24056 # but we know of no workaround that is simple, portable, and efficient.
24057 # So, we kill variables containing newlines.
24058 # Ultrix sh set writes to stderr and can't be redirected directly,
24059 # and sets the high bit in the cache file unless we assign to the vars.
24061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24062 eval ac_val=\$$ac_var
24063 case $ac_val in #(
24064 *${as_nl}*)
24065 case $ac_var in #(
24066 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24067 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24068 esac
24069 case $ac_var in #(
24070 _ | IFS | as_nl) ;; #(
24071 *) $as_unset $ac_var ;;
24072 esac ;;
24073 esac
24074 done
24076 (set) 2>&1 |
24077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24078 *${as_nl}ac_space=\ *)
24079 # `set' does not quote correctly, so add quotes (double-quote
24080 # substitution turns \\\\ into \\, and sed turns \\ into \).
24081 sed -n \
24082 "s/'/'\\\\''/g;
24083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24084 ;; #(
24086 # `set' quotes correctly as required by POSIX, so do not add quotes.
24087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24089 esac |
24090 sort
24092 sed '
24093 /^ac_cv_env_/b end
24094 t clear
24095 :clear
24096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24097 t end
24098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24099 :end' >>confcache
24100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24101 if test -w "$cache_file"; then
24102 test "x$cache_file" != "x/dev/null" &&
24103 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24104 echo "$as_me: updating cache $cache_file" >&6;}
24105 cat confcache >$cache_file
24106 else
24107 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24108 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24111 rm -f confcache
24113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24114 # Let make expand exec_prefix.
24115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24117 DEFS=-DHAVE_CONFIG_H
24119 ac_libobjs=
24120 ac_ltlibobjs=
24121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24122 # 1. Remove the extension, and $U if already installed.
24123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24124 ac_i=`echo "$ac_i" | sed "$ac_script"`
24125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24126 # will be set to the directory where LIBOBJS objects are built.
24127 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24128 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24129 done
24130 LIBOBJS=$ac_libobjs
24132 LTLIBOBJS=$ac_ltlibobjs
24136 : ${CONFIG_STATUS=./config.status}
24137 ac_clean_files_save=$ac_clean_files
24138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24139 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24140 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24141 cat >$CONFIG_STATUS <<_ACEOF
24142 #! $SHELL
24143 # Generated by $as_me.
24144 # Run this file to recreate the current configuration.
24145 # Compiler output produced by configure, useful for debugging
24146 # configure, is in config.log if it exists.
24148 debug=false
24149 ac_cs_recheck=false
24150 ac_cs_silent=false
24151 SHELL=\${CONFIG_SHELL-$SHELL}
24152 _ACEOF
24154 cat >>$CONFIG_STATUS <<\_ACEOF
24155 ## --------------------- ##
24156 ## M4sh Initialization. ##
24157 ## --------------------- ##
24159 # Be more Bourne compatible
24160 DUALCASE=1; export DUALCASE # for MKS sh
24161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24162 emulate sh
24163 NULLCMD=:
24164 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24165 # is contrary to our usage. Disable this feature.
24166 alias -g '${1+"$@"}'='"$@"'
24167 setopt NO_GLOB_SUBST
24168 else
24169 case `(set -o) 2>/dev/null` in
24170 *posix*) set -o posix ;;
24171 esac
24178 # PATH needs CR
24179 # Avoid depending upon Character Ranges.
24180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24183 as_cr_digits='0123456789'
24184 as_cr_alnum=$as_cr_Letters$as_cr_digits
24186 # The user is always right.
24187 if test "${PATH_SEPARATOR+set}" != set; then
24188 echo "#! /bin/sh" >conf$$.sh
24189 echo "exit 0" >>conf$$.sh
24190 chmod +x conf$$.sh
24191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24192 PATH_SEPARATOR=';'
24193 else
24194 PATH_SEPARATOR=:
24196 rm -f conf$$.sh
24199 # Support unset when possible.
24200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24201 as_unset=unset
24202 else
24203 as_unset=false
24207 # IFS
24208 # We need space, tab and new line, in precisely that order. Quoting is
24209 # there to prevent editors from complaining about space-tab.
24210 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24211 # splitting by setting IFS to empty value.)
24212 as_nl='
24214 IFS=" "" $as_nl"
24216 # Find who we are. Look in the path if we contain no directory separator.
24217 case $0 in
24218 *[\\/]* ) as_myself=$0 ;;
24219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24220 for as_dir in $PATH
24222 IFS=$as_save_IFS
24223 test -z "$as_dir" && as_dir=.
24224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24225 done
24226 IFS=$as_save_IFS
24229 esac
24230 # We did not find ourselves, most probably we were run as `sh COMMAND'
24231 # in which case we are not to be found in the path.
24232 if test "x$as_myself" = x; then
24233 as_myself=$0
24235 if test ! -f "$as_myself"; then
24236 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24237 { (exit 1); exit 1; }
24240 # Work around bugs in pre-3.0 UWIN ksh.
24241 for as_var in ENV MAIL MAILPATH
24242 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24243 done
24244 PS1='$ '
24245 PS2='> '
24246 PS4='+ '
24248 # NLS nuisances.
24249 for as_var in \
24250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24252 LC_TELEPHONE LC_TIME
24254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24255 eval $as_var=C; export $as_var
24256 else
24257 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24259 done
24261 # Required to use basename.
24262 if expr a : '\(a\)' >/dev/null 2>&1 &&
24263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24264 as_expr=expr
24265 else
24266 as_expr=false
24269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24270 as_basename=basename
24271 else
24272 as_basename=false
24276 # Name of the executable.
24277 as_me=`$as_basename -- "$0" ||
24278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24279 X"$0" : 'X\(//\)$' \| \
24280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24281 echo X/"$0" |
24282 sed '/^.*\/\([^/][^/]*\)\/*$/{
24283 s//\1/
24286 /^X\/\(\/\/\)$/{
24287 s//\1/
24290 /^X\/\(\/\).*/{
24291 s//\1/
24294 s/.*/./; q'`
24296 # CDPATH.
24297 $as_unset CDPATH
24301 as_lineno_1=$LINENO
24302 as_lineno_2=$LINENO
24303 test "x$as_lineno_1" != "x$as_lineno_2" &&
24304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24307 # uniformly replaced by the line number. The first 'sed' inserts a
24308 # line-number line after each line using $LINENO; the second 'sed'
24309 # does the real work. The second script uses 'N' to pair each
24310 # line-number line with the line containing $LINENO, and appends
24311 # trailing '-' during substitution so that $LINENO is not a special
24312 # case at line end.
24313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24314 # scripts with optimization help from Paolo Bonzini. Blame Lee
24315 # E. McMahon (1931-1989) for sed's syntax. :-)
24316 sed -n '
24318 /[$]LINENO/=
24319 ' <$as_myself |
24320 sed '
24321 s/[$]LINENO.*/&-/
24322 t lineno
24324 :lineno
24326 :loop
24327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24328 t loop
24329 s/-\n.*//
24330 ' >$as_me.lineno &&
24331 chmod +x "$as_me.lineno" ||
24332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24333 { (exit 1); exit 1; }; }
24335 # Don't try to exec as it changes $[0], causing all sort of problems
24336 # (the dirname of $[0] is not the place where we might find the
24337 # original and so on. Autoconf is especially sensitive to this).
24338 . "./$as_me.lineno"
24339 # Exit status is that of the last command.
24340 exit
24344 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24345 as_dirname=dirname
24346 else
24347 as_dirname=false
24350 ECHO_C= ECHO_N= ECHO_T=
24351 case `echo -n x` in
24352 -n*)
24353 case `echo 'x\c'` in
24354 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24355 *) ECHO_C='\c';;
24356 esac;;
24358 ECHO_N='-n';;
24359 esac
24361 if expr a : '\(a\)' >/dev/null 2>&1 &&
24362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24363 as_expr=expr
24364 else
24365 as_expr=false
24368 rm -f conf$$ conf$$.exe conf$$.file
24369 if test -d conf$$.dir; then
24370 rm -f conf$$.dir/conf$$.file
24371 else
24372 rm -f conf$$.dir
24373 mkdir conf$$.dir
24375 echo >conf$$.file
24376 if ln -s conf$$.file conf$$ 2>/dev/null; then
24377 as_ln_s='ln -s'
24378 # ... but there are two gotchas:
24379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24381 # In both cases, we have to default to `cp -p'.
24382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24383 as_ln_s='cp -p'
24384 elif ln conf$$.file conf$$ 2>/dev/null; then
24385 as_ln_s=ln
24386 else
24387 as_ln_s='cp -p'
24389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24390 rmdir conf$$.dir 2>/dev/null
24392 if mkdir -p . 2>/dev/null; then
24393 as_mkdir_p=:
24394 else
24395 test -d ./-p && rmdir ./-p
24396 as_mkdir_p=false
24399 if test -x / >/dev/null 2>&1; then
24400 as_test_x='test -x'
24401 else
24402 if ls -dL / >/dev/null 2>&1; then
24403 as_ls_L_option=L
24404 else
24405 as_ls_L_option=
24407 as_test_x='
24408 eval sh -c '\''
24409 if test -d "$1"; then
24410 test -d "$1/.";
24411 else
24412 case $1 in
24413 -*)set "./$1";;
24414 esac;
24415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24416 ???[sx]*):;;*)false;;esac;fi
24417 '\'' sh
24420 as_executable_p=$as_test_x
24422 # Sed expression to map a string onto a valid CPP name.
24423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24425 # Sed expression to map a string onto a valid variable name.
24426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24429 exec 6>&1
24431 # Save the log message, to keep $[0] and so on meaningful, and to
24432 # report actual input values of CONFIG_FILES etc. instead of their
24433 # values after options handling.
24434 ac_log="
24435 This file was extended by emacs $as_me 23.0.50, which was
24436 generated by GNU Autoconf 2.61. Invocation command line was
24438 CONFIG_FILES = $CONFIG_FILES
24439 CONFIG_HEADERS = $CONFIG_HEADERS
24440 CONFIG_LINKS = $CONFIG_LINKS
24441 CONFIG_COMMANDS = $CONFIG_COMMANDS
24442 $ $0 $@
24444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24447 _ACEOF
24449 cat >>$CONFIG_STATUS <<_ACEOF
24450 # Files that config.status was made for.
24451 config_files="$ac_config_files"
24452 config_headers="$ac_config_headers"
24453 config_commands="$ac_config_commands"
24455 _ACEOF
24457 cat >>$CONFIG_STATUS <<\_ACEOF
24458 ac_cs_usage="\
24459 \`$as_me' instantiates files from templates according to the
24460 current configuration.
24462 Usage: $0 [OPTIONS] [FILE]...
24464 -h, --help print this help, then exit
24465 -V, --version print version number and configuration settings, then exit
24466 -q, --quiet do not print progress messages
24467 -d, --debug don't remove temporary files
24468 --recheck update $as_me by reconfiguring in the same conditions
24469 --file=FILE[:TEMPLATE]
24470 instantiate the configuration file FILE
24471 --header=FILE[:TEMPLATE]
24472 instantiate the configuration header FILE
24474 Configuration files:
24475 $config_files
24477 Configuration headers:
24478 $config_headers
24480 Configuration commands:
24481 $config_commands
24483 Report bugs to <bug-autoconf@gnu.org>."
24485 _ACEOF
24486 cat >>$CONFIG_STATUS <<_ACEOF
24487 ac_cs_version="\\
24488 emacs config.status 23.0.50
24489 configured by $0, generated by GNU Autoconf 2.61,
24490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24492 Copyright (C) 2006 Free Software Foundation, Inc.
24493 This config.status script is free software; the Free Software Foundation
24494 gives unlimited permission to copy, distribute and modify it."
24496 ac_pwd='$ac_pwd'
24497 srcdir='$srcdir'
24498 INSTALL='$INSTALL'
24499 _ACEOF
24501 cat >>$CONFIG_STATUS <<\_ACEOF
24502 # If no file are specified by the user, then we need to provide default
24503 # value. By we need to know if files were specified by the user.
24504 ac_need_defaults=:
24505 while test $# != 0
24507 case $1 in
24508 --*=*)
24509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24511 ac_shift=:
24514 ac_option=$1
24515 ac_optarg=$2
24516 ac_shift=shift
24518 esac
24520 case $ac_option in
24521 # Handling of the options.
24522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24523 ac_cs_recheck=: ;;
24524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24525 echo "$ac_cs_version"; exit ;;
24526 --debug | --debu | --deb | --de | --d | -d )
24527 debug=: ;;
24528 --file | --fil | --fi | --f )
24529 $ac_shift
24530 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24531 ac_need_defaults=false;;
24532 --header | --heade | --head | --hea )
24533 $ac_shift
24534 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24535 ac_need_defaults=false;;
24536 --he | --h)
24537 # Conflict between --help and --header
24538 { echo "$as_me: error: ambiguous option: $1
24539 Try \`$0 --help' for more information." >&2
24540 { (exit 1); exit 1; }; };;
24541 --help | --hel | -h )
24542 echo "$ac_cs_usage"; exit ;;
24543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24545 ac_cs_silent=: ;;
24547 # This is an error.
24548 -*) { echo "$as_me: error: unrecognized option: $1
24549 Try \`$0 --help' for more information." >&2
24550 { (exit 1); exit 1; }; } ;;
24552 *) ac_config_targets="$ac_config_targets $1"
24553 ac_need_defaults=false ;;
24555 esac
24556 shift
24557 done
24559 ac_configure_extra_args=
24561 if $ac_cs_silent; then
24562 exec 6>/dev/null
24563 ac_configure_extra_args="$ac_configure_extra_args --silent"
24566 _ACEOF
24567 cat >>$CONFIG_STATUS <<_ACEOF
24568 if \$ac_cs_recheck; then
24569 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24570 CONFIG_SHELL=$SHELL
24571 export CONFIG_SHELL
24572 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24575 _ACEOF
24576 cat >>$CONFIG_STATUS <<\_ACEOF
24577 exec 5>>config.log
24579 echo
24580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24581 ## Running $as_me. ##
24582 _ASBOX
24583 echo "$ac_log"
24584 } >&5
24586 _ACEOF
24587 cat >>$CONFIG_STATUS <<_ACEOF
24589 # INIT-COMMANDS
24591 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24593 _ACEOF
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24597 # Handling of arguments.
24598 for ac_config_target in $ac_config_targets
24600 case $ac_config_target in
24601 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24602 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24603 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24604 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24605 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24606 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24607 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24608 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24609 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24610 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24611 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24612 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24613 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24615 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24616 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24617 { (exit 1); exit 1; }; };;
24618 esac
24619 done
24622 # If the user did not use the arguments to specify the items to instantiate,
24623 # then the envvar interface is used. Set only those that are not.
24624 # We use the long form for the default assignment because of an extremely
24625 # bizarre bug on SunOS 4.1.3.
24626 if $ac_need_defaults; then
24627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24632 # Have a temporary directory for convenience. Make it in the build tree
24633 # simply because there is no reason against having it here, and in addition,
24634 # creating and moving files from /tmp can sometimes cause problems.
24635 # Hook for its removal unless debugging.
24636 # Note that there is a small window in which the directory will not be cleaned:
24637 # after its creation but before its name has been assigned to `$tmp'.
24638 $debug ||
24640 tmp=
24641 trap 'exit_status=$?
24642 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24644 trap '{ (exit 1); exit 1; }' 1 2 13 15
24646 # Create a (secure) tmp directory for tmp files.
24649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24650 test -n "$tmp" && test -d "$tmp"
24651 } ||
24653 tmp=./conf$$-$RANDOM
24654 (umask 077 && mkdir "$tmp")
24655 } ||
24657 echo "$me: cannot create a temporary directory in ." >&2
24658 { (exit 1); exit 1; }
24662 # Set up the sed scripts for CONFIG_FILES section.
24665 # No need to generate the scripts if there are no CONFIG_FILES.
24666 # This happens for instance when ./config.status config.h
24667 if test -n "$CONFIG_FILES"; then
24669 _ACEOF
24673 ac_delim='%!_!# '
24674 for ac_last_try in false false false false false :; do
24675 cat >conf$$subs.sed <<_ACEOF
24676 SHELL!$SHELL$ac_delim
24677 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24678 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24679 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24680 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24681 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24682 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24683 exec_prefix!$exec_prefix$ac_delim
24684 prefix!$prefix$ac_delim
24685 program_transform_name!$program_transform_name$ac_delim
24686 bindir!$bindir$ac_delim
24687 sbindir!$sbindir$ac_delim
24688 libexecdir!$libexecdir$ac_delim
24689 datarootdir!$datarootdir$ac_delim
24690 datadir!$datadir$ac_delim
24691 sysconfdir!$sysconfdir$ac_delim
24692 sharedstatedir!$sharedstatedir$ac_delim
24693 localstatedir!$localstatedir$ac_delim
24694 includedir!$includedir$ac_delim
24695 oldincludedir!$oldincludedir$ac_delim
24696 docdir!$docdir$ac_delim
24697 infodir!$infodir$ac_delim
24698 htmldir!$htmldir$ac_delim
24699 dvidir!$dvidir$ac_delim
24700 pdfdir!$pdfdir$ac_delim
24701 psdir!$psdir$ac_delim
24702 libdir!$libdir$ac_delim
24703 localedir!$localedir$ac_delim
24704 mandir!$mandir$ac_delim
24705 DEFS!$DEFS$ac_delim
24706 ECHO_C!$ECHO_C$ac_delim
24707 ECHO_N!$ECHO_N$ac_delim
24708 ECHO_T!$ECHO_T$ac_delim
24709 LIBS!$LIBS$ac_delim
24710 build_alias!$build_alias$ac_delim
24711 host_alias!$host_alias$ac_delim
24712 target_alias!$target_alias$ac_delim
24713 MAINT!$MAINT$ac_delim
24714 build!$build$ac_delim
24715 build_cpu!$build_cpu$ac_delim
24716 build_vendor!$build_vendor$ac_delim
24717 build_os!$build_os$ac_delim
24718 host!$host$ac_delim
24719 host_cpu!$host_cpu$ac_delim
24720 host_vendor!$host_vendor$ac_delim
24721 host_os!$host_os$ac_delim
24722 CC!$CC$ac_delim
24723 CFLAGS!$CFLAGS$ac_delim
24724 LDFLAGS!$LDFLAGS$ac_delim
24725 CPPFLAGS!$CPPFLAGS$ac_delim
24726 ac_ct_CC!$ac_ct_CC$ac_delim
24727 EXEEXT!$EXEEXT$ac_delim
24728 OBJEXT!$OBJEXT$ac_delim
24729 CPP!$CPP$ac_delim
24730 GREP!$GREP$ac_delim
24731 EGREP!$EGREP$ac_delim
24732 LN_S!$LN_S$ac_delim
24733 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24734 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24735 INSTALL_DATA!$INSTALL_DATA$ac_delim
24736 RANLIB!$RANLIB$ac_delim
24737 INSTALL_INFO!$INSTALL_INFO$ac_delim
24738 GZIP_PROG!$GZIP_PROG$ac_delim
24739 MAKEINFO!$MAKEINFO$ac_delim
24740 LIBSOUND!$LIBSOUND$ac_delim
24741 PKG_CONFIG!$PKG_CONFIG$ac_delim
24742 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24743 ALSA_LIBS!$ALSA_LIBS$ac_delim
24744 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24745 SET_MAKE!$SET_MAKE$ac_delim
24746 XMKMF!$XMKMF$ac_delim
24747 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24748 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24749 RSVG_LIBS!$RSVG_LIBS$ac_delim
24750 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24751 GTK_LIBS!$GTK_LIBS$ac_delim
24752 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24753 DBUS_LIBS!$DBUS_LIBS$ac_delim
24754 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24755 XFT_LIBS!$XFT_LIBS$ac_delim
24756 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24757 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24758 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24759 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24760 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24761 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24762 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24763 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24764 ALLOCA!$ALLOCA$ac_delim
24765 liblockfile!$liblockfile$ac_delim
24766 LIBOBJS!$LIBOBJS$ac_delim
24767 NEED_SETGID!$NEED_SETGID$ac_delim
24768 KMEM_GROUP!$KMEM_GROUP$ac_delim
24769 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24770 GETOPT_H!$GETOPT_H$ac_delim
24771 GETOPTOBJS!$GETOPTOBJS$ac_delim
24772 version!$version$ac_delim
24773 _ACEOF
24775 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24776 break
24777 elif $ac_last_try; then
24778 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24779 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24780 { (exit 1); exit 1; }; }
24781 else
24782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24784 done
24786 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24787 if test -n "$ac_eof"; then
24788 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24789 ac_eof=`expr $ac_eof + 1`
24792 cat >>$CONFIG_STATUS <<_ACEOF
24793 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24795 _ACEOF
24796 sed '
24797 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24798 s/^/s,@/; s/!/@,|#_!!_#|/
24801 s/'"$ac_delim"'$/,g/; t
24802 s/$/\\/; p
24803 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24804 ' >>$CONFIG_STATUS <conf$$subs.sed
24805 rm -f conf$$subs.sed
24806 cat >>$CONFIG_STATUS <<_ACEOF
24807 CEOF$ac_eof
24808 _ACEOF
24811 ac_delim='%!_!# '
24812 for ac_last_try in false false false false false :; do
24813 cat >conf$$subs.sed <<_ACEOF
24814 configuration!$configuration$ac_delim
24815 canonical!$canonical$ac_delim
24816 srcdir!$srcdir$ac_delim
24817 lispdir!$lispdir$ac_delim
24818 locallisppath!$locallisppath$ac_delim
24819 lisppath!$lisppath$ac_delim
24820 x_default_search_path!$x_default_search_path$ac_delim
24821 etcdir!$etcdir$ac_delim
24822 archlibdir!$archlibdir$ac_delim
24823 bitmapdir!$bitmapdir$ac_delim
24824 gamedir!$gamedir$ac_delim
24825 gameuser!$gameuser$ac_delim
24826 c_switch_system!$c_switch_system$ac_delim
24827 c_switch_machine!$c_switch_machine$ac_delim
24828 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24829 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24830 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24831 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24832 machfile!$machfile$ac_delim
24833 opsysfile!$opsysfile$ac_delim
24834 carbon_appdir!$carbon_appdir$ac_delim
24835 LTLIBOBJS!$LTLIBOBJS$ac_delim
24836 _ACEOF
24838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24839 break
24840 elif $ac_last_try; then
24841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24843 { (exit 1); exit 1; }; }
24844 else
24845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24847 done
24849 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24850 if test -n "$ac_eof"; then
24851 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24852 ac_eof=`expr $ac_eof + 1`
24855 cat >>$CONFIG_STATUS <<_ACEOF
24856 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24858 _ACEOF
24859 sed '
24860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24861 s/^/s,@/; s/!/@,|#_!!_#|/
24864 s/'"$ac_delim"'$/,g/; t
24865 s/$/\\/; p
24866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24867 ' >>$CONFIG_STATUS <conf$$subs.sed
24868 rm -f conf$$subs.sed
24869 cat >>$CONFIG_STATUS <<_ACEOF
24870 :end
24871 s/|#_!!_#|//g
24872 CEOF$ac_eof
24873 _ACEOF
24876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24878 # trailing colons and then remove the whole line if VPATH becomes empty
24879 # (actually we leave an empty line to preserve line numbers).
24880 if test "x$srcdir" = x.; then
24881 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24882 s/:*\$(srcdir):*/:/
24883 s/:*\${srcdir}:*/:/
24884 s/:*@srcdir@:*/:/
24885 s/^\([^=]*=[ ]*\):*/\1/
24886 s/:*$//
24887 s/^[^=]*=[ ]*$//
24891 cat >>$CONFIG_STATUS <<\_ACEOF
24892 fi # test -n "$CONFIG_FILES"
24895 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24897 case $ac_tag in
24898 :[FHLC]) ac_mode=$ac_tag; continue;;
24899 esac
24900 case $ac_mode$ac_tag in
24901 :[FHL]*:*);;
24902 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24903 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24904 { (exit 1); exit 1; }; };;
24905 :[FH]-) ac_tag=-:-;;
24906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24907 esac
24908 ac_save_IFS=$IFS
24909 IFS=:
24910 set x $ac_tag
24911 IFS=$ac_save_IFS
24912 shift
24913 ac_file=$1
24914 shift
24916 case $ac_mode in
24917 :L) ac_source=$1;;
24918 :[FH])
24919 ac_file_inputs=
24920 for ac_f
24922 case $ac_f in
24923 -) ac_f="$tmp/stdin";;
24924 *) # Look for the file first in the build tree, then in the source tree
24925 # (if the path is not absolute). The absolute path cannot be DOS-style,
24926 # because $ac_f cannot contain `:'.
24927 test -f "$ac_f" ||
24928 case $ac_f in
24929 [\\/$]*) false;;
24930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24931 esac ||
24932 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24933 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24934 { (exit 1); exit 1; }; };;
24935 esac
24936 ac_file_inputs="$ac_file_inputs $ac_f"
24937 done
24939 # Let's still pretend it is `configure' which instantiates (i.e., don't
24940 # use $as_me), people would be surprised to read:
24941 # /* config.h. Generated by config.status. */
24942 configure_input="Generated from "`IFS=:
24943 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24944 if test x"$ac_file" != x-; then
24945 configure_input="$ac_file. $configure_input"
24946 { echo "$as_me:$LINENO: creating $ac_file" >&5
24947 echo "$as_me: creating $ac_file" >&6;}
24950 case $ac_tag in
24951 *:-:* | *:-) cat >"$tmp/stdin";;
24952 esac
24954 esac
24956 ac_dir=`$as_dirname -- "$ac_file" ||
24957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24958 X"$ac_file" : 'X\(//\)[^/]' \| \
24959 X"$ac_file" : 'X\(//\)$' \| \
24960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24961 echo X"$ac_file" |
24962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24963 s//\1/
24966 /^X\(\/\/\)[^/].*/{
24967 s//\1/
24970 /^X\(\/\/\)$/{
24971 s//\1/
24974 /^X\(\/\).*/{
24975 s//\1/
24978 s/.*/./; q'`
24979 { as_dir="$ac_dir"
24980 case $as_dir in #(
24981 -*) as_dir=./$as_dir;;
24982 esac
24983 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24984 as_dirs=
24985 while :; do
24986 case $as_dir in #(
24987 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24988 *) as_qdir=$as_dir;;
24989 esac
24990 as_dirs="'$as_qdir' $as_dirs"
24991 as_dir=`$as_dirname -- "$as_dir" ||
24992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24993 X"$as_dir" : 'X\(//\)[^/]' \| \
24994 X"$as_dir" : 'X\(//\)$' \| \
24995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24996 echo X"$as_dir" |
24997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24998 s//\1/
25001 /^X\(\/\/\)[^/].*/{
25002 s//\1/
25005 /^X\(\/\/\)$/{
25006 s//\1/
25009 /^X\(\/\).*/{
25010 s//\1/
25013 s/.*/./; q'`
25014 test -d "$as_dir" && break
25015 done
25016 test -z "$as_dirs" || eval "mkdir $as_dirs"
25017 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25018 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25019 { (exit 1); exit 1; }; }; }
25020 ac_builddir=.
25022 case "$ac_dir" in
25023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25026 # A ".." for each directory in $ac_dir_suffix.
25027 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25028 case $ac_top_builddir_sub in
25029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25031 esac ;;
25032 esac
25033 ac_abs_top_builddir=$ac_pwd
25034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25035 # for backward compatibility:
25036 ac_top_builddir=$ac_top_build_prefix
25038 case $srcdir in
25039 .) # We are building in place.
25040 ac_srcdir=.
25041 ac_top_srcdir=$ac_top_builddir_sub
25042 ac_abs_top_srcdir=$ac_pwd ;;
25043 [\\/]* | ?:[\\/]* ) # Absolute name.
25044 ac_srcdir=$srcdir$ac_dir_suffix;
25045 ac_top_srcdir=$srcdir
25046 ac_abs_top_srcdir=$srcdir ;;
25047 *) # Relative name.
25048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25049 ac_top_srcdir=$ac_top_build_prefix$srcdir
25050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25051 esac
25052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25055 case $ac_mode in
25058 # CONFIG_FILE
25061 case $INSTALL in
25062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25064 esac
25065 _ACEOF
25067 cat >>$CONFIG_STATUS <<\_ACEOF
25068 # If the template does not know about datarootdir, expand it.
25069 # FIXME: This hack should be removed a few years after 2.60.
25070 ac_datarootdir_hack=; ac_datarootdir_seen=
25072 case `sed -n '/datarootdir/ {
25076 /@datadir@/p
25077 /@docdir@/p
25078 /@infodir@/p
25079 /@localedir@/p
25080 /@mandir@/p
25081 ' $ac_file_inputs` in
25082 *datarootdir*) ac_datarootdir_seen=yes;;
25083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25084 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25085 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25086 _ACEOF
25087 cat >>$CONFIG_STATUS <<_ACEOF
25088 ac_datarootdir_hack='
25089 s&@datadir@&$datadir&g
25090 s&@docdir@&$docdir&g
25091 s&@infodir@&$infodir&g
25092 s&@localedir@&$localedir&g
25093 s&@mandir@&$mandir&g
25094 s&\\\${datarootdir}&$datarootdir&g' ;;
25095 esac
25096 _ACEOF
25098 # Neutralize VPATH when `$srcdir' = `.'.
25099 # Shell code in configure.ac might set extrasub.
25100 # FIXME: do we really want to maintain this feature?
25101 cat >>$CONFIG_STATUS <<_ACEOF
25102 sed "$ac_vpsub
25103 $extrasub
25104 _ACEOF
25105 cat >>$CONFIG_STATUS <<\_ACEOF
25107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25108 s&@configure_input@&$configure_input&;t t
25109 s&@top_builddir@&$ac_top_builddir_sub&;t t
25110 s&@srcdir@&$ac_srcdir&;t t
25111 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25112 s&@top_srcdir@&$ac_top_srcdir&;t t
25113 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25114 s&@builddir@&$ac_builddir&;t t
25115 s&@abs_builddir@&$ac_abs_builddir&;t t
25116 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25117 s&@INSTALL@&$ac_INSTALL&;t t
25118 $ac_datarootdir_hack
25119 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25122 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25123 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25124 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25125 which seems to be undefined. Please make sure it is defined." >&5
25126 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25127 which seems to be undefined. Please make sure it is defined." >&2;}
25129 rm -f "$tmp/stdin"
25130 case $ac_file in
25131 -) cat "$tmp/out"; rm -f "$tmp/out";;
25132 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25133 esac
25137 # CONFIG_HEADER
25139 _ACEOF
25141 # Transform confdefs.h into a sed script `conftest.defines', that
25142 # substitutes the proper values into config.h.in to produce config.h.
25143 rm -f conftest.defines conftest.tail
25144 # First, append a space to every undef/define line, to ease matching.
25145 echo 's/$/ /' >conftest.defines
25146 # Then, protect against being on the right side of a sed subst, or in
25147 # an unquoted here document, in config.status. If some macros were
25148 # called several times there might be several #defines for the same
25149 # symbol, which is useless. But do not sort them, since the last
25150 # AC_DEFINE must be honored.
25151 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25152 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25153 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25154 # PARAMS is the parameter list in the macro definition--in most cases, it's
25155 # just an empty string.
25156 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25157 ac_dB='\\)[ (].*,\\1define\\2'
25158 ac_dC=' '
25159 ac_dD=' ,'
25161 uniq confdefs.h |
25162 sed -n '
25163 t rset
25164 :rset
25165 s/^[ ]*#[ ]*define[ ][ ]*//
25166 t ok
25169 s/[\\&,]/\\&/g
25170 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25171 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25172 ' >>conftest.defines
25174 # Remove the space that was appended to ease matching.
25175 # Then replace #undef with comments. This is necessary, for
25176 # example, in the case of _POSIX_SOURCE, which is predefined and required
25177 # on some systems where configure will not decide to define it.
25178 # (The regexp can be short, since the line contains either #define or #undef.)
25179 echo 's/ $//
25180 s,^[ #]*u.*,/* & */,' >>conftest.defines
25182 # Break up conftest.defines:
25183 ac_max_sed_lines=50
25185 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25186 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25187 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25188 # et cetera.
25189 ac_in='$ac_file_inputs'
25190 ac_out='"$tmp/out1"'
25191 ac_nxt='"$tmp/out2"'
25193 while :
25195 # Write a here document:
25196 cat >>$CONFIG_STATUS <<_ACEOF
25197 # First, check the format of the line:
25198 cat >"\$tmp/defines.sed" <<\\CEOF
25199 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25200 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25202 :def
25203 _ACEOF
25204 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25205 echo 'CEOF
25206 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25207 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25208 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25209 grep . conftest.tail >/dev/null || break
25210 rm -f conftest.defines
25211 mv conftest.tail conftest.defines
25212 done
25213 rm -f conftest.defines conftest.tail
25215 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25216 cat >>$CONFIG_STATUS <<\_ACEOF
25217 if test x"$ac_file" != x-; then
25218 echo "/* $configure_input */" >"$tmp/config.h"
25219 cat "$ac_result" >>"$tmp/config.h"
25220 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25221 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25222 echo "$as_me: $ac_file is unchanged" >&6;}
25223 else
25224 rm -f $ac_file
25225 mv "$tmp/config.h" $ac_file
25227 else
25228 echo "/* $configure_input */"
25229 cat "$ac_result"
25231 rm -f "$tmp/out12"
25234 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25235 echo "$as_me: executing $ac_file commands" >&6;}
25237 esac
25240 case $ac_file$ac_mode in
25241 "default":C)
25243 ### Make the necessary directories, if they don't exist.
25244 for dir in etc lisp ; do
25245 test -d ${dir} || mkdir ${dir}
25246 done
25248 # Build src/Makefile from ${srcdir}/src/Makefile.c
25249 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25250 # This must be done after src/config.h is built, since we rely on that file.
25252 # Now get this: Some word that is part of the ${srcdir} directory name
25253 # or the ${configuration} value might, just might, happen to be an
25254 # identifier like `sun4' or `i386' or something, and be predefined by
25255 # the C preprocessor to some helpful value like 1, or maybe the empty
25256 # string. Needless to say consequent macro substitutions are less
25257 # than conducive to the makefile finding the correct directory.
25258 undefs="`echo $top_srcdir $configuration $canonical |
25259 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25260 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25263 echo creating src/epaths.h
25264 ${MAKE-make} epaths-force
25266 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25267 # `..' to `. .' unless invoked with -traditional
25269 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25270 CPPFLAGS="$CPPFLAGS -traditional"
25273 echo creating lib-src/Makefile
25274 ( cd lib-src
25275 rm -f junk.c junk1.c junk2.c
25276 sed -e '/start of cpp stuff/q' \
25277 < Makefile.c > junk1.c
25278 sed -e '1,/start of cpp stuff/d'\
25279 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25280 < Makefile.c > junk.c
25281 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25282 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25283 cat junk1.c junk2.c > Makefile.new
25284 rm -f junk.c junk1.c junk2.c
25285 chmod 444 Makefile.new
25286 mv -f Makefile.new Makefile
25289 echo creating src/Makefile
25290 ( cd src
25291 rm -f junk.c junk1.c junk2.c
25292 sed -e '/start of cpp stuff/q' \
25293 < Makefile.c > junk1.c
25294 sed -e '1,/start of cpp stuff/d'\
25295 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25296 < Makefile.c > junk.c
25297 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25298 echo creating ${srcdir}/admin/unidata/Makefile
25299 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25300 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25302 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25303 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25304 cat junk1.c junk2.c > Makefile.new
25305 rm -f junk.c junk1.c junk2.c
25306 chmod 444 Makefile.new
25307 mv -f Makefile.new Makefile
25310 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25311 echo creating src/.gdbinit
25312 echo source $srcdir/src/.gdbinit > src/.gdbinit
25315 # This is how we know whether to re-run configure in certain cases.
25316 touch src/config.stamp
25320 esac
25321 done # for ac_tag
25324 { (exit 0); exit 0; }
25325 _ACEOF
25326 chmod +x $CONFIG_STATUS
25327 ac_clean_files=$ac_clean_files_save
25330 # configure is writing to config.log, and then calls config.status.
25331 # config.status does its own redirection, appending to config.log.
25332 # Unfortunately, on DOS this fails, as config.log is still kept open
25333 # by configure, so config.status won't be able to write to it; its
25334 # output is simply discarded. So we exec the FD to /dev/null,
25335 # effectively closing config.log, so it can be properly (re)opened and
25336 # appended to by config.status. When coming back to configure, we
25337 # need to make the FD available again.
25338 if test "$no_create" != yes; then
25339 ac_cs_success=:
25340 ac_config_status_args=
25341 test "$silent" = yes &&
25342 ac_config_status_args="$ac_config_status_args --quiet"
25343 exec 5>/dev/null
25344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25345 exec 5>>config.log
25346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25347 # would make configure fail if this is the last instruction.
25348 $ac_cs_success || { (exit 1); exit 1; }