(gnus-article-mode-line-format-alist): Move here from gnus-art.
[emacs.git] / configure
blob6c55beb630b0ff9a4072af1eb9e681b4873d6836
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 --disable-font-backend don't compile 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-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1354 motif, gtk, no)
1355 --without-xpm don't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don't use Freetype for local font support
1362 --without-xft don't use XFT for anti aliased fonts
1363 --without-libotf don't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt for text shaping
1365 --without-toolkit-scroll-bars
1366 don't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1371 console
1372 --without-dbus don't compile with D-Bus support
1374 --with-pkg-config-prog=PATH
1375 Path to pkg-config for finding GTK and librsvg
1376 --with-x use the X Window System
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1387 XMKMF Path to xmkmf, Makefile generator for X Window System
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1392 _ACEOF
1393 ac_status=$?
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" || continue
1400 ac_builddir=.
1402 case "$ac_dir" in
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 esac ;;
1412 esac
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1418 case $srcdir in
1419 .) # We are building in place.
1420 ac_srcdir=.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1427 *) # Relative name.
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 esac
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1442 else
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 fi || ac_status=$?
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1446 done
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1451 cat <<\_ACEOF
1452 emacs configure 23.0.50
1453 generated by GNU Autoconf 2.61
1455 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1462 cat >config.log <<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by emacs $as_me 23.0.50, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1469 $ $0 $@
1471 _ACEOF
1472 exec 5>>config.log
1474 cat <<_ASUNAME
1475 ## --------- ##
1476 ## Platform. ##
1477 ## --------- ##
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496 _ASUNAME
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 echo "PATH: $as_dir"
1504 done
1505 IFS=$as_save_IFS
1507 } >&5
1509 cat >&5 <<_ACEOF
1512 ## ----------- ##
1513 ## Core tests. ##
1514 ## ----------- ##
1516 _ACEOF
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1524 ac_configure_args=
1525 ac_configure_args0=
1526 ac_configure_args1=
1527 ac_must_keep_next=false
1528 for ac_pass in 1 2
1530 for ac_arg
1532 case $ac_arg in
1533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1536 continue ;;
1537 *\'*)
1538 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1539 esac
1540 case $ac_pass in
1541 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true; then
1545 ac_must_keep_next=false # Got value, back to normal.
1546 else
1547 case $ac_arg in
1548 *=* | --config-cache | -C | -disable-* | --disable-* \
1549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551 | -with-* | --with-* | -without-* | --without-* | --x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554 esac
1556 -* ) ac_must_keep_next=true ;;
1557 esac
1559 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 esac
1562 done
1563 done
1564 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1575 echo
1577 cat <<\_ASBOX
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1581 _ASBOX
1582 echo
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in #(
1588 *${as_nl}*)
1589 case $ac_var in #(
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592 esac
1593 case $ac_var in #(
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1596 esac ;;
1597 esac
1598 done
1599 (set) 2>&1 |
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1602 sed -n \
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 ;; #(
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 esac |
1610 sort
1612 echo
1614 cat <<\_ASBOX
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_vars
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1630 if test -n "$ac_subst_files"; then
1631 cat <<\_ASBOX
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1635 _ASBOX
1636 echo
1637 for ac_var in $ac_subst_files
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 echo "$ac_var='\''$ac_val'\''"
1644 done | sort
1645 echo
1648 if test -s confdefs.h; then
1649 cat <<\_ASBOX
1650 ## ----------- ##
1651 ## confdefs.h. ##
1652 ## ----------- ##
1653 _ASBOX
1654 echo
1655 cat confdefs.h
1656 echo
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1661 } >&5
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 exit $exit_status
1666 for ac_signal in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668 done
1669 ac_signal=0
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest* confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698 _ACEOF
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x "$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE; then
1706 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1707 else
1708 set x "$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1711 shift
1712 for ac_site_file
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1718 . "$ac_site_file"
1720 done
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1733 else
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1739 ac_header_list="$ac_header_list sys/time.h"
1740 ac_header_list="$ac_header_list unistd.h"
1741 ac_func_list="$ac_func_list alarm"
1742 # Check that the precious variables saved in the cache have kept the same
1743 # value.
1744 ac_cache_corrupted=false
1745 for ac_var in $ac_precious_vars; do
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1751 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,);;
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765 echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767 echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted=:
1769 fi;;
1770 esac
1771 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then
1773 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1780 esac
1782 done
1783 if $ac_cache_corrupted; then
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1826 test "$program_prefix" != NONE &&
1827 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1828 # Use a double $ so make ignores it.
1829 test "$program_suffix" != NONE &&
1830 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1831 # Double any \ or $. echo might interpret backslashes.
1832 # By default was `s,x,x', remove it if useless.
1833 cat <<\_ACEOF >conftest.sed
1834 s/[\\$]/&&/g;s/;s,x,x,$//
1835 _ACEOF
1836 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 rm -f conftest.sed
1840 lispdir='${datadir}/emacs/${version}/lisp'
1841 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1842 '${datadir}/emacs/site-lisp'
1843 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1844 etcdir='${datadir}/emacs/${version}/etc'
1845 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1846 docdir='${datadir}/emacs/${version}/etc'
1847 gamedir='${localstatedir}/games/emacs'
1849 gameuser=games
1854 # Check whether --with-pop was given.
1855 if test "${with_pop+set}" = set; then
1856 withval=$with_pop;
1857 else
1858 with_pop=yes
1861 if test "$with_pop" = yes; then
1862 cat >>confdefs.h <<\_ACEOF
1863 #define MAIL_USE_POP 1
1864 _ACEOF
1870 # Check whether --with-kerberos was given.
1871 if test "${with_kerberos+set}" = set; then
1872 withval=$with_kerberos;
1873 else
1874 with_kerberos=no
1877 if test "$with_kerberos" = yes; then
1878 cat >>confdefs.h <<\_ACEOF
1879 #define KERBEROS 1
1880 _ACEOF
1886 # Check whether --with-kerberos5 was given.
1887 if test "${with_kerberos5+set}" = set; then
1888 withval=$with_kerberos5;
1889 else
1890 with_kerberos5=no
1893 if test "${with_kerberos5}" = yes; then
1894 if test "${with_kerberos}" != yes; then
1895 with_kerberos=yes
1896 cat >>confdefs.h <<\_ACEOF
1897 #define KERBEROS 1
1898 _ACEOF
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS5 1
1904 _ACEOF
1909 # Check whether --with-hesiod was given.
1910 if test "${with_hesiod+set}" = set; then
1911 withval=$with_hesiod;
1912 else
1913 with_hesiod=no
1916 if test "$with_hesiod" = yes; then
1918 cat >>confdefs.h <<\_ACEOF
1919 #define HESIOD 1
1920 _ACEOF
1925 # Check whether --with-sound was given.
1926 if test "${with_sound+set}" = set; then
1927 withval=$with_sound;
1928 else
1929 with_sound=yes
1934 # Check whether --with-x-toolkit was given.
1935 if test "${with_x_toolkit+set}" = set; then
1936 withval=$with_x_toolkit; case "${withval}" in
1937 y | ye | yes ) val=gtk ;;
1938 n | no ) val=no ;;
1939 l | lu | luc | luci | lucid ) val=lucid ;;
1940 a | at | ath | athe | athen | athena ) val=athena ;;
1941 m | mo | mot | moti | motif ) val=motif ;;
1942 g | gt | gtk ) val=gtk ;;
1944 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1947 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1949 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1950 { (exit 1); exit 1; }; }
1952 esac
1953 with_x_toolkit=$val
1959 # Check whether --with-xpm was given.
1960 if test "${with_xpm+set}" = set; then
1961 withval=$with_xpm;
1962 else
1963 with_xpm=yes
1967 # Check whether --with-jpeg was given.
1968 if test "${with_jpeg+set}" = set; then
1969 withval=$with_jpeg;
1970 else
1971 with_jpeg=yes
1975 # Check whether --with-tiff was given.
1976 if test "${with_tiff+set}" = set; then
1977 withval=$with_tiff;
1978 else
1979 with_tiff=yes
1983 # Check whether --with-gif was given.
1984 if test "${with_gif+set}" = set; then
1985 withval=$with_gif;
1986 else
1987 with_gif=yes
1991 # Check whether --with-png was given.
1992 if test "${with_png+set}" = set; then
1993 withval=$with_png;
1994 else
1995 with_png=yes
1999 # Check whether --with-rsvg was given.
2000 if test "${with_rsvg+set}" = set; then
2001 withval=$with_rsvg;
2002 else
2003 with_rsvg=yes
2008 # Check whether --with-freetype was given.
2009 if test "${with_freetype+set}" = set; then
2010 withval=$with_freetype;
2011 else
2012 with_freetype=yes
2016 # Check whether --with-xft was given.
2017 if test "${with_xft+set}" = set; then
2018 withval=$with_xft;
2019 else
2020 with_xft=yes
2024 # Check whether --with-libotf was given.
2025 if test "${with_libotf+set}" = set; then
2026 withval=$with_libotf;
2027 else
2028 with_libotf=yes
2032 # Check whether --with-m17n-flt was given.
2033 if test "${with_m17n_flt+set}" = set; then
2034 withval=$with_m17n_flt;
2035 else
2036 with_m17n_flt=yes
2041 # Check whether --with-toolkit-scroll-bars was given.
2042 if test "${with_toolkit_scroll_bars+set}" = set; then
2043 withval=$with_toolkit_scroll_bars;
2044 else
2045 with_toolkit_scroll_bars=yes
2049 # Check whether --with-xaw3d was given.
2050 if test "${with_xaw3d+set}" = set; then
2051 withval=$with_xaw3d;
2052 else
2053 with_xaw3d=yes
2057 # Check whether --with-xim was given.
2058 if test "${with_xim+set}" = set; then
2059 withval=$with_xim;
2060 else
2061 with_xim=yes
2065 # Check whether --with-carbon was given.
2066 if test "${with_carbon+set}" = set; then
2067 withval=$with_carbon;
2068 else
2069 with_carbon=no
2074 # Check whether --with-gpm was given.
2075 if test "${with_gpm+set}" = set; then
2076 withval=$with_gpm;
2077 else
2078 with_gpm=yes
2082 # Check whether --with-dbus was given.
2083 if test "${with_dbus+set}" = set; then
2084 withval=$with_dbus;
2085 else
2086 with_dbus=yes
2091 # Check whether --with-gtk was given.
2092 if test "${with_gtk+set}" = set; then
2093 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2094 specify a toolkit." >&5
2095 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2096 specify a toolkit." >&2;}
2097 { (exit 1); exit 1; }; }
2102 # Check whether --with-gcc was given.
2103 if test "${with_gcc+set}" = set; then
2104 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2105 variable to specify a compiler." >&5
2106 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2107 variable to specify a compiler." >&2;}
2108 { (exit 1); exit 1; }; }
2113 # Check whether --with-pkg-config-prog was given.
2114 if test "${with_pkg_config_prog+set}" = set; then
2115 withval=$with_pkg_config_prog;
2118 if test "X${with_pkg_config_prog}" != X; then
2119 if test "${with_pkg_config_prog}" != yes; then
2120 PKG_CONFIG="${with_pkg_config_prog}"
2124 # Check whether --enable-carbon-app was given.
2125 if test "${enable_carbon_app+set}" = set; then
2126 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2130 ## Enabled by default.
2131 # Check whether --enable-font-backend was given.
2132 if test "${enable_font_backend+set}" = set; then
2133 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2134 else
2135 USE_FONT_BACKEND=yes
2139 # Check whether --enable-asserts was given.
2140 if test "${enable_asserts+set}" = set; then
2141 enableval=$enable_asserts; USE_XASSERTS=$enableval
2142 else
2143 USE_XASSERTS=no
2147 # Check whether --enable-maintainer-mode was given.
2148 if test "${enable_maintainer_mode+set}" = set; then
2149 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2150 else
2151 USE_MAINTAINER_MODE=no
2154 if test $USE_MAINTAINER_MODE = yes; then
2155 MAINT=
2156 else
2157 MAINT=#
2161 # Check whether --enable-locallisppath was given.
2162 if test "${enable_locallisppath+set}" = set; then
2163 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2164 locallisppath=
2165 elif test "${enableval}" != "yes"; then
2166 locallisppath=${enableval}
2171 #### Make srcdir absolute, if it isn't already. It's important to
2172 #### avoid running the path through pwd unnecessarily, since pwd can
2173 #### give you automounter prefixes, which can go away. We do all this
2174 #### so Emacs can find its files when run uninstalled.
2175 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2176 unset CDPATH
2177 case "${srcdir}" in
2178 /* ) ;;
2180 ## We may be able to use the $PWD environment variable to make this
2181 ## absolute. But sometimes PWD is inaccurate.
2182 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2183 ## but that tested only for a well-formed and valid PWD,
2184 ## it did not object when PWD was well-formed and valid but just wrong.
2185 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2186 then
2187 srcdir="$PWD"
2188 else
2189 srcdir="`(cd ${srcdir}; pwd)`"
2192 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2193 esac
2195 #### Check if the source directory already has a configured system in it.
2196 if test `pwd` != `(cd ${srcdir} && pwd)` \
2197 && test -f "${srcdir}/src/config.h" ; then
2198 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2199 as a build directory right now; it has been configured in its own
2200 right. To configure in another directory as well, you MUST
2201 use GNU make. If you do not have GNU make, then you must
2202 now do \`make distclean' in ${srcdir},
2203 and then run $0 again." >&5
2204 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2205 as a build directory right now; it has been configured in its own
2206 right. To configure in another directory as well, you MUST
2207 use GNU make. If you do not have GNU make, then you must
2208 now do \`make distclean' in ${srcdir},
2209 and then run $0 again." >&2;}
2212 #### Given the configuration name, set machfile and opsysfile to the
2213 #### names of the m/*.h and s/*.h files we should use.
2215 ### Canonicalize the configuration name.
2217 ac_aux_dir=
2218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2219 if test -f "$ac_dir/install-sh"; then
2220 ac_aux_dir=$ac_dir
2221 ac_install_sh="$ac_aux_dir/install-sh -c"
2222 break
2223 elif test -f "$ac_dir/install.sh"; then
2224 ac_aux_dir=$ac_dir
2225 ac_install_sh="$ac_aux_dir/install.sh -c"
2226 break
2227 elif test -f "$ac_dir/shtool"; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/shtool install -c"
2230 break
2232 done
2233 if test -z "$ac_aux_dir"; then
2234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2235 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2236 { (exit 1); exit 1; }; }
2239 # These three variables are undocumented and unsupported,
2240 # and are intended to be withdrawn in a future Autoconf release.
2241 # They can cause serious problems if a builder's source tree is in a directory
2242 # whose full name contains unusual characters.
2243 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2244 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2245 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2248 # Make sure we can run config.sub.
2249 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2250 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2251 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2252 { (exit 1); exit 1; }; }
2254 { echo "$as_me:$LINENO: checking build system type" >&5
2255 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2256 if test "${ac_cv_build+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 ac_build_alias=$build_alias
2260 test "x$ac_build_alias" = x &&
2261 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2262 test "x$ac_build_alias" = x &&
2263 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2264 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2265 { (exit 1); exit 1; }; }
2266 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2267 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2268 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2269 { (exit 1); exit 1; }; }
2272 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2273 echo "${ECHO_T}$ac_cv_build" >&6; }
2274 case $ac_cv_build in
2275 *-*-*) ;;
2276 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2277 echo "$as_me: error: invalid value of canonical build" >&2;}
2278 { (exit 1); exit 1; }; };;
2279 esac
2280 build=$ac_cv_build
2281 ac_save_IFS=$IFS; IFS='-'
2282 set x $ac_cv_build
2283 shift
2284 build_cpu=$1
2285 build_vendor=$2
2286 shift; shift
2287 # Remember, the first character of IFS is used to create $*,
2288 # except with old shells:
2289 build_os=$*
2290 IFS=$ac_save_IFS
2291 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2294 { echo "$as_me:$LINENO: checking host system type" >&5
2295 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2296 if test "${ac_cv_host+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test "x$host_alias" = x; then
2300 ac_cv_host=$ac_cv_build
2301 else
2302 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2303 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2304 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2305 { (exit 1); exit 1; }; }
2309 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2310 echo "${ECHO_T}$ac_cv_host" >&6; }
2311 case $ac_cv_host in
2312 *-*-*) ;;
2313 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2314 echo "$as_me: error: invalid value of canonical host" >&2;}
2315 { (exit 1); exit 1; }; };;
2316 esac
2317 host=$ac_cv_host
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_host
2320 shift
2321 host_cpu=$1
2322 host_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 host_os=$*
2327 IFS=$ac_save_IFS
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 canonical=$host
2332 configuration=${host_alias-${build_alias-$host}}
2336 ### If you add support for a new configuration, add code to this
2337 ### switch statement to recognize your configuration name and select
2338 ### the appropriate operating system and machine description files.
2340 ### You would hope that you could choose an m/*.h file pretty much
2341 ### based on the machine portion of the configuration name, and an s-
2342 ### file based on the operating system portion. However, it turns out
2343 ### that each m/*.h file is pretty manufacturer-specific - for
2344 ### example hp9000s300.h is a 68000 machine;
2345 ### mips.h, pmax.h are all MIPS
2346 ### machines. So we basically have to have a special case for each
2347 ### configuration name.
2349 ### As far as handling version numbers on operating systems is
2350 ### concerned, make sure things will fail in a fixable way. If
2351 ### /etc/MACHINES doesn't say anything about version numbers, be
2352 ### prepared to handle anything reasonably. If version numbers
2353 ### matter, be sure /etc/MACHINES says something about it.
2355 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2356 ### "System V Release 4"; he writes, "The old convention encouraged
2357 ### confusion between `system' and `release' levels'."
2359 machine='' opsys='' unported=no
2360 case "${canonical}" in
2362 ## FreeBSD ports
2363 *-*-freebsd* )
2364 opsys=freebsd
2365 case "${canonical}" in
2366 alpha*-*-freebsd*) machine=alpha ;;
2367 arm*-*-freebsd*) machine=arm ;;
2368 ia64-*-freebsd*) machine=ia64 ;;
2369 sparc64-*-freebsd*) machine=sparc ;;
2370 powerpc-*-freebsd*) machine=macppc ;;
2371 i[3456]86-*-freebsd*) machine=intel386 ;;
2372 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2373 esac
2376 ## FreeBSD kernel + glibc based userland
2377 *-*-kfreebsd*gnu* )
2378 opsys=gnu-kfreebsd
2379 case "${canonical}" in
2380 alpha*-*-kfreebsd*) machine=alpha ;;
2381 ia64-*-kfreebsd*) machine=ia64 ;;
2382 sparc64-*-kfreebsd*) machine=sparc ;;
2383 powerpc-*-kfreebsd*) machine=macppc ;;
2384 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2385 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2386 esac
2389 ## NetBSD ports
2390 *-*-netbsd* )
2391 opsys=netbsd
2392 if test -f /usr/lib/crti.o; then
2394 cat >>confdefs.h <<\_ACEOF
2395 #define HAVE_CRTIN
2396 _ACEOF
2400 case "${canonical}" in
2401 alpha*-*-netbsd*) machine=alpha ;;
2402 i[3456]86-*-netbsd*) machine=intel386 ;;
2403 m68k-*-netbsd*)
2404 # This is somewhat bogus.
2405 machine=hp9000s300 ;;
2406 mips-*-netbsd*) machine=pmax ;;
2407 mipsel-*-netbsd*) machine=pmax ;;
2408 mipseb-*-netbsd*) machine=pmax ;;
2409 powerpc-*-netbsd*) machine=macppc ;;
2410 sparc*-*-netbsd*) machine=sparc ;;
2411 vax-*-netbsd*) machine=vax ;;
2412 arm-*-netbsd*) machine=arm ;;
2413 x86_64-*-netbsd*) machine=amdx86-64 ;;
2414 hppa-*-netbsd*) machine=hp800 ;;
2415 esac
2418 ## OpenBSD ports
2419 *-*-openbsd* )
2420 opsys=openbsd
2421 case "${canonical}" in
2422 alpha*-*-openbsd*) machine=alpha ;;
2423 arm-*-openbsd*) machine=arm ;;
2424 hppa-*-openbsd*) machine=hp9000s300 ;;
2425 i386-*-openbsd*) machine=intel386 ;;
2426 m68k-*-openbsd*) machine=hp9000s300 ;;
2427 powerpc-*-openbsd*) machine=macppc ;;
2428 sparc*-*-openbsd*) machine=sparc ;;
2429 vax-*-openbsd*) machine=vax ;;
2430 x86_64-*-openbsd*) machine=amdx86-64 ;;
2431 esac
2434 ## LynxOS ports
2435 *-*-lynxos* )
2436 opsys=lynxos
2437 case "${canonical}" in
2438 i[3456]86-*-lynxos*) machine=intel386 ;;
2439 powerpc-*-lynxos*) machine=powerpc ;;
2440 esac
2443 ## BSDI ports
2444 *-*-bsdi* )
2445 opsys=bsdi
2446 case "${canonical}" in
2447 i[345]86-*-bsdi*) machine=intel386 ;;
2448 sparc-*-bsdi*) machine=sparc ;;
2449 powerpc-*-bsdi*) machine=macppc ;;
2450 esac
2451 case "${canonical}" in
2452 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2453 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2454 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2455 *-*-bsdi3* ) opsys=bsdos3 ;;
2456 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2457 esac
2460 alpha*-*-linux-gnu* )
2461 machine=alpha opsys=gnu-linux
2464 arm*-*-linux-gnu* )
2465 machine=arm opsys=gnu-linux
2468 ## Apple Darwin / Mac OS X
2469 *-apple-darwin* )
2470 case "${canonical}" in
2471 i[3456]86-* ) machine=intel386 ;;
2472 powerpc-* ) machine=powermac ;;
2473 * ) unported=yes ;;
2474 esac
2475 opsys=darwin
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP="${CC-cc} -E -no-cpp-precomp"
2478 # Use fink packages if available.
2479 if test -d /sw/include && test -d /sw/lib; then
2480 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2481 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2482 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2486 ## Cubix QBx/386
2487 i[3456]86-cubix-sysv* )
2488 machine=intel386 opsys=usg5-3
2491 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2492 machine=pmax opsys=bsd4-2
2494 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2495 machine=pmax opsys=bsd4-3
2497 mips-dec-ultrix* )
2498 machine=pmax opsys=ultrix4-3
2500 ## HP 9000 series 200 or 300
2501 m68*-hp-bsd* )
2502 machine=hp9000s300 opsys=bsd4-3
2504 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2505 m68*-hp-hpux* )
2506 case "`uname -r`" in
2507 ## Someone's system reports A.B8.05 for this.
2508 ## I wonder what other possibilities there are.
2509 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2510 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2511 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2512 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2513 *) machine=hp9000s300 opsys=hpux ;;
2514 esac
2517 ## HP 9000 series 700 and 800, running HP/UX
2518 hppa*-hp-hpux7* )
2519 machine=hp800 opsys=hpux
2521 hppa*-hp-hpux8* )
2522 machine=hp800 opsys=hpux8
2524 hppa*-hp-hpux9shr* )
2525 machine=hp800 opsys=hpux9shr
2527 hppa*-hp-hpux9* )
2528 machine=hp800 opsys=hpux9
2530 hppa*-hp-hpux10.2* )
2531 machine=hp800 opsys=hpux10-20
2533 hppa*-hp-hpux10* )
2534 machine=hp800 opsys=hpux10
2536 hppa*-hp-hpux1[1-9]* )
2537 machine=hp800 opsys=hpux11
2538 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2541 hppa*-*-linux-gnu* )
2542 machine=hp800 opsys=gnu-linux
2545 ## HP 9000 series 700 and 800, running HP/UX
2546 hppa*-hp-hpux* )
2547 ## Cross-compilation? Nah!
2548 case "`uname -r`" in
2549 ## Someone's system reports A.B8.05 for this.
2550 ## I wonder what other possibilities there are.
2551 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2552 *.08.* ) machine=hp800 opsys=hpux8 ;;
2553 *.09.* ) machine=hp800 opsys=hpux9 ;;
2554 *) machine=hp800 opsys=hpux10 ;;
2555 esac
2557 hppa*-*-nextstep* )
2558 machine=hp800 opsys=nextstep
2561 ## IBM machines
2562 i370-ibm-aix*)
2563 machine=ibm370aix opsys=usg5-3
2565 s390-*-linux-gnu* )
2566 machine=ibms390 opsys=gnu-linux
2568 s390x-*-linux-gnu* )
2569 machine=ibms390x opsys=gnu-linux
2571 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2572 machine=ibmrs6000 opsys=aix3-1
2574 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2575 machine=ibmrs6000 opsys=aix3-2-5
2577 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2578 machine=ibmrs6000 opsys=aix4-1
2580 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2581 machine=ibmrs6000 opsys=aix4-2
2583 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2584 machine=ibmrs6000 opsys=aix4-2
2586 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2587 machine=ibmrs6000 opsys=aix4-2
2589 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2590 machine=ibmrs6000 opsys=aix4-2
2592 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2593 machine=ibmrs6000 opsys=aix4
2595 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2596 machine=ibmrs6000 opsys=aix4-1
2598 rs6000-ibm-aix* | powerpc-ibm-aix* )
2599 machine=ibmrs6000 opsys=aix3-2
2602 ## Prime EXL
2603 i[3456]86-prime-sysv* )
2604 machine=i386 opsys=usg5-3
2607 ## ncr machine running svr4.3.
2608 i[3456]86-ncr-sysv4.3 )
2609 machine=ncr386 opsys=usg5-4-3
2612 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2613 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2614 i[3456]86-ncr-sysv* )
2615 machine=ncr386 opsys=usg5-4-2
2618 ## Macintosh PowerPC
2619 powerpc*-*-linux-gnu* )
2620 machine=macppc opsys=gnu-linux
2623 ## Workstations sold by MIPS
2624 ## This is not necessarily all workstations using the MIPS processor -
2625 ## Irises are produced by SGI, and DECstations by DEC.
2627 mips-mips-bsd* )
2628 machine=mips opsys=bsd4-3
2630 mips-mips-* )
2631 machine=mips opsys=usg5-2-2
2634 ## NeXT
2635 m68*-next-* | m68k-*-nextstep* )
2636 machine=m68k opsys=nextstep
2639 ## NEC EWS4800
2640 mips-nec-sysv4*)
2641 machine=ews4800 opsys=ux4800
2644 ## Siemens Nixdorf
2645 mips-siemens-sysv* | mips-sni-sysv*)
2646 machine=mips-siemens opsys=usg5-4
2647 NON_GNU_CC=/usr/ccs/bin/cc
2648 NON_GNU_CPP=/usr/ccs/lib/cpp
2651 ## Silicon Graphics machines
2652 ## Iris 4D
2653 mips-sgi-irix6.5 )
2654 machine=iris4d opsys=irix6-5
2655 # Without defining _LANGUAGE_C, things get masked out in the headers
2656 # so that, for instance, grepping for `free' in stdlib.h fails and
2657 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2658 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2659 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2662 ## Suns
2663 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2664 machine=sparc opsys=gnu-linux
2667 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2668 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2669 | rs6000-*-solaris2*)
2670 case "${canonical}" in
2671 i[3456]86-*-* ) machine=intel386 ;;
2672 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2673 powerpcle* ) machine=powerpcle ;;
2674 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2675 sparc* ) machine=sparc ;;
2676 * ) unported=yes ;;
2677 esac
2678 case "${canonical}" in
2679 *-sunos5.3* | *-solaris2.3* )
2680 opsys=sol2-3
2681 NON_GNU_CPP=/usr/ccs/lib/cpp
2683 *-sunos5.4* | *-solaris2.4* )
2684 opsys=sol2-4
2685 NON_GNU_CPP=/usr/ccs/lib/cpp
2686 RANLIB="ar -ts"
2688 *-sunos5.5* | *-solaris2.5* )
2689 opsys=sol2-5
2690 NON_GNU_CPP=/usr/ccs/lib/cpp
2691 RANLIB="ar -ts"
2693 *-sunos5.6* | *-solaris2.6* )
2694 opsys=sol2-6
2695 NON_GNU_CPP=/usr/ccs/lib/cpp
2696 RANLIB="ar -ts"
2698 *-sunos5* | *-solaris* )
2699 opsys=sol2-6
2700 emacs_check_sunpro_c=yes
2701 NON_GNU_CPP=/usr/ccs/lib/cpp
2703 * ) opsys=bsd4-2 ;;
2704 esac
2705 ## Watch out for a compiler that we know will not work.
2706 case "${canonical}" in
2707 *-solaris* | *-sunos5* )
2708 if [ "x$CC" = x/usr/ucb/cc ]; then
2709 ## /usr/ucb/cc doesn't work;
2710 ## we should find some other compiler that does work.
2711 unset CC
2714 *) ;;
2715 esac
2717 sparc-*-nextstep* )
2718 machine=sparc opsys=nextstep
2721 ## Tandem Integrity S2
2722 mips-tandem-sysv* )
2723 machine=tandem-s2 opsys=usg5-3
2726 ## Vaxen.
2727 vax-dec-* )
2728 machine=vax
2729 case "${canonical}" in
2730 *-bsd4.1* ) opsys=bsd4-1 ;;
2731 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2732 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2733 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2734 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2735 *-vms* ) opsys=vms ;;
2736 * ) unported=yes
2737 esac
2740 ## IA-64
2741 ia64*-*-linux* )
2742 machine=ia64 opsys=gnu-linux
2745 ## Intel 386 machines where we don't care about the manufacturer
2746 i[3456]86-*-* )
2747 machine=intel386
2748 case "${canonical}" in
2749 *-cygwin ) opsys=cygwin ;;
2750 *-darwin* ) opsys=darwin
2751 CPP="${CC-cc} -E -no-cpp-precomp"
2753 *-linux-gnu* ) opsys=gnu-linux ;;
2754 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2755 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2756 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2757 *-386bsd* ) opsys=386bsd ;;
2758 *-nextstep* ) opsys=nextstep ;;
2759 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2760 esac
2763 ## m68k Linux-based GNU system
2764 m68k-*-linux-gnu* )
2765 machine=m68k opsys=gnu-linux
2768 ## Mips Linux-based GNU system
2769 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2770 machine=mips opsys=gnu-linux
2773 ## UXP/DS
2774 sparc-fujitsu-sysv4* )
2775 machine=sparc opsys=uxpds
2776 NON_GNU_CPP=/usr/ccs/lib/cpp
2777 RANLIB="ar -ts"
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-*-linux-gnu* )
2782 machine=amdx86-64 opsys=gnu-linux
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa*-*-linux-gnu* )
2787 machine=xtensa opsys=gnu-linux
2791 unported=yes
2793 esac
2795 ### If the code above didn't choose an operating system, just choose
2796 ### an operating system based on the configuration name. You really
2797 ### only want to use this when you have no idea what the right
2798 ### operating system is; if you know what operating systems a machine
2799 ### runs, it's cleaner to make it explicit in the case statement
2800 ### above.
2801 if test x"${opsys}" = x; then
2802 case "${canonical}" in
2803 *-gnu* ) opsys=gnu ;;
2804 *-bsd4.[01] ) opsys=bsd4-1 ;;
2805 *-bsd4.2 ) opsys=bsd4-2 ;;
2806 *-bsd4.3 ) opsys=bsd4-3 ;;
2807 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2808 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2809 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2810 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2811 *-sysv4.2uw* ) opsys=unixware ;;
2812 *-sysv5uw* ) opsys=unixware ;;
2813 *-sysv5OpenUNIX* ) opsys=unixware ;;
2814 *-sysv4.1* | *-sysvr4.1* )
2815 NON_GNU_CPP=/usr/lib/cpp
2816 opsys=usg5-4 ;;
2817 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2818 if [ x$NON_GNU_CPP = x ]; then
2819 if [ -f /usr/ccs/lib/cpp ]; then
2820 NON_GNU_CPP=/usr/ccs/lib/cpp
2821 else
2822 NON_GNU_CPP=/lib/cpp
2825 opsys=usg5-4-2 ;;
2826 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2828 unported=yes
2830 esac
2833 ### Tests for sytems that we beleive are obsolete and should be desupported.
2835 case "${machine}" in
2836 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2837 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2838 echo "and it is planned to be desupported in the next version of Emacs"
2839 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2840 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2841 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2842 exit 33
2844 esac
2846 case "${opsys}" in
2847 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2848 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2849 echo "and it is planned to be desupported in the next version of Emacs"
2850 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2851 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2852 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2853 exit 44
2855 esac
2859 if test $unported = yes; then
2860 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2861 Check \`etc/MACHINES' for recognized configuration names." >&5
2862 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2863 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2864 { (exit 1); exit 1; }; }
2867 machfile="m/${machine}.h"
2868 opsysfile="s/${opsys}.h"
2871 #### Choose a compiler.
2872 test -n "$CC" && cc_specified=yes
2874 # Save the value of CFLAGS that the user specified.
2875 SPECIFIED_CFLAGS="$CFLAGS"
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912 { echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6; }
2914 else
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2921 if test -z "$ac_cv_prog_CC"; then
2922 ac_ct_CC=$CC
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2944 done
2945 done
2946 IFS=$as_save_IFS
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2953 echo "${ECHO_T}$ac_ct_CC" >&6; }
2954 else
2955 { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2974 else
2975 CC="$ac_cv_prog_CC"
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}cc; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC="${ac_tool_prefix}cc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { echo "$as_me:$LINENO: result: $CC" >&5
3010 echo "${ECHO_T}$CC" >&6; }
3011 else
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc; ac_word=$2
3022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 ac_prog_rejected=no
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3040 continue
3042 ac_cv_prog_CC="cc"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3053 shift
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3058 shift
3059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { echo "$as_me:$LINENO: result: $CC" >&5
3067 echo "${ECHO_T}$CC" >&6; }
3068 else
3069 { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog in cl.exe
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { echo "$as_me:$LINENO: result: $CC" >&5
3109 echo "${ECHO_T}$CC" >&6; }
3110 else
3111 { echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6; }
3116 test -n "$CC" && break
3117 done
3119 if test -z "$CC"; then
3120 ac_ct_CC=$CC
3121 for ac_prog in cl.exe
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_ac_ct_CC="$ac_prog"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3146 IFS=$as_save_IFS
3150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3153 echo "${ECHO_T}$ac_ct_CC" >&6; }
3154 else
3155 { echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6; }
3160 test -n "$ac_ct_CC" && break
3161 done
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet. If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&5
3171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3172 whose name does not start with the host triplet. If you think this
3173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 CC=$ac_ct_CC
3183 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }
3189 # Provide some information about the compiler.
3190 echo "$as_me:$LINENO: checking for C compiler version" >&5
3191 ac_compiler=`set X $ac_compile; echo $2`
3192 { (ac_try="$ac_compiler --version >&5"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compiler --version >&5") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }
3202 { (ac_try="$ac_compiler -v >&5"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compiler -v >&5") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }
3212 { (ac_try="$ac_compiler -V >&5"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compiler -V >&5") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3231 main ()
3235 return 0;
3237 _ACEOF
3238 ac_clean_files_save=$ac_clean_files
3239 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3240 # Try to create an executable without -o first, disregard a.out.
3241 # It will help us diagnose broken compilers, and finding out an intuition
3242 # of exeext.
3243 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3245 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3247 # List of possible output files, starting from the most likely.
3248 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3249 # only as a last resort. b.out is created by i960 compilers.
3250 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3252 # The IRIX 6 linker writes into existing files which may not be
3253 # executable, retaining their permissions. Remove them first so a
3254 # subsequent execution test works.
3255 ac_rmfiles=
3256 for ac_file in $ac_files
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261 esac
3262 done
3263 rm -f $ac_rmfiles
3265 if { (ac_try="$ac_link_default"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_link_default") 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; then
3275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3278 # so that the user can short-circuit this test for compilers unknown to
3279 # Autoconf.
3280 for ac_file in $ac_files ''
3282 test -f "$ac_file" || continue
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3286 [ab].out )
3287 # We found the default executable, but exeext='' is most
3288 # certainly right.
3289 break;;
3290 *.* )
3291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3292 then :; else
3293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3299 # actually working.
3300 break;;
3302 break;;
3303 esac
3304 done
3305 test "$ac_cv_exeext" = no && ac_cv_exeext=
3307 else
3308 ac_file=''
3311 { echo "$as_me:$LINENO: result: $ac_file" >&5
3312 echo "${ECHO_T}$ac_file" >&6; }
3313 if test -z "$ac_file"; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3318 See \`config.log' for more details." >&5
3319 echo "$as_me: error: C compiler cannot create executables
3320 See \`config.log' for more details." >&2;}
3321 { (exit 77); exit 77; }; }
3324 ac_exeext=$ac_cv_exeext
3326 # Check that the compiler produces executables we can run. If not, either
3327 # the compiler is broken, or we cross compile.
3328 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3329 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3330 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3331 # If not cross compiling, check that we can run a simple program.
3332 if test "$cross_compiling" != yes; then
3333 if { ac_try='./$ac_file'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 cross_compiling=no
3344 else
3345 if test "$cross_compiling" = maybe; then
3346 cross_compiling=yes
3347 else
3348 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: cannot run C compiled programs.
3352 If you meant to cross compile, use \`--host'.
3353 See \`config.log' for more details." >&2;}
3354 { (exit 1); exit 1; }; }
3358 { echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6; }
3361 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
3366 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3367 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3368 echo "${ECHO_T}$cross_compiling" >&6; }
3370 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3371 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3372 if { (ac_try="$ac_link"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; then
3382 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3383 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3384 # work properly (i.e., refer to `conftest.exe'), while it won't with
3385 # `rm'.
3386 for ac_file in conftest.exe conftest conftest.*; do
3387 test -f "$ac_file" || continue
3388 case $ac_file in
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3390 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391 break;;
3392 * ) break;;
3393 esac
3394 done
3395 else
3396 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3397 See \`config.log' for more details." >&5
3398 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3403 rm -f conftest$ac_cv_exeext
3404 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3405 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3407 rm -f conftest.$ac_ext
3408 EXEEXT=$ac_cv_exeext
3409 ac_exeext=$EXEEXT
3410 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3411 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3412 if test "${ac_cv_objext+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3423 main ()
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.o conftest.obj
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; then
3441 for ac_file in conftest.o conftest.obj conftest.*; do
3442 test -f "$ac_file" || continue;
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3446 break;;
3447 esac
3448 done
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3456 See \`config.log' for more details." >&2;}
3457 { (exit 1); exit 1; }; }
3460 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3463 echo "${ECHO_T}$ac_cv_objext" >&6; }
3464 OBJEXT=$ac_cv_objext
3465 ac_objext=$OBJEXT
3466 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3467 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3468 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3479 main ()
3481 #ifndef __GNUC__
3482 choke me
3483 #endif
3486 return 0;
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.$ac_objext; then
3506 ac_compiler_gnu=yes
3507 else
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_compiler_gnu=no
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3519 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3520 GCC=`test $ac_compiler_gnu = yes && echo yes`
3521 ac_test_CFLAGS=${CFLAGS+set}
3522 ac_save_CFLAGS=$CFLAGS
3523 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3524 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_g+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 ac_save_c_werror_flag=$ac_c_werror_flag
3529 ac_c_werror_flag=yes
3530 ac_cv_prog_cc_g=no
3531 CFLAGS="-g"
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_compile") 2>conftest.er1
3555 ac_status=$?
3556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } && {
3561 test -z "$ac_c_werror_flag" ||
3562 test ! -s conftest.err
3563 } && test -s conftest.$ac_objext; then
3564 ac_cv_prog_cc_g=yes
3565 else
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 CFLAGS=""
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3578 main ()
3582 return 0;
3584 _ACEOF
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest.$ac_objext; then
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3617 main ()
3621 return 0;
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3641 ac_cv_prog_cc_g=yes
3642 else
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3658 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3660 if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662 elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3664 CFLAGS="-g -O2"
3665 else
3666 CFLAGS="-g"
3668 else
3669 if test "$GCC" = yes; then
3670 CFLAGS="-O2"
3671 else
3672 CFLAGS=
3675 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3676 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3677 if test "${ac_cv_prog_cc_c89+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 ac_cv_prog_cc_c89=no
3681 ac_save_CC=$CC
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #include <stdarg.h>
3689 #include <stdio.h>
3690 #include <sys/types.h>
3691 #include <sys/stat.h>
3692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3693 struct buf { int x; };
3694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695 static char *e (p, i)
3696 char **p;
3697 int i;
3699 return p[i];
3701 static char *f (char * (*g) (char **, int), char **p, ...)
3703 char *s;
3704 va_list v;
3705 va_start (v,p);
3706 s = g (p, va_arg (v,int));
3707 va_end (v);
3708 return s;
3711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3712 function prototypes and stuff, but not '\xHH' hex character constants.
3713 These don't provoke an error unfortunately, instead are silently treated
3714 as 'x'. The following induces an error, until -std is added to get
3715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3716 array size at least. It's necessary to write '\x00'==0 to get something
3717 that's true only with -std. */
3718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721 inside strings and character constants. */
3722 #define FOO(x) 'x'
3723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725 int test (int i, double x);
3726 struct s1 {int (*f) (int a);};
3727 struct s2 {int (*f) (double a);};
3728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729 int argc;
3730 char **argv;
3732 main ()
3734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 return 0;
3738 _ACEOF
3739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742 CC="$ac_save_CC $ac_arg"
3743 rm -f conftest.$ac_objext
3744 if { (ac_try="$ac_compile"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_compile") 2>conftest.er1
3751 ac_status=$?
3752 grep -v '^ *+' conftest.er1 >conftest.err
3753 rm -f conftest.er1
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } && {
3757 test -z "$ac_c_werror_flag" ||
3758 test ! -s conftest.err
3759 } && test -s conftest.$ac_objext; then
3760 ac_cv_prog_cc_c89=$ac_arg
3761 else
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3768 rm -f core conftest.err conftest.$ac_objext
3769 test "x$ac_cv_prog_cc_c89" != "xno" && break
3770 done
3771 rm -f conftest.$ac_ext
3772 CC=$ac_save_CC
3775 # AC_CACHE_VAL
3776 case "x$ac_cv_prog_cc_c89" in
3778 { echo "$as_me:$LINENO: result: none needed" >&5
3779 echo "${ECHO_T}none needed" >&6; } ;;
3780 xno)
3781 { echo "$as_me:$LINENO: result: unsupported" >&5
3782 echo "${ECHO_T}unsupported" >&6; } ;;
3784 CC="$CC $ac_cv_prog_cc_c89"
3785 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3786 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3787 esac
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 # On Suns, sometimes $CPP names a directory.
3798 if test -n "$CPP" && test -d "$CPP"; then
3799 CPP=
3802 ## If not using gcc, and on Solaris, and no CPP specified, see if
3803 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3804 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3805 test x"$CPP" = x; then
3806 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3807 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3809 if test "${emacs_cv_sunpro_c+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3820 main ()
3822 #ifndef __SUNPRO_C
3823 fail;
3824 #endif
3827 return 0;
3829 _ACEOF
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (ac_try="$ac_link"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_link") 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } && {
3844 test -z "$ac_c_werror_flag" ||
3845 test ! -s conftest.err
3846 } && test -s conftest$ac_exeext &&
3847 $as_test_x conftest$ac_exeext; then
3848 emacs_cv_sunpro_c=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 emacs_cv_sunpro_c=no
3856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3857 conftest$ac_exeext conftest.$ac_ext
3860 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3861 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3863 if test x"$emacs_cv_sunpro_c" = xyes; then
3864 NON_GNU_CPP="$CC -E -Xs"
3868 #### Some systems specify a CPP to use unless we are using GCC.
3869 #### Now that we know whether we are using GCC, we can decide whether
3870 #### to use that one.
3871 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3872 then
3873 CPP="$NON_GNU_CPP"
3876 #### Some systems specify a CC to use unless we are using GCC.
3877 #### Now that we know whether we are using GCC, we can decide whether
3878 #### to use that one.
3879 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3880 test x$cc_specified != xyes
3881 then
3882 CC="$NON_GNU_CC"
3885 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3886 then
3887 CC="$CC $GCC_TEST_OPTIONS"
3890 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3891 then
3892 CC="$CC $NON_GCC_TEST_OPTIONS"
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3901 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3902 # On Suns, sometimes $CPP names a directory.
3903 if test -n "$CPP" && test -d "$CPP"; then
3904 CPP=
3906 if test -z "$CPP"; then
3907 if test "${ac_cv_prog_CPP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 # Double quotes because CPP needs to be expanded
3911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3913 ac_preproc_ok=false
3914 for ac_c_preproc_warn_flag in '' yes
3916 # Use a header file that comes with gcc, so configuring glibc
3917 # with a fresh cross-compiler works.
3918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919 # <limits.h> exists even on freestanding compilers.
3920 # On the NeXT, cc -E runs the code through the compiler's parser,
3921 # not just through cpp. "Syntax error" is here to catch this case.
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #ifdef __STDC__
3929 # include <limits.h>
3930 #else
3931 # include <assert.h>
3932 #endif
3933 Syntax error
3934 _ACEOF
3935 if { (ac_try="$ac_cpp conftest.$ac_ext"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null && {
3948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 }; then
3952 else
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 # Broken: fails on valid input.
3957 continue
3960 rm -f conftest.err conftest.$ac_ext
3962 # OK, works on sane cases. Now check whether nonexistent headers
3963 # can be detected and how.
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 #include <ac_nonexistent.h>
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
3988 # Broken: success on invalid input.
3989 continue
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 # Passes both tests.
3995 ac_preproc_ok=:
3996 break
3999 rm -f conftest.err conftest.$ac_ext
4001 done
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then
4005 break
4008 done
4009 ac_cv_prog_CPP=$CPP
4012 CPP=$ac_cv_prog_CPP
4013 else
4014 ac_cv_prog_CPP=$CPP
4016 { echo "$as_me:$LINENO: result: $CPP" >&5
4017 echo "${ECHO_T}$CPP" >&6; }
4018 ac_preproc_ok=false
4019 for ac_c_preproc_warn_flag in '' yes
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #ifdef __STDC__
4034 # include <limits.h>
4035 #else
4036 # include <assert.h>
4037 #endif
4038 Syntax error
4039 _ACEOF
4040 if { (ac_try="$ac_cpp conftest.$ac_ext"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } >/dev/null && {
4053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 }; then
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 # Broken: fails on valid input.
4062 continue
4065 rm -f conftest.err conftest.$ac_ext
4067 # OK, works on sane cases. Now check whether nonexistent headers
4068 # can be detected and how.
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #include <ac_nonexistent.h>
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
4093 # Broken: success on invalid input.
4094 continue
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 # Passes both tests.
4100 ac_preproc_ok=:
4101 break
4104 rm -f conftest.err conftest.$ac_ext
4106 done
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then
4111 else
4112 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4113 See \`config.log' for more details." >&5
4114 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4115 See \`config.log' for more details." >&2;}
4116 { (exit 1); exit 1; }; }
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4127 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4128 if test "${ac_cv_path_GREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 # Extract the first word of "grep ggrep" to use in msg output
4132 if test -z "$GREP"; then
4133 set dummy grep ggrep; ac_prog_name=$2
4134 if test "${ac_cv_path_GREP+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 ac_path_GREP_found=false
4138 # Loop through the user's path and test for each of PROGNAME-LIST
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_prog in grep ggrep; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4147 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4148 # Check for GNU ac_path_GREP and select it if it is found.
4149 # Check for GNU $ac_path_GREP
4150 case `"$ac_path_GREP" --version 2>&1` in
4151 *GNU*)
4152 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4154 ac_count=0
4155 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4156 while :
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 echo 'GREP' >> "conftest.nl"
4162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164 ac_count=`expr $ac_count + 1`
4165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_GREP="$ac_path_GREP"
4168 ac_path_GREP_max=$ac_count
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4172 done
4173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 esac
4177 $ac_path_GREP_found && break 3
4178 done
4179 done
4181 done
4182 IFS=$as_save_IFS
4187 GREP="$ac_cv_path_GREP"
4188 if test -z "$GREP"; then
4189 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4190 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4191 { (exit 1); exit 1; }; }
4194 else
4195 ac_cv_path_GREP=$GREP
4200 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4201 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4202 GREP="$ac_cv_path_GREP"
4205 { echo "$as_me:$LINENO: checking for egrep" >&5
4206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4207 if test "${ac_cv_path_EGREP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211 then ac_cv_path_EGREP="$GREP -E"
4212 else
4213 # Extract the first word of "egrep" to use in msg output
4214 if test -z "$EGREP"; then
4215 set dummy egrep; ac_prog_name=$2
4216 if test "${ac_cv_path_EGREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 ac_path_EGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in egrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4236 ac_count=0
4237 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4238 while :
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 ac_count=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP="$ac_path_EGREP"
4250 ac_path_EGREP_max=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4259 $ac_path_EGREP_found && break 3
4260 done
4261 done
4263 done
4264 IFS=$as_save_IFS
4269 EGREP="$ac_cv_path_EGREP"
4270 if test -z "$EGREP"; then
4271 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4272 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4273 { (exit 1); exit 1; }; }
4276 else
4277 ac_cv_path_EGREP=$EGREP
4283 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4284 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4285 EGREP="$ac_cv_path_EGREP"
4289 { echo "$as_me:$LINENO: checking for AIX" >&5
4290 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h. */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 #ifdef _AIX
4299 #endif
4301 _ACEOF
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 $EGREP "yes" >/dev/null 2>&1; then
4304 { echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; }
4306 cat >>confdefs.h <<\_ACEOF
4307 #define _ALL_SOURCE 1
4308 _ACEOF
4310 else
4311 { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4314 rm -f conftest*
4318 cat >>confdefs.h <<\_ACEOF
4319 #define _GNU_SOURCE 1
4320 _ACEOF
4324 ### Use -Wno-pointer-sign if the compiler supports it
4325 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4326 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4327 SAVE_CFLAGS="$CFLAGS"
4328 CFLAGS="$CFLAGS -Wno-pointer-sign"
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4337 main ()
4341 return 0;
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 has_option=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 has_option=no
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 if test $has_option = yes; then
4371 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4373 { echo "$as_me:$LINENO: result: $has_option" >&5
4374 echo "${ECHO_T}$has_option" >&6; }
4375 CFLAGS="$SAVE_CFLAGS"
4376 unset has_option
4377 unset SAVE_CFLAGS
4379 #### Some other nice autoconf tests.
4381 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4383 LN_S=$as_ln_s
4384 if test "$LN_S" = "ln -s"; then
4385 { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4387 else
4388 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4389 echo "${ECHO_T}no, using $LN_S" >&6; }
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4399 # On Suns, sometimes $CPP names a directory.
4400 if test -n "$CPP" && test -d "$CPP"; then
4401 CPP=
4403 if test -z "$CPP"; then
4404 if test "${ac_cv_prog_CPP+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 # Double quotes because CPP needs to be expanded
4408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4410 ac_preproc_ok=false
4411 for ac_c_preproc_warn_flag in '' yes
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #ifdef __STDC__
4426 # include <limits.h>
4427 #else
4428 # include <assert.h>
4429 #endif
4430 Syntax error
4431 _ACEOF
4432 if { (ac_try="$ac_cpp conftest.$ac_ext"
4433 case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4439 ac_status=$?
4440 grep -v '^ *+' conftest.er1 >conftest.err
4441 rm -f conftest.er1
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } >/dev/null && {
4445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4446 test ! -s conftest.err
4447 }; then
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 # Broken: fails on valid input.
4454 continue
4457 rm -f conftest.err conftest.$ac_ext
4459 # OK, works on sane cases. Now check whether nonexistent headers
4460 # can be detected and how.
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <ac_nonexistent.h>
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
4485 # Broken: success on invalid input.
4486 continue
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 # Passes both tests.
4492 ac_preproc_ok=:
4493 break
4496 rm -f conftest.err conftest.$ac_ext
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then
4502 break
4505 done
4506 ac_cv_prog_CPP=$CPP
4509 CPP=$ac_cv_prog_CPP
4510 else
4511 ac_cv_prog_CPP=$CPP
4513 { echo "$as_me:$LINENO: result: $CPP" >&5
4514 echo "${ECHO_T}$CPP" >&6; }
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535 Syntax error
4536 _ACEOF
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 }; then
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 # Broken: fails on valid input.
4559 continue
4562 rm -f conftest.err conftest.$ac_ext
4564 # OK, works on sane cases. Now check whether nonexistent headers
4565 # can be detected and how.
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <ac_nonexistent.h>
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
4590 # Broken: success on invalid input.
4591 continue
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 # Passes both tests.
4597 ac_preproc_ok=:
4598 break
4601 rm -f conftest.err conftest.$ac_ext
4603 done
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then
4608 else
4609 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }
4616 ac_ext=c
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 # Find a good install program. We prefer a C program (faster),
4623 # so one script is as good as another. But avoid the broken or
4624 # incompatible versions:
4625 # SysV /etc/install, /usr/sbin/install
4626 # SunOS /usr/etc/install
4627 # IRIX /sbin/install
4628 # AIX /bin/install
4629 # AmigaOS /C/install, which installs bootblocks on floppy discs
4630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4633 # OS/2's system install, which has a completely different semantic
4634 # ./install, which can be erroneously created by make from ./install.sh.
4635 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4637 if test -z "$INSTALL"; then
4638 if test "${ac_cv_path_install+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 # Account for people who put trailing slashes in PATH elements.
4647 case $as_dir/ in
4648 ./ | .// | /cC/* | \
4649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4651 /usr/ucb/* ) ;;
4653 # OSF1 and SCO ODT 3.0 have their own names for install.
4654 # Don't use installbsd from OSF since it installs stuff as root
4655 # by default.
4656 for ac_prog in ginstall scoinst install; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4659 if test $ac_prog = install &&
4660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4661 # AIX install. It has an incompatible calling convention.
4663 elif test $ac_prog = install &&
4664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4665 # program-specific install script used by HP pwplus--don't use.
4667 else
4668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4669 break 3
4672 done
4673 done
4675 esac
4676 done
4677 IFS=$as_save_IFS
4681 if test "${ac_cv_path_install+set}" = set; then
4682 INSTALL=$ac_cv_path_install
4683 else
4684 # As a last resort, use the slow shell script. Don't cache a
4685 # value for INSTALL within a source directory, because that will
4686 # break other packages using the cache if that directory is
4687 # removed, or if the value is a relative name.
4688 INSTALL=$ac_install_sh
4691 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4692 echo "${ECHO_T}$INSTALL" >&6; }
4694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4695 # It thinks the first close brace ends the variable substitution.
4696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4700 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4702 if test "x$RANLIB" = x; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_RANLIB+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if test -n "$RANLIB"; then
4712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4727 IFS=$as_save_IFS
4731 RANLIB=$ac_cv_prog_RANLIB
4732 if test -n "$RANLIB"; then
4733 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4734 echo "${ECHO_T}$RANLIB" >&6; }
4735 else
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4742 if test -z "$ac_cv_prog_RANLIB"; then
4743 ac_ct_RANLIB=$RANLIB
4744 # Extract the first word of "ranlib", so it can be a program name with args.
4745 set dummy ranlib; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 if test -n "$ac_ct_RANLIB"; then
4752 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_RANLIB="ranlib"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4772 if test -n "$ac_ct_RANLIB"; then
4773 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4774 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4775 else
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4780 if test "x$ac_ct_RANLIB" = x; then
4781 RANLIB=":"
4782 else
4783 case $cross_compiling:$ac_tool_warned in
4784 yes:)
4785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4786 whose name does not start with the host triplet. If you think this
4787 configuration is useful to you, please write to autoconf@gnu.org." >&5
4788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4789 whose name does not start with the host triplet. If you think this
4790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4791 ac_tool_warned=yes ;;
4792 esac
4793 RANLIB=$ac_ct_RANLIB
4795 else
4796 RANLIB="$ac_cv_prog_RANLIB"
4800 # Extract the first word of "install-info", so it can be a program name with args.
4801 set dummy install-info; ac_word=$2
4802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4804 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 case $INSTALL_INFO in
4808 [\\/]* | ?:[\\/]*)
4809 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4828 esac
4830 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4831 if test -n "$INSTALL_INFO"; then
4832 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4833 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4834 else
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 # Extract the first word of "install-info", so it can be a program name with args.
4841 set dummy install-info; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 case $INSTALL_INFO in
4848 [\\/]* | ?:[\\/]*)
4849 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in /usr/sbin
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4868 esac
4870 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4871 if test -n "$INSTALL_INFO"; then
4872 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4873 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4874 else
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 # Extract the first word of "install-info", so it can be a program name with args.
4881 set dummy install-info; ac_word=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 case $INSTALL_INFO in
4888 [\\/]* | ?:[\\/]*)
4889 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in /sbin
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4907 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4909 esac
4911 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4912 if test -n "$INSTALL_INFO"; then
4913 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4914 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4915 else
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4921 # Extract the first word of "gzip", so it can be a program name with args.
4922 set dummy gzip; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 case $GZIP_PROG in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4949 esac
4951 GZIP_PROG=$ac_cv_path_GZIP_PROG
4952 if test -n "$GZIP_PROG"; then
4953 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4954 echo "${ECHO_T}$GZIP_PROG" >&6; }
4955 else
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4963 ## Need makeinfo >= 4.6 (?) to build the manuals.
4964 # Extract the first word of "makeinfo", so it can be a program name with args.
4965 set dummy makeinfo; ac_word=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 case $MAKEINFO in
4972 [\\/]* | ?:[\\/]*)
4973 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4991 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4993 esac
4995 MAKEINFO=$ac_cv_path_MAKEINFO
4996 if test -n "$MAKEINFO"; then
4997 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4998 echo "${ECHO_T}$MAKEINFO" >&6; }
4999 else
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5005 if test "$MAKEINFO" != "no" && \
5006 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
5007 MAKEINFO=no
5010 if test "$MAKEINFO" = "no"; then
5011 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5012 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5013 { (exit 1); exit 1; }; }
5018 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5019 then
5020 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5023 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5024 then
5025 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5029 late_LDFLAGS=$LDFLAGS
5030 if test "$GCC" = yes; then
5031 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5032 else
5033 LDFLAGS="$LDFLAGS -znocombreloc"
5036 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5037 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5038 cat >conftest.$ac_ext <<_ACEOF
5039 main(){return 0;}
5040 _ACEOF
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (ac_try="$ac_link"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_link") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest$ac_exeext &&
5058 $as_test_x conftest$ac_exeext; then
5059 { echo "$as_me:$LINENO: result: yes" >&5
5060 echo "${ECHO_T}yes" >&6; }
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 LDFLAGS=$late_LDFLAGS
5066 { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071 conftest$ac_exeext conftest.$ac_ext
5073 #### Extract some information from the operating system and machine files.
5075 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5076 - which libraries the lib-src programs will want, and
5077 - whether the GNU malloc routines are usable..." >&5
5078 echo "$as_me: checking the machine- and system-dependent files to find out
5079 - which libraries the lib-src programs will want, and
5080 - whether the GNU malloc routines are usable..." >&6;}
5082 ### First figure out CFLAGS (which we use for running the compiler here)
5083 ### and REAL_CFLAGS (which we use for real compilation).
5084 ### The two are the same except on a few systems, where they are made
5085 ### different to work around various lossages. For example,
5086 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5087 ### as implying static linking.
5089 ### If the CFLAGS env var is specified, we use that value
5090 ### instead of the default.
5092 ### It's not important that this name contain the PID; you can't run
5093 ### two configures in the same directory and have anything work
5094 ### anyway.
5095 tempcname="conftest.c"
5097 echo '
5098 #include "'${srcdir}'/src/'${opsysfile}'"
5099 #include "'${srcdir}'/src/'${machfile}'"
5100 #ifndef LIBS_MACHINE
5101 #define LIBS_MACHINE
5102 #endif
5103 #ifndef LIBS_SYSTEM
5104 #define LIBS_SYSTEM
5105 #endif
5106 #ifndef C_SWITCH_SYSTEM
5107 #define C_SWITCH_SYSTEM
5108 #endif
5109 #ifndef C_SWITCH_MACHINE
5110 #define C_SWITCH_MACHINE
5111 #endif
5112 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5113 configure___ c_switch_system=C_SWITCH_SYSTEM
5114 configure___ c_switch_machine=C_SWITCH_MACHINE
5116 #ifndef LIB_X11_LIB
5117 #define LIB_X11_LIB -lX11
5118 #endif
5120 #ifndef LIBX11_SYSTEM
5121 #define LIBX11_SYSTEM
5122 #endif
5123 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5125 #ifdef UNEXEC
5126 configure___ unexec=UNEXEC
5127 #else
5128 configure___ unexec=unexec.o
5129 #endif
5131 #ifdef SYSTEM_MALLOC
5132 configure___ system_malloc=yes
5133 #else
5134 configure___ system_malloc=no
5135 #endif
5137 #ifdef USE_MMAP_FOR_BUFFERS
5138 configure___ use_mmap_for_buffers=yes
5139 #else
5140 configure___ use_mmap_for_buffers=no
5141 #endif
5143 #ifndef C_DEBUG_SWITCH
5144 #define C_DEBUG_SWITCH -g
5145 #endif
5147 #ifndef C_OPTIMIZE_SWITCH
5148 #ifdef __GNUC__
5149 #define C_OPTIMIZE_SWITCH -O2
5150 #else
5151 #define C_OPTIMIZE_SWITCH -O
5152 #endif
5153 #endif
5155 #ifndef C_WARNINGS_SWITCH
5156 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5157 #endif
5159 #ifndef LD_SWITCH_MACHINE
5160 #define LD_SWITCH_MACHINE
5161 #endif
5163 #ifndef LD_SWITCH_SYSTEM
5164 #define LD_SWITCH_SYSTEM
5165 #endif
5167 #ifndef LD_SWITCH_X_SITE_AUX
5168 #define LD_SWITCH_X_SITE_AUX
5169 #endif
5171 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5172 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5174 #ifdef THIS_IS_CONFIGURE
5176 /* Get the CFLAGS for tests in configure. */
5177 #ifdef __GNUC__
5178 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5179 #else
5180 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5181 #endif
5183 #else /* not THIS_IS_CONFIGURE */
5185 /* Get the CFLAGS for real compilation. */
5186 #ifdef __GNUC__
5187 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5188 #else
5189 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5190 #endif
5192 #endif /* not THIS_IS_CONFIGURE */
5193 ' > ${tempcname}
5195 # The value of CPP is a quoted variable reference, so we need to do this
5196 # to get its actual value...
5197 CPP=`eval "echo $CPP"`
5198 eval `${CPP} -Isrc ${tempcname} \
5199 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5200 if test "x$SPECIFIED_CFLAGS" = x; then
5201 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5202 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5203 else
5204 REAL_CFLAGS="$CFLAGS"
5206 rm ${tempcname}
5208 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5210 ### Make sure subsequent tests use flags consistent with the build flags.
5212 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5213 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5214 else
5215 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5220 # Check whether --enable-largefile was given.
5221 if test "${enable_largefile+set}" = set; then
5222 enableval=$enable_largefile;
5225 if test "$enable_largefile" != no; then
5227 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5228 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5229 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 ac_cv_sys_largefile_CC=no
5233 if test "$GCC" != yes; then
5234 ac_save_CC=$CC
5235 while :; do
5236 # IRIX 6.2 and later do not support large files by default,
5237 # so use the C compiler's -n32 option if that helps.
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/types.h>
5245 /* Check that off_t can represent 2**63 - 1 correctly.
5246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5247 since some C++ compilers masquerading as C compilers
5248 incorrectly reject 9223372036854775807. */
5249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5251 && LARGE_OFF_T % 2147483647 == 1)
5252 ? 1 : -1];
5254 main ()
5258 return 0;
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (ac_try="$ac_compile"
5263 case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.$ac_objext; then
5278 break
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5286 rm -f core conftest.err conftest.$ac_objext
5287 CC="$CC -n32"
5288 rm -f conftest.$ac_objext
5289 if { (ac_try="$ac_compile"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
5305 ac_cv_sys_largefile_CC=' -n32'; break
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5313 rm -f core conftest.err conftest.$ac_objext
5314 break
5315 done
5316 CC=$ac_save_CC
5317 rm -f conftest.$ac_ext
5320 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5321 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5322 if test "$ac_cv_sys_largefile_CC" != no; then
5323 CC=$CC$ac_cv_sys_largefile_CC
5326 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5327 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5328 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331 while :; do
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <sys/types.h>
5339 /* Check that off_t can represent 2**63 - 1 correctly.
5340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5341 since some C++ compilers masquerading as C compilers
5342 incorrectly reject 9223372036854775807. */
5343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5345 && LARGE_OFF_T % 2147483647 == 1)
5346 ? 1 : -1];
5348 main ()
5352 return 0;
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5357 case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest.$ac_objext; then
5372 ac_cv_sys_file_offset_bits=no; break
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #define _FILE_OFFSET_BITS 64
5388 #include <sys/types.h>
5389 /* Check that off_t can represent 2**63 - 1 correctly.
5390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5391 since some C++ compilers masquerading as C compilers
5392 incorrectly reject 9223372036854775807. */
5393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5395 && LARGE_OFF_T % 2147483647 == 1)
5396 ? 1 : -1];
5398 main ()
5402 return 0;
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_sys_file_offset_bits=64; break
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 ac_cv_sys_file_offset_bits=unknown
5432 break
5433 done
5435 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5436 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5437 case $ac_cv_sys_file_offset_bits in #(
5438 no | unknown) ;;
5440 cat >>confdefs.h <<_ACEOF
5441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5442 _ACEOF
5444 esac
5445 rm -f conftest*
5446 if test $ac_cv_sys_file_offset_bits = unknown; then
5447 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5448 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5449 if test "${ac_cv_sys_large_files+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 while :; do
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <sys/types.h>
5460 /* Check that off_t can represent 2**63 - 1 correctly.
5461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5462 since some C++ compilers masquerading as C compilers
5463 incorrectly reject 9223372036854775807. */
5464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5466 && LARGE_OFF_T % 2147483647 == 1)
5467 ? 1 : -1];
5469 main ()
5473 return 0;
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && {
5490 test -z "$ac_c_werror_flag" ||
5491 test ! -s conftest.err
5492 } && test -s conftest.$ac_objext; then
5493 ac_cv_sys_large_files=no; break
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #define _LARGE_FILES 1
5509 #include <sys/types.h>
5510 /* Check that off_t can represent 2**63 - 1 correctly.
5511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5512 since some C++ compilers masquerading as C compilers
5513 incorrectly reject 9223372036854775807. */
5514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5516 && LARGE_OFF_T % 2147483647 == 1)
5517 ? 1 : -1];
5519 main ()
5523 return 0;
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 ac_cv_sys_large_files=1; break
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_cv_sys_large_files=unknown
5553 break
5554 done
5556 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5557 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5558 case $ac_cv_sys_large_files in #(
5559 no | unknown) ;;
5561 cat >>confdefs.h <<_ACEOF
5562 #define _LARGE_FILES $ac_cv_sys_large_files
5563 _ACEOF
5565 esac
5566 rm -f conftest*
5572 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5573 ### be located in either /usr/lib64 or /usr/lib.
5574 case "${canonical}" in
5575 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5576 if test -d /usr/lib64; then
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_LIB64_DIR 1
5580 _ACEOF
5583 esac
5588 if test "${with_sound}" != "no"; then
5589 # Sound support for GNU/Linux and the free BSDs.
5590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5592 if test "${ac_cv_header_stdc+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 #include <stdlib.h>
5602 #include <stdarg.h>
5603 #include <string.h>
5604 #include <float.h>
5607 main ()
5611 return 0;
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5616 case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_header_stdc=yes
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_cv_header_stdc=no
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <string.h>
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "memchr" >/dev/null 2>&1; then
5655 else
5656 ac_cv_header_stdc=no
5658 rm -f conftest*
5662 if test $ac_cv_header_stdc = yes; then
5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <stdlib.h>
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "free" >/dev/null 2>&1; then
5676 else
5677 ac_cv_header_stdc=no
5679 rm -f conftest*
5683 if test $ac_cv_header_stdc = yes; then
5684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5685 if test "$cross_compiling" = yes; then
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #include <ctype.h>
5695 #include <stdlib.h>
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 #else
5700 # define ISLOWER(c) \
5701 (('a' <= (c) && (c) <= 'i') \
5702 || ('j' <= (c) && (c) <= 'r') \
5703 || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5705 #endif
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5709 main ()
5711 int i;
5712 for (i = 0; i < 256; i++)
5713 if (XOR (islower (i), ISLOWER (i))
5714 || toupper (i) != TOUPPER (i))
5715 return 2;
5716 return 0;
5718 _ACEOF
5719 rm -f conftest$ac_exeext
5720 if { (ac_try="$ac_link"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5730 { (case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_try") 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5740 else
5741 echo "$as_me: program exited with status $ac_status" >&5
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ( exit $ac_status )
5746 ac_cv_header_stdc=no
5748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5754 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5755 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5756 if test $ac_cv_header_stdc = yes; then
5758 cat >>confdefs.h <<\_ACEOF
5759 #define STDC_HEADERS 1
5760 _ACEOF
5764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5775 inttypes.h stdint.h unistd.h
5777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5791 #include <$ac_header>
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (ac_try="$ac_compile"
5795 case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798 esac
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5810 eval "$as_ac_Header=yes"
5811 else
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 eval "$as_ac_Header=no"
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_res=`eval echo '${'$as_ac_Header'}'`
5821 { echo "$as_me:$LINENO: result: $ac_res" >&5
5822 echo "${ECHO_T}$ac_res" >&6; }
5823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5824 cat >>confdefs.h <<_ACEOF
5825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5826 _ACEOF
5830 done
5836 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_res=`eval echo '${'$as_ac_Header'}'`
5846 { echo "$as_me:$LINENO: result: $ac_res" >&5
5847 echo "${ECHO_T}$ac_res" >&6; }
5848 else
5849 # Is the header compilable?
5850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 $ac_includes_default
5859 #include <$ac_header>
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5863 case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest.$ac_objext; then
5878 ac_header_compiler=yes
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_header_compiler=no
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5888 echo "${ECHO_T}$ac_header_compiler" >&6; }
5890 # Is the header present?
5891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5892 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
5900 _ACEOF
5901 if { (ac_try="$ac_cpp conftest.$ac_ext"
5902 case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } >/dev/null && {
5914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 }; then
5917 ac_header_preproc=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_header_preproc=no
5925 rm -f conftest.err conftest.$ac_ext
5926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5927 echo "${ECHO_T}$ac_header_preproc" >&6; }
5929 # So? What about this header?
5930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5931 yes:no: )
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5936 ac_header_preproc=yes
5938 no:yes:* )
5939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5953 esac
5954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 eval "$as_ac_Header=\$ac_header_preproc"
5961 ac_res=`eval echo '${'$as_ac_Header'}'`
5962 { echo "$as_me:$LINENO: result: $ac_res" >&5
5963 echo "${ECHO_T}$ac_res" >&6; }
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5969 _ACEOF
5973 done
5975 # Emulation library used on NetBSD.
5976 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5977 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5978 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lossaudio $LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 char _oss_ioctl ();
5998 main ()
6000 return _oss_ioctl ();
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (ac_try="$ac_link"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_link") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest$ac_exeext &&
6022 $as_test_x conftest$ac_exeext; then
6023 ac_cv_lib_ossaudio__oss_ioctl=yes
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_cv_lib_ossaudio__oss_ioctl=no
6031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6032 conftest$ac_exeext conftest.$ac_ext
6033 LIBS=$ac_check_lib_save_LIBS
6035 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6036 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6037 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6038 LIBSOUND=-lossaudio
6039 else
6040 LIBSOUND=
6045 ALSA_REQUIRED=1.0.0
6046 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6048 succeeded=no
6050 # Extract the first word of "pkg-config", so it can be a program name with args.
6051 set dummy pkg-config; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 case $PKG_CONFIG in
6058 [\\/]* | ?:[\\/]*)
6059 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6073 done
6074 done
6075 IFS=$as_save_IFS
6077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6079 esac
6081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6082 if test -n "$PKG_CONFIG"; then
6083 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6084 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6085 else
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6092 if test "$PKG_CONFIG" = "no" ; then
6093 HAVE_ALSA=no
6094 else
6095 PKG_CONFIG_MIN_VERSION=0.9.0
6096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6097 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6098 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6100 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6101 { echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6; }
6103 succeeded=yes
6105 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6106 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6107 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6108 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6109 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6111 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6112 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6113 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6114 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6115 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6116 else
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6119 ALSA_CFLAGS=""
6120 ALSA_LIBS=""
6121 ## If we have a custom action on failure, don't print errors, but
6122 ## do set a variable so people can do so.
6123 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6129 else
6130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6135 if test $succeeded = yes; then
6136 HAVE_ALSA=yes
6137 else
6138 HAVE_ALSA=no
6141 if test $HAVE_ALSA = yes; then
6142 SAVE_CFLAGS="$CFLAGS"
6143 SAVE_LDFLAGS="$LDFLAGS"
6144 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6145 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <asoundlib.h>
6154 main ()
6156 snd_lib_error_set_handler (0);
6158 return 0;
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 emacs_alsa_normal=yes
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 emacs_alsa_normal=no
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 if test "$emacs_alsa_normal" != yes; then
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <alsa/asoundlib.h>
6196 main ()
6198 snd_lib_error_set_handler (0);
6200 return 0;
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 emacs_alsa_subdir=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 emacs_alsa_subdir=no
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 if test "$emacs_alsa_subdir" != yes; then
6230 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6231 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6232 { (exit 1); exit 1; }; }
6234 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6237 CFLAGS="$SAVE_CFLAGS"
6238 LDFLAGS="$SAVE_LDFLAGS"
6239 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6240 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6242 cat >>confdefs.h <<\_ACEOF
6243 #define HAVE_ALSA 1
6244 _ACEOF
6275 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6276 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6277 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6278 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6279 sys/utsname.h pwd.h
6281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_res=`eval echo '${'$as_ac_Header'}'`
6289 { echo "$as_me:$LINENO: result: $ac_res" >&5
6290 echo "${ECHO_T}$ac_res" >&6; }
6291 else
6292 # Is the header compilable?
6293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6302 #include <$ac_header>
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6321 ac_header_compiler=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_header_compiler=no
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6331 echo "${ECHO_T}$ac_header_compiler" >&6; }
6333 # Is the header present?
6334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6335 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
6343 _ACEOF
6344 if { (ac_try="$ac_cpp conftest.$ac_ext"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null && {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 }; then
6360 ac_header_preproc=yes
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_header_preproc=no
6368 rm -f conftest.err conftest.$ac_ext
6369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 echo "${ECHO_T}$ac_header_preproc" >&6; }
6372 # So? What about this header?
6373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 yes:no: )
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 ac_header_preproc=yes
6381 no:yes:* )
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6396 esac
6397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 eval "$as_ac_Header=\$ac_header_preproc"
6404 ac_res=`eval echo '${'$as_ac_Header'}'`
6405 { echo "$as_me:$LINENO: result: $ac_res" >&5
6406 echo "${ECHO_T}$ac_res" >&6; }
6409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6410 cat >>confdefs.h <<_ACEOF
6411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6412 _ACEOF
6416 done
6419 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6420 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <sys/personality.h>
6429 main ()
6431 personality (PER_LINUX32)
6433 return 0;
6435 _ACEOF
6436 rm -f conftest.$ac_objext
6437 if { (ac_try="$ac_compile"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 emacs_cv_personality_linux32=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 emacs_cv_personality_linux32=no
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6463 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6465 if test $emacs_cv_personality_linux32 = yes; then
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_PERSONALITY_LINUX32 1
6469 _ACEOF
6474 for ac_header in term.h
6476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <$ac_header>
6489 _ACEOF
6490 if { (ac_try="$ac_cpp conftest.$ac_ext"
6491 case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494 esac
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } >/dev/null && {
6503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 }; then
6506 eval "$as_ac_Header=yes"
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 eval "$as_ac_Header=no"
6514 rm -f conftest.err conftest.$ac_ext
6516 ac_res=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518 echo "${ECHO_T}$ac_res" >&6; }
6519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520 cat >>confdefs.h <<_ACEOF
6521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522 _ACEOF
6526 done
6528 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6530 if test "${ac_cv_header_stdc+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h. */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <stdlib.h>
6540 #include <stdarg.h>
6541 #include <string.h>
6542 #include <float.h>
6545 main ()
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_header_stdc=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_header_stdc=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test $ac_cv_header_stdc = yes; then
6580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <string.h>
6589 _ACEOF
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "memchr" >/dev/null 2>&1; then
6593 else
6594 ac_cv_header_stdc=no
6596 rm -f conftest*
6600 if test $ac_cv_header_stdc = yes; then
6601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <stdlib.h>
6610 _ACEOF
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 $EGREP "free" >/dev/null 2>&1; then
6614 else
6615 ac_cv_header_stdc=no
6617 rm -f conftest*
6621 if test $ac_cv_header_stdc = yes; then
6622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6623 if test "$cross_compiling" = yes; then
6625 else
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 #include <ctype.h>
6633 #include <stdlib.h>
6634 #if ((' ' & 0x0FF) == 0x020)
6635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6637 #else
6638 # define ISLOWER(c) \
6639 (('a' <= (c) && (c) <= 'i') \
6640 || ('j' <= (c) && (c) <= 'r') \
6641 || ('s' <= (c) && (c) <= 'z'))
6642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6643 #endif
6645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6647 main ()
6649 int i;
6650 for (i = 0; i < 256; i++)
6651 if (XOR (islower (i), ISLOWER (i))
6652 || toupper (i) != TOUPPER (i))
6653 return 2;
6654 return 0;
6656 _ACEOF
6657 rm -f conftest$ac_exeext
6658 if { (ac_try="$ac_link"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_link") 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6668 { (case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_try") 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6678 else
6679 echo "$as_me: program exited with status $ac_status" >&5
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 ( exit $ac_status )
6684 ac_cv_header_stdc=no
6686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6693 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6694 if test $ac_cv_header_stdc = yes; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define STDC_HEADERS 1
6698 _ACEOF
6702 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6704 if test "${ac_cv_header_time+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <sys/types.h>
6714 #include <sys/time.h>
6715 #include <time.h>
6718 main ()
6720 if ((struct tm *) 0)
6721 return 0;
6723 return 0;
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6728 case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 ac_cv_header_time=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_cv_header_time=no
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6754 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6755 if test $ac_cv_header_time = yes; then
6757 cat >>confdefs.h <<\_ACEOF
6758 #define TIME_WITH_SYS_TIME 1
6759 _ACEOF
6763 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6764 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6765 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 $ac_includes_default
6776 main ()
6778 #ifndef sys_siglist
6779 (void) sys_siglist;
6780 #endif
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (ac_try="$ac_compile"
6788 case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_have_decl_sys_siglist=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_have_decl_sys_siglist=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6814 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6815 if test $ac_cv_have_decl_sys_siglist = yes; then
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_DECL_SYS_SIGLIST 1
6819 _ACEOF
6822 else
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_DECL_SYS_SIGLIST 0
6825 _ACEOF
6831 if test $ac_cv_have_decl_sys_siglist != yes; then
6832 # For Tru64, at least:
6833 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6834 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6835 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6846 main ()
6848 #ifndef __sys_siglist
6849 (void) __sys_siglist;
6850 #endif
6853 return 0;
6855 _ACEOF
6856 rm -f conftest.$ac_objext
6857 if { (ac_try="$ac_compile"
6858 case "(($ac_try" in
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6861 esac
6862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.$ac_objext; then
6873 ac_cv_have_decl___sys_siglist=yes
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_cv_have_decl___sys_siglist=no
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6884 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6885 if test $ac_cv_have_decl___sys_siglist = yes; then
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_DECL___SYS_SIGLIST 1
6889 _ACEOF
6892 else
6893 cat >>confdefs.h <<_ACEOF
6894 #define HAVE_DECL___SYS_SIGLIST 0
6895 _ACEOF
6901 if test $ac_cv_have_decl___sys_siglist = yes; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define sys_siglist __sys_siglist
6905 _ACEOF
6909 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6910 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6911 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6921 #include <sys/wait.h>
6922 #ifndef WEXITSTATUS
6923 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6924 #endif
6925 #ifndef WIFEXITED
6926 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6927 #endif
6930 main ()
6932 int s;
6933 wait (&s);
6934 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_header_sys_wait_h=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_header_sys_wait_h=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6967 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6968 if test $ac_cv_header_sys_wait_h = yes; then
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_SYS_WAIT_H 1
6972 _ACEOF
6977 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6978 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6979 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #ifdef TIME_WITH_SYS_TIME
6989 #include <sys/time.h>
6990 #include <time.h>
6991 #else
6992 #ifdef HAVE_SYS_TIME_H
6993 #include <sys/time.h>
6994 #else
6995 #include <time.h>
6996 #endif
6997 #endif
6998 #ifdef HAVE_UTIME_H
6999 #include <utime.h>
7000 #endif
7002 main ()
7004 static struct utimbuf x; x.actime = x.modtime;
7006 return 0;
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (ac_try="$ac_compile"
7011 case "(($ac_try" in
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7014 esac
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
7026 emacs_cv_struct_utimbuf=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 emacs_cv_struct_utimbuf=no
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7037 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7038 if test $emacs_cv_struct_utimbuf = yes; then
7040 cat >>confdefs.h <<\_ACEOF
7041 #define HAVE_STRUCT_UTIMBUF 1
7042 _ACEOF
7046 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7047 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_signal+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7058 #include <signal.h>
7061 main ()
7063 return *(signal (0, 0)) (0) == 1;
7065 return 0;
7067 _ACEOF
7068 rm -f conftest.$ac_objext
7069 if { (ac_try="$ac_compile"
7070 case "(($ac_try" in
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7073 esac
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 ac_cv_type_signal=int
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_type_signal=void
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7096 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7098 cat >>confdefs.h <<_ACEOF
7099 #define RETSIGTYPE $ac_cv_type_signal
7100 _ACEOF
7104 { echo "$as_me:$LINENO: checking for speed_t" >&5
7105 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7106 if test "${emacs_cv_speed_t+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <termios.h>
7117 main ()
7119 speed_t x = 1;
7121 return 0;
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7126 case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129 esac
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
7141 emacs_cv_speed_t=yes
7142 else
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 emacs_cv_speed_t=no
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7152 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7153 if test $emacs_cv_speed_t = yes; then
7155 cat >>confdefs.h <<\_ACEOF
7156 #define HAVE_SPEED_T 1
7157 _ACEOF
7161 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7162 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_timeval+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7174 #include <time.h>
7175 #else
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7178 #else
7179 #include <time.h>
7180 #endif
7181 #endif
7183 main ()
7185 static struct timeval x; x.tv_sec = x.tv_usec;
7187 return 0;
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7207 emacs_cv_struct_timeval=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 emacs_cv_struct_timeval=no
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7218 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7219 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7220 if test $emacs_cv_struct_timeval = yes; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_TIMEVAL 1
7224 _ACEOF
7228 { echo "$as_me:$LINENO: checking for struct exception" >&5
7229 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7230 if test "${emacs_cv_struct_exception+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 #include <math.h>
7241 main ()
7243 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7245 return 0;
7247 _ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (ac_try="$ac_compile"
7250 case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253 esac
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 emacs_cv_struct_exception=yes
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 emacs_cv_struct_exception=no
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7276 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7277 HAVE_EXCEPTION=$emacs_cv_struct_exception
7278 if test $emacs_cv_struct_exception != yes; then
7280 cat >>confdefs.h <<\_ACEOF
7281 #define NO_MATHERR 1
7282 _ACEOF
7287 for ac_header in sys/socket.h
7289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_res=`eval echo '${'$as_ac_Header'}'`
7297 { echo "$as_me:$LINENO: result: $ac_res" >&5
7298 echo "${ECHO_T}$ac_res" >&6; }
7299 else
7300 # Is the header compilable?
7301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #include <$ac_header>
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
7329 ac_header_compiler=yes
7330 else
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_header_compiler=no
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7339 echo "${ECHO_T}$ac_header_compiler" >&6; }
7341 # Is the header present?
7342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7343 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
7351 _ACEOF
7352 if { (ac_try="$ac_cpp conftest.$ac_ext"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } >/dev/null && {
7365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 }; then
7368 ac_header_preproc=yes
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_header_preproc=no
7376 rm -f conftest.err conftest.$ac_ext
7377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378 echo "${ECHO_T}$ac_header_preproc" >&6; }
7380 # So? What about this header?
7381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382 yes:no: )
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7387 ac_header_preproc=yes
7389 no:yes:* )
7390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7404 esac
7405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 eval "$as_ac_Header=\$ac_header_preproc"
7412 ac_res=`eval echo '${'$as_ac_Header'}'`
7413 { echo "$as_me:$LINENO: result: $ac_res" >&5
7414 echo "${ECHO_T}$ac_res" >&6; }
7417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7418 cat >>confdefs.h <<_ACEOF
7419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7420 _ACEOF
7424 done
7427 for ac_header in net/if.h
7429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7442 #if HAVE_SYS_SOCKET_H
7443 #include <sys/socket.h>
7444 #endif
7446 #include <$ac_header>
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 eval "$as_ac_Header=yes"
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 eval "$as_ac_Header=no"
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 ac_res=`eval echo '${'$as_ac_Header'}'`
7476 { echo "$as_me:$LINENO: result: $ac_res" >&5
7477 echo "${ECHO_T}$ac_res" >&6; }
7478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7479 cat >>confdefs.h <<_ACEOF
7480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481 _ACEOF
7485 done
7488 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7489 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7490 if test "${ac_cv_struct_tm+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h. */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 #include <sys/types.h>
7500 #include <time.h>
7503 main ()
7505 struct tm tm;
7506 int *p = &tm.tm_sec;
7507 return !p;
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_struct_tm=time.h
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_struct_tm=sys/time.h
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7540 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7541 if test $ac_cv_struct_tm = sys/time.h; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define TM_IN_SYS_TIME 1
7545 _ACEOF
7549 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7550 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7551 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h. */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <sys/types.h>
7561 #include <$ac_cv_struct_tm>
7565 main ()
7567 static struct tm ac_aggr;
7568 if (ac_aggr.tm_zone)
7569 return 0;
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_cv_member_struct_tm_tm_zone=yes
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <sys/types.h>
7603 #include <$ac_cv_struct_tm>
7607 main ()
7609 static struct tm ac_aggr;
7610 if (sizeof ac_aggr.tm_zone)
7611 return 0;
7613 return 0;
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7618 case "(($ac_try" in
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 ac_cv_member_struct_tm_tm_zone=yes
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 ac_cv_member_struct_tm_tm_zone=no
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7650 cat >>confdefs.h <<_ACEOF
7651 #define HAVE_STRUCT_TM_TM_ZONE 1
7652 _ACEOF
7657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7659 cat >>confdefs.h <<\_ACEOF
7660 #define HAVE_TM_ZONE 1
7661 _ACEOF
7663 else
7664 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7665 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7666 if test "${ac_cv_have_decl_tzname+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 #include <time.h>
7678 main ()
7680 #ifndef tzname
7681 (void) tzname;
7682 #endif
7685 return 0;
7687 _ACEOF
7688 rm -f conftest.$ac_objext
7689 if { (ac_try="$ac_compile"
7690 case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693 esac
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 ac_cv_have_decl_tzname=yes
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_cv_have_decl_tzname=no
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7716 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7717 if test $ac_cv_have_decl_tzname = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_DECL_TZNAME 1
7721 _ACEOF
7724 else
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DECL_TZNAME 0
7727 _ACEOF
7733 { echo "$as_me:$LINENO: checking for tzname" >&5
7734 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7735 if test "${ac_cv_var_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <time.h>
7745 #if !HAVE_DECL_TZNAME
7746 extern char *tzname[];
7747 #endif
7750 main ()
7752 return tzname[0][0];
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest$ac_exeext &&
7774 $as_test_x conftest$ac_exeext; then
7775 ac_cv_var_tzname=yes
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_var_tzname=no
7783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7784 conftest$ac_exeext conftest.$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7787 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7788 if test $ac_cv_var_tzname = yes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_TZNAME 1
7792 _ACEOF
7797 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7798 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7799 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <time.h>
7811 main ()
7813 static struct tm ac_aggr;
7814 if (ac_aggr.tm_gmtoff)
7815 return 0;
7817 return 0;
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_cv_member_struct_tm_tm_gmtoff=yes
7838 else
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 #include <time.h>
7851 main ()
7853 static struct tm ac_aggr;
7854 if (sizeof ac_aggr.tm_gmtoff)
7855 return 0;
7857 return 0;
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_cv_member_struct_tm_tm_gmtoff=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7891 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7892 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7894 cat >>confdefs.h <<\_ACEOF
7895 #define HAVE_TM_GMTOFF 1
7896 _ACEOF
7900 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7901 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7902 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7912 #if HAVE_SYS_SOCKET_H
7913 #include <sys/socket.h>
7914 #endif
7915 #if HAVE_NET_IF_H
7916 #include <net/if.h>
7917 #endif
7920 main ()
7922 static struct ifreq ac_aggr;
7923 if (ac_aggr.ifr_flags)
7924 return 0;
7926 return 0;
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_cv_member_struct_ifreq_ifr_flags=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h. */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #if HAVE_SYS_SOCKET_H
7959 #include <sys/socket.h>
7960 #endif
7961 #if HAVE_NET_IF_H
7962 #include <net/if.h>
7963 #endif
7966 main ()
7968 static struct ifreq ac_aggr;
7969 if (sizeof ac_aggr.ifr_flags)
7970 return 0;
7972 return 0;
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (ac_try="$ac_compile"
7977 case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_compile") 2>conftest.er1
7983 ac_status=$?
7984 grep -v '^ *+' conftest.er1 >conftest.err
7985 rm -f conftest.er1
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest.$ac_objext; then
7992 ac_cv_member_struct_ifreq_ifr_flags=yes
7993 else
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_cv_member_struct_ifreq_ifr_flags=no
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8006 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8007 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8009 cat >>confdefs.h <<_ACEOF
8010 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8011 _ACEOF
8015 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8016 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8017 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8029 #endif
8030 #if HAVE_NET_IF_H
8031 #include <net/if.h>
8032 #endif
8035 main ()
8037 static struct ifreq ac_aggr;
8038 if (ac_aggr.ifr_hwaddr)
8039 return 0;
8041 return 0;
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 $ac_includes_default
8073 #if HAVE_SYS_SOCKET_H
8074 #include <sys/socket.h>
8075 #endif
8076 #if HAVE_NET_IF_H
8077 #include <net/if.h>
8078 #endif
8081 main ()
8083 static struct ifreq ac_aggr;
8084 if (sizeof ac_aggr.ifr_hwaddr)
8085 return 0;
8087 return 0;
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8121 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8122 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8126 _ACEOF
8130 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8131 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8132 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8144 #endif
8145 #if HAVE_NET_IF_H
8146 #include <net/if.h>
8147 #endif
8150 main ()
8152 static struct ifreq ac_aggr;
8153 if (ac_aggr.ifr_netmask)
8154 return 0;
8156 return 0;
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_netmask=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h. */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 $ac_includes_default
8188 #if HAVE_SYS_SOCKET_H
8189 #include <sys/socket.h>
8190 #endif
8191 #if HAVE_NET_IF_H
8192 #include <net/if.h>
8193 #endif
8196 main ()
8198 static struct ifreq ac_aggr;
8199 if (sizeof ac_aggr.ifr_netmask)
8200 return 0;
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8222 ac_cv_member_struct_ifreq_ifr_netmask=yes
8223 else
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8227 ac_cv_member_struct_ifreq_ifr_netmask=no
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8236 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8237 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8241 _ACEOF
8245 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8246 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8247 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8259 #endif
8260 #if HAVE_NET_IF_H
8261 #include <net/if.h>
8262 #endif
8265 main ()
8267 static struct ifreq ac_aggr;
8268 if (ac_aggr.ifr_broadaddr)
8269 return 0;
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8305 #endif
8306 #if HAVE_NET_IF_H
8307 #include <net/if.h>
8308 #endif
8311 main ()
8313 static struct ifreq ac_aggr;
8314 if (sizeof ac_aggr.ifr_broadaddr)
8315 return 0;
8317 return 0;
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8322 case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.$ac_objext; then
8337 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8351 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8352 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8354 cat >>confdefs.h <<_ACEOF
8355 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8356 _ACEOF
8360 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8361 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8380 main ()
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_addr)
8384 return 0;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_addr=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 #if HAVE_SYS_SOCKET_H
8419 #include <sys/socket.h>
8420 #endif
8421 #if HAVE_NET_IF_H
8422 #include <net/if.h>
8423 #endif
8426 main ()
8428 static struct ifreq ac_aggr;
8429 if (sizeof ac_aggr.ifr_addr)
8430 return 0;
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 ac_cv_member_struct_ifreq_ifr_addr=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_cv_member_struct_ifreq_ifr_addr=no
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8466 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8467 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8469 cat >>confdefs.h <<_ACEOF
8470 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8471 _ACEOF
8478 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8479 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8480 if test "$ac_cv_prog_cc_c89" != no; then
8481 { echo "$as_me:$LINENO: result: yes" >&5
8482 echo "${ECHO_T}yes" >&6; }
8484 cat >>confdefs.h <<\_ACEOF
8485 #define PROTOTYPES 1
8486 _ACEOF
8489 cat >>confdefs.h <<\_ACEOF
8490 #define __PROTOTYPES 1
8491 _ACEOF
8493 else
8494 { echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6; }
8498 { echo "$as_me:$LINENO: checking for working volatile" >&5
8499 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8500 if test "${ac_cv_c_volatile+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8511 main ()
8514 volatile int x;
8515 int * volatile y = (int *) 0;
8516 return !x && !y;
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_c_volatile=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_c_volatile=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8549 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8550 if test $ac_cv_c_volatile = no; then
8552 cat >>confdefs.h <<\_ACEOF
8553 #define volatile
8554 _ACEOF
8558 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8559 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8560 if test "${ac_cv_c_const+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8571 main ()
8573 /* FIXME: Include the comments suggested by Paul. */
8574 #ifndef __cplusplus
8575 /* Ultrix mips cc rejects this. */
8576 typedef int charset[2];
8577 const charset cs;
8578 /* SunOS 4.1.1 cc rejects this. */
8579 char const *const *pcpcc;
8580 char **ppc;
8581 /* NEC SVR4.0.2 mips cc rejects this. */
8582 struct point {int x, y;};
8583 static struct point const zero = {0,0};
8584 /* AIX XL C 1.02.0.0 rejects this.
8585 It does not let you subtract one const X* pointer from another in
8586 an arm of an if-expression whose if-part is not a constant
8587 expression */
8588 const char *g = "string";
8589 pcpcc = &g + (g ? g-g : 0);
8590 /* HPUX 7.0 cc rejects these. */
8591 ++pcpcc;
8592 ppc = (char**) pcpcc;
8593 pcpcc = (char const *const *) ppc;
8594 { /* SCO 3.2v4 cc rejects this. */
8595 char *t;
8596 char const *s = 0 ? (char *) 0 : (char const *) 0;
8598 *t++ = 0;
8599 if (s) return 0;
8601 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8602 int x[] = {25, 17};
8603 const int *foo = &x[0];
8604 ++foo;
8606 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8607 typedef const int *iptr;
8608 iptr p = 0;
8609 ++p;
8611 { /* AIX XL C 1.02.0.0 rejects this saying
8612 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8613 struct s { int j; const int *ap[3]; };
8614 struct s *b; b->j = 5;
8616 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8617 const int foo = 10;
8618 if (!foo) return 0;
8620 return !cs[0] && !zero.x;
8621 #endif
8624 return 0;
8626 _ACEOF
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8629 case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 ac_cv_c_const=yes
8645 else
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_cv_c_const=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8655 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8656 if test $ac_cv_c_const = no; then
8658 cat >>confdefs.h <<\_ACEOF
8659 #define const
8660 _ACEOF
8664 { echo "$as_me:$LINENO: checking for void * support" >&5
8665 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8666 if test "${emacs_cv_void_star+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8677 main ()
8679 void * foo;
8681 return 0;
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8686 case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest.$ac_objext; then
8701 emacs_cv_void_star=yes
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 emacs_cv_void_star=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8712 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8713 if test $emacs_cv_void_star = yes; then
8714 cat >>confdefs.h <<\_ACEOF
8715 #define POINTER_TYPE void
8716 _ACEOF
8718 else
8719 cat >>confdefs.h <<\_ACEOF
8720 #define POINTER_TYPE char
8721 _ACEOF
8729 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8730 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8731 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8732 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735 cat >conftest.make <<\_ACEOF
8736 SHELL = /bin/sh
8737 all:
8738 @echo '@@@%%%=$(MAKE)=@@@%%%'
8739 _ACEOF
8740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8742 *@@@%%%=?*=@@@%%%*)
8743 eval ac_cv_prog_make_${ac_make}_set=yes;;
8745 eval ac_cv_prog_make_${ac_make}_set=no;;
8746 esac
8747 rm -f conftest.make
8749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8750 { echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6; }
8752 SET_MAKE=
8753 else
8754 { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8756 SET_MAKE="MAKE=${MAKE-make}"
8760 { echo "$as_me:$LINENO: checking for long file names" >&5
8761 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8762 if test "${ac_cv_sys_long_file_names+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 ac_cv_sys_long_file_names=yes
8766 # Test for long file names in all the places we know might matter:
8767 # . the current directory, where building will happen
8768 # $prefix/lib where we will be installing things
8769 # $exec_prefix/lib likewise
8770 # $TMPDIR if set, where it might want to write temporary files
8771 # /tmp where it might want to write temporary files
8772 # /var/tmp likewise
8773 # /usr/tmp likewise
8774 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8775 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8776 # in the usual case where exec_prefix is '${prefix}'.
8777 case $ac_dir in #(
8778 . | /* | ?:[\\/]*) ;; #(
8779 *) continue;;
8780 esac
8781 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8782 ac_xdir=$ac_dir/cf$$
8783 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8784 ac_tf1=$ac_xdir/conftest9012345
8785 ac_tf2=$ac_xdir/conftest9012346
8786 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8787 ac_cv_sys_long_file_names=no
8788 rm -f -r "$ac_xdir" 2>/dev/null
8789 test $ac_cv_sys_long_file_names = no && break
8790 done
8792 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8793 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8794 if test $ac_cv_sys_long_file_names = yes; then
8796 cat >>confdefs.h <<\_ACEOF
8797 #define HAVE_LONG_FILE_NAMES 1
8798 _ACEOF
8803 #### Choose a window system.
8805 { echo "$as_me:$LINENO: checking for X" >&5
8806 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8809 # Check whether --with-x was given.
8810 if test "${with_x+set}" = set; then
8811 withval=$with_x;
8814 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8815 if test "x$with_x" = xno; then
8816 # The user explicitly disabled X.
8817 have_x=disabled
8818 else
8819 case $x_includes,$x_libraries in #(
8820 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8821 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8822 { (exit 1); exit 1; }; };; #(
8823 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 # One or both of the vars are not set, and there is no cached value.
8827 ac_x_includes=no ac_x_libraries=no
8828 rm -f -r conftest.dir
8829 if mkdir conftest.dir; then
8830 cd conftest.dir
8831 cat >Imakefile <<'_ACEOF'
8832 incroot:
8833 @echo incroot='${INCROOT}'
8834 usrlibdir:
8835 @echo usrlibdir='${USRLIBDIR}'
8836 libdir:
8837 @echo libdir='${LIBDIR}'
8838 _ACEOF
8839 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8841 for ac_var in incroot usrlibdir libdir; do
8842 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8843 done
8844 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8845 for ac_extension in a so sl; do
8846 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8847 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8848 ac_im_usrlibdir=$ac_im_libdir; break
8850 done
8851 # Screen out bogus values from the imake configuration. They are
8852 # bogus both because they are the default anyway, and because
8853 # using them would break gcc on systems where it needs fixed includes.
8854 case $ac_im_incroot in
8855 /usr/include) ac_x_includes= ;;
8856 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8857 esac
8858 case $ac_im_usrlibdir in
8859 /usr/lib | /lib) ;;
8860 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8861 esac
8863 cd ..
8864 rm -f -r conftest.dir
8867 # Standard set of common directories for X headers.
8868 # Check X11 before X11Rn because it is often a symlink to the current release.
8869 ac_x_header_dirs='
8870 /usr/X11/include
8871 /usr/X11R6/include
8872 /usr/X11R5/include
8873 /usr/X11R4/include
8875 /usr/include/X11
8876 /usr/include/X11R6
8877 /usr/include/X11R5
8878 /usr/include/X11R4
8880 /usr/local/X11/include
8881 /usr/local/X11R6/include
8882 /usr/local/X11R5/include
8883 /usr/local/X11R4/include
8885 /usr/local/include/X11
8886 /usr/local/include/X11R6
8887 /usr/local/include/X11R5
8888 /usr/local/include/X11R4
8890 /usr/X386/include
8891 /usr/x386/include
8892 /usr/XFree86/include/X11
8894 /usr/include
8895 /usr/local/include
8896 /usr/unsupported/include
8897 /usr/athena/include
8898 /usr/local/x11r5/include
8899 /usr/lpp/Xamples/include
8901 /usr/openwin/include
8902 /usr/openwin/share/include'
8904 if test "$ac_x_includes" = no; then
8905 # Guess where to find include files, by looking for Xlib.h.
8906 # First, try using that file with no special directory specified.
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 #include <X11/Xlib.h>
8914 _ACEOF
8915 if { (ac_try="$ac_cpp conftest.$ac_ext"
8916 case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } >/dev/null && {
8928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8929 test ! -s conftest.err
8930 }; then
8931 # We can compile using X headers with no special include directory.
8932 ac_x_includes=
8933 else
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8937 for ac_dir in $ac_x_header_dirs; do
8938 if test -r "$ac_dir/X11/Xlib.h"; then
8939 ac_x_includes=$ac_dir
8940 break
8942 done
8945 rm -f conftest.err conftest.$ac_ext
8946 fi # $ac_x_includes = no
8948 if test "$ac_x_libraries" = no; then
8949 # Check for the libraries.
8950 # See if we find them without any special options.
8951 # Don't add to $LIBS permanently.
8952 ac_save_LIBS=$LIBS
8953 LIBS="-lX11 $LIBS"
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <X11/Xlib.h>
8962 main ()
8964 XrmInitialize ()
8966 return 0;
8968 _ACEOF
8969 rm -f conftest.$ac_objext conftest$ac_exeext
8970 if { (ac_try="$ac_link"
8971 case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_link") 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest$ac_exeext &&
8986 $as_test_x conftest$ac_exeext; then
8987 LIBS=$ac_save_LIBS
8988 # We can link X programs with no special library path.
8989 ac_x_libraries=
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 LIBS=$ac_save_LIBS
8995 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8997 # Don't even attempt the hair of trying to link an X program!
8998 for ac_extension in a so sl; do
8999 if test -r "$ac_dir/libX11.$ac_extension"; then
9000 ac_x_libraries=$ac_dir
9001 break 2
9003 done
9004 done
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext conftest.$ac_ext
9009 fi # $ac_x_libraries = no
9011 case $ac_x_includes,$ac_x_libraries in #(
9012 no,* | *,no | *\'*)
9013 # Didn't find X, or a directory has "'" in its name.
9014 ac_cv_have_x="have_x=no";; #(
9016 # Record where we found X for the cache.
9017 ac_cv_have_x="have_x=yes\
9018 ac_x_includes='$ac_x_includes'\
9019 ac_x_libraries='$ac_x_libraries'"
9020 esac
9022 ;; #(
9023 *) have_x=yes;;
9024 esac
9025 eval "$ac_cv_have_x"
9026 fi # $with_x != no
9028 if test "$have_x" != yes; then
9029 { echo "$as_me:$LINENO: result: $have_x" >&5
9030 echo "${ECHO_T}$have_x" >&6; }
9031 no_x=yes
9032 else
9033 # If each of the values was on the command line, it overrides each guess.
9034 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9035 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9036 # Update the cache value to reflect the command line values.
9037 ac_cv_have_x="have_x=yes\
9038 ac_x_includes='$x_includes'\
9039 ac_x_libraries='$x_libraries'"
9040 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9041 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9044 if test "$no_x" = yes; then
9045 window_system=none
9046 else
9047 window_system=x11
9050 if test "${x_libraries}" != NONE; then
9051 if test -n "${x_libraries}"; then
9052 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9053 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9055 x_default_search_path=""
9056 x_search_path=${x_libraries}
9057 if test -z "${x_search_path}"; then
9058 x_search_path=/usr/lib
9060 for x_library in `echo ${x_search_path}: | \
9061 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9062 x_search_path="\
9063 ${x_library}/X11/%L/%T/%N%C%S:\
9064 ${x_library}/X11/%l/%T/%N%C%S:\
9065 ${x_library}/X11/%T/%N%C%S:\
9066 ${x_library}/X11/%L/%T/%N%S:\
9067 ${x_library}/X11/%l/%T/%N%S:\
9068 ${x_library}/X11/%T/%N%S"
9069 if test x"${x_default_search_path}" = x; then
9070 x_default_search_path=${x_search_path}
9071 else
9072 x_default_search_path="${x_search_path}:${x_default_search_path}"
9074 done
9076 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9077 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9080 if test x"${x_includes}" = x; then
9081 bitmapdir=/usr/include/X11/bitmaps
9082 else
9083 # accumulate include directories that have X11 bitmap subdirectories
9084 bmd_acc="dummyval"
9085 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9086 if test -d "${bmd}/X11/bitmaps"; then
9087 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9089 if test -d "${bmd}/bitmaps"; then
9090 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9092 done
9093 if test ${bmd_acc} != "dummyval"; then
9094 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9098 HAVE_CARBON=no
9099 if test "${with_carbon}" != no; then
9100 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9101 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9102 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9103 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9107 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9108 else
9109 # Is the header compilable?
9110 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9111 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 #include <Carbon/Carbon.h>
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9123 case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 ac_header_compiler=yes
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_header_compiler=no
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6; }
9150 # Is the header present?
9151 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9152 echo $ECHO_N "checking Carbon/Carbon.h presence... $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 #include <Carbon/Carbon.h>
9160 _ACEOF
9161 if { (ac_try="$ac_cpp conftest.$ac_ext"
9162 case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } >/dev/null && {
9174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 }; then
9177 ac_header_preproc=yes
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_preproc=no
9185 rm -f conftest.err conftest.$ac_ext
9186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187 echo "${ECHO_T}$ac_header_preproc" >&6; }
9189 # So? What about this header?
9190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 yes:no: )
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9196 ac_header_preproc=yes
9198 no:yes:* )
9199 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9200 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9202 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9204 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9206 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9208 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9210 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9213 esac
9214 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9215 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9216 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9221 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9222 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9225 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9226 HAVE_CARBON=yes
9231 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9232 if test "${with_carbon+set}" != set \
9233 && test "${carbon_appdir_x+set}" != set; then
9234 for var in with_x with_x_toolkit with_xim \
9235 with_xpm with_jpeg with_tiff with_gif with_png; do
9236 if eval test \"\${$var+set}\" = set; then
9237 HAVE_CARBON=no
9238 break
9240 done
9243 if test "${HAVE_CARBON}" = yes; then
9244 window_system=mac
9247 case "${window_system}" in
9248 x11 )
9249 HAVE_X_WINDOWS=yes
9250 HAVE_X11=yes
9251 case "${with_x_toolkit}" in
9252 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9253 motif ) USE_X_TOOLKIT=MOTIF ;;
9254 gtk ) with_gtk=yes
9255 USE_X_TOOLKIT=none ;;
9256 no ) USE_X_TOOLKIT=none ;;
9257 * ) USE_X_TOOLKIT=maybe ;;
9258 esac
9260 mac | none )
9261 HAVE_X_WINDOWS=no
9262 HAVE_X11=no
9263 USE_X_TOOLKIT=none
9265 esac
9267 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9268 # Extract the first word of "X", so it can be a program name with args.
9269 set dummy X; ac_word=$2
9270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9272 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 if test -n "$HAVE_XSERVER"; then
9276 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9277 else
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279 for as_dir in $PATH
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285 ac_cv_prog_HAVE_XSERVER="true"
9286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9289 done
9290 done
9291 IFS=$as_save_IFS
9293 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9296 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9297 if test -n "$HAVE_XSERVER"; then
9298 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9299 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9300 else
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9306 if test "$HAVE_XSERVER" = true ||
9307 test -n "$DISPLAY" ||
9308 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9309 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9310 were found. You should install the relevant development files for X
9311 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9312 sure you have development files for image handling, i.e.
9313 tiff, gif, jpeg, png and xpm.
9314 If you are sure you want Emacs compiled without X window support, pass
9315 --without-x
9316 to configure." >&5
9317 echo "$as_me: error: You seem to be running X, but no X development libraries
9318 were found. You should install the relevant development files for X
9319 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9320 sure you have development files for image handling, i.e.
9321 tiff, gif, jpeg, png and xpm.
9322 If you are sure you want Emacs compiled without X window support, pass
9323 --without-x
9324 to configure." >&2;}
9325 { (exit 1); exit 1; }; }
9329 ### If we're using X11, we should use the X menu package.
9330 HAVE_MENUS=no
9331 case ${HAVE_X11} in
9332 yes ) HAVE_MENUS=yes ;;
9333 esac
9335 ### Compute the unexec source name from the object name.
9336 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9338 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9339 # Assume not, until told otherwise.
9340 GNU_MALLOC=yes
9341 doug_lea_malloc=yes
9342 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9343 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9344 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355 #define malloc_get_state innocuous_malloc_get_state
9357 /* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char malloc_get_state (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9362 #ifdef __STDC__
9363 # include <limits.h>
9364 #else
9365 # include <assert.h>
9366 #endif
9368 #undef malloc_get_state
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char malloc_get_state ();
9377 /* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9381 choke me
9382 #endif
9385 main ()
9387 return malloc_get_state ();
9389 return 0;
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9394 case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_link") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest$ac_exeext &&
9409 $as_test_x conftest$ac_exeext; then
9410 ac_cv_func_malloc_get_state=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_cv_func_malloc_get_state=no
9418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9419 conftest$ac_exeext conftest.$ac_ext
9421 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9422 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9423 if test $ac_cv_func_malloc_get_state = yes; then
9425 else
9426 doug_lea_malloc=no
9429 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9430 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9431 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442 #define malloc_set_state innocuous_malloc_set_state
9444 /* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char malloc_set_state (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9449 #ifdef __STDC__
9450 # include <limits.h>
9451 #else
9452 # include <assert.h>
9453 #endif
9455 #undef malloc_set_state
9457 /* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9460 #ifdef __cplusplus
9461 extern "C"
9462 #endif
9463 char malloc_set_state ();
9464 /* The GNU C library defines this for functions which it implements
9465 to always fail with ENOSYS. Some functions are actually named
9466 something starting with __ and the normal name is an alias. */
9467 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9468 choke me
9469 #endif
9472 main ()
9474 return malloc_set_state ();
9476 return 0;
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9481 case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest$ac_exeext &&
9496 $as_test_x conftest$ac_exeext; then
9497 ac_cv_func_malloc_set_state=yes
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_cv_func_malloc_set_state=no
9505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext
9508 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9509 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9510 if test $ac_cv_func_malloc_set_state = yes; then
9512 else
9513 doug_lea_malloc=no
9516 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9517 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9518 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 extern void (* __after_morecore_hook)();
9529 main ()
9531 __after_morecore_hook = 0
9533 return 0;
9535 _ACEOF
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9538 case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541 esac
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_link") 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest$ac_exeext &&
9553 $as_test_x conftest$ac_exeext; then
9554 emacs_cv_var___after_morecore_hook=yes
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 emacs_cv_var___after_morecore_hook=no
9562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9563 conftest$ac_exeext conftest.$ac_ext
9565 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9566 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9567 if test $emacs_cv_var___after_morecore_hook = no; then
9568 doug_lea_malloc=no
9570 if test "${system_malloc}" = "yes"; then
9571 GNU_MALLOC=no
9572 GNU_MALLOC_reason="
9573 (The GNU allocators don't work with this system configuration.)"
9575 if test "$doug_lea_malloc" = "yes" ; then
9576 if test "$GNU_MALLOC" = yes ; then
9577 GNU_MALLOC_reason="
9578 (Using Doug Lea's new malloc from the GNU C Library.)"
9581 cat >>confdefs.h <<\_ACEOF
9582 #define DOUG_LEA_MALLOC 1
9583 _ACEOF
9587 if test x"${REL_ALLOC}" = x; then
9588 REL_ALLOC=${GNU_MALLOC}
9594 for ac_header in stdlib.h unistd.h
9596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9606 else
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9658 _ACEOF
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev/null && {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 }; then
9675 ac_header_preproc=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9683 rm -f conftest.err conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9689 yes:no: )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9696 no:yes:* )
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711 esac
9712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 ac_res=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 _ACEOF
9731 done
9734 for ac_func in getpagesize
9736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9750 #define $ac_func innocuous_$ac_func
9752 /* System header to define __stub macros and hopefully few prototypes,
9753 which can conflict with char $ac_func (); below.
9754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9755 <limits.h> exists even on freestanding compilers. */
9757 #ifdef __STDC__
9758 # include <limits.h>
9759 #else
9760 # include <assert.h>
9761 #endif
9763 #undef $ac_func
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 char $ac_func ();
9772 /* The GNU C library defines this for functions which it implements
9773 to always fail with ENOSYS. Some functions are actually named
9774 something starting with __ and the normal name is an alias. */
9775 #if defined __stub_$ac_func || defined __stub___$ac_func
9776 choke me
9777 #endif
9780 main ()
9782 return $ac_func ();
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_link") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest$ac_exeext &&
9804 $as_test_x conftest$ac_exeext; then
9805 eval "$as_ac_var=yes"
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 eval "$as_ac_var=no"
9813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9814 conftest$ac_exeext conftest.$ac_ext
9816 ac_res=`eval echo '${'$as_ac_var'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9819 if test `eval echo '${'$as_ac_var'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9822 _ACEOF
9825 done
9827 { echo "$as_me:$LINENO: checking for working mmap" >&5
9828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832 if test "$cross_compiling" = yes; then
9833 ac_cv_func_mmap_fixed_mapped=no
9834 else
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9842 /* malloc might have been renamed as rpl_malloc. */
9843 #undef malloc
9845 /* Thanks to Mike Haertel and Jim Avera for this test.
9846 Here is a matrix of mmap possibilities:
9847 mmap private not fixed
9848 mmap private fixed at somewhere currently unmapped
9849 mmap private fixed at somewhere already mapped
9850 mmap shared not fixed
9851 mmap shared fixed at somewhere currently unmapped
9852 mmap shared fixed at somewhere already mapped
9853 For private mappings, we should verify that changes cannot be read()
9854 back from the file, nor mmap's back from the file at a different
9855 address. (There have been systems where private was not correctly
9856 implemented like the infamous i386 svr4.0, and systems where the
9857 VM page cache was not coherent with the file system buffer cache
9858 like early versions of FreeBSD and possibly contemporary NetBSD.)
9859 For shared mappings, we should conversely verify that changes get
9860 propagated back to all the places they're supposed to be.
9862 Grep wants private fixed already mapped.
9863 The main things grep needs to know about mmap are:
9864 * does it exist and is it safe to write into the mmap'd area
9865 * how to use it (BSD variants) */
9867 #include <fcntl.h>
9868 #include <sys/mman.h>
9870 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9871 char *malloc ();
9872 #endif
9874 /* This mess was copied from the GNU getpagesize.h. */
9875 #ifndef HAVE_GETPAGESIZE
9876 /* Assume that all systems that can run configure have sys/param.h. */
9877 # ifndef HAVE_SYS_PARAM_H
9878 # define HAVE_SYS_PARAM_H 1
9879 # endif
9881 # ifdef _SC_PAGESIZE
9882 # define getpagesize() sysconf(_SC_PAGESIZE)
9883 # else /* no _SC_PAGESIZE */
9884 # ifdef HAVE_SYS_PARAM_H
9885 # include <sys/param.h>
9886 # ifdef EXEC_PAGESIZE
9887 # define getpagesize() EXEC_PAGESIZE
9888 # else /* no EXEC_PAGESIZE */
9889 # ifdef NBPG
9890 # define getpagesize() NBPG * CLSIZE
9891 # ifndef CLSIZE
9892 # define CLSIZE 1
9893 # endif /* no CLSIZE */
9894 # else /* no NBPG */
9895 # ifdef NBPC
9896 # define getpagesize() NBPC
9897 # else /* no NBPC */
9898 # ifdef PAGESIZE
9899 # define getpagesize() PAGESIZE
9900 # endif /* PAGESIZE */
9901 # endif /* no NBPC */
9902 # endif /* no NBPG */
9903 # endif /* no EXEC_PAGESIZE */
9904 # else /* no HAVE_SYS_PARAM_H */
9905 # define getpagesize() 8192 /* punt totally */
9906 # endif /* no HAVE_SYS_PARAM_H */
9907 # endif /* no _SC_PAGESIZE */
9909 #endif /* no HAVE_GETPAGESIZE */
9912 main ()
9914 char *data, *data2, *data3;
9915 int i, pagesize;
9916 int fd;
9918 pagesize = getpagesize ();
9920 /* First, make a file with some known garbage in it. */
9921 data = (char *) malloc (pagesize);
9922 if (!data)
9923 return 1;
9924 for (i = 0; i < pagesize; ++i)
9925 *(data + i) = rand ();
9926 umask (0);
9927 fd = creat ("conftest.mmap", 0600);
9928 if (fd < 0)
9929 return 1;
9930 if (write (fd, data, pagesize) != pagesize)
9931 return 1;
9932 close (fd);
9934 /* Next, try to mmap the file at a fixed address which already has
9935 something else allocated at it. If we can, also make sure that
9936 we see the same garbage. */
9937 fd = open ("conftest.mmap", O_RDWR);
9938 if (fd < 0)
9939 return 1;
9940 data2 = (char *) malloc (2 * pagesize);
9941 if (!data2)
9942 return 1;
9943 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9946 return 1;
9947 for (i = 0; i < pagesize; ++i)
9948 if (*(data + i) != *(data2 + i))
9949 return 1;
9951 /* Finally, make sure that changes to the mapped area do not
9952 percolate back to the file as seen by read(). (This is a bug on
9953 some variants of i386 svr4.0.) */
9954 for (i = 0; i < pagesize; ++i)
9955 *(data2 + i) = *(data2 + i) + 1;
9956 data3 = (char *) malloc (pagesize);
9957 if (!data3)
9958 return 1;
9959 if (read (fd, data3, pagesize) != pagesize)
9960 return 1;
9961 for (i = 0; i < pagesize; ++i)
9962 if (*(data + i) != *(data3 + i))
9963 return 1;
9964 close (fd);
9965 return 0;
9967 _ACEOF
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_func_mmap_fixed_mapped=yes
9989 else
9990 echo "$as_me: program exited with status $ac_status" >&5
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ( exit $ac_status )
9995 ac_cv_func_mmap_fixed_mapped=no
9997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10003 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10004 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10006 cat >>confdefs.h <<\_ACEOF
10007 #define HAVE_MMAP 1
10008 _ACEOF
10011 rm -f conftest.mmap
10013 if test $use_mmap_for_buffers = yes; then
10014 REL_ALLOC=no
10017 LIBS="$libsrc_libs $LIBS"
10020 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10021 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldnet $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h. */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char dnet_ntoa ();
10042 main ()
10044 return dnet_ntoa ();
10046 return 0;
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest$ac_exeext &&
10066 $as_test_x conftest$ac_exeext; then
10067 ac_cv_lib_dnet_dnet_ntoa=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_lib_dnet_dnet_ntoa=no
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10080 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10081 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10082 cat >>confdefs.h <<_ACEOF
10083 #define HAVE_LIBDNET 1
10084 _ACEOF
10086 LIBS="-ldnet $LIBS"
10091 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10092 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096 ac_check_lib_save_LIBS=$LIBS
10097 LIBS="-lXbsd $LIBS"
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10107 main ()
10109 return main ();
10111 return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_lib_Xbsd_main=yes
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_Xbsd_main=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10145 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10146 if test $ac_cv_lib_Xbsd_main = yes; then
10147 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10152 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10153 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-lpthreads $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char cma_open ();
10174 main ()
10176 return cma_open ();
10178 return 0;
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest$ac_exeext &&
10198 $as_test_x conftest$ac_exeext; then
10199 ac_cv_lib_pthreads_cma_open=yes
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_lib_pthreads_cma_open=no
10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10212 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10213 if test $ac_cv_lib_pthreads_cma_open = yes; then
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_LIBPTHREADS 1
10216 _ACEOF
10218 LIBS="-lpthreads $LIBS"
10224 case ${host_os} in
10225 aix*)
10226 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10227 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10228 if test "${gdb_cv_bigtoc+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10232 case $GCC in
10233 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10234 *) gdb_cv_bigtoc=-bbigtoc ;;
10235 esac
10237 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10246 main ()
10248 int i;
10250 return 0;
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 gdb_cv_bigtoc=
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280 conftest$ac_exeext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10284 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10286 esac
10288 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10289 # used for the tests that follow. We set them back to REAL_CFLAGS and
10290 # REAL_CPPFLAGS later on.
10292 REAL_CPPFLAGS="$CPPFLAGS"
10294 if test "${HAVE_X11}" = "yes"; then
10295 DEFS="$C_SWITCH_X_SITE $DEFS"
10296 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10297 LIBS="$LIBX $LIBS"
10298 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10299 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10301 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10302 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10303 # but it's more convenient here to set LD_RUN_PATH
10304 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10305 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10306 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10307 export LD_RUN_PATH
10310 if test "${opsys}" = "gnu-linux"; then
10311 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10312 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10321 main ()
10323 XOpenDisplay ("foo");
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest$ac_exeext &&
10345 $as_test_x conftest$ac_exeext; then
10346 xlinux_first_failure=no
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 xlinux_first_failure=yes
10354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355 conftest$ac_exeext conftest.$ac_ext
10356 if test "${xlinux_first_failure}" = "yes"; then
10357 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10358 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10359 OLD_CPPFLAGS="$CPPFLAGS"
10360 OLD_LIBS="$LIBS"
10361 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10362 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10363 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10364 LIBS="$LIBS -b i486-linuxaout"
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10373 main ()
10375 XOpenDisplay ("foo");
10377 return 0;
10379 _ACEOF
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (ac_try="$ac_link"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385 esac
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_link") 2>conftest.er1
10388 ac_status=$?
10389 grep -v '^ *+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest$ac_exeext &&
10397 $as_test_x conftest$ac_exeext; then
10398 xlinux_second_failure=no
10399 else
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 xlinux_second_failure=yes
10406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407 conftest$ac_exeext conftest.$ac_ext
10408 if test "${xlinux_second_failure}" = "yes"; then
10409 # If we get the same failure with -b, there is no use adding -b.
10410 # So take it out. This plays safe.
10411 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10412 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10413 CPPFLAGS="$OLD_CPPFLAGS"
10414 LIBS="$OLD_LIBS"
10415 { echo "$as_me:$LINENO: result: no" >&5
10416 echo "${ECHO_T}no" >&6; }
10417 else
10418 { echo "$as_me:$LINENO: result: yes" >&5
10419 echo "${ECHO_T}yes" >&6; }
10421 else
10422 { echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6; }
10427 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10428 # header files included from there.
10429 { echo "$as_me:$LINENO: checking for Xkb" >&5
10430 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <X11/Xlib.h>
10438 #include <X11/XKBlib.h>
10440 main ()
10442 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10444 return 0;
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_link") 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext &&
10464 $as_test_x conftest$ac_exeext; then
10465 emacs_xkb=yes
10466 else
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 emacs_xkb=no
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474 conftest$ac_exeext conftest.$ac_ext
10475 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10476 echo "${ECHO_T}$emacs_xkb" >&6; }
10477 if test $emacs_xkb = yes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_XKBGETKEYBOARD 1
10481 _ACEOF
10489 for ac_func in XrmSetDatabase XScreenResourceString \
10490 XScreenNumberOfScreen XSetWMProtocols
10492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10506 #define $ac_func innocuous_$ac_func
10508 /* System header to define __stub macros and hopefully few prototypes,
10509 which can conflict with char $ac_func (); below.
10510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10511 <limits.h> exists even on freestanding compilers. */
10513 #ifdef __STDC__
10514 # include <limits.h>
10515 #else
10516 # include <assert.h>
10517 #endif
10519 #undef $ac_func
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 char $ac_func ();
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined __stub_$ac_func || defined __stub___$ac_func
10532 choke me
10533 #endif
10536 main ()
10538 return $ac_func ();
10540 return 0;
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (ac_try="$ac_link"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest$ac_exeext &&
10560 $as_test_x conftest$ac_exeext; then
10561 eval "$as_ac_var=yes"
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 eval "$as_ac_var=no"
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10572 ac_res=`eval echo '${'$as_ac_var'}'`
10573 { echo "$as_me:$LINENO: result: $ac_res" >&5
10574 echo "${ECHO_T}$ac_res" >&6; }
10575 if test `eval echo '${'$as_ac_var'}'` = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10578 _ACEOF
10581 done
10585 if test "${window_system}" = "x11"; then
10586 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10587 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10588 if test "${emacs_cv_x11_version_6+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 #include <X11/Xlib.h>
10599 main ()
10601 #if XlibSpecificationRelease < 6
10602 fail;
10603 #endif
10606 return 0;
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext &&
10626 $as_test_x conftest$ac_exeext; then
10627 emacs_cv_x11_version_6=yes
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 emacs_cv_x11_version_6=no
10635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10636 conftest$ac_exeext conftest.$ac_ext
10639 if test $emacs_cv_x11_version_6 = yes; then
10640 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10641 echo "${ECHO_T}6 or newer" >&6; }
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_X11R6 1
10645 _ACEOF
10647 else
10648 { echo "$as_me:$LINENO: result: before 6" >&5
10649 echo "${ECHO_T}before 6" >&6; }
10654 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10655 HAVE_RSVG=no
10656 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10657 if test "${with_rsvg}" != "no"; then
10658 RSVG_REQUIRED=2.0.0
10659 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10662 succeeded=no
10664 # Extract the first word of "pkg-config", so it can be a program name with args.
10665 set dummy pkg-config; ac_word=$2
10666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 case $PKG_CONFIG in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10693 esac
10695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10696 if test -n "$PKG_CONFIG"; then
10697 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10698 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10699 else
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10706 if test "$PKG_CONFIG" = "no" ; then
10708 else
10709 PKG_CONFIG_MIN_VERSION=0.9.0
10710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10711 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10712 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10714 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10715 { echo "$as_me:$LINENO: result: yes" >&5
10716 echo "${ECHO_T}yes" >&6; }
10717 succeeded=yes
10719 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10720 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10721 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10722 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10723 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10725 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10726 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10727 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10728 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10729 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10730 else
10731 { echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6; }
10733 RSVG_CFLAGS=""
10734 RSVG_LIBS=""
10735 ## If we have a custom action on failure, don't print errors, but
10736 ## do set a variable so people can do so.
10737 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10743 else
10744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10749 if test $succeeded = yes; then
10751 else
10758 if test ".${RSVG_CFLAGS}" != "."; then
10759 HAVE_RSVG=yes
10761 cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_RSVG 1
10763 _ACEOF
10765 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10766 LIBS="$RSVG_LIBS $LIBS"
10772 HAVE_GTK=no
10773 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10774 GLIB_REQUIRED=2.6
10775 GTK_REQUIRED=2.6
10776 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10779 succeeded=no
10781 # Extract the first word of "pkg-config", so it can be a program name with args.
10782 set dummy pkg-config; ac_word=$2
10783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788 case $PKG_CONFIG in
10789 [\\/]* | ?:[\\/]*)
10790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794 for as_dir in $PATH
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10804 done
10805 done
10806 IFS=$as_save_IFS
10808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10810 esac
10812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10813 if test -n "$PKG_CONFIG"; then
10814 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10815 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10816 else
10817 { echo "$as_me:$LINENO: result: no" >&5
10818 echo "${ECHO_T}no" >&6; }
10823 if test "$PKG_CONFIG" = "no" ; then
10824 pkg_check_gtk=no
10825 else
10826 PKG_CONFIG_MIN_VERSION=0.9.0
10827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10828 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10829 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10831 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10832 { echo "$as_me:$LINENO: result: yes" >&5
10833 echo "${ECHO_T}yes" >&6; }
10834 succeeded=yes
10836 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10837 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10838 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10839 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10840 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10842 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10843 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10844 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10845 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10846 echo "${ECHO_T}$GTK_LIBS" >&6; }
10847 else
10848 { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; }
10850 GTK_CFLAGS=""
10851 GTK_LIBS=""
10852 ## If we have a custom action on failure, don't print errors, but
10853 ## do set a variable so people can do so.
10854 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10860 else
10861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10866 if test $succeeded = yes; then
10867 pkg_check_gtk=yes
10868 else
10869 pkg_check_gtk=no
10872 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10873 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10874 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10875 { (exit 1); exit 1; }; }
10880 if test x"$pkg_check_gtk" = xyes; then
10884 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10885 CFLAGS="$CFLAGS $GTK_CFLAGS"
10886 LIBS="$GTK_LIBS $LIBS"
10887 GTK_COMPILES=no
10889 for ac_func in gtk_main
10891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10905 #define $ac_func innocuous_$ac_func
10907 /* System header to define __stub macros and hopefully few prototypes,
10908 which can conflict with char $ac_func (); below.
10909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 <limits.h> exists even on freestanding compilers. */
10912 #ifdef __STDC__
10913 # include <limits.h>
10914 #else
10915 # include <assert.h>
10916 #endif
10918 #undef $ac_func
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char $ac_func ();
10927 /* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930 #if defined __stub_$ac_func || defined __stub___$ac_func
10931 choke me
10932 #endif
10935 main ()
10937 return $ac_func ();
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (ac_try="$ac_link"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest$ac_exeext &&
10959 $as_test_x conftest$ac_exeext; then
10960 eval "$as_ac_var=yes"
10961 else
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 eval "$as_ac_var=no"
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10971 ac_res=`eval echo '${'$as_ac_var'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_var'}'` = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10977 _ACEOF
10978 GTK_COMPILES=yes
10980 done
10982 if test "${GTK_COMPILES}" != "yes"; then
10983 if test "$USE_X_TOOLKIT" != "maybe"; then
10984 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10985 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10986 { (exit 1); exit 1; }; };
10988 else
10989 HAVE_GTK=yes
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_GTK 1
10993 _ACEOF
10995 USE_X_TOOLKIT=none
10996 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10998 else
10999 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11000 closing open displays. This is no problem if you just use
11001 one display, but if you use more than one and close one of them
11002 Emacs may crash." >&5
11003 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11004 closing open displays. This is no problem if you just use
11005 one display, but if you use more than one and close one of them
11006 Emacs may crash." >&2;}
11007 sleep 3
11014 if test "${HAVE_GTK}" = "yes"; then
11016 if test "$with_toolkit_scroll_bars" != no; then
11017 with_toolkit_scroll_bars=yes
11020 HAVE_GTK_MULTIDISPLAY=no
11022 for ac_func in gdk_display_open
11024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038 #define $ac_func innocuous_$ac_func
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11045 #ifdef __STDC__
11046 # include <limits.h>
11047 #else
11048 # include <assert.h>
11049 #endif
11051 #undef $ac_func
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 char $ac_func ();
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11064 choke me
11065 #endif
11068 main ()
11070 return $ac_func ();
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11080 esac
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest$ac_exeext &&
11092 $as_test_x conftest$ac_exeext; then
11093 eval "$as_ac_var=yes"
11094 else
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 eval "$as_ac_var=no"
11101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11102 conftest$ac_exeext conftest.$ac_ext
11104 ac_res=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 _ACEOF
11111 HAVE_GTK_MULTIDISPLAY=yes
11113 done
11115 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_GTK_MULTIDISPLAY 1
11119 _ACEOF
11123 HAVE_GTK_FILE_SELECTION=no
11125 for ac_func in gtk_file_selection_new
11127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define $ac_func innocuous_$ac_func
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11148 #ifdef __STDC__
11149 # include <limits.h>
11150 #else
11151 # include <assert.h>
11152 #endif
11154 #undef $ac_func
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char $ac_func ();
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined __stub_$ac_func || defined __stub___$ac_func
11167 choke me
11168 #endif
11171 main ()
11173 return $ac_func ();
11175 return 0;
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 eval "$as_ac_var=yes"
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 eval "$as_ac_var=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205 conftest$ac_exeext conftest.$ac_ext
11207 ac_res=`eval echo '${'$as_ac_var'}'`
11208 { echo "$as_me:$LINENO: result: $ac_res" >&5
11209 echo "${ECHO_T}$ac_res" >&6; }
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 _ACEOF
11214 HAVE_GTK_FILE_SELECTION=yes
11216 done
11219 HAVE_GTK_FILE_CHOOSER=no
11221 for ac_func in gtk_file_chooser_dialog_new
11223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11237 #define $ac_func innocuous_$ac_func
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func (); below.
11241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11242 <limits.h> exists even on freestanding compilers. */
11244 #ifdef __STDC__
11245 # include <limits.h>
11246 #else
11247 # include <assert.h>
11248 #endif
11250 #undef $ac_func
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char $ac_func ();
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined __stub_$ac_func || defined __stub___$ac_func
11263 choke me
11264 #endif
11267 main ()
11269 return $ac_func ();
11271 return 0;
11273 _ACEOF
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (ac_try="$ac_link"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_link") 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest$ac_exeext &&
11291 $as_test_x conftest$ac_exeext; then
11292 eval "$as_ac_var=yes"
11293 else
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11301 conftest$ac_exeext conftest.$ac_ext
11303 ac_res=`eval echo '${'$as_ac_var'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11310 HAVE_GTK_FILE_CHOOSER=yes
11312 done
11315 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11316 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_GTK_FILE_BOTH 1
11320 _ACEOF
11324 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11325 HAVE_GTK_AND_PTHREAD=no
11327 for ac_header in pthread.h
11329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11339 else
11340 # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 $ac_includes_default
11350 #include <$ac_header>
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (ac_try="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_header_compiler=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11391 _ACEOF
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null && {
11405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 }; then
11408 ac_header_preproc=yes
11409 else
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 ac_header_preproc=no
11416 rm -f conftest.err conftest.$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 yes:no: )
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc=yes
11429 no:yes:* )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11444 esac
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 eval "$as_ac_Header=\$ac_header_preproc"
11452 ac_res=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 _ACEOF
11464 done
11466 if test "$ac_cv_header_pthread_h"; then
11467 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11468 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11469 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-lpthread $LIBS"
11474 cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h. */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char pthread_self ();
11489 main ()
11491 return pthread_self ();
11493 return 0;
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_lib_pthread_pthread_self=yes
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_pthread_pthread_self=no
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11527 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11528 if test $ac_cv_lib_pthread_pthread_self = yes; then
11529 HAVE_GTK_AND_PTHREAD=yes
11533 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11534 case "${canonical}" in
11535 *-hpux*) ;;
11536 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11537 esac
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_GTK_AND_PTHREAD 1
11541 _ACEOF
11547 HAVE_DBUS=no
11548 if test "${with_dbus}" = "yes"; then
11550 succeeded=no
11552 # Extract the first word of "pkg-config", so it can be a program name with args.
11553 set dummy pkg-config; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 case $PKG_CONFIG in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11575 done
11576 done
11577 IFS=$as_save_IFS
11579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11581 esac
11583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11584 if test -n "$PKG_CONFIG"; then
11585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11587 else
11588 { echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6; }
11594 if test "$PKG_CONFIG" = "no" ; then
11595 HAVE_DBUS=no
11596 else
11597 PKG_CONFIG_MIN_VERSION=0.9.0
11598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11599 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11600 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11603 { echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6; }
11605 succeeded=yes
11607 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11608 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11610 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11611 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11613 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11614 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11616 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11617 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11618 else
11619 { echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6; }
11621 DBUS_CFLAGS=""
11622 DBUS_LIBS=""
11623 ## If we have a custom action on failure, don't print errors, but
11624 ## do set a variable so people can do so.
11625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11631 else
11632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11637 if test $succeeded = yes; then
11638 HAVE_DBUS=yes
11639 else
11640 HAVE_DBUS=no
11643 if test "$HAVE_DBUS" = yes; then
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_DBUS 1
11647 _ACEOF
11652 HAVE_XAW3D=no
11653 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11654 if test "$with_xaw3d" != no; then
11655 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11656 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11657 if test "${emacs_cv_xaw3d+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 #include <X11/Intrinsic.h>
11668 #include <X11/Xaw3d/Simple.h>
11670 main ()
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest$ac_exeext &&
11694 $as_test_x conftest$ac_exeext; then
11695 emacs_cv_xaw3d=yes
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 emacs_cv_xaw3d=no
11703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11704 conftest$ac_exeext conftest.$ac_ext
11707 else
11708 emacs_cv_xaw3d=no
11710 if test $emacs_cv_xaw3d = yes; then
11711 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11712 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11713 USE_X_TOOLKIT=LUCID
11714 HAVE_XAW3D=yes
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_XAW3D 1
11718 _ACEOF
11720 else
11721 { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11723 { echo "$as_me:$LINENO: checking for libXaw" >&5
11724 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11725 if test "${emacs_cv_xaw+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 #include <X11/Intrinsic.h>
11736 #include <X11/Xaw/Simple.h>
11738 main ()
11742 return 0;
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_link") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest$ac_exeext &&
11762 $as_test_x conftest$ac_exeext; then
11763 emacs_cv_xaw=yes
11764 else
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 emacs_cv_xaw=no
11771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11772 conftest$ac_exeext conftest.$ac_ext
11775 if test $emacs_cv_xaw = yes; then
11776 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11777 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11778 USE_X_TOOLKIT=LUCID
11779 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11780 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11781 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11782 { (exit 1); exit 1; }; }
11783 else
11784 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11785 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11786 USE_X_TOOLKIT=none
11791 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11793 if test "${USE_X_TOOLKIT}" != "none"; then
11794 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11795 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11796 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 #include <X11/Intrinsic.h>
11807 main ()
11809 #if XtSpecificationRelease < 6
11810 fail;
11811 #endif
11814 return 0;
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (ac_try="$ac_link"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_link") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest$ac_exeext &&
11834 $as_test_x conftest$ac_exeext; then
11835 emacs_cv_x11_toolkit_version_6=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 emacs_cv_x11_toolkit_version_6=no
11843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11844 conftest$ac_exeext conftest.$ac_ext
11847 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11848 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11849 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11850 echo "${ECHO_T}6 or newer" >&6; }
11852 cat >>confdefs.h <<\_ACEOF
11853 #define HAVE_X11XTR6 1
11854 _ACEOF
11856 else
11857 { echo "$as_me:$LINENO: result: before 6" >&5
11858 echo "${ECHO_T}before 6" >&6; }
11861 OLDLIBS="$LIBS"
11862 if test x$HAVE_X11XTR6 = xyes; then
11863 LIBS="-lXt -lSM -lICE $LIBS"
11864 else
11865 LIBS="-lXt $LIBS"
11868 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11869 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11870 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lXmu $LIBS"
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char XmuConvertStandardSelection ();
11890 main ()
11892 return XmuConvertStandardSelection ();
11894 return 0;
11896 _ACEOF
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest$ac_exeext &&
11914 $as_test_x conftest$ac_exeext; then
11915 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11928 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11929 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_LIBXMU 1
11932 _ACEOF
11934 LIBS="-lXmu $LIBS"
11938 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11941 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11942 if test "${HAVE_X11}" = "yes"; then
11943 if test "${USE_X_TOOLKIT}" != "none"; then
11945 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11946 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11947 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-lXext $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char XShapeQueryExtension ();
11967 main ()
11969 return XShapeQueryExtension ();
11971 return 0;
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_link") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest$ac_exeext &&
11991 $as_test_x conftest$ac_exeext; then
11992 ac_cv_lib_Xext_XShapeQueryExtension=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_cv_lib_Xext_XShapeQueryExtension=no
12000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12001 conftest$ac_exeext conftest.$ac_ext
12002 LIBS=$ac_check_lib_save_LIBS
12004 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12005 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12006 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define HAVE_LIBXEXT 1
12009 _ACEOF
12011 LIBS="-lXext $LIBS"
12018 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12019 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12020 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12021 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <Xm/Xm.h>
12032 main ()
12034 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12035 int x = 5;
12036 #else
12037 Motif version prior to 2.1.
12038 #endif
12040 return 0;
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 emacs_cv_motif_version_2_1=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 emacs_cv_motif_version_2_1=no
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12071 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12072 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12073 if test $emacs_cv_motif_version_2_1 = yes; then
12074 HAVE_LIBXP=no
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_MOTIF_2_1 1
12078 _ACEOF
12080 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12081 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12082 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085 ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-lXp $LIBS"
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 char XpCreateContext ();
12102 main ()
12104 return XpCreateContext ();
12106 return 0;
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (ac_try="$ac_link"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_link") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest$ac_exeext &&
12126 $as_test_x conftest$ac_exeext; then
12127 ac_cv_lib_Xp_XpCreateContext=yes
12128 else
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_cv_lib_Xp_XpCreateContext=no
12135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12139 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12140 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12141 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12142 HAVE_LIBXP=yes
12145 if test ${HAVE_LIBXP} = yes; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define HAVE_LIBXP 1
12149 _ACEOF
12152 else
12153 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12154 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12155 if test "${emacs_cv_lesstif+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 # We put this in CFLAGS temporarily to precede other -I options
12159 # that might be in CFLAGS temporarily.
12160 # We put this in CPPFLAGS where it precedes the other -I options.
12161 OLD_CPPFLAGS=$CPPFLAGS
12162 OLD_CFLAGS=$CFLAGS
12163 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12164 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12173 main ()
12175 int x = 5;
12177 return 0;
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (ac_try="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 emacs_cv_lesstif=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 emacs_cv_lesstif=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12208 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12209 if test $emacs_cv_lesstif = yes; then
12210 # Make sure this -I option remains in CPPFLAGS after it is set
12211 # back to REAL_CPPFLAGS.
12212 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12213 # have those other -I options anyway. Ultimately, having this
12214 # directory ultimately in CPPFLAGS will be enough.
12215 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12216 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12217 else
12218 CFLAGS=$OLD_CFLAGS
12219 CPPFLAGS=$OLD_CPPFLAGS
12226 USE_TOOLKIT_SCROLL_BARS=no
12227 if test "${with_toolkit_scroll_bars}" != "no"; then
12228 if test "${USE_X_TOOLKIT}" != "none"; then
12229 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define USE_TOOLKIT_SCROLL_BARS 1
12232 _ACEOF
12234 HAVE_XAW3D=no
12235 USE_TOOLKIT_SCROLL_BARS=yes
12236 elif test "${HAVE_XAW3D}" = "yes"; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define USE_TOOLKIT_SCROLL_BARS 1
12239 _ACEOF
12241 USE_TOOLKIT_SCROLL_BARS=yes
12243 elif test "${HAVE_GTK}" = "yes"; then
12244 cat >>confdefs.h <<\_ACEOF
12245 #define USE_TOOLKIT_SCROLL_BARS 1
12246 _ACEOF
12248 USE_TOOLKIT_SCROLL_BARS=yes
12249 elif test "${HAVE_CARBON}" = "yes"; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define USE_TOOLKIT_SCROLL_BARS 1
12252 _ACEOF
12254 USE_TOOLKIT_SCROLL_BARS=yes
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 #include <X11/Xlib.h>
12266 #include <X11/Xresource.h>
12268 main ()
12270 XIMProc callback;
12272 return 0;
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_compile") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest.$ac_objext; then
12292 HAVE_XIM=yes
12294 cat >>confdefs.h <<\_ACEOF
12295 #define HAVE_XIM 1
12296 _ACEOF
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 HAVE_XIM=no
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 if test "${with_xim}" != "no"; then
12310 cat >>confdefs.h <<\_ACEOF
12311 #define USE_XIM 1
12312 _ACEOF
12317 if test "${HAVE_XIM}" != "no"; then
12318 late_CFLAGS=$CFLAGS
12319 if test "$GCC" = yes; then
12320 CFLAGS="$CFLAGS --pedantic-errors"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #include <X11/Xlib.h>
12330 #include <X11/Xresource.h>
12332 main ()
12334 Display *display;
12335 XrmDatabase db;
12336 char *res_name;
12337 char *res_class;
12338 XIMProc callback;
12339 XPointer *client_data;
12340 #ifndef __GNUC__
12341 /* If we're not using GCC, it's probably not XFree86, and this is
12342 probably right, but we can't use something like --pedantic-errors. */
12343 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12344 char*, XIMProc, XPointer*);
12345 #endif
12346 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12347 client_data);
12349 return 0;
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest.$ac_objext; then
12369 emacs_cv_arg6_star=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 if test "$emacs_cv_arg6_star" = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12382 _ACEOF
12384 else
12385 cat >>confdefs.h <<\_ACEOF
12386 #define XRegisterIMInstantiateCallback_arg6 XPointer
12387 _ACEOF
12390 CFLAGS=$late_CFLAGS
12393 #### For font-backend
12394 if test "${USE_FONT_BACKEND}" != "no"; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define USE_FONT_BACKEND 1
12399 _ACEOF
12402 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12403 HAVE_XFT=maybe
12404 if test "${HAVE_X11}" = "yes"; then
12405 if test "x${with_freetype}" = "xno"; then
12406 with_xft="no";
12408 if test "x${with_xft}" != "xno"; then
12410 if test "X${with_pkg_config_prog}" != X; then
12411 PKG_CONFIG="${with_pkg_config_prog}"
12415 succeeded=no
12417 # Extract the first word of "pkg-config", so it can be a program name with args.
12418 set dummy pkg-config; ac_word=$2
12419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 case $PKG_CONFIG in
12425 [\\/]* | ?:[\\/]*)
12426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12436 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 break 2
12440 done
12441 done
12442 IFS=$as_save_IFS
12444 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12446 esac
12448 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12449 if test -n "$PKG_CONFIG"; then
12450 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12451 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12452 else
12453 { echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6; }
12459 if test "$PKG_CONFIG" = "no" ; then
12460 HAVE_XFT=no
12461 else
12462 PKG_CONFIG_MIN_VERSION=0.9.0
12463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12464 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12465 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12467 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12468 { echo "$as_me:$LINENO: result: yes" >&5
12469 echo "${ECHO_T}yes" >&6; }
12470 succeeded=yes
12472 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12473 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12474 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12475 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12476 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12478 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12479 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12480 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12481 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12482 echo "${ECHO_T}$XFT_LIBS" >&6; }
12483 else
12484 { echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6; }
12486 XFT_CFLAGS=""
12487 XFT_LIBS=""
12488 ## If we have a custom action on failure, don't print errors, but
12489 ## do set a variable so people can do so.
12490 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12496 else
12497 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12498 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12502 if test $succeeded = yes; then
12504 else
12505 HAVE_XFT=no
12508 if test "$HAVE_XFT" != no; then
12509 OLD_CPPFLAGS="$CPPFLAGS"
12510 OLD_CFLAGS="$CFLAGS"
12511 OLD_LIBS="$LIBS"
12512 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12513 CFLAGS="$CFLAGS $XFT_CFLAGS"
12514 LIBS="$XFT_LIBS $LIBS"
12515 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12516 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12517 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12518 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12522 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12523 else
12524 # Is the header compilable?
12525 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12526 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 $ac_includes_default
12534 #include <X11/Xft/Xft.h>
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.$ac_objext; then
12553 ac_header_compiler=yes
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 ac_header_compiler=no
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12563 echo "${ECHO_T}$ac_header_compiler" >&6; }
12565 # Is the header present?
12566 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12567 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h. */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 #include <X11/Xft/Xft.h>
12575 _ACEOF
12576 if { (ac_try="$ac_cpp conftest.$ac_ext"
12577 case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12583 ac_status=$?
12584 grep -v '^ *+' conftest.er1 >conftest.err
12585 rm -f conftest.er1
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } >/dev/null && {
12589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12590 test ! -s conftest.err
12591 }; then
12592 ac_header_preproc=yes
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ac_header_preproc=no
12600 rm -f conftest.err conftest.$ac_ext
12601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 echo "${ECHO_T}$ac_header_preproc" >&6; }
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12606 yes:no: )
12607 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12608 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12610 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc=yes
12613 no:yes:* )
12614 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12615 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12617 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12619 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12621 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12623 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12625 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12628 esac
12629 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12630 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12631 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12636 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12637 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12640 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12641 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12642 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12643 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646 ac_check_lib_save_LIBS=$LIBS
12647 LIBS="-lXft $XFT_LIBS $LIBS"
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12655 /* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
12658 #ifdef __cplusplus
12659 extern "C"
12660 #endif
12661 char XftFontOpen ();
12663 main ()
12665 return XftFontOpen ();
12667 return 0;
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (ac_try="$ac_link"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_link") 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest$ac_exeext &&
12687 $as_test_x conftest$ac_exeext; then
12688 ac_cv_lib_Xft_XftFontOpen=yes
12689 else
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_cv_lib_Xft_XftFontOpen=no
12696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12697 conftest$ac_exeext conftest.$ac_ext
12698 LIBS=$ac_check_lib_save_LIBS
12700 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12701 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12702 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12703 HAVE_XFT=yes
12710 if test "${HAVE_XFT}" = "yes"; then
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_XFT 1
12714 _ACEOF
12717 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12718 else
12719 CPPFLAGS="$OLD_CPPFLAGS"
12720 CFLAGS="$OLD_CFLAGS"
12721 LIBS="$OLD_LIBS"
12726 if test "$HAVE_XFT" != "yes"; then
12727 HAVE_XFT=no
12731 HAVE_FREETYPE=no
12732 ### Use -lfreetype if available, unless `--with-freetype=no'.
12733 if test "${HAVE_XFT}" = "yes"; then
12734 HAVE_FREETYPE=yes
12735 elif test "x${with_freetype}" != "xno"; then
12736 if test "X${with_pkg_config_prog}" != X; then
12737 PKG_CONFIG="${with_pkg_config_prog}"
12741 succeeded=no
12743 # Extract the first word of "pkg-config", so it can be a program name with args.
12744 set dummy pkg-config; ac_word=$2
12745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12747 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 case $PKG_CONFIG in
12751 [\\/]* | ?:[\\/]*)
12752 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12758 IFS=$as_save_IFS
12759 test -z "$as_dir" && as_dir=.
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12762 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12764 break 2
12766 done
12767 done
12768 IFS=$as_save_IFS
12770 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12772 esac
12774 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12775 if test -n "$PKG_CONFIG"; then
12776 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12777 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12778 else
12779 { echo "$as_me:$LINENO: result: no" >&5
12780 echo "${ECHO_T}no" >&6; }
12785 if test "$PKG_CONFIG" = "no" ; then
12786 HAVE_FREETYPE=no
12787 else
12788 PKG_CONFIG_MIN_VERSION=0.9.0
12789 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12790 { echo "$as_me:$LINENO: checking for freetype2" >&5
12791 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12793 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12794 { echo "$as_me:$LINENO: result: yes" >&5
12795 echo "${ECHO_T}yes" >&6; }
12796 succeeded=yes
12798 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12799 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12800 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12801 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12802 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12804 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12805 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12806 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12807 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12808 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12809 else
12810 { echo "$as_me:$LINENO: result: no" >&5
12811 echo "${ECHO_T}no" >&6; }
12812 FREETYPE_CFLAGS=""
12813 FREETYPE_LIBS=""
12814 ## If we have a custom action on failure, don't print errors, but
12815 ## do set a variable so people can do so.
12816 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12822 else
12823 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12824 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12828 if test $succeeded = yes; then
12829 HAVE_FREETYPE=yes
12830 else
12831 HAVE_FREETYPE=no
12834 if test "${HAVE_FREETYPE}" = "yes"; then
12836 succeeded=no
12838 # Extract the first word of "pkg-config", so it can be a program name with args.
12839 set dummy pkg-config; ac_word=$2
12840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845 case $PKG_CONFIG in
12846 [\\/]* | ?:[\\/]*)
12847 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12861 done
12862 done
12863 IFS=$as_save_IFS
12865 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12867 esac
12869 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12870 if test -n "$PKG_CONFIG"; then
12871 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12872 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12873 else
12874 { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12880 if test "$PKG_CONFIG" = "no" ; then
12881 HAVE_FC=no
12882 else
12883 PKG_CONFIG_MIN_VERSION=0.9.0
12884 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12885 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12886 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12888 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12889 { echo "$as_me:$LINENO: result: yes" >&5
12890 echo "${ECHO_T}yes" >&6; }
12891 succeeded=yes
12893 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12894 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12895 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12896 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12897 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12899 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12900 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12901 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12902 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12903 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12904 else
12905 { echo "$as_me:$LINENO: result: no" >&5
12906 echo "${ECHO_T}no" >&6; }
12907 FONTCONFIG_CFLAGS=""
12908 FONTCONFIG_LIBS=""
12909 ## If we have a custom action on failure, don't print errors, but
12910 ## do set a variable so people can do so.
12911 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12917 else
12918 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12919 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12923 if test $succeeded = yes; then
12924 HAVE_FC=yes
12925 else
12926 HAVE_FC=no
12929 if test "${HAVE_FC}" = "no"; then
12930 HAVE_FREETYPE=no
12935 HAVE_LIBOTF=no
12936 if test "${HAVE_FREETYPE}" = "yes"; then
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_FREETYPE 1
12940 _ACEOF
12942 if test "${with_libotf}" != "no"; then
12943 if test "X${with_pkg_config_prog}" != X; then
12944 PKG_CONFIG="${with_pkg_config_prog}"
12947 succeeded=no
12949 # Extract the first word of "pkg-config", so it can be a program name with args.
12950 set dummy pkg-config; ac_word=$2
12951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 case $PKG_CONFIG in
12957 [\\/]* | ?:[\\/]*)
12958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12972 done
12973 done
12974 IFS=$as_save_IFS
12976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12978 esac
12980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12981 if test -n "$PKG_CONFIG"; then
12982 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12983 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12984 else
12985 { echo "$as_me:$LINENO: result: no" >&5
12986 echo "${ECHO_T}no" >&6; }
12991 if test "$PKG_CONFIG" = "no" ; then
12992 HAVE_LIBOTF=no
12993 else
12994 PKG_CONFIG_MIN_VERSION=0.9.0
12995 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12996 { echo "$as_me:$LINENO: checking for libotf" >&5
12997 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12999 if $PKG_CONFIG --exists "libotf" 2>&5; then
13000 { echo "$as_me:$LINENO: result: yes" >&5
13001 echo "${ECHO_T}yes" >&6; }
13002 succeeded=yes
13004 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13005 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13006 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13007 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13008 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13010 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13011 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13012 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13013 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13014 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13015 else
13016 { echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6; }
13018 LIBOTF_CFLAGS=""
13019 LIBOTF_LIBS=""
13020 ## If we have a custom action on failure, don't print errors, but
13021 ## do set a variable so people can do so.
13022 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13028 else
13029 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13030 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13034 if test $succeeded = yes; then
13035 HAVE_LIBOTF=yes
13036 else
13037 HAVE_LIBOTF=no
13040 if test "$HAVE_LIBOTF" = "yes"; then
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_LIBOTF 1
13044 _ACEOF
13050 HAVE_M17N_FLT=no
13051 if test "${with_m17n_flt}" != "no"; then
13052 if test "X${with_pkg_config_prog}" != X; then
13053 PKG_CONFIG="${with_pkg_config_prog}"
13056 succeeded=no
13058 # Extract the first word of "pkg-config", so it can be a program name with args.
13059 set dummy pkg-config; ac_word=$2
13060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 case $PKG_CONFIG in
13066 [\\/]* | ?:[\\/]*)
13067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13083 IFS=$as_save_IFS
13085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13087 esac
13089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13090 if test -n "$PKG_CONFIG"; then
13091 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13092 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13093 else
13094 { echo "$as_me:$LINENO: result: no" >&5
13095 echo "${ECHO_T}no" >&6; }
13100 if test "$PKG_CONFIG" = "no" ; then
13101 HAVE_M17N_FLT=no
13102 else
13103 PKG_CONFIG_MIN_VERSION=0.9.0
13104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13105 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13106 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13108 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13109 { echo "$as_me:$LINENO: result: yes" >&5
13110 echo "${ECHO_T}yes" >&6; }
13111 succeeded=yes
13113 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13114 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13115 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13116 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13117 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13119 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13120 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13121 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13122 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13123 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13124 else
13125 { echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6; }
13127 M17N_FLT_CFLAGS=""
13128 M17N_FLT_LIBS=""
13129 ## If we have a custom action on failure, don't print errors, but
13130 ## do set a variable so people can do so.
13131 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13137 else
13138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13143 if test $succeeded = yes; then
13144 HAVE_M17N_FLT=yes
13145 else
13146 HAVE_M17N_FLT=no
13149 if test "$HAVE_M17N_FLT" = "yes"; then
13151 cat >>confdefs.h <<\_ACEOF
13152 #define HAVE_M17N_FLT 1
13153 _ACEOF
13168 #### End for font-backend
13170 ### Use -lXpm if available, unless `--with-xpm=no'.
13171 HAVE_XPM=no
13172 if test "${HAVE_X11}" = "yes"; then
13173 if test "${with_xpm}" != "no"; then
13174 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13175 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13176 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13177 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13181 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13182 else
13183 # Is the header compilable?
13184 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13185 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h. */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 $ac_includes_default
13193 #include <X11/xpm.h>
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (ac_try="$ac_compile"
13197 case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_compile") 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } && {
13209 test -z "$ac_c_werror_flag" ||
13210 test ! -s conftest.err
13211 } && test -s conftest.$ac_objext; then
13212 ac_header_compiler=yes
13213 else
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13217 ac_header_compiler=no
13220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13222 echo "${ECHO_T}$ac_header_compiler" >&6; }
13224 # Is the header present?
13225 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13226 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13227 cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 #include <X11/xpm.h>
13234 _ACEOF
13235 if { (ac_try="$ac_cpp conftest.$ac_ext"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } >/dev/null && {
13248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 }; then
13251 ac_header_preproc=yes
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_header_preproc=no
13259 rm -f conftest.err conftest.$ac_ext
13260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13261 echo "${ECHO_T}$ac_header_preproc" >&6; }
13263 # So? What about this header?
13264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13265 yes:no: )
13266 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13267 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13269 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13270 ac_header_preproc=yes
13272 no:yes:* )
13273 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13274 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13276 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13277 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13278 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13284 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13287 esac
13288 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13289 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293 ac_cv_header_X11_xpm_h=$ac_header_preproc
13295 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13296 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13299 if test $ac_cv_header_X11_xpm_h = yes; then
13300 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13301 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13302 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 else
13305 ac_check_lib_save_LIBS=$LIBS
13306 LIBS="-lXpm -lX11 $LIBS"
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13314 /* Override any GCC internal prototype to avoid an error.
13315 Use char because int might match the return type of a GCC
13316 builtin and then its argument prototype would still apply. */
13317 #ifdef __cplusplus
13318 extern "C"
13319 #endif
13320 char XpmReadFileToPixmap ();
13322 main ()
13324 return XpmReadFileToPixmap ();
13326 return 0;
13328 _ACEOF
13329 rm -f conftest.$ac_objext conftest$ac_exeext
13330 if { (ac_try="$ac_link"
13331 case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334 esac
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_link") 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } && {
13343 test -z "$ac_c_werror_flag" ||
13344 test ! -s conftest.err
13345 } && test -s conftest$ac_exeext &&
13346 $as_test_x conftest$ac_exeext; then
13347 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13348 else
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13356 conftest$ac_exeext conftest.$ac_ext
13357 LIBS=$ac_check_lib_save_LIBS
13359 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13360 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13361 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13362 HAVE_XPM=yes
13368 if test "${HAVE_XPM}" = "yes"; then
13369 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13370 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 #include "X11/xpm.h"
13378 #ifndef XpmReturnAllocPixels
13379 no_return_alloc_pixels
13380 #endif
13382 _ACEOF
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13385 HAVE_XPM=no
13386 else
13387 HAVE_XPM=yes
13389 rm -f conftest*
13392 if test "${HAVE_XPM}" = "yes"; then
13393 { echo "$as_me:$LINENO: result: yes" >&5
13394 echo "${ECHO_T}yes" >&6; }
13395 else
13396 { echo "$as_me:$LINENO: result: no" >&5
13397 echo "${ECHO_T}no" >&6; }
13402 if test "${HAVE_XPM}" = "yes"; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_XPM 1
13406 _ACEOF
13411 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13412 HAVE_JPEG=no
13413 if test "${HAVE_X11}" = "yes"; then
13414 if test "${with_jpeg}" != "no"; then
13415 if test "${ac_cv_header_jerror_h+set}" = set; then
13416 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13417 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13418 if test "${ac_cv_header_jerror_h+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13422 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13423 else
13424 # Is the header compilable?
13425 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13426 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13427 cat >conftest.$ac_ext <<_ACEOF
13428 /* confdefs.h. */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13434 #include <jerror.h>
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest.$ac_objext; then
13453 ac_header_compiler=yes
13454 else
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_header_compiler=no
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13463 echo "${ECHO_T}$ac_header_compiler" >&6; }
13465 # Is the header present?
13466 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13467 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <jerror.h>
13475 _ACEOF
13476 if { (ac_try="$ac_cpp conftest.$ac_ext"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } >/dev/null && {
13489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 }; then
13492 ac_header_preproc=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_header_preproc=no
13500 rm -f conftest.err conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13502 echo "${ECHO_T}$ac_header_preproc" >&6; }
13504 # So? What about this header?
13505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13506 yes:no: )
13507 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13508 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13510 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13511 ac_header_preproc=yes
13513 no:yes:* )
13514 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13515 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13517 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13519 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13521 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13523 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13525 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13528 esac
13529 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13530 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13531 if test "${ac_cv_header_jerror_h+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534 ac_cv_header_jerror_h=$ac_header_preproc
13536 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13537 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13540 if test $ac_cv_header_jerror_h = yes; then
13541 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13542 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13543 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-ljpeg $LIBS"
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13555 /* Override any GCC internal prototype to avoid an error.
13556 Use char because int might match the return type of a GCC
13557 builtin and then its argument prototype would still apply. */
13558 #ifdef __cplusplus
13559 extern "C"
13560 #endif
13561 char jpeg_destroy_compress ();
13563 main ()
13565 return jpeg_destroy_compress ();
13567 return 0;
13569 _ACEOF
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (ac_try="$ac_link"
13572 case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575 esac
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_link") 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } && {
13584 test -z "$ac_c_werror_flag" ||
13585 test ! -s conftest.err
13586 } && test -s conftest$ac_exeext &&
13587 $as_test_x conftest$ac_exeext; then
13588 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13589 else
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13600 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13601 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13602 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13603 HAVE_JPEG=yes
13612 if test "${HAVE_JPEG}" = "yes"; then
13613 cat >>confdefs.h <<\_ACEOF
13614 #define HAVE_JPEG 1
13615 _ACEOF
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h. */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <jpeglib.h>
13624 version=JPEG_LIB_VERSION
13626 _ACEOF
13627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13628 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_JPEG 1
13631 _ACEOF
13633 else
13634 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13635 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13636 HAVE_JPEG=no
13638 rm -f conftest*
13643 ### Use -lpng if available, unless `--with-png=no'.
13644 HAVE_PNG=no
13645 if test "${HAVE_X11}" = "yes"; then
13646 if test "${with_png}" != "no"; then
13647 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13648 # in /usr/include/libpng.
13651 for ac_header in png.h libpng/png.h
13653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_res=`eval echo '${'$as_ac_Header'}'`
13661 { echo "$as_me:$LINENO: result: $ac_res" >&5
13662 echo "${ECHO_T}$ac_res" >&6; }
13663 else
13664 # Is the header compilable?
13665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13674 #include <$ac_header>
13675 _ACEOF
13676 rm -f conftest.$ac_objext
13677 if { (ac_try="$ac_compile"
13678 case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_compile") 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest.$ac_objext; then
13693 ac_header_compiler=yes
13694 else
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13698 ac_header_compiler=no
13701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13703 echo "${ECHO_T}$ac_header_compiler" >&6; }
13705 # Is the header present?
13706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 #include <$ac_header>
13715 _ACEOF
13716 if { (ac_try="$ac_cpp conftest.$ac_ext"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev/null && {
13729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 }; then
13732 ac_header_preproc=yes
13733 else
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ac_header_preproc=no
13740 rm -f conftest.err conftest.$ac_ext
13741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13742 echo "${ECHO_T}$ac_header_preproc" >&6; }
13744 # So? What about this header?
13745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 yes:no: )
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13751 ac_header_preproc=yes
13753 no:yes:* )
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13768 esac
13769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 eval "$as_ac_Header=\$ac_header_preproc"
13776 ac_res=`eval echo '${'$as_ac_Header'}'`
13777 { echo "$as_me:$LINENO: result: $ac_res" >&5
13778 echo "${ECHO_T}$ac_res" >&6; }
13781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13782 cat >>confdefs.h <<_ACEOF
13783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13784 _ACEOF
13788 done
13790 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13791 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13792 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13793 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796 ac_check_lib_save_LIBS=$LIBS
13797 LIBS="-lpng -lz -lm $LIBS"
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13808 #ifdef __cplusplus
13809 extern "C"
13810 #endif
13811 char png_get_channels ();
13813 main ()
13815 return png_get_channels ();
13817 return 0;
13819 _ACEOF
13820 rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_link") 2>conftest.er1
13828 ac_status=$?
13829 grep -v '^ *+' conftest.er1 >conftest.err
13830 rm -f conftest.er1
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } && {
13834 test -z "$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13836 } && test -s conftest$ac_exeext &&
13837 $as_test_x conftest$ac_exeext; then
13838 ac_cv_lib_png_png_get_channels=yes
13839 else
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_cv_lib_png_png_get_channels=no
13846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13847 conftest$ac_exeext conftest.$ac_ext
13848 LIBS=$ac_check_lib_save_LIBS
13850 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13851 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13852 if test $ac_cv_lib_png_png_get_channels = yes; then
13853 HAVE_PNG=yes
13859 if test "${HAVE_PNG}" = "yes"; then
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_PNG 1
13863 _ACEOF
13868 ### Use -ltiff if available, unless `--with-tiff=no'.
13869 HAVE_TIFF=no
13870 if test "${HAVE_X11}" = "yes"; then
13871 if test "${with_tiff}" != "no"; then
13872 if test "${ac_cv_header_tiffio_h+set}" = set; then
13873 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13874 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13875 if test "${ac_cv_header_tiffio_h+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13879 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13880 else
13881 # Is the header compilable?
13882 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13883 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13891 #include <tiffio.h>
13892 _ACEOF
13893 rm -f conftest.$ac_objext
13894 if { (ac_try="$ac_compile"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_compile") 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && {
13907 test -z "$ac_c_werror_flag" ||
13908 test ! -s conftest.err
13909 } && test -s conftest.$ac_objext; then
13910 ac_header_compiler=yes
13911 else
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 ac_header_compiler=no
13918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13920 echo "${ECHO_T}$ac_header_compiler" >&6; }
13922 # Is the header present?
13923 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13924 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13925 cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h. */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 #include <tiffio.h>
13932 _ACEOF
13933 if { (ac_try="$ac_cpp conftest.$ac_ext"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } >/dev/null && {
13946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 }; then
13949 ac_header_preproc=yes
13950 else
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_header_preproc=no
13957 rm -f conftest.err conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13959 echo "${ECHO_T}$ac_header_preproc" >&6; }
13961 # So? What about this header?
13962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13963 yes:no: )
13964 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13965 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13967 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13968 ac_header_preproc=yes
13970 no:yes:* )
13971 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13972 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13974 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13976 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13978 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13980 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13982 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13985 esac
13986 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13987 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13988 if test "${ac_cv_header_tiffio_h+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991 ac_cv_header_tiffio_h=$ac_header_preproc
13993 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13994 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13997 if test $ac_cv_header_tiffio_h = yes; then
13998 tifflibs="-lz -lm"
13999 # At least one tiff package requires the jpeg library.
14000 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14001 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14002 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14003 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-ltiff $tifflibs $LIBS"
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h. */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 char TIFFGetVersion ();
14023 main ()
14025 return TIFFGetVersion ();
14027 return 0;
14029 _ACEOF
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (ac_try="$ac_link"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_link") 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && {
14044 test -z "$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 } && test -s conftest$ac_exeext &&
14047 $as_test_x conftest$ac_exeext; then
14048 ac_cv_lib_tiff_TIFFGetVersion=yes
14049 else
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_cv_lib_tiff_TIFFGetVersion=no
14056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058 LIBS=$ac_check_lib_save_LIBS
14060 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14061 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14062 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14063 HAVE_TIFF=yes
14071 if test "${HAVE_TIFF}" = "yes"; then
14073 cat >>confdefs.h <<\_ACEOF
14074 #define HAVE_TIFF 1
14075 _ACEOF
14080 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14081 HAVE_GIF=no
14082 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14083 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14084 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14085 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14086 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14090 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14091 else
14092 # Is the header compilable?
14093 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14094 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h. */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 $ac_includes_default
14102 #include <gif_lib.h>
14103 _ACEOF
14104 rm -f conftest.$ac_objext
14105 if { (ac_try="$ac_compile"
14106 case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_compile") 2>conftest.er1
14112 ac_status=$?
14113 grep -v '^ *+' conftest.er1 >conftest.err
14114 rm -f conftest.er1
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } && {
14118 test -z "$ac_c_werror_flag" ||
14119 test ! -s conftest.err
14120 } && test -s conftest.$ac_objext; then
14121 ac_header_compiler=yes
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 ac_header_compiler=no
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14131 echo "${ECHO_T}$ac_header_compiler" >&6; }
14133 # Is the header present?
14134 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14135 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 #include <gif_lib.h>
14143 _ACEOF
14144 if { (ac_try="$ac_cpp conftest.$ac_ext"
14145 case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14148 esac
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev/null && {
14157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14158 test ! -s conftest.err
14159 }; then
14160 ac_header_preproc=yes
14161 else
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_header_preproc=no
14168 rm -f conftest.err conftest.$ac_ext
14169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14170 echo "${ECHO_T}$ac_header_preproc" >&6; }
14172 # So? What about this header?
14173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14174 yes:no: )
14175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14176 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14178 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14179 ac_header_preproc=yes
14181 no:yes:* )
14182 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14183 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14185 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14187 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14189 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14191 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14193 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14196 esac
14197 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14198 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14199 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202 ac_cv_header_gif_lib_h=$ac_header_preproc
14204 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14205 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14208 if test $ac_cv_header_gif_lib_h = yes; then
14209 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14210 # Earlier versions can crash Emacs.
14211 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14212 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14213 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216 ac_check_lib_save_LIBS=$LIBS
14217 LIBS="-lgif $LIBS"
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14228 #ifdef __cplusplus
14229 extern "C"
14230 #endif
14231 char EGifPutExtensionLast ();
14233 main ()
14235 return EGifPutExtensionLast ();
14237 return 0;
14239 _ACEOF
14240 rm -f conftest.$ac_objext conftest$ac_exeext
14241 if { (ac_try="$ac_link"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_link") 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 } && test -s conftest$ac_exeext &&
14257 $as_test_x conftest$ac_exeext; then
14258 ac_cv_lib_gif_EGifPutExtensionLast=yes
14259 else
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_lib_gif_EGifPutExtensionLast=no
14266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14271 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14272 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14273 HAVE_GIF=yes
14274 else
14275 try_libungif=yes
14282 if test "$HAVE_GIF" = yes; then
14283 ac_gif_lib_name="-lgif"
14286 # If gif_lib.h but no libgif, try libungif.
14287 if test x"$try_libungif" = xyes; then
14288 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14289 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14290 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lungif $LIBS"
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14302 /* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14305 #ifdef __cplusplus
14306 extern "C"
14307 #endif
14308 char EGifPutExtensionLast ();
14310 main ()
14312 return EGifPutExtensionLast ();
14314 return 0;
14316 _ACEOF
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest$ac_exeext &&
14334 $as_test_x conftest$ac_exeext; then
14335 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14336 else
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_cv_lib_ungif_EGifPutExtensionLast=no
14343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14344 conftest$ac_exeext conftest.$ac_ext
14345 LIBS=$ac_check_lib_save_LIBS
14347 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14348 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14349 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14350 HAVE_GIF=yes
14354 if test "$HAVE_GIF" = yes; then
14356 cat >>confdefs.h <<\_ACEOF
14357 #define LIBGIF -lungif
14358 _ACEOF
14360 ac_gif_lib_name="-lungif"
14364 if test "${HAVE_GIF}" = "yes"; then
14366 cat >>confdefs.h <<\_ACEOF
14367 #define HAVE_GIF 1
14368 _ACEOF
14373 if test "${HAVE_X11}" = "yes"; then
14374 MISSING=""
14375 WITH_NO=""
14376 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14377 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14378 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14379 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14380 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14381 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14382 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14383 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14384 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14385 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14387 if test "X${MISSING}" != X; then
14388 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14389 $MISSING
14390 Maybe some development libraries/packages are missing?
14391 If you don't want to link with them give
14392 $WITH_NO
14393 as options to configure" >&5
14394 echo "$as_me: error: The following required libraries were not found:
14395 $MISSING
14396 Maybe some development libraries/packages are missing?
14397 If you don't want to link with them give
14398 $WITH_NO
14399 as options to configure" >&2;}
14400 { (exit 1); exit 1; }; }
14404 ### Use -lgpm if available, unless `--with-gpm=no'.
14405 HAVE_GPM=no
14406 if test "${with_gpm}" != "no"; then
14407 if test "${ac_cv_header_gpm_h+set}" = set; then
14408 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14409 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14410 if test "${ac_cv_header_gpm_h+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14414 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14415 else
14416 # Is the header compilable?
14417 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14418 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 $ac_includes_default
14426 #include <gpm.h>
14427 _ACEOF
14428 rm -f conftest.$ac_objext
14429 if { (ac_try="$ac_compile"
14430 case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14433 esac
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_compile") 2>conftest.er1
14436 ac_status=$?
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } && {
14442 test -z "$ac_c_werror_flag" ||
14443 test ! -s conftest.err
14444 } && test -s conftest.$ac_objext; then
14445 ac_header_compiler=yes
14446 else
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 ac_header_compiler=no
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14455 echo "${ECHO_T}$ac_header_compiler" >&6; }
14457 # Is the header present?
14458 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14459 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h. */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 #include <gpm.h>
14467 _ACEOF
14468 if { (ac_try="$ac_cpp conftest.$ac_ext"
14469 case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14472 esac
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } >/dev/null && {
14481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14482 test ! -s conftest.err
14483 }; then
14484 ac_header_preproc=yes
14485 else
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ac_header_preproc=no
14492 rm -f conftest.err conftest.$ac_ext
14493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14494 echo "${ECHO_T}$ac_header_preproc" >&6; }
14496 # So? What about this header?
14497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14498 yes:no: )
14499 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14500 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14502 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14503 ac_header_preproc=yes
14505 no:yes:* )
14506 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14507 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14509 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14511 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14513 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14515 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14517 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14520 esac
14521 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14522 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14523 if test "${ac_cv_header_gpm_h+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 ac_cv_header_gpm_h=$ac_header_preproc
14528 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14529 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14532 if test $ac_cv_header_gpm_h = yes; then
14533 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14534 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14535 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538 ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-lgpm $LIBS"
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14547 /* Override any GCC internal prototype to avoid an error.
14548 Use char because int might match the return type of a GCC
14549 builtin and then its argument prototype would still apply. */
14550 #ifdef __cplusplus
14551 extern "C"
14552 #endif
14553 char Gpm_Open ();
14555 main ()
14557 return Gpm_Open ();
14559 return 0;
14561 _ACEOF
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (ac_try="$ac_link"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_link") 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } && {
14576 test -z "$ac_c_werror_flag" ||
14577 test ! -s conftest.err
14578 } && test -s conftest$ac_exeext &&
14579 $as_test_x conftest$ac_exeext; then
14580 ac_cv_lib_gpm_Gpm_Open=yes
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_cv_lib_gpm_Gpm_Open=no
14588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14589 conftest$ac_exeext conftest.$ac_ext
14590 LIBS=$ac_check_lib_save_LIBS
14592 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14593 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14594 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14595 HAVE_GPM=yes
14603 if test "${HAVE_GPM}" = "yes"; then
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_GPM 1
14607 _ACEOF
14611 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14612 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14613 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14614 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14618 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14619 else
14620 # Is the header compilable?
14621 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14622 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 $ac_includes_default
14630 #include <malloc/malloc.h>
14631 _ACEOF
14632 rm -f conftest.$ac_objext
14633 if { (ac_try="$ac_compile"
14634 case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637 esac
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_compile") 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } && {
14646 test -z "$ac_c_werror_flag" ||
14647 test ! -s conftest.err
14648 } && test -s conftest.$ac_objext; then
14649 ac_header_compiler=yes
14650 else
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_header_compiler=no
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14659 echo "${ECHO_T}$ac_header_compiler" >&6; }
14661 # Is the header present?
14662 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14663 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h. */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 #include <malloc/malloc.h>
14671 _ACEOF
14672 if { (ac_try="$ac_cpp conftest.$ac_ext"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676 esac
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev/null && {
14685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 }; then
14688 ac_header_preproc=yes
14689 else
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_header_preproc=no
14696 rm -f conftest.err conftest.$ac_ext
14697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14698 echo "${ECHO_T}$ac_header_preproc" >&6; }
14700 # So? What about this header?
14701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 yes:no: )
14703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14704 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14706 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14707 ac_header_preproc=yes
14709 no:yes:* )
14710 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14711 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14713 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14715 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14724 esac
14725 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14726 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14727 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14732 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14733 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14736 if test $ac_cv_header_malloc_malloc_h = yes; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_MALLOC_MALLOC_H 1
14740 _ACEOF
14746 ### Use Mac OS X Carbon API to implement GUI.
14747 if test "${HAVE_CARBON}" = "yes"; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_CARBON 1
14751 _ACEOF
14753 ## Specify the install directory
14754 carbon_appdir=
14755 if test "${carbon_appdir_x}" != ""; then
14756 case ${carbon_appdir_x} in
14757 y | ye | yes) carbon_appdir=/Applications ;;
14758 * ) carbon_appdir=${carbon_appdir_x} ;;
14759 esac
14761 # We also have mouse menus.
14762 HAVE_MENUS=yes
14765 ### Use session management (-lSM -lICE) if available
14766 HAVE_X_SM=no
14767 if test "${HAVE_X11}" = "yes"; then
14768 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14769 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14770 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14771 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14775 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14776 else
14777 # Is the header compilable?
14778 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14779 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14780 cat >conftest.$ac_ext <<_ACEOF
14781 /* confdefs.h. */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 $ac_includes_default
14787 #include <X11/SM/SMlib.h>
14788 _ACEOF
14789 rm -f conftest.$ac_objext
14790 if { (ac_try="$ac_compile"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_compile") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest.$ac_objext; then
14806 ac_header_compiler=yes
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 ac_header_compiler=no
14814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14816 echo "${ECHO_T}$ac_header_compiler" >&6; }
14818 # Is the header present?
14819 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14820 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14821 cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h. */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 #include <X11/SM/SMlib.h>
14828 _ACEOF
14829 if { (ac_try="$ac_cpp conftest.$ac_ext"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833 esac
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } >/dev/null && {
14842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 }; then
14845 ac_header_preproc=yes
14846 else
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_header_preproc=no
14853 rm -f conftest.err conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14855 echo "${ECHO_T}$ac_header_preproc" >&6; }
14857 # So? What about this header?
14858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14859 yes:no: )
14860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14861 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14863 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14864 ac_header_preproc=yes
14866 no:yes:* )
14867 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14868 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14870 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14872 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14881 esac
14882 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14883 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14884 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14889 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14890 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14893 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14894 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14895 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14896 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 else
14899 ac_check_lib_save_LIBS=$LIBS
14900 LIBS="-lSM -lICE $LIBS"
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14908 /* Override any GCC internal prototype to avoid an error.
14909 Use char because int might match the return type of a GCC
14910 builtin and then its argument prototype would still apply. */
14911 #ifdef __cplusplus
14912 extern "C"
14913 #endif
14914 char SmcOpenConnection ();
14916 main ()
14918 return SmcOpenConnection ();
14920 return 0;
14922 _ACEOF
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (ac_try="$ac_link"
14925 case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14928 esac
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_link") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } && {
14937 test -z "$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 } && test -s conftest$ac_exeext &&
14940 $as_test_x conftest$ac_exeext; then
14941 ac_cv_lib_SM_SmcOpenConnection=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_lib_SM_SmcOpenConnection=no
14949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14950 conftest$ac_exeext conftest.$ac_ext
14951 LIBS=$ac_check_lib_save_LIBS
14953 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14954 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14955 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14956 HAVE_X_SM=yes
14963 if test "${HAVE_X_SM}" = "yes"; then
14965 cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_X_SM 1
14967 _ACEOF
14969 case "$LIBS" in
14970 *-lSM*) ;;
14971 *) LIBS="-lSM -lICE $LIBS" ;;
14972 esac
14976 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14977 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14978 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14979 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h. */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 #include <netdb.h>
14990 main ()
14992 return h_errno;
14994 return 0;
14996 _ACEOF
14997 rm -f conftest.$ac_objext conftest$ac_exeext
14998 if { (ac_try="$ac_link"
14999 case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_link") 2>conftest.er1
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } && {
15011 test -z "$ac_c_werror_flag" ||
15012 test ! -s conftest.err
15013 } && test -s conftest$ac_exeext &&
15014 $as_test_x conftest$ac_exeext; then
15015 emacs_cv_netdb_declares_h_errno=yes
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 emacs_cv_netdb_declares_h_errno=no
15023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024 conftest$ac_exeext conftest.$ac_ext
15026 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15027 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15028 if test $emacs_cv_netdb_declares_h_errno = yes; then
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_H_ERRNO 1
15032 _ACEOF
15036 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15037 # for constant arguments. Useless!
15038 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15039 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15040 if test "${ac_cv_working_alloca_h+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 #include <alloca.h>
15051 main ()
15053 char *p = (char *) alloca (2 * sizeof (int));
15054 if (p) return 0;
15056 return 0;
15058 _ACEOF
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_link") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest$ac_exeext &&
15076 $as_test_x conftest$ac_exeext; then
15077 ac_cv_working_alloca_h=yes
15078 else
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_cv_working_alloca_h=no
15085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15086 conftest$ac_exeext conftest.$ac_ext
15088 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15089 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15090 if test $ac_cv_working_alloca_h = yes; then
15092 cat >>confdefs.h <<\_ACEOF
15093 #define HAVE_ALLOCA_H 1
15094 _ACEOF
15098 { echo "$as_me:$LINENO: checking for alloca" >&5
15099 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15100 if test "${ac_cv_func_alloca_works+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #ifdef __GNUC__
15110 # define alloca __builtin_alloca
15111 #else
15112 # ifdef _MSC_VER
15113 # include <malloc.h>
15114 # define alloca _alloca
15115 # else
15116 # ifdef HAVE_ALLOCA_H
15117 # include <alloca.h>
15118 # else
15119 # ifdef _AIX
15120 #pragma alloca
15121 # else
15122 # ifndef alloca /* predefined by HP cc +Olibcalls */
15123 char *alloca ();
15124 # endif
15125 # endif
15126 # endif
15127 # endif
15128 #endif
15131 main ()
15133 char *p = (char *) alloca (1);
15134 if (p) return 0;
15136 return 0;
15138 _ACEOF
15139 rm -f conftest.$ac_objext conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_c_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext &&
15156 $as_test_x conftest$ac_exeext; then
15157 ac_cv_func_alloca_works=yes
15158 else
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 ac_cv_func_alloca_works=no
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166 conftest$ac_exeext conftest.$ac_ext
15168 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15169 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15171 if test $ac_cv_func_alloca_works = yes; then
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_ALLOCA 1
15175 _ACEOF
15177 else
15178 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15179 # that cause trouble. Some versions do not even contain alloca or
15180 # contain a buggy version. If you still want to use their alloca,
15181 # use ar to extract alloca.o from them instead of compiling alloca.c.
15183 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15185 cat >>confdefs.h <<\_ACEOF
15186 #define C_ALLOCA 1
15187 _ACEOF
15190 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15191 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15192 if test "${ac_cv_os_cray+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h. */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 #if defined CRAY && ! defined CRAY2
15202 webecray
15203 #else
15204 wenotbecray
15205 #endif
15207 _ACEOF
15208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15209 $EGREP "webecray" >/dev/null 2>&1; then
15210 ac_cv_os_cray=yes
15211 else
15212 ac_cv_os_cray=no
15214 rm -f conftest*
15217 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15218 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15219 if test $ac_cv_os_cray = yes; then
15220 for ac_func in _getb67 GETB67 getb67; do
15221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15235 #define $ac_func innocuous_$ac_func
15237 /* System header to define __stub macros and hopefully few prototypes,
15238 which can conflict with char $ac_func (); below.
15239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15240 <limits.h> exists even on freestanding compilers. */
15242 #ifdef __STDC__
15243 # include <limits.h>
15244 #else
15245 # include <assert.h>
15246 #endif
15248 #undef $ac_func
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply. */
15253 #ifdef __cplusplus
15254 extern "C"
15255 #endif
15256 char $ac_func ();
15257 /* The GNU C library defines this for functions which it implements
15258 to always fail with ENOSYS. Some functions are actually named
15259 something starting with __ and the normal name is an alias. */
15260 #if defined __stub_$ac_func || defined __stub___$ac_func
15261 choke me
15262 #endif
15265 main ()
15267 return $ac_func ();
15269 return 0;
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 eval "$as_ac_var=yes"
15291 else
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 eval "$as_ac_var=no"
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15301 ac_res=`eval echo '${'$as_ac_var'}'`
15302 { echo "$as_me:$LINENO: result: $ac_res" >&5
15303 echo "${ECHO_T}$ac_res" >&6; }
15304 if test `eval echo '${'$as_ac_var'}'` = yes; then
15306 cat >>confdefs.h <<_ACEOF
15307 #define CRAY_STACKSEG_END $ac_func
15308 _ACEOF
15310 break
15313 done
15316 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15317 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15318 if test "${ac_cv_c_stack_direction+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 else
15321 if test "$cross_compiling" = yes; then
15322 ac_cv_c_stack_direction=0
15323 else
15324 cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h. */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 $ac_includes_default
15332 find_stack_direction ()
15334 static char *addr = 0;
15335 auto char dummy;
15336 if (addr == 0)
15338 addr = &dummy;
15339 return find_stack_direction ();
15341 else
15342 return (&dummy > addr) ? 1 : -1;
15346 main ()
15348 return find_stack_direction () < 0;
15350 _ACEOF
15351 rm -f conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_c_stack_direction=1
15372 else
15373 echo "$as_me: program exited with status $ac_status" >&5
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ( exit $ac_status )
15378 ac_cv_c_stack_direction=-1
15380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15385 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15386 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15388 cat >>confdefs.h <<_ACEOF
15389 #define STACK_DIRECTION $ac_cv_c_stack_direction
15390 _ACEOF
15396 if test x"$ac_cv_func_alloca_works" != xyes; then
15397 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15398 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15399 { (exit 1); exit 1; }; }
15402 # fmod, logb, and frexp are found in -lm on most systems.
15403 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15405 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15406 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15407 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410 ac_check_lib_save_LIBS=$LIBS
15411 LIBS="-lm $LIBS"
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15419 /* Override any GCC internal prototype to avoid an error.
15420 Use char because int might match the return type of a GCC
15421 builtin and then its argument prototype would still apply. */
15422 #ifdef __cplusplus
15423 extern "C"
15424 #endif
15425 char sqrt ();
15427 main ()
15429 return sqrt ();
15431 return 0;
15433 _ACEOF
15434 rm -f conftest.$ac_objext conftest$ac_exeext
15435 if { (ac_try="$ac_link"
15436 case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_link") 2>conftest.er1
15442 ac_status=$?
15443 grep -v '^ *+' conftest.er1 >conftest.err
15444 rm -f conftest.er1
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } && {
15448 test -z "$ac_c_werror_flag" ||
15449 test ! -s conftest.err
15450 } && test -s conftest$ac_exeext &&
15451 $as_test_x conftest$ac_exeext; then
15452 ac_cv_lib_m_sqrt=yes
15453 else
15454 echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15457 ac_cv_lib_m_sqrt=no
15460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15461 conftest$ac_exeext conftest.$ac_ext
15462 LIBS=$ac_check_lib_save_LIBS
15464 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15465 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15466 if test $ac_cv_lib_m_sqrt = yes; then
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_LIBM 1
15469 _ACEOF
15471 LIBS="-lm $LIBS"
15476 # Check for mail-locking functions in a "mail" library. Probably this should
15477 # have the same check as for liblockfile below.
15479 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15480 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15481 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484 ac_check_lib_save_LIBS=$LIBS
15485 LIBS="-lmail $LIBS"
15486 cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h. */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15493 /* Override any GCC internal prototype to avoid an error.
15494 Use char because int might match the return type of a GCC
15495 builtin and then its argument prototype would still apply. */
15496 #ifdef __cplusplus
15497 extern "C"
15498 #endif
15499 char maillock ();
15501 main ()
15503 return maillock ();
15505 return 0;
15507 _ACEOF
15508 rm -f conftest.$ac_objext conftest$ac_exeext
15509 if { (ac_try="$ac_link"
15510 case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_link") 2>conftest.er1
15516 ac_status=$?
15517 grep -v '^ *+' conftest.er1 >conftest.err
15518 rm -f conftest.er1
15519 cat conftest.err >&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } && {
15522 test -z "$ac_c_werror_flag" ||
15523 test ! -s conftest.err
15524 } && test -s conftest$ac_exeext &&
15525 $as_test_x conftest$ac_exeext; then
15526 ac_cv_lib_mail_maillock=yes
15527 else
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_cv_lib_mail_maillock=no
15534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15535 conftest$ac_exeext conftest.$ac_ext
15536 LIBS=$ac_check_lib_save_LIBS
15538 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15539 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15540 if test $ac_cv_lib_mail_maillock = yes; then
15541 cat >>confdefs.h <<_ACEOF
15542 #define HAVE_LIBMAIL 1
15543 _ACEOF
15545 LIBS="-lmail $LIBS"
15550 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15551 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15552 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555 ac_check_lib_save_LIBS=$LIBS
15556 LIBS="-llockfile $LIBS"
15557 cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h. */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15564 /* Override any GCC internal prototype to avoid an error.
15565 Use char because int might match the return type of a GCC
15566 builtin and then its argument prototype would still apply. */
15567 #ifdef __cplusplus
15568 extern "C"
15569 #endif
15570 char maillock ();
15572 main ()
15574 return maillock ();
15576 return 0;
15578 _ACEOF
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (ac_try="$ac_link"
15581 case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15584 esac
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_link") 2>conftest.er1
15587 ac_status=$?
15588 grep -v '^ *+' conftest.er1 >conftest.err
15589 rm -f conftest.er1
15590 cat conftest.err >&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } && {
15593 test -z "$ac_c_werror_flag" ||
15594 test ! -s conftest.err
15595 } && test -s conftest$ac_exeext &&
15596 $as_test_x conftest$ac_exeext; then
15597 ac_cv_lib_lockfile_maillock=yes
15598 else
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_cv_lib_lockfile_maillock=no
15605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15606 conftest$ac_exeext conftest.$ac_ext
15607 LIBS=$ac_check_lib_save_LIBS
15609 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15610 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15611 if test $ac_cv_lib_lockfile_maillock = yes; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define HAVE_LIBLOCKFILE 1
15614 _ACEOF
15616 LIBS="-llockfile $LIBS"
15620 # If we have the shared liblockfile, assume we must use it for mail
15621 # locking (e.g. Debian). If we couldn't link against liblockfile
15622 # (no liblockfile.a installed), ensure that we don't need to.
15623 if test "$ac_cv_lib_lockfile_maillock" = no; then
15624 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15625 set dummy liblockfile.so; ac_word=$2
15626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15628 if test "${ac_cv_prog_liblockfile+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 if test -n "$liblockfile"; then
15632 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15633 else
15634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15635 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15636 for as_dir in $as_dummy
15638 IFS=$as_save_IFS
15639 test -z "$as_dir" && as_dir=.
15640 for ac_exec_ext in '' $ac_executable_extensions; do
15641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15642 ac_cv_prog_liblockfile="yes"
15643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15644 break 2
15646 done
15647 done
15648 IFS=$as_save_IFS
15650 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15653 liblockfile=$ac_cv_prog_liblockfile
15654 if test -n "$liblockfile"; then
15655 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15656 echo "${ECHO_T}$liblockfile" >&6; }
15657 else
15658 { echo "$as_me:$LINENO: result: no" >&5
15659 echo "${ECHO_T}no" >&6; }
15663 if test $ac_cv_prog_liblockfile = yes; then
15664 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15665 This probably means that movemail could lose mail.
15666 There may be a \`development' package to install containing liblockfile." >&5
15667 echo "$as_me: error: Shared liblockfile found but can't link against it.
15668 This probably means that movemail could lose mail.
15669 There may be a \`development' package to install containing liblockfile." >&2;}
15670 { (exit 1); exit 1; }; }
15671 else :
15675 for ac_func in touchlock
15677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h. */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15691 #define $ac_func innocuous_$ac_func
15693 /* System header to define __stub macros and hopefully few prototypes,
15694 which can conflict with char $ac_func (); below.
15695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15696 <limits.h> exists even on freestanding compilers. */
15698 #ifdef __STDC__
15699 # include <limits.h>
15700 #else
15701 # include <assert.h>
15702 #endif
15704 #undef $ac_func
15706 /* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15709 #ifdef __cplusplus
15710 extern "C"
15711 #endif
15712 char $ac_func ();
15713 /* The GNU C library defines this for functions which it implements
15714 to always fail with ENOSYS. Some functions are actually named
15715 something starting with __ and the normal name is an alias. */
15716 #if defined __stub_$ac_func || defined __stub___$ac_func
15717 choke me
15718 #endif
15721 main ()
15723 return $ac_func ();
15725 return 0;
15727 _ACEOF
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (ac_try="$ac_link"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_link") 2>conftest.er1
15736 ac_status=$?
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } && {
15742 test -z "$ac_c_werror_flag" ||
15743 test ! -s conftest.err
15744 } && test -s conftest$ac_exeext &&
15745 $as_test_x conftest$ac_exeext; then
15746 eval "$as_ac_var=yes"
15747 else
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 eval "$as_ac_var=no"
15754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755 conftest$ac_exeext conftest.$ac_ext
15757 ac_res=`eval echo '${'$as_ac_var'}'`
15758 { echo "$as_me:$LINENO: result: $ac_res" >&5
15759 echo "${ECHO_T}$ac_res" >&6; }
15760 if test `eval echo '${'$as_ac_var'}'` = yes; then
15761 cat >>confdefs.h <<_ACEOF
15762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15763 _ACEOF
15766 done
15769 for ac_header in maillock.h
15771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 ac_res=`eval echo '${'$as_ac_Header'}'`
15779 { echo "$as_me:$LINENO: result: $ac_res" >&5
15780 echo "${ECHO_T}$ac_res" >&6; }
15781 else
15782 # Is the header compilable?
15783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15785 cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h. */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 $ac_includes_default
15792 #include <$ac_header>
15793 _ACEOF
15794 rm -f conftest.$ac_objext
15795 if { (ac_try="$ac_compile"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_compile") 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } && {
15808 test -z "$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 } && test -s conftest.$ac_objext; then
15811 ac_header_compiler=yes
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_header_compiler=no
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15821 echo "${ECHO_T}$ac_header_compiler" >&6; }
15823 # Is the header present?
15824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 #include <$ac_header>
15833 _ACEOF
15834 if { (ac_try="$ac_cpp conftest.$ac_ext"
15835 case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15838 esac
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15841 ac_status=$?
15842 grep -v '^ *+' conftest.er1 >conftest.err
15843 rm -f conftest.er1
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } >/dev/null && {
15847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15848 test ! -s conftest.err
15849 }; then
15850 ac_header_preproc=yes
15851 else
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_preproc=no
15858 rm -f conftest.err conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15860 echo "${ECHO_T}$ac_header_preproc" >&6; }
15862 # So? What about this header?
15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15864 yes:no: )
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15869 ac_header_preproc=yes
15871 no:yes:* )
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15886 esac
15887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 eval "$as_ac_Header=\$ac_header_preproc"
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900 cat >>confdefs.h <<_ACEOF
15901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15902 _ACEOF
15906 done
15977 for ac_func in gethostname getdomainname dup2 \
15978 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15979 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15980 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15981 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15982 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15983 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15984 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15985 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h. */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16001 #define $ac_func innocuous_$ac_func
16003 /* System header to define __stub macros and hopefully few prototypes,
16004 which can conflict with char $ac_func (); below.
16005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16006 <limits.h> exists even on freestanding compilers. */
16008 #ifdef __STDC__
16009 # include <limits.h>
16010 #else
16011 # include <assert.h>
16012 #endif
16014 #undef $ac_func
16016 /* Override any GCC internal prototype to avoid an error.
16017 Use char because int might match the return type of a GCC
16018 builtin and then its argument prototype would still apply. */
16019 #ifdef __cplusplus
16020 extern "C"
16021 #endif
16022 char $ac_func ();
16023 /* The GNU C library defines this for functions which it implements
16024 to always fail with ENOSYS. Some functions are actually named
16025 something starting with __ and the normal name is an alias. */
16026 #if defined __stub_$ac_func || defined __stub___$ac_func
16027 choke me
16028 #endif
16031 main ()
16033 return $ac_func ();
16035 return 0;
16037 _ACEOF
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (ac_try="$ac_link"
16040 case "(($ac_try" in
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16043 esac
16044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045 (eval "$ac_link") 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } && {
16052 test -z "$ac_c_werror_flag" ||
16053 test ! -s conftest.err
16054 } && test -s conftest$ac_exeext &&
16055 $as_test_x conftest$ac_exeext; then
16056 eval "$as_ac_var=yes"
16057 else
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 eval "$as_ac_var=no"
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065 conftest$ac_exeext conftest.$ac_ext
16067 ac_res=`eval echo '${'$as_ac_var'}'`
16068 { echo "$as_me:$LINENO: result: $ac_res" >&5
16069 echo "${ECHO_T}$ac_res" >&6; }
16070 if test `eval echo '${'$as_ac_var'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16073 _ACEOF
16076 done
16080 for ac_header in sys/un.h
16082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 ac_res=`eval echo '${'$as_ac_Header'}'`
16090 { echo "$as_me:$LINENO: result: $ac_res" >&5
16091 echo "${ECHO_T}$ac_res" >&6; }
16092 else
16093 # Is the header compilable?
16094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16096 cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h. */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 $ac_includes_default
16103 #include <$ac_header>
16104 _ACEOF
16105 rm -f conftest.$ac_objext
16106 if { (ac_try="$ac_compile"
16107 case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_compile") 2>conftest.er1
16113 ac_status=$?
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } && {
16119 test -z "$ac_c_werror_flag" ||
16120 test ! -s conftest.err
16121 } && test -s conftest.$ac_objext; then
16122 ac_header_compiler=yes
16123 else
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_header_compiler=no
16130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16132 echo "${ECHO_T}$ac_header_compiler" >&6; }
16134 # Is the header present?
16135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16137 cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h. */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 #include <$ac_header>
16144 _ACEOF
16145 if { (ac_try="$ac_cpp conftest.$ac_ext"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } >/dev/null && {
16158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16160 }; then
16161 ac_header_preproc=yes
16162 else
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ac_header_preproc=no
16169 rm -f conftest.err conftest.$ac_ext
16170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16171 echo "${ECHO_T}$ac_header_preproc" >&6; }
16173 # So? What about this header?
16174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16175 yes:no: )
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16180 ac_header_preproc=yes
16182 no:yes:* )
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16197 esac
16198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203 eval "$as_ac_Header=\$ac_header_preproc"
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16211 cat >>confdefs.h <<_ACEOF
16212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16213 _ACEOF
16217 done
16224 for ac_header in $ac_header_list
16226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 ac_res=`eval echo '${'$as_ac_Header'}'`
16234 { echo "$as_me:$LINENO: result: $ac_res" >&5
16235 echo "${ECHO_T}$ac_res" >&6; }
16236 else
16237 # Is the header compilable?
16238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16240 cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h. */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 $ac_includes_default
16247 #include <$ac_header>
16248 _ACEOF
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest.$ac_objext; then
16266 ac_header_compiler=yes
16267 else
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 ac_header_compiler=no
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16276 echo "${ECHO_T}$ac_header_compiler" >&6; }
16278 # Is the header present?
16279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 #include <$ac_header>
16288 _ACEOF
16289 if { (ac_try="$ac_cpp conftest.$ac_ext"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } >/dev/null && {
16302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16303 test ! -s conftest.err
16304 }; then
16305 ac_header_preproc=yes
16306 else
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_header_preproc=no
16313 rm -f conftest.err conftest.$ac_ext
16314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16315 echo "${ECHO_T}$ac_header_preproc" >&6; }
16317 # So? What about this header?
16318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16319 yes:no: )
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16324 ac_header_preproc=yes
16326 no:yes:* )
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16341 esac
16342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347 eval "$as_ac_Header=\$ac_header_preproc"
16349 ac_res=`eval echo '${'$as_ac_Header'}'`
16350 { echo "$as_me:$LINENO: result: $ac_res" >&5
16351 echo "${ECHO_T}$ac_res" >&6; }
16354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16357 _ACEOF
16361 done
16371 for ac_func in $ac_func_list
16373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16387 #define $ac_func innocuous_$ac_func
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char $ac_func (); below.
16391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16392 <limits.h> exists even on freestanding compilers. */
16394 #ifdef __STDC__
16395 # include <limits.h>
16396 #else
16397 # include <assert.h>
16398 #endif
16400 #undef $ac_func
16402 /* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16405 #ifdef __cplusplus
16406 extern "C"
16407 #endif
16408 char $ac_func ();
16409 /* The GNU C library defines this for functions which it implements
16410 to always fail with ENOSYS. Some functions are actually named
16411 something starting with __ and the normal name is an alias. */
16412 #if defined __stub_$ac_func || defined __stub___$ac_func
16413 choke me
16414 #endif
16417 main ()
16419 return $ac_func ();
16421 return 0;
16423 _ACEOF
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (ac_try="$ac_link"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_link") 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest$ac_exeext &&
16441 $as_test_x conftest$ac_exeext; then
16442 eval "$as_ac_var=yes"
16443 else
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 eval "$as_ac_var=no"
16450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16451 conftest$ac_exeext conftest.$ac_ext
16453 ac_res=`eval echo '${'$as_ac_var'}'`
16454 { echo "$as_me:$LINENO: result: $ac_res" >&5
16455 echo "${ECHO_T}$ac_res" >&6; }
16456 if test `eval echo '${'$as_ac_var'}'` = yes; then
16457 cat >>confdefs.h <<_ACEOF
16458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16459 _ACEOF
16462 done
16480 { echo "$as_me:$LINENO: checking for working mktime" >&5
16481 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16482 if test "${ac_cv_func_working_mktime+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485 if test "$cross_compiling" = yes; then
16486 ac_cv_func_working_mktime=no
16487 else
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h. */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 /* Test program from Paul Eggert and Tony Leneis. */
16495 #ifdef TIME_WITH_SYS_TIME
16496 # include <sys/time.h>
16497 # include <time.h>
16498 #else
16499 # ifdef HAVE_SYS_TIME_H
16500 # include <sys/time.h>
16501 # else
16502 # include <time.h>
16503 # endif
16504 #endif
16506 #include <stdlib.h>
16508 #ifdef HAVE_UNISTD_H
16509 # include <unistd.h>
16510 #endif
16512 #ifndef HAVE_ALARM
16513 # define alarm(X) /* empty */
16514 #endif
16516 /* Work around redefinition to rpl_putenv by other config tests. */
16517 #undef putenv
16519 static time_t time_t_max;
16520 static time_t time_t_min;
16522 /* Values we'll use to set the TZ environment variable. */
16523 static char *tz_strings[] = {
16524 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16525 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16527 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16529 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16530 Based on a problem report from Andreas Jaeger. */
16531 static int
16532 spring_forward_gap ()
16534 /* glibc (up to about 1998-10-07) failed this test. */
16535 struct tm tm;
16537 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16538 instead of "TZ=America/Vancouver" in order to detect the bug even
16539 on systems that don't support the Olson extension, or don't have the
16540 full zoneinfo tables installed. */
16541 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16543 tm.tm_year = 98;
16544 tm.tm_mon = 3;
16545 tm.tm_mday = 5;
16546 tm.tm_hour = 2;
16547 tm.tm_min = 0;
16548 tm.tm_sec = 0;
16549 tm.tm_isdst = -1;
16550 return mktime (&tm) != (time_t) -1;
16553 static int
16554 mktime_test1 (now)
16555 time_t now;
16557 struct tm *lt;
16558 return ! (lt = localtime (&now)) || mktime (lt) == now;
16561 static int
16562 mktime_test (now)
16563 time_t now;
16565 return (mktime_test1 (now)
16566 && mktime_test1 ((time_t) (time_t_max - now))
16567 && mktime_test1 ((time_t) (time_t_min + now)));
16570 static int
16571 irix_6_4_bug ()
16573 /* Based on code from Ariel Faigon. */
16574 struct tm tm;
16575 tm.tm_year = 96;
16576 tm.tm_mon = 3;
16577 tm.tm_mday = 0;
16578 tm.tm_hour = 0;
16579 tm.tm_min = 0;
16580 tm.tm_sec = 0;
16581 tm.tm_isdst = -1;
16582 mktime (&tm);
16583 return tm.tm_mon == 2 && tm.tm_mday == 31;
16586 static int
16587 bigtime_test (j)
16588 int j;
16590 struct tm tm;
16591 time_t now;
16592 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16593 now = mktime (&tm);
16594 if (now != (time_t) -1)
16596 struct tm *lt = localtime (&now);
16597 if (! (lt
16598 && lt->tm_year == tm.tm_year
16599 && lt->tm_mon == tm.tm_mon
16600 && lt->tm_mday == tm.tm_mday
16601 && lt->tm_hour == tm.tm_hour
16602 && lt->tm_min == tm.tm_min
16603 && lt->tm_sec == tm.tm_sec
16604 && lt->tm_yday == tm.tm_yday
16605 && lt->tm_wday == tm.tm_wday
16606 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16607 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16608 return 0;
16610 return 1;
16613 static int
16614 year_2050_test ()
16616 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16617 ignoring leap seconds. */
16618 unsigned long int answer = 2527315200UL;
16620 struct tm tm;
16621 time_t t;
16622 tm.tm_year = 2050 - 1900;
16623 tm.tm_mon = 2 - 1;
16624 tm.tm_mday = 1;
16625 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16626 tm.tm_isdst = -1;
16628 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16629 instead of "TZ=America/Vancouver" in order to detect the bug even
16630 on systems that don't support the Olson extension, or don't have the
16631 full zoneinfo tables installed. */
16632 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16634 t = mktime (&tm);
16636 /* Check that the result is either a failure, or close enough
16637 to the correct answer that we can assume the discrepancy is
16638 due to leap seconds. */
16639 return (t == (time_t) -1
16640 || (0 < t && answer - 120 <= t && t <= answer + 120));
16644 main ()
16646 time_t t, delta;
16647 int i, j;
16649 /* This test makes some buggy mktime implementations loop.
16650 Give up after 60 seconds; a mktime slower than that
16651 isn't worth using anyway. */
16652 alarm (60);
16654 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16655 continue;
16656 time_t_max--;
16657 if ((time_t) -1 < 0)
16658 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16659 continue;
16660 delta = time_t_max / 997; /* a suitable prime number */
16661 for (i = 0; i < N_STRINGS; i++)
16663 if (tz_strings[i])
16664 putenv (tz_strings[i]);
16666 for (t = 0; t <= time_t_max - delta; t += delta)
16667 if (! mktime_test (t))
16668 return 1;
16669 if (! (mktime_test ((time_t) 1)
16670 && mktime_test ((time_t) (60 * 60))
16671 && mktime_test ((time_t) (60 * 60 * 24))))
16672 return 1;
16674 for (j = 1; 0 < j; j *= 2)
16675 if (! bigtime_test (j))
16676 return 1;
16677 if (! bigtime_test (j - 1))
16678 return 1;
16680 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16682 _ACEOF
16683 rm -f conftest$ac_exeext
16684 if { (ac_try="$ac_link"
16685 case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_link") 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_func_working_mktime=yes
16704 else
16705 echo "$as_me: program exited with status $ac_status" >&5
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ( exit $ac_status )
16710 ac_cv_func_working_mktime=no
16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16717 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16718 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16719 if test $ac_cv_func_working_mktime = no; then
16720 case " $LIBOBJS " in
16721 *" mktime.$ac_objext "* ) ;;
16722 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16724 esac
16728 if test "$ac_cv_func_working_mktime" = no; then
16730 cat >>confdefs.h <<\_ACEOF
16731 #define BROKEN_MKTIME 1
16732 _ACEOF
16736 ac_have_func=no # yes means we've found a way to get the load average.
16738 # Make sure getloadavg.c is where it belongs, at configure-time.
16739 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16740 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16741 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16742 { (exit 1); exit 1; }; }
16744 ac_save_LIBS=$LIBS
16746 # Check for getloadavg, but be sure not to touch the cache variable.
16747 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16748 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16749 if test "${ac_cv_func_getloadavg+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h. */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define getloadavg innocuous_getloadavg
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char getloadavg (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16767 #ifdef __STDC__
16768 # include <limits.h>
16769 #else
16770 # include <assert.h>
16771 #endif
16773 #undef getloadavg
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 char getloadavg ();
16782 /* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785 #if defined __stub_getloadavg || defined __stub___getloadavg
16786 choke me
16787 #endif
16790 main ()
16792 return getloadavg ();
16794 return 0;
16796 _ACEOF
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_link") 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest$ac_exeext &&
16814 $as_test_x conftest$ac_exeext; then
16815 ac_cv_func_getloadavg=yes
16816 else
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_cv_func_getloadavg=no
16823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16824 conftest$ac_exeext conftest.$ac_ext
16826 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16827 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16828 if test $ac_cv_func_getloadavg = yes; then
16829 exit 0
16830 else
16831 exit 1
16833 ) && ac_have_func=yes
16835 # On HPUX9, an unprivileged user can get load averages through this function.
16837 for ac_func in pstat_getdynamic
16839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845 cat >conftest.$ac_ext <<_ACEOF
16846 /* confdefs.h. */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16853 #define $ac_func innocuous_$ac_func
16855 /* System header to define __stub macros and hopefully few prototypes,
16856 which can conflict with char $ac_func (); below.
16857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16858 <limits.h> exists even on freestanding compilers. */
16860 #ifdef __STDC__
16861 # include <limits.h>
16862 #else
16863 # include <assert.h>
16864 #endif
16866 #undef $ac_func
16868 /* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16871 #ifdef __cplusplus
16872 extern "C"
16873 #endif
16874 char $ac_func ();
16875 /* The GNU C library defines this for functions which it implements
16876 to always fail with ENOSYS. Some functions are actually named
16877 something starting with __ and the normal name is an alias. */
16878 #if defined __stub_$ac_func || defined __stub___$ac_func
16879 choke me
16880 #endif
16883 main ()
16885 return $ac_func ();
16887 return 0;
16889 _ACEOF
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
16898 ac_status=$?
16899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } && {
16904 test -z "$ac_c_werror_flag" ||
16905 test ! -s conftest.err
16906 } && test -s conftest$ac_exeext &&
16907 $as_test_x conftest$ac_exeext; then
16908 eval "$as_ac_var=yes"
16909 else
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 eval "$as_ac_var=no"
16916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16917 conftest$ac_exeext conftest.$ac_ext
16919 ac_res=`eval echo '${'$as_ac_var'}'`
16920 { echo "$as_me:$LINENO: result: $ac_res" >&5
16921 echo "${ECHO_T}$ac_res" >&6; }
16922 if test `eval echo '${'$as_ac_var'}'` = yes; then
16923 cat >>confdefs.h <<_ACEOF
16924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16925 _ACEOF
16928 done
16931 # Solaris has libkstat which does not require root.
16933 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16934 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16935 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 ac_check_lib_save_LIBS=$LIBS
16939 LIBS="-lkstat $LIBS"
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h. */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16947 /* Override any GCC internal prototype to avoid an error.
16948 Use char because int might match the return type of a GCC
16949 builtin and then its argument prototype would still apply. */
16950 #ifdef __cplusplus
16951 extern "C"
16952 #endif
16953 char kstat_open ();
16955 main ()
16957 return kstat_open ();
16959 return 0;
16961 _ACEOF
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (ac_try="$ac_link"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_link") 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest$ac_exeext &&
16979 $as_test_x conftest$ac_exeext; then
16980 ac_cv_lib_kstat_kstat_open=yes
16981 else
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_lib_kstat_kstat_open=no
16988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16989 conftest$ac_exeext conftest.$ac_ext
16990 LIBS=$ac_check_lib_save_LIBS
16992 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16993 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16994 if test $ac_cv_lib_kstat_kstat_open = yes; then
16995 cat >>confdefs.h <<_ACEOF
16996 #define HAVE_LIBKSTAT 1
16997 _ACEOF
16999 LIBS="-lkstat $LIBS"
17003 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17005 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17006 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17007 # to get the right answer into the cache.
17008 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17009 if test $ac_have_func = no; then
17010 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17011 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17012 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015 ac_check_lib_save_LIBS=$LIBS
17016 LIBS="-lelf $LIBS"
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17024 /* Override any GCC internal prototype to avoid an error.
17025 Use char because int might match the return type of a GCC
17026 builtin and then its argument prototype would still apply. */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 char elf_begin ();
17032 main ()
17034 return elf_begin ();
17036 return 0;
17038 _ACEOF
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_link") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest$ac_exeext &&
17056 $as_test_x conftest$ac_exeext; then
17057 ac_cv_lib_elf_elf_begin=yes
17058 else
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 ac_cv_lib_elf_elf_begin=no
17065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17066 conftest$ac_exeext conftest.$ac_ext
17067 LIBS=$ac_check_lib_save_LIBS
17069 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17070 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17071 if test $ac_cv_lib_elf_elf_begin = yes; then
17072 LIBS="-lelf $LIBS"
17076 if test $ac_have_func = no; then
17077 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17078 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17079 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082 ac_check_lib_save_LIBS=$LIBS
17083 LIBS="-lkvm $LIBS"
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h. */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17091 /* Override any GCC internal prototype to avoid an error.
17092 Use char because int might match the return type of a GCC
17093 builtin and then its argument prototype would still apply. */
17094 #ifdef __cplusplus
17095 extern "C"
17096 #endif
17097 char kvm_open ();
17099 main ()
17101 return kvm_open ();
17103 return 0;
17105 _ACEOF
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (ac_try="$ac_link"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_link") 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } && {
17120 test -z "$ac_c_werror_flag" ||
17121 test ! -s conftest.err
17122 } && test -s conftest$ac_exeext &&
17123 $as_test_x conftest$ac_exeext; then
17124 ac_cv_lib_kvm_kvm_open=yes
17125 else
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_lib_kvm_kvm_open=no
17132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17133 conftest$ac_exeext conftest.$ac_ext
17134 LIBS=$ac_check_lib_save_LIBS
17136 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17137 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17138 if test $ac_cv_lib_kvm_kvm_open = yes; then
17139 LIBS="-lkvm $LIBS"
17142 # Check for the 4.4BSD definition of getloadavg.
17143 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17144 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17145 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148 ac_check_lib_save_LIBS=$LIBS
17149 LIBS="-lutil $LIBS"
17150 cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h. */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17160 #ifdef __cplusplus
17161 extern "C"
17162 #endif
17163 char getloadavg ();
17165 main ()
17167 return getloadavg ();
17169 return 0;
17171 _ACEOF
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (ac_try="$ac_link"
17174 case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_link") 2>conftest.er1
17180 ac_status=$?
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && {
17186 test -z "$ac_c_werror_flag" ||
17187 test ! -s conftest.err
17188 } && test -s conftest$ac_exeext &&
17189 $as_test_x conftest$ac_exeext; then
17190 ac_cv_lib_util_getloadavg=yes
17191 else
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 ac_cv_lib_util_getloadavg=no
17198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17199 conftest$ac_exeext conftest.$ac_ext
17200 LIBS=$ac_check_lib_save_LIBS
17202 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17203 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17204 if test $ac_cv_lib_util_getloadavg = yes; then
17205 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17210 if test $ac_have_func = no; then
17211 # There is a commonly available library for RS/6000 AIX.
17212 # Since it is not a standard part of AIX, it might be installed locally.
17213 ac_getloadavg_LIBS=$LIBS
17214 LIBS="-L/usr/local/lib $LIBS"
17215 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17216 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17217 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220 ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-lgetloadavg $LIBS"
17222 cat >conftest.$ac_ext <<_ACEOF
17223 /* confdefs.h. */
17224 _ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h. */
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17232 #ifdef __cplusplus
17233 extern "C"
17234 #endif
17235 char getloadavg ();
17237 main ()
17239 return getloadavg ();
17241 return 0;
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_link") 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest$ac_exeext &&
17261 $as_test_x conftest$ac_exeext; then
17262 ac_cv_lib_getloadavg_getloadavg=yes
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_cv_lib_getloadavg_getloadavg=no
17270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17271 conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17274 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17275 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17276 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17277 LIBS="-lgetloadavg $LIBS"
17278 else
17279 LIBS=$ac_getloadavg_LIBS
17284 # Make sure it is really in the library, if we think we found it,
17285 # otherwise set up the replacement function.
17287 for ac_func in getloadavg
17289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295 cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17303 #define $ac_func innocuous_$ac_func
17305 /* System header to define __stub macros and hopefully few prototypes,
17306 which can conflict with char $ac_func (); below.
17307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17308 <limits.h> exists even on freestanding compilers. */
17310 #ifdef __STDC__
17311 # include <limits.h>
17312 #else
17313 # include <assert.h>
17314 #endif
17316 #undef $ac_func
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17321 #ifdef __cplusplus
17322 extern "C"
17323 #endif
17324 char $ac_func ();
17325 /* The GNU C library defines this for functions which it implements
17326 to always fail with ENOSYS. Some functions are actually named
17327 something starting with __ and the normal name is an alias. */
17328 #if defined __stub_$ac_func || defined __stub___$ac_func
17329 choke me
17330 #endif
17333 main ()
17335 return $ac_func ();
17337 return 0;
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest$ac_exeext &&
17357 $as_test_x conftest$ac_exeext; then
17358 eval "$as_ac_var=yes"
17359 else
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 eval "$as_ac_var=no"
17366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17367 conftest$ac_exeext conftest.$ac_ext
17369 ac_res=`eval echo '${'$as_ac_var'}'`
17370 { echo "$as_me:$LINENO: result: $ac_res" >&5
17371 echo "${ECHO_T}$ac_res" >&6; }
17372 if test `eval echo '${'$as_ac_var'}'` = yes; then
17373 cat >>confdefs.h <<_ACEOF
17374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17375 _ACEOF
17377 else
17378 case " $LIBOBJS " in
17379 *" getloadavg.$ac_objext "* ) ;;
17380 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17382 esac
17385 cat >>confdefs.h <<\_ACEOF
17386 #define C_GETLOADAVG 1
17387 _ACEOF
17389 # Figure out what our getloadavg.c needs.
17390 ac_have_func=no
17391 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17392 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17393 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17394 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17398 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17399 else
17400 # Is the header compilable?
17401 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17402 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h. */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 $ac_includes_default
17410 #include <sys/dg_sys_info.h>
17411 _ACEOF
17412 rm -f conftest.$ac_objext
17413 if { (ac_try="$ac_compile"
17414 case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17417 esac
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_compile") 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest.$ac_objext; then
17429 ac_header_compiler=yes
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_header_compiler=no
17437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17439 echo "${ECHO_T}$ac_header_compiler" >&6; }
17441 # Is the header present?
17442 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17443 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17444 cat >conftest.$ac_ext <<_ACEOF
17445 /* confdefs.h. */
17446 _ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17450 #include <sys/dg_sys_info.h>
17451 _ACEOF
17452 if { (ac_try="$ac_cpp conftest.$ac_ext"
17453 case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17456 esac
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17459 ac_status=$?
17460 grep -v '^ *+' conftest.er1 >conftest.err
17461 rm -f conftest.er1
17462 cat conftest.err >&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } >/dev/null && {
17465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17467 }; then
17468 ac_header_preproc=yes
17469 else
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_header_preproc=no
17476 rm -f conftest.err conftest.$ac_ext
17477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17478 echo "${ECHO_T}$ac_header_preproc" >&6; }
17480 # So? What about this header?
17481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17482 yes:no: )
17483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17484 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17486 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17487 ac_header_preproc=yes
17489 no:yes:* )
17490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17491 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17493 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17495 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17497 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17499 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17500 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17501 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17504 esac
17505 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17506 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17507 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17512 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17513 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17516 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17517 ac_have_func=yes
17519 cat >>confdefs.h <<\_ACEOF
17520 #define DGUX 1
17521 _ACEOF
17524 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17525 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17526 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529 ac_check_lib_save_LIBS=$LIBS
17530 LIBS="-ldgc $LIBS"
17531 cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h. */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17538 /* Override any GCC internal prototype to avoid an error.
17539 Use char because int might match the return type of a GCC
17540 builtin and then its argument prototype would still apply. */
17541 #ifdef __cplusplus
17542 extern "C"
17543 #endif
17544 char dg_sys_info ();
17546 main ()
17548 return dg_sys_info ();
17550 return 0;
17552 _ACEOF
17553 rm -f conftest.$ac_objext conftest$ac_exeext
17554 if { (ac_try="$ac_link"
17555 case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_link") 2>conftest.er1
17561 ac_status=$?
17562 grep -v '^ *+' conftest.er1 >conftest.err
17563 rm -f conftest.er1
17564 cat conftest.err >&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } && {
17567 test -z "$ac_c_werror_flag" ||
17568 test ! -s conftest.err
17569 } && test -s conftest$ac_exeext &&
17570 $as_test_x conftest$ac_exeext; then
17571 ac_cv_lib_dgc_dg_sys_info=yes
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_cv_lib_dgc_dg_sys_info=no
17579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17580 conftest$ac_exeext conftest.$ac_ext
17581 LIBS=$ac_check_lib_save_LIBS
17583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17584 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17585 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_LIBDGC 1
17588 _ACEOF
17590 LIBS="-ldgc $LIBS"
17598 if test "${ac_cv_header_locale_h+set}" = set; then
17599 { echo "$as_me:$LINENO: checking for locale.h" >&5
17600 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17601 if test "${ac_cv_header_locale_h+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17605 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17606 else
17607 # Is the header compilable?
17608 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17609 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17610 cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h. */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17617 #include <locale.h>
17618 _ACEOF
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest.$ac_objext; then
17636 ac_header_compiler=yes
17637 else
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_header_compiler=no
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17646 echo "${ECHO_T}$ac_header_compiler" >&6; }
17648 # Is the header present?
17649 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17650 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 #include <locale.h>
17658 _ACEOF
17659 if { (ac_try="$ac_cpp conftest.$ac_ext"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } >/dev/null && {
17672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 }; then
17675 ac_header_preproc=yes
17676 else
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_header_preproc=no
17683 rm -f conftest.err conftest.$ac_ext
17684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17685 echo "${ECHO_T}$ac_header_preproc" >&6; }
17687 # So? What about this header?
17688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17689 yes:no: )
17690 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17691 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17693 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17694 ac_header_preproc=yes
17696 no:yes:* )
17697 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17698 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17699 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17700 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17701 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17702 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17703 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17704 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17705 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17706 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17707 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17708 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17711 esac
17712 { echo "$as_me:$LINENO: checking for locale.h" >&5
17713 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17714 if test "${ac_cv_header_locale_h+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 ac_cv_header_locale_h=$ac_header_preproc
17719 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17720 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17726 for ac_func in setlocale
17728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17742 #define $ac_func innocuous_$ac_func
17744 /* System header to define __stub macros and hopefully few prototypes,
17745 which can conflict with char $ac_func (); below.
17746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17747 <limits.h> exists even on freestanding compilers. */
17749 #ifdef __STDC__
17750 # include <limits.h>
17751 #else
17752 # include <assert.h>
17753 #endif
17755 #undef $ac_func
17757 /* Override any GCC internal prototype to avoid an error.
17758 Use char because int might match the return type of a GCC
17759 builtin and then its argument prototype would still apply. */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 char $ac_func ();
17764 /* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767 #if defined __stub_$ac_func || defined __stub___$ac_func
17768 choke me
17769 #endif
17772 main ()
17774 return $ac_func ();
17776 return 0;
17778 _ACEOF
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (ac_try="$ac_link"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_link") 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest$ac_exeext &&
17796 $as_test_x conftest$ac_exeext; then
17797 eval "$as_ac_var=yes"
17798 else
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 eval "$as_ac_var=no"
17805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17806 conftest$ac_exeext conftest.$ac_ext
17808 ac_res=`eval echo '${'$as_ac_var'}'`
17809 { echo "$as_me:$LINENO: result: $ac_res" >&5
17810 echo "${ECHO_T}$ac_res" >&6; }
17811 if test `eval echo '${'$as_ac_var'}'` = yes; then
17812 cat >>confdefs.h <<_ACEOF
17813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17814 _ACEOF
17817 done
17820 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17821 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17822 # Irix 4.0.5F has the header but not the library.
17823 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17824 ac_have_func=yes
17826 cat >>confdefs.h <<\_ACEOF
17827 #define SVR4 1
17828 _ACEOF
17832 if test $ac_have_func = no; then
17833 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17834 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17835 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17836 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17840 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17841 else
17842 # Is the header compilable?
17843 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17844 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h. */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 $ac_includes_default
17852 #include <inq_stats/cpustats.h>
17853 _ACEOF
17854 rm -f conftest.$ac_objext
17855 if { (ac_try="$ac_compile"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_compile") 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && {
17868 test -z "$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 } && test -s conftest.$ac_objext; then
17871 ac_header_compiler=yes
17872 else
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_header_compiler=no
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17881 echo "${ECHO_T}$ac_header_compiler" >&6; }
17883 # Is the header present?
17884 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17885 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h. */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 #include <inq_stats/cpustats.h>
17893 _ACEOF
17894 if { (ac_try="$ac_cpp conftest.$ac_ext"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17898 esac
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17901 ac_status=$?
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } >/dev/null && {
17907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17908 test ! -s conftest.err
17909 }; then
17910 ac_header_preproc=yes
17911 else
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 ac_header_preproc=no
17918 rm -f conftest.err conftest.$ac_ext
17919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17920 echo "${ECHO_T}$ac_header_preproc" >&6; }
17922 # So? What about this header?
17923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17924 yes:no: )
17925 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17926 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17928 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17929 ac_header_preproc=yes
17931 no:yes:* )
17932 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17933 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17935 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17937 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17939 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17943 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17946 esac
17947 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17948 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17949 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17954 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17955 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17958 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17959 ac_have_func=yes
17961 cat >>confdefs.h <<\_ACEOF
17962 #define UMAX 1
17963 _ACEOF
17966 cat >>confdefs.h <<\_ACEOF
17967 #define UMAX4_3 1
17968 _ACEOF
17975 if test $ac_have_func = no; then
17976 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17977 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17978 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17979 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17983 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17984 else
17985 # Is the header compilable?
17986 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17987 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h. */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 $ac_includes_default
17995 #include <sys/cpustats.h>
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest.$ac_objext; then
18014 ac_header_compiler=yes
18015 else
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_header_compiler=no
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18024 echo "${ECHO_T}$ac_header_compiler" >&6; }
18026 # Is the header present?
18027 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18028 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h. */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 #include <sys/cpustats.h>
18036 _ACEOF
18037 if { (ac_try="$ac_cpp conftest.$ac_ext"
18038 case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18044 ac_status=$?
18045 grep -v '^ *+' conftest.er1 >conftest.err
18046 rm -f conftest.er1
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } >/dev/null && {
18050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18051 test ! -s conftest.err
18052 }; then
18053 ac_header_preproc=yes
18054 else
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_header_preproc=no
18061 rm -f conftest.err conftest.$ac_ext
18062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18063 echo "${ECHO_T}$ac_header_preproc" >&6; }
18065 # So? What about this header?
18066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18067 yes:no: )
18068 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18069 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18070 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18071 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18072 ac_header_preproc=yes
18074 no:yes:* )
18075 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18076 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18078 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18080 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18082 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18084 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18086 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18089 esac
18090 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18091 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18092 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18097 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18098 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18101 if test $ac_cv_header_sys_cpustats_h = yes; then
18102 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18103 #define UMAX 1
18104 _ACEOF
18111 if test $ac_have_func = no; then
18113 for ac_header in mach/mach.h
18115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 ac_res=`eval echo '${'$as_ac_Header'}'`
18123 { echo "$as_me:$LINENO: result: $ac_res" >&5
18124 echo "${ECHO_T}$ac_res" >&6; }
18125 else
18126 # Is the header compilable?
18127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h. */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 $ac_includes_default
18136 #include <$ac_header>
18137 _ACEOF
18138 rm -f conftest.$ac_objext
18139 if { (ac_try="$ac_compile"
18140 case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_compile") 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest.$ac_objext; then
18155 ac_header_compiler=yes
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_header_compiler=no
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18165 echo "${ECHO_T}$ac_header_compiler" >&6; }
18167 # Is the header present?
18168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18170 cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h. */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 #include <$ac_header>
18177 _ACEOF
18178 if { (ac_try="$ac_cpp conftest.$ac_ext"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } >/dev/null && {
18191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 }; then
18194 ac_header_preproc=yes
18195 else
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_header_preproc=no
18202 rm -f conftest.err conftest.$ac_ext
18203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18204 echo "${ECHO_T}$ac_header_preproc" >&6; }
18206 # So? What about this header?
18207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18208 yes:no: )
18209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18213 ac_header_preproc=yes
18215 no:yes:* )
18216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18230 esac
18231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236 eval "$as_ac_Header=\$ac_header_preproc"
18238 ac_res=`eval echo '${'$as_ac_Header'}'`
18239 { echo "$as_me:$LINENO: result: $ac_res" >&5
18240 echo "${ECHO_T}$ac_res" >&6; }
18243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18244 cat >>confdefs.h <<_ACEOF
18245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18246 _ACEOF
18250 done
18255 for ac_header in nlist.h
18257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 ac_res=`eval echo '${'$as_ac_Header'}'`
18265 { echo "$as_me:$LINENO: result: $ac_res" >&5
18266 echo "${ECHO_T}$ac_res" >&6; }
18267 else
18268 # Is the header compilable?
18269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18278 #include <$ac_header>
18279 _ACEOF
18280 rm -f conftest.$ac_objext
18281 if { (ac_try="$ac_compile"
18282 case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_compile") 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } && {
18294 test -z "$ac_c_werror_flag" ||
18295 test ! -s conftest.err
18296 } && test -s conftest.$ac_objext; then
18297 ac_header_compiler=yes
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_header_compiler=no
18305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18307 echo "${ECHO_T}$ac_header_compiler" >&6; }
18309 # Is the header present?
18310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 #include <$ac_header>
18319 _ACEOF
18320 if { (ac_try="$ac_cpp conftest.$ac_ext"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } >/dev/null && {
18333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 }; then
18336 ac_header_preproc=yes
18337 else
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_header_preproc=no
18344 rm -f conftest.err conftest.$ac_ext
18345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18346 echo "${ECHO_T}$ac_header_preproc" >&6; }
18348 # So? What about this header?
18349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18350 yes:no: )
18351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18355 ac_header_preproc=yes
18357 no:yes:* )
18358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18372 esac
18373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378 eval "$as_ac_Header=\$ac_header_preproc"
18380 ac_res=`eval echo '${'$as_ac_Header'}'`
18381 { echo "$as_me:$LINENO: result: $ac_res" >&5
18382 echo "${ECHO_T}$ac_res" >&6; }
18385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18386 cat >>confdefs.h <<_ACEOF
18387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18388 _ACEOF
18389 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18390 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18391 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h. */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 #include <nlist.h>
18403 main ()
18405 static struct nlist ac_aggr;
18406 if (ac_aggr.n_un.n_name)
18407 return 0;
18409 return 0;
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18417 esac
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_compile") 2>conftest.er1
18420 ac_status=$?
18421 grep -v '^ *+' conftest.er1 >conftest.err
18422 rm -f conftest.er1
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } && {
18426 test -z "$ac_c_werror_flag" ||
18427 test ! -s conftest.err
18428 } && test -s conftest.$ac_objext; then
18429 ac_cv_member_struct_nlist_n_un_n_name=yes
18430 else
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h. */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 #include <nlist.h>
18443 main ()
18445 static struct nlist ac_aggr;
18446 if (sizeof ac_aggr.n_un.n_name)
18447 return 0;
18449 return 0;
18451 _ACEOF
18452 rm -f conftest.$ac_objext
18453 if { (ac_try="$ac_compile"
18454 case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_compile") 2>conftest.er1
18460 ac_status=$?
18461 grep -v '^ *+' conftest.er1 >conftest.err
18462 rm -f conftest.er1
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } && {
18466 test -z "$ac_c_werror_flag" ||
18467 test ! -s conftest.err
18468 } && test -s conftest.$ac_objext; then
18469 ac_cv_member_struct_nlist_n_un_n_name=yes
18470 else
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 ac_cv_member_struct_nlist_n_un_n_name=no
18477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18483 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18484 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18486 cat >>confdefs.h <<_ACEOF
18487 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18488 _ACEOF
18491 cat >>confdefs.h <<\_ACEOF
18492 #define NLIST_NAME_UNION 1
18493 _ACEOF
18500 done
18503 done
18506 # Some definitions of getloadavg require that the program be installed setgid.
18507 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18508 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18509 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h. */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18519 #ifdef LDAV_PRIVILEGED
18520 Yowza Am I SETGID yet
18521 #endif
18522 _ACEOF
18523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18524 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18525 ac_cv_func_getloadavg_setgid=yes
18526 else
18527 ac_cv_func_getloadavg_setgid=no
18529 rm -f conftest*
18532 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18533 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18534 if test $ac_cv_func_getloadavg_setgid = yes; then
18535 NEED_SETGID=true
18537 cat >>confdefs.h <<\_ACEOF
18538 #define GETLOADAVG_PRIVILEGED 1
18539 _ACEOF
18541 else
18542 NEED_SETGID=false
18545 if test $ac_cv_func_getloadavg_setgid = yes; then
18546 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18547 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18548 if test "${ac_cv_group_kmem+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18552 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18553 # If we got an error (system does not support symlinks), try without -L.
18554 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18555 ac_cv_group_kmem=`echo $ac_ls_output \
18556 | sed -ne 's/[ ][ ]*/ /g;
18557 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18558 / /s/.* //;p;'`
18561 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18562 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18563 KMEM_GROUP=$ac_cv_group_kmem
18565 if test "x$ac_save_LIBS" = x; then
18566 GETLOADAVG_LIBS=$LIBS
18567 else
18568 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18570 LIBS=$ac_save_LIBS
18574 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18575 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18576 if test "${ac_cv_sys_largefile_source+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579 while :; do
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h. */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <stdio.h>
18588 main ()
18590 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18592 return 0;
18594 _ACEOF
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18600 esac
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_link") 2>conftest.er1
18603 ac_status=$?
18604 grep -v '^ *+' conftest.er1 >conftest.err
18605 rm -f conftest.er1
18606 cat conftest.err >&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } && {
18609 test -z "$ac_c_werror_flag" ||
18610 test ! -s conftest.err
18611 } && test -s conftest$ac_exeext &&
18612 $as_test_x conftest$ac_exeext; then
18613 ac_cv_sys_largefile_source=no; break
18614 else
18615 echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18622 conftest$ac_exeext conftest.$ac_ext
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h. */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 #define _LARGEFILE_SOURCE 1
18630 #include <stdio.h>
18632 main ()
18634 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18636 return 0;
18638 _ACEOF
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (ac_try="$ac_link"
18641 case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18644 esac
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_link") 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } && {
18653 test -z "$ac_c_werror_flag" ||
18654 test ! -s conftest.err
18655 } && test -s conftest$ac_exeext &&
18656 $as_test_x conftest$ac_exeext; then
18657 ac_cv_sys_largefile_source=1; break
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18666 conftest$ac_exeext conftest.$ac_ext
18667 ac_cv_sys_largefile_source=unknown
18668 break
18669 done
18671 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18672 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18673 case $ac_cv_sys_largefile_source in #(
18674 no | unknown) ;;
18676 cat >>confdefs.h <<_ACEOF
18677 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18678 _ACEOF
18680 esac
18681 rm -f conftest*
18683 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18684 # in glibc 2.1.3, but that breaks too many other things.
18685 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18686 if test $ac_cv_sys_largefile_source != unknown; then
18688 cat >>confdefs.h <<\_ACEOF
18689 #define HAVE_FSEEKO 1
18690 _ACEOF
18695 # Configure getopt.
18696 # getopt.m4 serial 10
18698 # The getopt module assume you want GNU getopt, with getopt_long etc,
18699 # rather than vanilla POSIX getopt. This means your your code should
18700 # always include <getopt.h> for the getopt prototypes.
18712 # Prerequisites of lib/getopt*.
18717 GETOPT_H=
18719 for ac_header in getopt.h
18721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 ac_res=`eval echo '${'$as_ac_Header'}'`
18729 { echo "$as_me:$LINENO: result: $ac_res" >&5
18730 echo "${ECHO_T}$ac_res" >&6; }
18731 else
18732 # Is the header compilable?
18733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 $ac_includes_default
18742 #include <$ac_header>
18743 _ACEOF
18744 rm -f conftest.$ac_objext
18745 if { (ac_try="$ac_compile"
18746 case "(($ac_try" in
18747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748 *) ac_try_echo=$ac_try;;
18749 esac
18750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751 (eval "$ac_compile") 2>conftest.er1
18752 ac_status=$?
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } && {
18758 test -z "$ac_c_werror_flag" ||
18759 test ! -s conftest.err
18760 } && test -s conftest.$ac_objext; then
18761 ac_header_compiler=yes
18762 else
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 ac_header_compiler=no
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18771 echo "${ECHO_T}$ac_header_compiler" >&6; }
18773 # Is the header present?
18774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18776 cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h. */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 #include <$ac_header>
18783 _ACEOF
18784 if { (ac_try="$ac_cpp conftest.$ac_ext"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } >/dev/null && {
18797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18798 test ! -s conftest.err
18799 }; then
18800 ac_header_preproc=yes
18801 else
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 ac_header_preproc=no
18808 rm -f conftest.err conftest.$ac_ext
18809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18810 echo "${ECHO_T}$ac_header_preproc" >&6; }
18812 # So? What about this header?
18813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18814 yes:no: )
18815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18819 ac_header_preproc=yes
18821 no:yes:* )
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18836 esac
18837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842 eval "$as_ac_Header=\$ac_header_preproc"
18844 ac_res=`eval echo '${'$as_ac_Header'}'`
18845 { echo "$as_me:$LINENO: result: $ac_res" >&5
18846 echo "${ECHO_T}$ac_res" >&6; }
18849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18852 _ACEOF
18854 else
18855 GETOPT_H=getopt.h
18858 done
18860 if test -z "$GETOPT_H"; then
18862 for ac_func in getopt_long_only
18864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870 cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h. */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18878 #define $ac_func innocuous_$ac_func
18880 /* System header to define __stub macros and hopefully few prototypes,
18881 which can conflict with char $ac_func (); below.
18882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 <limits.h> exists even on freestanding compilers. */
18885 #ifdef __STDC__
18886 # include <limits.h>
18887 #else
18888 # include <assert.h>
18889 #endif
18891 #undef $ac_func
18893 /* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18896 #ifdef __cplusplus
18897 extern "C"
18898 #endif
18899 char $ac_func ();
18900 /* The GNU C library defines this for functions which it implements
18901 to always fail with ENOSYS. Some functions are actually named
18902 something starting with __ and the normal name is an alias. */
18903 #if defined __stub_$ac_func || defined __stub___$ac_func
18904 choke me
18905 #endif
18908 main ()
18910 return $ac_func ();
18912 return 0;
18914 _ACEOF
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest$ac_exeext &&
18932 $as_test_x conftest$ac_exeext; then
18933 eval "$as_ac_var=yes"
18934 else
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 eval "$as_ac_var=no"
18941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18942 conftest$ac_exeext conftest.$ac_ext
18944 ac_res=`eval echo '${'$as_ac_var'}'`
18945 { echo "$as_me:$LINENO: result: $ac_res" >&5
18946 echo "${ECHO_T}$ac_res" >&6; }
18947 if test `eval echo '${'$as_ac_var'}'` = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18950 _ACEOF
18952 else
18953 GETOPT_H=getopt.h
18955 done
18959 if test -z "$GETOPT_H"; then
18960 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18961 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18962 if test "${ac_cv_have_decl_optreset+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 #include <getopt.h>
18974 main ()
18976 #ifndef optreset
18977 (void) optreset;
18978 #endif
18981 return 0;
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (ac_try="$ac_compile"
18986 case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_compile") 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } && {
18998 test -z "$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 } && test -s conftest.$ac_objext; then
19001 ac_cv_have_decl_optreset=yes
19002 else
19003 echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_cv_have_decl_optreset=no
19009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19012 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19013 if test $ac_cv_have_decl_optreset = yes; then
19014 GETOPT_H=getopt.h
19019 if test -z "$GETOPT_H"; then
19020 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19021 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19022 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025 if test "$cross_compiling" = yes; then
19026 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19027 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19028 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 else
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <getopt.h>
19040 main ()
19042 #ifndef getopt_clip
19043 (void) getopt_clip;
19044 #endif
19047 return 0;
19049 _ACEOF
19050 rm -f conftest.$ac_objext
19051 if { (ac_try="$ac_compile"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_compile") 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } && {
19064 test -z "$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19066 } && test -s conftest.$ac_objext; then
19067 ac_cv_have_decl_getopt_clip=yes
19068 else
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_cv_have_decl_getopt_clip=no
19075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19077 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19078 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19079 if test $ac_cv_have_decl_getopt_clip = yes; then
19080 gl_cv_func_gnu_getopt=no
19081 else
19082 gl_cv_func_gnu_getopt=yes
19085 else
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h. */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 #include <getopt.h>
19094 main ()
19097 char *myargv[3];
19098 myargv[0] = "conftest";
19099 myargv[1] = "-+";
19100 myargv[2] = 0;
19101 return getopt (2, myargv, "+a") != '?';
19104 return 0;
19106 _ACEOF
19107 rm -f conftest$ac_exeext
19108 if { (ac_try="$ac_link"
19109 case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_link") 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19118 { (case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_try") 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 gl_cv_func_gnu_getopt=yes
19128 else
19129 echo "$as_me: program exited with status $ac_status" >&5
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ( exit $ac_status )
19134 gl_cv_func_gnu_getopt=no
19136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19142 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19143 if test "$gl_cv_func_gnu_getopt" = "no"; then
19144 GETOPT_H=getopt.h
19150 if test -n "$GETOPT_H"; then
19153 GETOPT_H=getopt.h
19155 cat >>confdefs.h <<\_ACEOF
19156 #define __GETOPT_PREFIX rpl_
19157 _ACEOF
19162 GETOPTOBJS='getopt.o getopt1.o'
19169 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19170 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19171 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174 # Use it with a single arg.
19175 cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h. */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 $ac_includes_default
19183 main ()
19185 getpgrp (0);
19187 return 0;
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } && {
19204 test -z "$ac_c_werror_flag" ||
19205 test ! -s conftest.err
19206 } && test -s conftest.$ac_objext; then
19207 ac_cv_func_getpgrp_void=no
19208 else
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_func_getpgrp_void=yes
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19219 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19220 if test $ac_cv_func_getpgrp_void = yes; then
19222 cat >>confdefs.h <<\_ACEOF
19223 #define GETPGRP_VOID 1
19224 _ACEOF
19230 for ac_func in strftime
19232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19246 #define $ac_func innocuous_$ac_func
19248 /* System header to define __stub macros and hopefully few prototypes,
19249 which can conflict with char $ac_func (); below.
19250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19251 <limits.h> exists even on freestanding compilers. */
19253 #ifdef __STDC__
19254 # include <limits.h>
19255 #else
19256 # include <assert.h>
19257 #endif
19259 #undef $ac_func
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 char $ac_func ();
19268 /* The GNU C library defines this for functions which it implements
19269 to always fail with ENOSYS. Some functions are actually named
19270 something starting with __ and the normal name is an alias. */
19271 #if defined __stub_$ac_func || defined __stub___$ac_func
19272 choke me
19273 #endif
19276 main ()
19278 return $ac_func ();
19280 return 0;
19282 _ACEOF
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (ac_try="$ac_link"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_link") 2>conftest.er1
19291 ac_status=$?
19292 grep -v '^ *+' conftest.er1 >conftest.err
19293 rm -f conftest.er1
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } && {
19297 test -z "$ac_c_werror_flag" ||
19298 test ! -s conftest.err
19299 } && test -s conftest$ac_exeext &&
19300 $as_test_x conftest$ac_exeext; then
19301 eval "$as_ac_var=yes"
19302 else
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 eval "$as_ac_var=no"
19309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19310 conftest$ac_exeext conftest.$ac_ext
19312 ac_res=`eval echo '${'$as_ac_var'}'`
19313 { echo "$as_me:$LINENO: result: $ac_res" >&5
19314 echo "${ECHO_T}$ac_res" >&6; }
19315 if test `eval echo '${'$as_ac_var'}'` = yes; then
19316 cat >>confdefs.h <<_ACEOF
19317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19318 _ACEOF
19320 else
19321 # strftime is in -lintl on SCO UNIX.
19322 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19323 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19324 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327 ac_check_lib_save_LIBS=$LIBS
19328 LIBS="-lintl $LIBS"
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h. */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19336 /* Override any GCC internal prototype to avoid an error.
19337 Use char because int might match the return type of a GCC
19338 builtin and then its argument prototype would still apply. */
19339 #ifdef __cplusplus
19340 extern "C"
19341 #endif
19342 char strftime ();
19344 main ()
19346 return strftime ();
19348 return 0;
19350 _ACEOF
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_link") 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest$ac_exeext &&
19368 $as_test_x conftest$ac_exeext; then
19369 ac_cv_lib_intl_strftime=yes
19370 else
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_intl_strftime=no
19377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19378 conftest$ac_exeext conftest.$ac_ext
19379 LIBS=$ac_check_lib_save_LIBS
19381 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19382 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19383 if test $ac_cv_lib_intl_strftime = yes; then
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_STRFTIME 1
19386 _ACEOF
19388 LIBS="-lintl $LIBS"
19392 done
19395 # UNIX98 PTYs.
19397 for ac_func in grantpt
19399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19413 #define $ac_func innocuous_$ac_func
19415 /* System header to define __stub macros and hopefully few prototypes,
19416 which can conflict with char $ac_func (); below.
19417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19418 <limits.h> exists even on freestanding compilers. */
19420 #ifdef __STDC__
19421 # include <limits.h>
19422 #else
19423 # include <assert.h>
19424 #endif
19426 #undef $ac_func
19428 /* Override any GCC internal prototype to avoid an error.
19429 Use char because int might match the return type of a GCC
19430 builtin and then its argument prototype would still apply. */
19431 #ifdef __cplusplus
19432 extern "C"
19433 #endif
19434 char $ac_func ();
19435 /* The GNU C library defines this for functions which it implements
19436 to always fail with ENOSYS. Some functions are actually named
19437 something starting with __ and the normal name is an alias. */
19438 #if defined __stub_$ac_func || defined __stub___$ac_func
19439 choke me
19440 #endif
19443 main ()
19445 return $ac_func ();
19447 return 0;
19449 _ACEOF
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_link") 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } && {
19464 test -z "$ac_c_werror_flag" ||
19465 test ! -s conftest.err
19466 } && test -s conftest$ac_exeext &&
19467 $as_test_x conftest$ac_exeext; then
19468 eval "$as_ac_var=yes"
19469 else
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 eval "$as_ac_var=no"
19476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19477 conftest$ac_exeext conftest.$ac_ext
19479 ac_res=`eval echo '${'$as_ac_var'}'`
19480 { echo "$as_me:$LINENO: result: $ac_res" >&5
19481 echo "${ECHO_T}$ac_res" >&6; }
19482 if test `eval echo '${'$as_ac_var'}'` = yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19485 _ACEOF
19488 done
19491 # PTY-related GNU extensions.
19493 for ac_func in getpt
19495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h. */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19509 #define $ac_func innocuous_$ac_func
19511 /* System header to define __stub macros and hopefully few prototypes,
19512 which can conflict with char $ac_func (); below.
19513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19514 <limits.h> exists even on freestanding compilers. */
19516 #ifdef __STDC__
19517 # include <limits.h>
19518 #else
19519 # include <assert.h>
19520 #endif
19522 #undef $ac_func
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 char $ac_func ();
19531 /* The GNU C library defines this for functions which it implements
19532 to always fail with ENOSYS. Some functions are actually named
19533 something starting with __ and the normal name is an alias. */
19534 #if defined __stub_$ac_func || defined __stub___$ac_func
19535 choke me
19536 #endif
19539 main ()
19541 return $ac_func ();
19543 return 0;
19545 _ACEOF
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_link") 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext &&
19563 $as_test_x conftest$ac_exeext; then
19564 eval "$as_ac_var=yes"
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 eval "$as_ac_var=no"
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573 conftest$ac_exeext conftest.$ac_ext
19575 ac_res=`eval echo '${'$as_ac_var'}'`
19576 { echo "$as_me:$LINENO: result: $ac_res" >&5
19577 echo "${ECHO_T}$ac_res" >&6; }
19578 if test `eval echo '${'$as_ac_var'}'` = yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19581 _ACEOF
19584 done
19587 # Check this now, so that we will NOT find the above functions in ncurses.
19588 # That is because we have not set up to link ncurses in lib-src.
19589 # It's better to believe a function is not available
19590 # than to expect to find it in ncurses.
19592 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19593 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19594 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597 ac_check_lib_save_LIBS=$LIBS
19598 LIBS="-lncurses $LIBS"
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 char tparm ();
19614 main ()
19616 return tparm ();
19618 return 0;
19620 _ACEOF
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest$ac_exeext &&
19638 $as_test_x conftest$ac_exeext; then
19639 ac_cv_lib_ncurses_tparm=yes
19640 else
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_cv_lib_ncurses_tparm=no
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_lib_save_LIBS
19651 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19652 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19653 if test $ac_cv_lib_ncurses_tparm = yes; then
19654 cat >>confdefs.h <<_ACEOF
19655 #define HAVE_LIBNCURSES 1
19656 _ACEOF
19658 LIBS="-lncurses $LIBS"
19663 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19665 resolv=no
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h. */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #include <netinet/in.h>
19673 #include <arpa/nameser.h>
19674 #include <resolv.h>
19676 main ()
19678 return res_init();
19680 return 0;
19682 _ACEOF
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (ac_try="$ac_link"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_link") 2>conftest.er1
19691 ac_status=$?
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest$ac_exeext &&
19700 $as_test_x conftest$ac_exeext; then
19701 have_res_init=yes
19702 else
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19706 have_res_init=no
19709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19710 conftest$ac_exeext conftest.$ac_ext
19711 if test "$have_res_init" = no; then
19712 OLIBS="$LIBS"
19713 LIBS="$LIBS -lresolv"
19714 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19715 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 #include <netinet/in.h>
19723 #include <arpa/nameser.h>
19724 #include <resolv.h>
19726 main ()
19728 return res_init();
19730 return 0;
19732 _ACEOF
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (ac_try="$ac_link"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738 esac
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_link") 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } && {
19747 test -z "$ac_c_werror_flag" ||
19748 test ! -s conftest.err
19749 } && test -s conftest$ac_exeext &&
19750 $as_test_x conftest$ac_exeext; then
19751 have_res_init=yes
19752 else
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 have_res_init=no
19759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19760 conftest$ac_exeext conftest.$ac_ext
19761 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19762 echo "${ECHO_T}$have_res_init" >&6; }
19763 if test "$have_res_init" = yes ; then
19764 resolv=yes
19766 LIBS="$OLIBS"
19769 if test "$have_res_init" = yes; then
19771 cat >>confdefs.h <<\_ACEOF
19772 #define HAVE_RES_INIT 1
19773 _ACEOF
19777 # Do we need the Hesiod library to provide the support routines?
19778 if test "$with_hesiod" = yes ; then
19779 # Don't set $LIBS here -- see comments above.
19780 { echo "$as_me:$LINENO: checking for res_send" >&5
19781 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19782 if test "${ac_cv_func_res_send+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h. */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19793 #define res_send innocuous_res_send
19795 /* System header to define __stub macros and hopefully few prototypes,
19796 which can conflict with char res_send (); below.
19797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19798 <limits.h> exists even on freestanding compilers. */
19800 #ifdef __STDC__
19801 # include <limits.h>
19802 #else
19803 # include <assert.h>
19804 #endif
19806 #undef res_send
19808 /* Override any GCC internal prototype to avoid an error.
19809 Use char because int might match the return type of a GCC
19810 builtin and then its argument prototype would still apply. */
19811 #ifdef __cplusplus
19812 extern "C"
19813 #endif
19814 char res_send ();
19815 /* The GNU C library defines this for functions which it implements
19816 to always fail with ENOSYS. Some functions are actually named
19817 something starting with __ and the normal name is an alias. */
19818 #if defined __stub_res_send || defined __stub___res_send
19819 choke me
19820 #endif
19823 main ()
19825 return res_send ();
19827 return 0;
19829 _ACEOF
19830 rm -f conftest.$ac_objext conftest$ac_exeext
19831 if { (ac_try="$ac_link"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19835 esac
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_link") 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest$ac_exeext &&
19847 $as_test_x conftest$ac_exeext; then
19848 ac_cv_func_res_send=yes
19849 else
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19853 ac_cv_func_res_send=no
19856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19857 conftest$ac_exeext conftest.$ac_ext
19859 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19860 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19861 if test $ac_cv_func_res_send = yes; then
19863 else
19864 { echo "$as_me:$LINENO: checking for __res_send" >&5
19865 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19866 if test "${ac_cv_func___res_send+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h. */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19877 #define __res_send innocuous___res_send
19879 /* System header to define __stub macros and hopefully few prototypes,
19880 which can conflict with char __res_send (); below.
19881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19882 <limits.h> exists even on freestanding compilers. */
19884 #ifdef __STDC__
19885 # include <limits.h>
19886 #else
19887 # include <assert.h>
19888 #endif
19890 #undef __res_send
19892 /* Override any GCC internal prototype to avoid an error.
19893 Use char because int might match the return type of a GCC
19894 builtin and then its argument prototype would still apply. */
19895 #ifdef __cplusplus
19896 extern "C"
19897 #endif
19898 char __res_send ();
19899 /* The GNU C library defines this for functions which it implements
19900 to always fail with ENOSYS. Some functions are actually named
19901 something starting with __ and the normal name is an alias. */
19902 #if defined __stub___res_send || defined __stub_____res_send
19903 choke me
19904 #endif
19907 main ()
19909 return __res_send ();
19911 return 0;
19913 _ACEOF
19914 rm -f conftest.$ac_objext conftest$ac_exeext
19915 if { (ac_try="$ac_link"
19916 case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19919 esac
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_link") 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest$ac_exeext &&
19931 $as_test_x conftest$ac_exeext; then
19932 ac_cv_func___res_send=yes
19933 else
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19937 ac_cv_func___res_send=no
19940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19941 conftest$ac_exeext conftest.$ac_ext
19943 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19944 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19945 if test $ac_cv_func___res_send = yes; then
19947 else
19948 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19949 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19950 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-lresolv $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h. */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19965 #ifdef __cplusplus
19966 extern "C"
19967 #endif
19968 char res_send ();
19970 main ()
19972 return res_send ();
19974 return 0;
19976 _ACEOF
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
19995 ac_cv_lib_resolv_res_send=yes
19996 else
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_resolv_res_send=no
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20008 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20009 if test $ac_cv_lib_resolv_res_send = yes; then
20010 resolv=yes
20011 else
20012 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20013 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20014 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lresolv $LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h. */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20026 /* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 char __res_send ();
20034 main ()
20036 return __res_send ();
20038 return 0;
20040 _ACEOF
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_link") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext &&
20058 $as_test_x conftest$ac_exeext; then
20059 ac_cv_lib_resolv___res_send=yes
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_cv_lib_resolv___res_send=no
20067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20068 conftest$ac_exeext conftest.$ac_ext
20069 LIBS=$ac_check_lib_save_LIBS
20071 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20072 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20073 if test $ac_cv_lib_resolv___res_send = yes; then
20074 resolv=yes
20083 if test "$resolv" = yes ; then
20084 RESOLVLIB=-lresolv
20085 else
20086 RESOLVLIB=
20088 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20089 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20090 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20101 #define hes_getmailhost innocuous_hes_getmailhost
20103 /* System header to define __stub macros and hopefully few prototypes,
20104 which can conflict with char hes_getmailhost (); below.
20105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20106 <limits.h> exists even on freestanding compilers. */
20108 #ifdef __STDC__
20109 # include <limits.h>
20110 #else
20111 # include <assert.h>
20112 #endif
20114 #undef hes_getmailhost
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 char hes_getmailhost ();
20123 /* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20127 choke me
20128 #endif
20131 main ()
20133 return hes_getmailhost ();
20135 return 0;
20137 _ACEOF
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20146 ac_status=$?
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } && {
20152 test -z "$ac_c_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest$ac_exeext &&
20155 $as_test_x conftest$ac_exeext; then
20156 ac_cv_func_hes_getmailhost=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_cv_func_hes_getmailhost=no
20164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20165 conftest$ac_exeext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20168 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20169 if test $ac_cv_func_hes_getmailhost = yes; then
20171 else
20172 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20173 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20174 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lhesiod $RESOLVLIB $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h. */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20189 #ifdef __cplusplus
20190 extern "C"
20191 #endif
20192 char hes_getmailhost ();
20194 main ()
20196 return hes_getmailhost ();
20198 return 0;
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (ac_try="$ac_link"
20203 case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_link") 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && {
20215 test -z "$ac_c_werror_flag" ||
20216 test ! -s conftest.err
20217 } && test -s conftest$ac_exeext &&
20218 $as_test_x conftest$ac_exeext; then
20219 ac_cv_lib_hesiod_hes_getmailhost=yes
20220 else
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_lib_hesiod_hes_getmailhost=no
20227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20228 conftest$ac_exeext conftest.$ac_ext
20229 LIBS=$ac_check_lib_save_LIBS
20231 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20232 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20233 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20235 cat >>confdefs.h <<\_ACEOF
20236 #define HAVE_LIBHESIOD 1
20237 _ACEOF
20239 else
20247 # Do we need libresolv (due to res_init or Hesiod)?
20248 if test "$resolv" = yes ; then
20250 cat >>confdefs.h <<\_ACEOF
20251 #define HAVE_LIBRESOLV 1
20252 _ACEOF
20256 # These tell us which Kerberos-related libraries to use.
20257 if test "${with_kerberos+set}" = set; then
20259 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20260 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20261 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264 ac_check_lib_save_LIBS=$LIBS
20265 LIBS="-lcom_err $LIBS"
20266 cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h. */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20273 /* Override any GCC internal prototype to avoid an error.
20274 Use char because int might match the return type of a GCC
20275 builtin and then its argument prototype would still apply. */
20276 #ifdef __cplusplus
20277 extern "C"
20278 #endif
20279 char com_err ();
20281 main ()
20283 return com_err ();
20285 return 0;
20287 _ACEOF
20288 rm -f conftest.$ac_objext conftest$ac_exeext
20289 if { (ac_try="$ac_link"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_link") 2>conftest.er1
20296 ac_status=$?
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest$ac_exeext &&
20305 $as_test_x conftest$ac_exeext; then
20306 ac_cv_lib_com_err_com_err=yes
20307 else
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_cv_lib_com_err_com_err=no
20314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20315 conftest$ac_exeext conftest.$ac_ext
20316 LIBS=$ac_check_lib_save_LIBS
20318 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20319 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20320 if test $ac_cv_lib_com_err_com_err = yes; then
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_LIBCOM_ERR 1
20323 _ACEOF
20325 LIBS="-lcom_err $LIBS"
20330 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20331 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20332 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 ac_check_lib_save_LIBS=$LIBS
20336 LIBS="-lk5crypto $LIBS"
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20344 /* Override any GCC internal prototype to avoid an error.
20345 Use char because int might match the return type of a GCC
20346 builtin and then its argument prototype would still apply. */
20347 #ifdef __cplusplus
20348 extern "C"
20349 #endif
20350 char mit_des_cbc_encrypt ();
20352 main ()
20354 return mit_des_cbc_encrypt ();
20356 return 0;
20358 _ACEOF
20359 rm -f conftest.$ac_objext conftest$ac_exeext
20360 if { (ac_try="$ac_link"
20361 case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_link") 2>conftest.er1
20367 ac_status=$?
20368 grep -v '^ *+' conftest.er1 >conftest.err
20369 rm -f conftest.er1
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && {
20373 test -z "$ac_c_werror_flag" ||
20374 test ! -s conftest.err
20375 } && test -s conftest$ac_exeext &&
20376 $as_test_x conftest$ac_exeext; then
20377 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20378 else
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20386 conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20389 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20390 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20391 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20392 cat >>confdefs.h <<_ACEOF
20393 #define HAVE_LIBK5CRYPTO 1
20394 _ACEOF
20396 LIBS="-lk5crypto $LIBS"
20401 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20402 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20403 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406 ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lcrypto $LIBS"
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 /* Override any GCC internal prototype to avoid an error.
20416 Use char because int might match the return type of a GCC
20417 builtin and then its argument prototype would still apply. */
20418 #ifdef __cplusplus
20419 extern "C"
20420 #endif
20421 char mit_des_cbc_encrypt ();
20423 main ()
20425 return mit_des_cbc_encrypt ();
20427 return 0;
20429 _ACEOF
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (ac_try="$ac_link"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_link") 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && {
20444 test -z "$ac_c_werror_flag" ||
20445 test ! -s conftest.err
20446 } && test -s conftest$ac_exeext &&
20447 $as_test_x conftest$ac_exeext; then
20448 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20449 else
20450 echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20457 conftest$ac_exeext conftest.$ac_ext
20458 LIBS=$ac_check_lib_save_LIBS
20460 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20461 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20462 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20463 cat >>confdefs.h <<_ACEOF
20464 #define HAVE_LIBCRYPTO 1
20465 _ACEOF
20467 LIBS="-lcrypto $LIBS"
20472 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20473 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20474 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477 ac_check_lib_save_LIBS=$LIBS
20478 LIBS="-lkrb5 $LIBS"
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h. */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20486 /* Override any GCC internal prototype to avoid an error.
20487 Use char because int might match the return type of a GCC
20488 builtin and then its argument prototype would still apply. */
20489 #ifdef __cplusplus
20490 extern "C"
20491 #endif
20492 char krb5_init_context ();
20494 main ()
20496 return krb5_init_context ();
20498 return 0;
20500 _ACEOF
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20506 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_link") 2>conftest.er1
20509 ac_status=$?
20510 grep -v '^ *+' conftest.er1 >conftest.err
20511 rm -f conftest.er1
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && {
20515 test -z "$ac_c_werror_flag" ||
20516 test ! -s conftest.err
20517 } && test -s conftest$ac_exeext &&
20518 $as_test_x conftest$ac_exeext; then
20519 ac_cv_lib_krb5_krb5_init_context=yes
20520 else
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 ac_cv_lib_krb5_krb5_init_context=no
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20529 LIBS=$ac_check_lib_save_LIBS
20531 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20532 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20533 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_LIBKRB5 1
20536 _ACEOF
20538 LIBS="-lkrb5 $LIBS"
20542 if test "${with_kerberos5+set}" != set; then
20544 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20545 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20546 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549 ac_check_lib_save_LIBS=$LIBS
20550 LIBS="-ldes425 $LIBS"
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20558 /* Override any GCC internal prototype to avoid an error.
20559 Use char because int might match the return type of a GCC
20560 builtin and then its argument prototype would still apply. */
20561 #ifdef __cplusplus
20562 extern "C"
20563 #endif
20564 char des_cbc_encrypt ();
20566 main ()
20568 return des_cbc_encrypt ();
20570 return 0;
20572 _ACEOF
20573 rm -f conftest.$ac_objext conftest$ac_exeext
20574 if { (ac_try="$ac_link"
20575 case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20578 esac
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_link") 2>conftest.er1
20581 ac_status=$?
20582 grep -v '^ *+' conftest.er1 >conftest.err
20583 rm -f conftest.er1
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest$ac_exeext &&
20590 $as_test_x conftest$ac_exeext; then
20591 ac_cv_lib_des425_des_cbc_encrypt=yes
20592 else
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20596 ac_cv_lib_des425_des_cbc_encrypt=no
20599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20600 conftest$ac_exeext conftest.$ac_ext
20601 LIBS=$ac_check_lib_save_LIBS
20603 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20604 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20605 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20606 cat >>confdefs.h <<_ACEOF
20607 #define HAVE_LIBDES425 1
20608 _ACEOF
20610 LIBS="-ldes425 $LIBS"
20612 else
20614 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20615 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20616 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20617 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 else
20619 ac_check_lib_save_LIBS=$LIBS
20620 LIBS="-ldes $LIBS"
20621 cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h. */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20628 /* Override any GCC internal prototype to avoid an error.
20629 Use char because int might match the return type of a GCC
20630 builtin and then its argument prototype would still apply. */
20631 #ifdef __cplusplus
20632 extern "C"
20633 #endif
20634 char des_cbc_encrypt ();
20636 main ()
20638 return des_cbc_encrypt ();
20640 return 0;
20642 _ACEOF
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (ac_try="$ac_link"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_link") 2>conftest.er1
20651 ac_status=$?
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } && {
20657 test -z "$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 } && test -s conftest$ac_exeext &&
20660 $as_test_x conftest$ac_exeext; then
20661 ac_cv_lib_des_des_cbc_encrypt=yes
20662 else
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 ac_cv_lib_des_des_cbc_encrypt=no
20669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20670 conftest$ac_exeext conftest.$ac_ext
20671 LIBS=$ac_check_lib_save_LIBS
20673 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20674 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20675 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_LIBDES 1
20678 _ACEOF
20680 LIBS="-ldes $LIBS"
20687 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20688 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20689 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692 ac_check_lib_save_LIBS=$LIBS
20693 LIBS="-lkrb4 $LIBS"
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20701 /* Override any GCC internal prototype to avoid an error.
20702 Use char because int might match the return type of a GCC
20703 builtin and then its argument prototype would still apply. */
20704 #ifdef __cplusplus
20705 extern "C"
20706 #endif
20707 char krb_get_cred ();
20709 main ()
20711 return krb_get_cred ();
20713 return 0;
20715 _ACEOF
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_link") 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest$ac_exeext &&
20733 $as_test_x conftest$ac_exeext; then
20734 ac_cv_lib_krb4_krb_get_cred=yes
20735 else
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20739 ac_cv_lib_krb4_krb_get_cred=no
20742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20743 conftest$ac_exeext conftest.$ac_ext
20744 LIBS=$ac_check_lib_save_LIBS
20746 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20747 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20748 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define HAVE_LIBKRB4 1
20751 _ACEOF
20753 LIBS="-lkrb4 $LIBS"
20755 else
20757 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20758 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20759 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762 ac_check_lib_save_LIBS=$LIBS
20763 LIBS="-lkrb $LIBS"
20764 cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h. */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20774 #ifdef __cplusplus
20775 extern "C"
20776 #endif
20777 char krb_get_cred ();
20779 main ()
20781 return krb_get_cred ();
20783 return 0;
20785 _ACEOF
20786 rm -f conftest.$ac_objext conftest$ac_exeext
20787 if { (ac_try="$ac_link"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20791 esac
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_link") 2>conftest.er1
20794 ac_status=$?
20795 grep -v '^ *+' conftest.er1 >conftest.err
20796 rm -f conftest.er1
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } && {
20800 test -z "$ac_c_werror_flag" ||
20801 test ! -s conftest.err
20802 } && test -s conftest$ac_exeext &&
20803 $as_test_x conftest$ac_exeext; then
20804 ac_cv_lib_krb_krb_get_cred=yes
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 ac_cv_lib_krb_krb_get_cred=no
20812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20813 conftest$ac_exeext conftest.$ac_ext
20814 LIBS=$ac_check_lib_save_LIBS
20816 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20817 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20818 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define HAVE_LIBKRB 1
20821 _ACEOF
20823 LIBS="-lkrb $LIBS"
20831 if test "${with_kerberos5+set}" = set; then
20833 for ac_header in krb5.h
20835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 ac_res=`eval echo '${'$as_ac_Header'}'`
20843 { echo "$as_me:$LINENO: result: $ac_res" >&5
20844 echo "${ECHO_T}$ac_res" >&6; }
20845 else
20846 # Is the header compilable?
20847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 $ac_includes_default
20856 #include <$ac_header>
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20866 ac_status=$?
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_header_compiler=yes
20876 else
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_header_compiler=no
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20885 echo "${ECHO_T}$ac_header_compiler" >&6; }
20887 # Is the header present?
20888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20890 cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h. */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 #include <$ac_header>
20897 _ACEOF
20898 if { (ac_try="$ac_cpp conftest.$ac_ext"
20899 case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20902 esac
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20905 ac_status=$?
20906 grep -v '^ *+' conftest.er1 >conftest.err
20907 rm -f conftest.er1
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } >/dev/null && {
20911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 }; then
20914 ac_header_preproc=yes
20915 else
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_header_preproc=no
20922 rm -f conftest.err conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20924 echo "${ECHO_T}$ac_header_preproc" >&6; }
20926 # So? What about this header?
20927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20928 yes:no: )
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20933 ac_header_preproc=yes
20935 no:yes:* )
20936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20950 esac
20951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 else
20956 eval "$as_ac_Header=\$ac_header_preproc"
20958 ac_res=`eval echo '${'$as_ac_Header'}'`
20959 { echo "$as_me:$LINENO: result: $ac_res" >&5
20960 echo "${ECHO_T}$ac_res" >&6; }
20963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20966 _ACEOF
20970 done
20972 else
20974 for ac_header in des.h
20976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984 { echo "$as_me:$LINENO: result: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20986 else
20987 # Is the header compilable?
20988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h. */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 $ac_includes_default
20997 #include <$ac_header>
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_compile") 2>conftest.er1
21007 ac_status=$?
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest.$ac_objext; then
21016 ac_header_compiler=yes
21017 else
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_header_compiler=no
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21026 echo "${ECHO_T}$ac_header_compiler" >&6; }
21028 # Is the header present?
21029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21031 cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h. */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 #include <$ac_header>
21038 _ACEOF
21039 if { (ac_try="$ac_cpp conftest.$ac_ext"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } >/dev/null && {
21052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 }; then
21055 ac_header_preproc=yes
21056 else
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_header_preproc=no
21063 rm -f conftest.err conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21065 echo "${ECHO_T}$ac_header_preproc" >&6; }
21067 # So? What about this header?
21068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21069 yes:no: )
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21074 ac_header_preproc=yes
21076 no:yes:* )
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21091 esac
21092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 else
21097 eval "$as_ac_Header=\$ac_header_preproc"
21099 ac_res=`eval echo '${'$as_ac_Header'}'`
21100 { echo "$as_me:$LINENO: result: $ac_res" >&5
21101 echo "${ECHO_T}$ac_res" >&6; }
21104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21105 cat >>confdefs.h <<_ACEOF
21106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21107 _ACEOF
21109 else
21111 for ac_header in kerberosIV/des.h
21113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 ac_res=`eval echo '${'$as_ac_Header'}'`
21121 { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21123 else
21124 # Is the header compilable?
21125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 $ac_includes_default
21134 #include <$ac_header>
21135 _ACEOF
21136 rm -f conftest.$ac_objext
21137 if { (ac_try="$ac_compile"
21138 case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21141 esac
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_compile") 2>conftest.er1
21144 ac_status=$?
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest.$ac_objext; then
21153 ac_header_compiler=yes
21154 else
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_header_compiler=no
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21163 echo "${ECHO_T}$ac_header_compiler" >&6; }
21165 # Is the header present?
21166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21168 cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h. */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174 #include <$ac_header>
21175 _ACEOF
21176 if { (ac_try="$ac_cpp conftest.$ac_ext"
21177 case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21180 esac
21181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21183 ac_status=$?
21184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } >/dev/null && {
21189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21190 test ! -s conftest.err
21191 }; then
21192 ac_header_preproc=yes
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 ac_header_preproc=no
21200 rm -f conftest.err conftest.$ac_ext
21201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21202 echo "${ECHO_T}$ac_header_preproc" >&6; }
21204 # So? What about this header?
21205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21206 yes:no: )
21207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21211 ac_header_preproc=yes
21213 no:yes:* )
21214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21228 esac
21229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234 eval "$as_ac_Header=\$ac_header_preproc"
21236 ac_res=`eval echo '${'$as_ac_Header'}'`
21237 { echo "$as_me:$LINENO: result: $ac_res" >&5
21238 echo "${ECHO_T}$ac_res" >&6; }
21241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21242 cat >>confdefs.h <<_ACEOF
21243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21244 _ACEOF
21246 else
21248 for ac_header in kerberos/des.h
21250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 ac_res=`eval echo '${'$as_ac_Header'}'`
21258 { echo "$as_me:$LINENO: result: $ac_res" >&5
21259 echo "${ECHO_T}$ac_res" >&6; }
21260 else
21261 # Is the header compilable?
21262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h. */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 $ac_includes_default
21271 #include <$ac_header>
21272 _ACEOF
21273 rm -f conftest.$ac_objext
21274 if { (ac_try="$ac_compile"
21275 case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_compile") 2>conftest.er1
21281 ac_status=$?
21282 grep -v '^ *+' conftest.er1 >conftest.err
21283 rm -f conftest.er1
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } && {
21287 test -z "$ac_c_werror_flag" ||
21288 test ! -s conftest.err
21289 } && test -s conftest.$ac_objext; then
21290 ac_header_compiler=yes
21291 else
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ac_header_compiler=no
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21300 echo "${ECHO_T}$ac_header_compiler" >&6; }
21302 # Is the header present?
21303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21305 cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h. */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 #include <$ac_header>
21312 _ACEOF
21313 if { (ac_try="$ac_cpp conftest.$ac_ext"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21320 ac_status=$?
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } >/dev/null && {
21326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21327 test ! -s conftest.err
21328 }; then
21329 ac_header_preproc=yes
21330 else
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_header_preproc=no
21337 rm -f conftest.err conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21339 echo "${ECHO_T}$ac_header_preproc" >&6; }
21341 # So? What about this header?
21342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21343 yes:no: )
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21348 ac_header_preproc=yes
21350 no:yes:* )
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21365 esac
21366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371 eval "$as_ac_Header=\$ac_header_preproc"
21373 ac_res=`eval echo '${'$as_ac_Header'}'`
21374 { echo "$as_me:$LINENO: result: $ac_res" >&5
21375 echo "${ECHO_T}$ac_res" >&6; }
21378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21381 _ACEOF
21385 done
21389 done
21393 done
21396 for ac_header in krb.h
21398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 ac_res=`eval echo '${'$as_ac_Header'}'`
21406 { echo "$as_me:$LINENO: result: $ac_res" >&5
21407 echo "${ECHO_T}$ac_res" >&6; }
21408 else
21409 # Is the header compilable?
21410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21412 cat >conftest.$ac_ext <<_ACEOF
21413 /* confdefs.h. */
21414 _ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h. */
21418 $ac_includes_default
21419 #include <$ac_header>
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_compile") 2>conftest.er1
21429 ac_status=$?
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } && {
21435 test -z "$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 } && test -s conftest.$ac_objext; then
21438 ac_header_compiler=yes
21439 else
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_header_compiler=no
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21448 echo "${ECHO_T}$ac_header_compiler" >&6; }
21450 # Is the header present?
21451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h. */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include <$ac_header>
21460 _ACEOF
21461 if { (ac_try="$ac_cpp conftest.$ac_ext"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } >/dev/null && {
21474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 }; then
21477 ac_header_preproc=yes
21478 else
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21482 ac_header_preproc=no
21485 rm -f conftest.err conftest.$ac_ext
21486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21487 echo "${ECHO_T}$ac_header_preproc" >&6; }
21489 # So? What about this header?
21490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21491 yes:no: )
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21496 ac_header_preproc=yes
21498 no:yes:* )
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21513 esac
21514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519 eval "$as_ac_Header=\$ac_header_preproc"
21521 ac_res=`eval echo '${'$as_ac_Header'}'`
21522 { echo "$as_me:$LINENO: result: $ac_res" >&5
21523 echo "${ECHO_T}$ac_res" >&6; }
21526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21527 cat >>confdefs.h <<_ACEOF
21528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21529 _ACEOF
21531 else
21533 for ac_header in kerberosIV/krb.h
21535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 ac_res=`eval echo '${'$as_ac_Header'}'`
21543 { echo "$as_me:$LINENO: result: $ac_res" >&5
21544 echo "${ECHO_T}$ac_res" >&6; }
21545 else
21546 # Is the header compilable?
21547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21549 cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h. */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 $ac_includes_default
21556 #include <$ac_header>
21557 _ACEOF
21558 rm -f conftest.$ac_objext
21559 if { (ac_try="$ac_compile"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_compile") 2>conftest.er1
21566 ac_status=$?
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } && {
21572 test -z "$ac_c_werror_flag" ||
21573 test ! -s conftest.err
21574 } && test -s conftest.$ac_objext; then
21575 ac_header_compiler=yes
21576 else
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_header_compiler=no
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21585 echo "${ECHO_T}$ac_header_compiler" >&6; }
21587 # Is the header present?
21588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21590 cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h. */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 #include <$ac_header>
21597 _ACEOF
21598 if { (ac_try="$ac_cpp conftest.$ac_ext"
21599 case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21602 esac
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21605 ac_status=$?
21606 grep -v '^ *+' conftest.er1 >conftest.err
21607 rm -f conftest.er1
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } >/dev/null && {
21611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21613 }; then
21614 ac_header_preproc=yes
21615 else
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_header_preproc=no
21622 rm -f conftest.err conftest.$ac_ext
21623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21624 echo "${ECHO_T}$ac_header_preproc" >&6; }
21626 # So? What about this header?
21627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21628 yes:no: )
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21633 ac_header_preproc=yes
21635 no:yes:* )
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21650 esac
21651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656 eval "$as_ac_Header=\$ac_header_preproc"
21658 ac_res=`eval echo '${'$as_ac_Header'}'`
21659 { echo "$as_me:$LINENO: result: $ac_res" >&5
21660 echo "${ECHO_T}$ac_res" >&6; }
21663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21664 cat >>confdefs.h <<_ACEOF
21665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21666 _ACEOF
21668 else
21670 for ac_header in kerberos/krb.h
21672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 ac_res=`eval echo '${'$as_ac_Header'}'`
21680 { echo "$as_me:$LINENO: result: $ac_res" >&5
21681 echo "${ECHO_T}$ac_res" >&6; }
21682 else
21683 # Is the header compilable?
21684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21686 cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h. */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 $ac_includes_default
21693 #include <$ac_header>
21694 _ACEOF
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_compile") 2>conftest.er1
21703 ac_status=$?
21704 grep -v '^ *+' conftest.er1 >conftest.err
21705 rm -f conftest.er1
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } && {
21709 test -z "$ac_c_werror_flag" ||
21710 test ! -s conftest.err
21711 } && test -s conftest.$ac_objext; then
21712 ac_header_compiler=yes
21713 else
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 ac_header_compiler=no
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21722 echo "${ECHO_T}$ac_header_compiler" >&6; }
21724 # Is the header present?
21725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21727 cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h. */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21733 #include <$ac_header>
21734 _ACEOF
21735 if { (ac_try="$ac_cpp conftest.$ac_ext"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21739 esac
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21742 ac_status=$?
21743 grep -v '^ *+' conftest.er1 >conftest.err
21744 rm -f conftest.er1
21745 cat conftest.err >&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } >/dev/null && {
21748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21749 test ! -s conftest.err
21750 }; then
21751 ac_header_preproc=yes
21752 else
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_header_preproc=no
21759 rm -f conftest.err conftest.$ac_ext
21760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21761 echo "${ECHO_T}$ac_header_preproc" >&6; }
21763 # So? What about this header?
21764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21765 yes:no: )
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21770 ac_header_preproc=yes
21772 no:yes:* )
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21787 esac
21788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793 eval "$as_ac_Header=\$ac_header_preproc"
21795 ac_res=`eval echo '${'$as_ac_Header'}'`
21796 { echo "$as_me:$LINENO: result: $ac_res" >&5
21797 echo "${ECHO_T}$ac_res" >&6; }
21800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21801 cat >>confdefs.h <<_ACEOF
21802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21803 _ACEOF
21807 done
21811 done
21815 done
21819 for ac_header in com_err.h
21821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 ac_res=`eval echo '${'$as_ac_Header'}'`
21829 { echo "$as_me:$LINENO: result: $ac_res" >&5
21830 echo "${ECHO_T}$ac_res" >&6; }
21831 else
21832 # Is the header compilable?
21833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21835 cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h. */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 $ac_includes_default
21842 #include <$ac_header>
21843 _ACEOF
21844 rm -f conftest.$ac_objext
21845 if { (ac_try="$ac_compile"
21846 case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21849 esac
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_compile") 2>conftest.er1
21852 ac_status=$?
21853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } && {
21858 test -z "$ac_c_werror_flag" ||
21859 test ! -s conftest.err
21860 } && test -s conftest.$ac_objext; then
21861 ac_header_compiler=yes
21862 else
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_header_compiler=no
21869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21871 echo "${ECHO_T}$ac_header_compiler" >&6; }
21873 # Is the header present?
21874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21876 cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h. */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21882 #include <$ac_header>
21883 _ACEOF
21884 if { (ac_try="$ac_cpp conftest.$ac_ext"
21885 case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21888 esac
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21891 ac_status=$?
21892 grep -v '^ *+' conftest.er1 >conftest.err
21893 rm -f conftest.er1
21894 cat conftest.err >&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } >/dev/null && {
21897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21898 test ! -s conftest.err
21899 }; then
21900 ac_header_preproc=yes
21901 else
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_header_preproc=no
21908 rm -f conftest.err conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21910 echo "${ECHO_T}$ac_header_preproc" >&6; }
21912 # So? What about this header?
21913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21914 yes:no: )
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21919 ac_header_preproc=yes
21921 no:yes:* )
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21936 esac
21937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 else
21942 eval "$as_ac_Header=\$ac_header_preproc"
21944 ac_res=`eval echo '${'$as_ac_Header'}'`
21945 { echo "$as_me:$LINENO: result: $ac_res" >&5
21946 echo "${ECHO_T}$ac_res" >&6; }
21949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21950 cat >>confdefs.h <<_ACEOF
21951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21952 _ACEOF
21956 done
21960 # Solaris requires -lintl if you want strerror (which calls dgettext)
21961 # to return localized messages.
21963 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21964 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21965 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968 ac_check_lib_save_LIBS=$LIBS
21969 LIBS="-lintl $LIBS"
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h. */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21977 /* Override any GCC internal prototype to avoid an error.
21978 Use char because int might match the return type of a GCC
21979 builtin and then its argument prototype would still apply. */
21980 #ifdef __cplusplus
21981 extern "C"
21982 #endif
21983 char dgettext ();
21985 main ()
21987 return dgettext ();
21989 return 0;
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>conftest.er1
22000 ac_status=$?
22001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext &&
22009 $as_test_x conftest$ac_exeext; then
22010 ac_cv_lib_intl_dgettext=yes
22011 else
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_cv_lib_intl_dgettext=no
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22022 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22023 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22024 if test $ac_cv_lib_intl_dgettext = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_LIBINTL 1
22027 _ACEOF
22029 LIBS="-lintl $LIBS"
22034 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22035 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22036 if test "${emacs_cv_localtime_cache+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039 if test x$ac_cv_func_tzset = xyes; then
22040 if test "$cross_compiling" = yes; then
22041 # If we have tzset, assume the worst when cross-compiling.
22042 emacs_cv_localtime_cache=yes
22043 else
22044 cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h. */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 #include <time.h>
22051 extern char **environ;
22052 unset_TZ ()
22054 char **from, **to;
22055 for (to = from = environ; (*to = *from); from++)
22056 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22057 to++;
22059 char TZ_GMT0[] = "TZ=GMT0";
22060 char TZ_PST8[] = "TZ=PST8";
22061 main()
22063 time_t now = time ((time_t *) 0);
22064 int hour_GMT0, hour_unset;
22065 if (putenv (TZ_GMT0) != 0)
22066 exit (1);
22067 hour_GMT0 = localtime (&now)->tm_hour;
22068 unset_TZ ();
22069 hour_unset = localtime (&now)->tm_hour;
22070 if (putenv (TZ_PST8) != 0)
22071 exit (1);
22072 if (localtime (&now)->tm_hour == hour_GMT0)
22073 exit (1);
22074 unset_TZ ();
22075 if (localtime (&now)->tm_hour != hour_unset)
22076 exit (1);
22077 exit (0);
22079 _ACEOF
22080 rm -f conftest$ac_exeext
22081 if { (ac_try="$ac_link"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22085 esac
22086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_link") 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22091 { (case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22094 esac
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_try") 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
22100 emacs_cv_localtime_cache=no
22101 else
22102 echo "$as_me: program exited with status $ac_status" >&5
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ( exit $ac_status )
22107 emacs_cv_localtime_cache=yes
22109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22113 else
22114 # If we lack tzset, report that localtime does not cache TZ,
22115 # since we can't invalidate the cache if we don't have tzset.
22116 emacs_cv_localtime_cache=no
22119 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22120 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22121 if test $emacs_cv_localtime_cache = yes; then
22123 cat >>confdefs.h <<\_ACEOF
22124 #define LOCALTIME_CACHE 1
22125 _ACEOF
22129 if test "x$HAVE_TIMEVAL" = xyes; then
22131 for ac_func in gettimeofday
22133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h. */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22147 #define $ac_func innocuous_$ac_func
22149 /* System header to define __stub macros and hopefully few prototypes,
22150 which can conflict with char $ac_func (); below.
22151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22152 <limits.h> exists even on freestanding compilers. */
22154 #ifdef __STDC__
22155 # include <limits.h>
22156 #else
22157 # include <assert.h>
22158 #endif
22160 #undef $ac_func
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22165 #ifdef __cplusplus
22166 extern "C"
22167 #endif
22168 char $ac_func ();
22169 /* The GNU C library defines this for functions which it implements
22170 to always fail with ENOSYS. Some functions are actually named
22171 something starting with __ and the normal name is an alias. */
22172 #if defined __stub_$ac_func || defined __stub___$ac_func
22173 choke me
22174 #endif
22177 main ()
22179 return $ac_func ();
22181 return 0;
22183 _ACEOF
22184 rm -f conftest.$ac_objext conftest$ac_exeext
22185 if { (ac_try="$ac_link"
22186 case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191 (eval "$ac_link") 2>conftest.er1
22192 ac_status=$?
22193 grep -v '^ *+' conftest.er1 >conftest.err
22194 rm -f conftest.er1
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } && {
22198 test -z "$ac_c_werror_flag" ||
22199 test ! -s conftest.err
22200 } && test -s conftest$ac_exeext &&
22201 $as_test_x conftest$ac_exeext; then
22202 eval "$as_ac_var=yes"
22203 else
22204 echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22207 eval "$as_ac_var=no"
22210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22211 conftest$ac_exeext conftest.$ac_ext
22213 ac_res=`eval echo '${'$as_ac_var'}'`
22214 { echo "$as_me:$LINENO: result: $ac_res" >&5
22215 echo "${ECHO_T}$ac_res" >&6; }
22216 if test `eval echo '${'$as_ac_var'}'` = yes; then
22217 cat >>confdefs.h <<_ACEOF
22218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22219 _ACEOF
22222 done
22224 if test $ac_cv_func_gettimeofday = yes; then
22225 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22226 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22227 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22229 else
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22237 #ifdef TIME_WITH_SYS_TIME
22238 #include <sys/time.h>
22239 #include <time.h>
22240 #else
22241 #ifdef HAVE_SYS_TIME_H
22242 #include <sys/time.h>
22243 #else
22244 #include <time.h>
22245 #endif
22246 #endif
22248 main ()
22250 struct timeval time;
22251 gettimeofday (&time, 0);
22253 return 0;
22255 _ACEOF
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.$ac_objext; then
22273 emacs_cv_gettimeofday_two_arguments=yes
22274 else
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 emacs_cv_gettimeofday_two_arguments=no
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22284 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22285 if test $emacs_cv_gettimeofday_two_arguments = no; then
22287 cat >>confdefs.h <<\_ACEOF
22288 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22289 _ACEOF
22295 ok_so_far=yes
22296 { echo "$as_me:$LINENO: checking for socket" >&5
22297 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22298 if test "${ac_cv_func_socket+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h. */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22309 #define socket innocuous_socket
22311 /* System header to define __stub macros and hopefully few prototypes,
22312 which can conflict with char socket (); below.
22313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22314 <limits.h> exists even on freestanding compilers. */
22316 #ifdef __STDC__
22317 # include <limits.h>
22318 #else
22319 # include <assert.h>
22320 #endif
22322 #undef socket
22324 /* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22327 #ifdef __cplusplus
22328 extern "C"
22329 #endif
22330 char socket ();
22331 /* The GNU C library defines this for functions which it implements
22332 to always fail with ENOSYS. Some functions are actually named
22333 something starting with __ and the normal name is an alias. */
22334 #if defined __stub_socket || defined __stub___socket
22335 choke me
22336 #endif
22339 main ()
22341 return socket ();
22343 return 0;
22345 _ACEOF
22346 rm -f conftest.$ac_objext conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_link") 2>conftest.er1
22354 ac_status=$?
22355 grep -v '^ *+' conftest.er1 >conftest.err
22356 rm -f conftest.er1
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } && {
22360 test -z "$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22362 } && test -s conftest$ac_exeext &&
22363 $as_test_x conftest$ac_exeext; then
22364 ac_cv_func_socket=yes
22365 else
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22369 ac_cv_func_socket=no
22372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22373 conftest$ac_exeext conftest.$ac_ext
22375 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22376 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22377 if test $ac_cv_func_socket = yes; then
22379 else
22380 ok_so_far=no
22383 if test $ok_so_far = yes; then
22384 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22385 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22386 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22387 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22391 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22392 else
22393 # Is the header compilable?
22394 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22395 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22396 cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h. */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 $ac_includes_default
22403 #include <netinet/in.h>
22404 _ACEOF
22405 rm -f conftest.$ac_objext
22406 if { (ac_try="$ac_compile"
22407 case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_compile") 2>conftest.er1
22413 ac_status=$?
22414 grep -v '^ *+' conftest.er1 >conftest.err
22415 rm -f conftest.er1
22416 cat conftest.err >&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); } && {
22419 test -z "$ac_c_werror_flag" ||
22420 test ! -s conftest.err
22421 } && test -s conftest.$ac_objext; then
22422 ac_header_compiler=yes
22423 else
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_header_compiler=no
22430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22432 echo "${ECHO_T}$ac_header_compiler" >&6; }
22434 # Is the header present?
22435 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22436 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h. */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 #include <netinet/in.h>
22444 _ACEOF
22445 if { (ac_try="$ac_cpp conftest.$ac_ext"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } >/dev/null && {
22458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 }; then
22461 ac_header_preproc=yes
22462 else
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_header_preproc=no
22469 rm -f conftest.err conftest.$ac_ext
22470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22471 echo "${ECHO_T}$ac_header_preproc" >&6; }
22473 # So? What about this header?
22474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22475 yes:no: )
22476 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22477 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22478 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22479 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22480 ac_header_preproc=yes
22482 no:yes:* )
22483 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22484 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22485 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22486 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22487 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22488 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22490 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22491 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22492 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22494 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22497 esac
22498 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22499 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22500 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503 ac_cv_header_netinet_in_h=$ac_header_preproc
22505 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22506 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22509 if test $ac_cv_header_netinet_in_h = yes; then
22511 else
22512 ok_so_far=no
22517 if test $ok_so_far = yes; then
22518 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22519 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22520 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22521 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22525 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22526 else
22527 # Is the header compilable?
22528 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22529 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22530 cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h. */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22536 $ac_includes_default
22537 #include <arpa/inet.h>
22538 _ACEOF
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_header_compiler=yes
22557 else
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_header_compiler=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22566 echo "${ECHO_T}$ac_header_compiler" >&6; }
22568 # Is the header present?
22569 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22570 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h. */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 #include <arpa/inet.h>
22578 _ACEOF
22579 if { (ac_try="$ac_cpp conftest.$ac_ext"
22580 case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22583 esac
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22586 ac_status=$?
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } >/dev/null && {
22592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22593 test ! -s conftest.err
22594 }; then
22595 ac_header_preproc=yes
22596 else
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 ac_header_preproc=no
22603 rm -f conftest.err conftest.$ac_ext
22604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22605 echo "${ECHO_T}$ac_header_preproc" >&6; }
22607 # So? What about this header?
22608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22609 yes:no: )
22610 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22611 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22613 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22614 ac_header_preproc=yes
22616 no:yes:* )
22617 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22618 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22619 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22620 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22621 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22622 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22623 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22624 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22626 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22628 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22631 esac
22632 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22633 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22634 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637 ac_cv_header_arpa_inet_h=$ac_header_preproc
22639 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22640 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22643 if test $ac_cv_header_arpa_inet_h = yes; then
22645 else
22646 ok_so_far=no
22651 if test $ok_so_far = yes; then
22653 cat >>confdefs.h <<\_ACEOF
22654 #define HAVE_INET_SOCKETS 1
22655 _ACEOF
22660 for ac_header in sys/ioctl.h
22662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 ac_res=`eval echo '${'$as_ac_Header'}'`
22670 { echo "$as_me:$LINENO: result: $ac_res" >&5
22671 echo "${ECHO_T}$ac_res" >&6; }
22672 else
22673 # Is the header compilable?
22674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22676 cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h. */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 $ac_includes_default
22683 #include <$ac_header>
22684 _ACEOF
22685 rm -f conftest.$ac_objext
22686 if { (ac_try="$ac_compile"
22687 case "(($ac_try" in
22688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689 *) ac_try_echo=$ac_try;;
22690 esac
22691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22692 (eval "$ac_compile") 2>conftest.er1
22693 ac_status=$?
22694 grep -v '^ *+' conftest.er1 >conftest.err
22695 rm -f conftest.er1
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } && {
22699 test -z "$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22701 } && test -s conftest.$ac_objext; then
22702 ac_header_compiler=yes
22703 else
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ac_header_compiler=no
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22712 echo "${ECHO_T}$ac_header_compiler" >&6; }
22714 # Is the header present?
22715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22717 cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h. */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 #include <$ac_header>
22724 _ACEOF
22725 if { (ac_try="$ac_cpp conftest.$ac_ext"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22732 ac_status=$?
22733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } >/dev/null && {
22738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 }; then
22741 ac_header_preproc=yes
22742 else
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 ac_header_preproc=no
22749 rm -f conftest.err conftest.$ac_ext
22750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22751 echo "${ECHO_T}$ac_header_preproc" >&6; }
22753 # So? What about this header?
22754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22755 yes:no: )
22756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22760 ac_header_preproc=yes
22762 no:yes:* )
22763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22777 esac
22778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
22782 else
22783 eval "$as_ac_Header=\$ac_header_preproc"
22785 ac_res=`eval echo '${'$as_ac_Header'}'`
22786 { echo "$as_me:$LINENO: result: $ac_res" >&5
22787 echo "${ECHO_T}$ac_res" >&6; }
22790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22791 cat >>confdefs.h <<_ACEOF
22792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22793 _ACEOF
22797 done
22800 if test -f /usr/lpp/X11/bin/smt.exp; then
22802 cat >>confdefs.h <<\_ACEOF
22803 #define HAVE_AIX_SMT_EXP 1
22804 _ACEOF
22808 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22809 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22810 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22811 { echo "$as_me:$LINENO: result: yes" >&5
22812 echo "${ECHO_T}yes" >&6; }
22814 cat >>confdefs.h <<\_ACEOF
22815 #define HAVE_DEV_PTMX 1
22816 _ACEOF
22818 else
22819 { echo "$as_me:$LINENO: result: no" >&5
22820 echo "${ECHO_T}no" >&6; }
22823 { echo "$as_me:$LINENO: checking for pid_t" >&5
22824 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22825 if test "${ac_cv_type_pid_t+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 $ac_includes_default
22835 typedef pid_t ac__type_new_;
22837 main ()
22839 if ((ac__type_new_ *) 0)
22840 return 0;
22841 if (sizeof (ac__type_new_))
22842 return 0;
22844 return 0;
22846 _ACEOF
22847 rm -f conftest.$ac_objext
22848 if { (ac_try="$ac_compile"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_compile") 2>conftest.er1
22855 ac_status=$?
22856 grep -v '^ *+' conftest.er1 >conftest.err
22857 rm -f conftest.er1
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest.$ac_objext; then
22864 ac_cv_type_pid_t=yes
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 ac_cv_type_pid_t=no
22872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22874 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22875 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22876 if test $ac_cv_type_pid_t = yes; then
22878 else
22880 cat >>confdefs.h <<_ACEOF
22881 #define pid_t int
22882 _ACEOF
22887 for ac_header in vfork.h
22889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22896 ac_res=`eval echo '${'$as_ac_Header'}'`
22897 { echo "$as_me:$LINENO: result: $ac_res" >&5
22898 echo "${ECHO_T}$ac_res" >&6; }
22899 else
22900 # Is the header compilable?
22901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22903 cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h. */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 $ac_includes_default
22910 #include <$ac_header>
22911 _ACEOF
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_compile") 2>conftest.er1
22920 ac_status=$?
22921 grep -v '^ *+' conftest.er1 >conftest.err
22922 rm -f conftest.er1
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest.$ac_objext; then
22929 ac_header_compiler=yes
22930 else
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ac_header_compiler=no
22937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22939 echo "${ECHO_T}$ac_header_compiler" >&6; }
22941 # Is the header present?
22942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22944 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h. */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 #include <$ac_header>
22951 _ACEOF
22952 if { (ac_try="$ac_cpp conftest.$ac_ext"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956 esac
22957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22959 ac_status=$?
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } >/dev/null && {
22965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22966 test ! -s conftest.err
22967 }; then
22968 ac_header_preproc=yes
22969 else
22970 echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 ac_header_preproc=no
22976 rm -f conftest.err conftest.$ac_ext
22977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22978 echo "${ECHO_T}$ac_header_preproc" >&6; }
22980 # So? What about this header?
22981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22982 yes:no: )
22983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22987 ac_header_preproc=yes
22989 no:yes:* )
22990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23004 esac
23005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23008 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 else
23010 eval "$as_ac_Header=\$ac_header_preproc"
23012 ac_res=`eval echo '${'$as_ac_Header'}'`
23013 { echo "$as_me:$LINENO: result: $ac_res" >&5
23014 echo "${ECHO_T}$ac_res" >&6; }
23017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23018 cat >>confdefs.h <<_ACEOF
23019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23020 _ACEOF
23024 done
23028 for ac_func in fork vfork
23030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23044 #define $ac_func innocuous_$ac_func
23046 /* System header to define __stub macros and hopefully few prototypes,
23047 which can conflict with char $ac_func (); below.
23048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23049 <limits.h> exists even on freestanding compilers. */
23051 #ifdef __STDC__
23052 # include <limits.h>
23053 #else
23054 # include <assert.h>
23055 #endif
23057 #undef $ac_func
23059 /* Override any GCC internal prototype to avoid an error.
23060 Use char because int might match the return type of a GCC
23061 builtin and then its argument prototype would still apply. */
23062 #ifdef __cplusplus
23063 extern "C"
23064 #endif
23065 char $ac_func ();
23066 /* The GNU C library defines this for functions which it implements
23067 to always fail with ENOSYS. Some functions are actually named
23068 something starting with __ and the normal name is an alias. */
23069 #if defined __stub_$ac_func || defined __stub___$ac_func
23070 choke me
23071 #endif
23074 main ()
23076 return $ac_func ();
23078 return 0;
23080 _ACEOF
23081 rm -f conftest.$ac_objext conftest$ac_exeext
23082 if { (ac_try="$ac_link"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_link") 2>conftest.er1
23089 ac_status=$?
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } && {
23095 test -z "$ac_c_werror_flag" ||
23096 test ! -s conftest.err
23097 } && test -s conftest$ac_exeext &&
23098 $as_test_x conftest$ac_exeext; then
23099 eval "$as_ac_var=yes"
23100 else
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 eval "$as_ac_var=no"
23107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23108 conftest$ac_exeext conftest.$ac_ext
23110 ac_res=`eval echo '${'$as_ac_var'}'`
23111 { echo "$as_me:$LINENO: result: $ac_res" >&5
23112 echo "${ECHO_T}$ac_res" >&6; }
23113 if test `eval echo '${'$as_ac_var'}'` = yes; then
23114 cat >>confdefs.h <<_ACEOF
23115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23116 _ACEOF
23119 done
23121 if test "x$ac_cv_func_fork" = xyes; then
23122 { echo "$as_me:$LINENO: checking for working fork" >&5
23123 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23124 if test "${ac_cv_func_fork_works+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 else
23127 if test "$cross_compiling" = yes; then
23128 ac_cv_func_fork_works=cross
23129 else
23130 cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h. */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23136 $ac_includes_default
23138 main ()
23141 /* By Ruediger Kuhlmann. */
23142 return fork () < 0;
23145 return 0;
23147 _ACEOF
23148 rm -f conftest$ac_exeext
23149 if { (ac_try="$ac_link"
23150 case "(($ac_try" in
23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23153 esac
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155 (eval "$ac_link") 2>&5
23156 ac_status=$?
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23159 { (case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_try") 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 ac_cv_func_fork_works=yes
23169 else
23170 echo "$as_me: program exited with status $ac_status" >&5
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23174 ( exit $ac_status )
23175 ac_cv_func_fork_works=no
23177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23182 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23183 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23185 else
23186 ac_cv_func_fork_works=$ac_cv_func_fork
23188 if test "x$ac_cv_func_fork_works" = xcross; then
23189 case $host in
23190 *-*-amigaos* | *-*-msdosdjgpp*)
23191 # Override, as these systems have only a dummy fork() stub
23192 ac_cv_func_fork_works=no
23195 ac_cv_func_fork_works=yes
23197 esac
23198 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23199 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23201 ac_cv_func_vfork_works=$ac_cv_func_vfork
23202 if test "x$ac_cv_func_vfork" = xyes; then
23203 { echo "$as_me:$LINENO: checking for working vfork" >&5
23204 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23205 if test "${ac_cv_func_vfork_works+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208 if test "$cross_compiling" = yes; then
23209 ac_cv_func_vfork_works=cross
23210 else
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h. */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 /* Thanks to Paul Eggert for this test. */
23218 $ac_includes_default
23219 #include <sys/wait.h>
23220 #ifdef HAVE_VFORK_H
23221 # include <vfork.h>
23222 #endif
23223 /* On some sparc systems, changes by the child to local and incoming
23224 argument registers are propagated back to the parent. The compiler
23225 is told about this with #include <vfork.h>, but some compilers
23226 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23227 static variable whose address is put into a register that is
23228 clobbered by the vfork. */
23229 static void
23230 #ifdef __cplusplus
23231 sparc_address_test (int arg)
23232 # else
23233 sparc_address_test (arg) int arg;
23234 #endif
23236 static pid_t child;
23237 if (!child) {
23238 child = vfork ();
23239 if (child < 0) {
23240 perror ("vfork");
23241 _exit(2);
23243 if (!child) {
23244 arg = getpid();
23245 write(-1, "", 0);
23246 _exit (arg);
23252 main ()
23254 pid_t parent = getpid ();
23255 pid_t child;
23257 sparc_address_test (0);
23259 child = vfork ();
23261 if (child == 0) {
23262 /* Here is another test for sparc vfork register problems. This
23263 test uses lots of local variables, at least as many local
23264 variables as main has allocated so far including compiler
23265 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23266 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23267 reuse the register of parent for one of the local variables,
23268 since it will think that parent can't possibly be used any more
23269 in this routine. Assigning to the local variable will thus
23270 munge parent in the parent process. */
23271 pid_t
23272 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23273 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23274 /* Convince the compiler that p..p7 are live; otherwise, it might
23275 use the same hardware register for all 8 local variables. */
23276 if (p != p1 || p != p2 || p != p3 || p != p4
23277 || p != p5 || p != p6 || p != p7)
23278 _exit(1);
23280 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23281 from child file descriptors. If the child closes a descriptor
23282 before it execs or exits, this munges the parent's descriptor
23283 as well. Test for this by closing stdout in the child. */
23284 _exit(close(fileno(stdout)) != 0);
23285 } else {
23286 int status;
23287 struct stat st;
23289 while (wait(&status) != child)
23291 return (
23292 /* Was there some problem with vforking? */
23293 child < 0
23295 /* Did the child fail? (This shouldn't happen.) */
23296 || status
23298 /* Did the vfork/compiler bug occur? */
23299 || parent != getpid()
23301 /* Did the file descriptor bug occur? */
23302 || fstat(fileno(stdout), &st) != 0
23306 _ACEOF
23307 rm -f conftest$ac_exeext
23308 if { (ac_try="$ac_link"
23309 case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23312 esac
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_link") 2>&5
23315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23318 { (case "(($ac_try" in
23319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320 *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323 (eval "$ac_try") 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ac_cv_func_vfork_works=yes
23328 else
23329 echo "$as_me: program exited with status $ac_status" >&5
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ( exit $ac_status )
23334 ac_cv_func_vfork_works=no
23336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23341 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23342 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23345 if test "x$ac_cv_func_fork_works" = xcross; then
23346 ac_cv_func_vfork_works=$ac_cv_func_vfork
23347 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23348 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23351 if test "x$ac_cv_func_vfork_works" = xyes; then
23353 cat >>confdefs.h <<\_ACEOF
23354 #define HAVE_WORKING_VFORK 1
23355 _ACEOF
23357 else
23359 cat >>confdefs.h <<\_ACEOF
23360 #define vfork fork
23361 _ACEOF
23364 if test "x$ac_cv_func_fork_works" = xyes; then
23366 cat >>confdefs.h <<\_ACEOF
23367 #define HAVE_WORKING_FORK 1
23368 _ACEOF
23373 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23374 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23375 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h. */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 #include <langinfo.h>
23386 main ()
23388 char* cs = nl_langinfo(CODESET);
23390 return 0;
23392 _ACEOF
23393 rm -f conftest.$ac_objext conftest$ac_exeext
23394 if { (ac_try="$ac_link"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_link") 2>conftest.er1
23401 ac_status=$?
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest$ac_exeext &&
23410 $as_test_x conftest$ac_exeext; then
23411 emacs_cv_langinfo_codeset=yes
23412 else
23413 echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 emacs_cv_langinfo_codeset=no
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23420 conftest$ac_exeext conftest.$ac_ext
23423 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23424 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23425 if test $emacs_cv_langinfo_codeset = yes; then
23427 cat >>confdefs.h <<\_ACEOF
23428 #define HAVE_LANGINFO_CODESET 1
23429 _ACEOF
23433 { echo "$as_me:$LINENO: checking for size_t" >&5
23434 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23435 if test "${ac_cv_type_size_t+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h. */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23445 typedef size_t ac__type_new_;
23447 main ()
23449 if ((ac__type_new_ *) 0)
23450 return 0;
23451 if (sizeof (ac__type_new_))
23452 return 0;
23454 return 0;
23456 _ACEOF
23457 rm -f conftest.$ac_objext
23458 if { (ac_try="$ac_compile"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23462 esac
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_compile") 2>conftest.er1
23465 ac_status=$?
23466 grep -v '^ *+' conftest.er1 >conftest.err
23467 rm -f conftest.er1
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest.$ac_objext; then
23474 ac_cv_type_size_t=yes
23475 else
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23479 ac_cv_type_size_t=no
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23485 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23486 if test $ac_cv_type_size_t = yes; then
23488 cat >>confdefs.h <<_ACEOF
23489 #define HAVE_SIZE_T 1
23490 _ACEOF
23496 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23497 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23498 if test "${ac_cv_type_mbstate_t+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501 cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h. */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 $ac_includes_default
23508 # include <wchar.h>
23510 main ()
23512 mbstate_t x; return sizeof x;
23514 return 0;
23516 _ACEOF
23517 rm -f conftest.$ac_objext
23518 if { (ac_try="$ac_compile"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23522 esac
23523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23524 (eval "$ac_compile") 2>conftest.er1
23525 ac_status=$?
23526 grep -v '^ *+' conftest.er1 >conftest.err
23527 rm -f conftest.er1
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest.$ac_objext; then
23534 ac_cv_type_mbstate_t=yes
23535 else
23536 echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23539 ac_cv_type_mbstate_t=no
23542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23545 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23546 if test $ac_cv_type_mbstate_t = yes; then
23548 cat >>confdefs.h <<\_ACEOF
23549 #define HAVE_MBSTATE_T 1
23550 _ACEOF
23552 else
23554 cat >>confdefs.h <<\_ACEOF
23555 #define mbstate_t int
23556 _ACEOF
23560 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23561 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23562 if test "${emacs_cv_c_restrict+set}" = set; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
23564 else
23565 cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h. */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 void fred (int *restrict x);
23573 main ()
23577 return 0;
23579 _ACEOF
23580 rm -f conftest.$ac_objext
23581 if { (ac_try="$ac_compile"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585 esac
23586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
23588 ac_status=$?
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
23597 emacs_cv_c_restrict=yes
23598 else
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h. */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 void fred (int *__restrict x);
23610 main ()
23614 return 0;
23616 _ACEOF
23617 rm -f conftest.$ac_objext
23618 if { (ac_try="$ac_compile"
23619 case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23622 esac
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23625 ac_status=$?
23626 grep -v '^ *+' conftest.er1 >conftest.err
23627 rm -f conftest.er1
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 emacs_cv_c_restrict=__restrict
23635 else
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 emacs_cv_c_restrict=no
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23648 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23649 case "$emacs_cv_c_restrict" in
23650 yes) emacs_restrict=restrict;;
23651 no) emacs_restrict="";;
23652 *) emacs_restrict="$emacs_cv_c_restrict";;
23653 esac
23654 if test "$emacs_restrict" != __restrict; then
23656 cat >>confdefs.h <<_ACEOF
23657 #define __restrict $emacs_restrict
23658 _ACEOF
23662 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23663 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23664 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 else
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h. */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 void fred (int x[__restrict]);
23675 main ()
23679 return 0;
23681 _ACEOF
23682 rm -f conftest.$ac_objext
23683 if { (ac_try="$ac_compile"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23687 esac
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_compile") 2>conftest.er1
23690 ac_status=$?
23691 grep -v '^ *+' conftest.er1 >conftest.err
23692 rm -f conftest.er1
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } && {
23696 test -z "$ac_c_werror_flag" ||
23697 test ! -s conftest.err
23698 } && test -s conftest.$ac_objext; then
23699 emacs_cv_c_restrict_arr=yes
23700 else
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 emacs_cv_c_restrict_arr=no
23707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23710 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23711 if test "$emacs_cv_c_restrict_arr" = yes; then
23713 cat >>confdefs.h <<\_ACEOF
23714 #define __restrict_arr __restrict
23715 _ACEOF
23721 # Set up the CFLAGS for real compilation, so we can substitute it.
23722 CFLAGS="$REAL_CFLAGS"
23723 CPPFLAGS="$REAL_CPPFLAGS"
23725 #### Find out which version of Emacs this is.
23726 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23727 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23728 if test x"${version}" = x; then
23729 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23730 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23731 { (exit 1); exit 1; }; }
23734 ### Specify what sort of things we'll be editing into Makefile and config.h.
23735 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23771 cat >>confdefs.h <<_ACEOF
23772 #define EMACS_CONFIGURATION "${canonical}"
23773 _ACEOF
23776 cat >>confdefs.h <<_ACEOF
23777 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23778 _ACEOF
23781 cat >>confdefs.h <<_ACEOF
23782 #define config_machfile "${machfile}"
23783 _ACEOF
23786 cat >>confdefs.h <<_ACEOF
23787 #define config_opsysfile "${opsysfile}"
23788 _ACEOF
23791 cat >>confdefs.h <<_ACEOF
23792 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23793 _ACEOF
23796 cat >>confdefs.h <<_ACEOF
23797 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23798 _ACEOF
23801 cat >>confdefs.h <<_ACEOF
23802 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23803 _ACEOF
23806 cat >>confdefs.h <<_ACEOF
23807 #define UNEXEC_SRC ${UNEXEC_SRC}
23808 _ACEOF
23811 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define HAVE_X_WINDOWS 1
23815 _ACEOF
23818 if test "${USE_X_TOOLKIT}" != "none" ; then
23820 cat >>confdefs.h <<\_ACEOF
23821 #define USE_X_TOOLKIT 1
23822 _ACEOF
23825 if test "${HAVE_X11}" = "yes" ; then
23827 cat >>confdefs.h <<\_ACEOF
23828 #define HAVE_X11 1
23829 _ACEOF
23832 if test "${HAVE_MENUS}" = "yes" ; then
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_MENUS 1
23836 _ACEOF
23839 if test "${GNU_MALLOC}" = "yes" ; then
23841 cat >>confdefs.h <<\_ACEOF
23842 #define GNU_MALLOC 1
23843 _ACEOF
23846 if test "${REL_ALLOC}" = "yes" ; then
23848 cat >>confdefs.h <<\_ACEOF
23849 #define REL_ALLOC 1
23850 _ACEOF
23859 #### Report on what we decided to do.
23860 #### Report GTK as a toolkit, even if it doesn't use Xt.
23861 #### It makes printing result more understandable as using GTK sets
23862 #### toolkit_scroll_bars to yes by default.
23863 if test "${HAVE_GTK}" = "yes"; then
23864 USE_X_TOOLKIT=GTK
23867 echo "
23868 Configured for \`${canonical}'.
23870 Where should the build process find the source code? ${srcdir}
23871 What operating system and machine description files should Emacs use?
23872 \`${opsysfile}' and \`${machfile}'
23873 What compiler should emacs be built with? ${CC} ${CFLAGS}
23874 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23875 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23876 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23877 What window system should Emacs use? ${window_system}
23878 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23880 if test -n "${x_includes}"; then
23881 echo " Where do we find X Windows header files? ${x_includes}"
23882 else
23883 echo " Where do we find X Windows header files? Standard dirs"
23885 if test -n "${x_libraries}"; then
23886 echo " Where do we find X Windows libraries? ${x_libraries}"
23887 else
23888 echo " Where do we find X Windows libraries? Standard dirs"
23891 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23892 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23893 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23894 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23895 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23896 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23897 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23898 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23899 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23900 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23902 if test "${USE_FONT_BACKEND}" = "yes"; then
23903 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23904 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23905 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23906 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23908 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23909 echo
23911 if test $USE_XASSERTS = yes; then
23912 echo " Compiling with asserts turned on."
23913 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23914 echo
23917 if test "$USE_X_TOOLKIT" = GTK; then
23918 case "$canonical" in
23919 *cygwin*)
23920 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23921 will probably get a crash on startup. If this happens, please use another
23922 toolkit for Emacs. See etc/PROBLEMS for more information."
23924 esac
23928 if test "$HAVE_CARBON" = "yes"; then
23929 echo
23930 echo "Warning: The Mac Carbon port is currently unsupported and has
23931 known problems. It is not recommended for use by non-developers.
23932 Read the emacs-devel archives for more information."
23933 echo
23936 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23937 echo "D-Bus integration has been tested for GNU/Linux only."
23938 echo
23942 # Remove any trailing slashes in these variables.
23943 test "${prefix}" != NONE &&
23944 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23945 test "${exec_prefix}" != NONE &&
23946 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23948 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23949 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23950 ## from Makefile.c can correctly provide the arg `-traditional' to the
23951 ## C preprocessor.
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h. */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 yes..yes
23960 _ACEOF
23961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23962 $EGREP "yes..yes" >/dev/null 2>&1; then
23963 CPP_NEED_TRADITIONAL=no
23964 else
23965 CPP_NEED_TRADITIONAL=yes
23967 rm -f conftest*
23970 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"
23972 ac_config_commands="$ac_config_commands default"
23974 cat >confcache <<\_ACEOF
23975 # This file is a shell script that caches the results of configure
23976 # tests run on this system so they can be shared between configure
23977 # scripts and configure runs, see configure's option --config-cache.
23978 # It is not useful on other systems. If it contains results you don't
23979 # want to keep, you may remove or edit it.
23981 # config.status only pays attention to the cache file if you give it
23982 # the --recheck option to rerun configure.
23984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23986 # following values.
23988 _ACEOF
23990 # The following way of writing the cache mishandles newlines in values,
23991 # but we know of no workaround that is simple, portable, and efficient.
23992 # So, we kill variables containing newlines.
23993 # Ultrix sh set writes to stderr and can't be redirected directly,
23994 # and sets the high bit in the cache file unless we assign to the vars.
23996 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23997 eval ac_val=\$$ac_var
23998 case $ac_val in #(
23999 *${as_nl}*)
24000 case $ac_var in #(
24001 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24002 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24003 esac
24004 case $ac_var in #(
24005 _ | IFS | as_nl) ;; #(
24006 *) $as_unset $ac_var ;;
24007 esac ;;
24008 esac
24009 done
24011 (set) 2>&1 |
24012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24013 *${as_nl}ac_space=\ *)
24014 # `set' does not quote correctly, so add quotes (double-quote
24015 # substitution turns \\\\ into \\, and sed turns \\ into \).
24016 sed -n \
24017 "s/'/'\\\\''/g;
24018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24019 ;; #(
24021 # `set' quotes correctly as required by POSIX, so do not add quotes.
24022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24024 esac |
24025 sort
24027 sed '
24028 /^ac_cv_env_/b end
24029 t clear
24030 :clear
24031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24032 t end
24033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24034 :end' >>confcache
24035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24036 if test -w "$cache_file"; then
24037 test "x$cache_file" != "x/dev/null" &&
24038 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24039 echo "$as_me: updating cache $cache_file" >&6;}
24040 cat confcache >$cache_file
24041 else
24042 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24043 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24046 rm -f confcache
24048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24049 # Let make expand exec_prefix.
24050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24052 DEFS=-DHAVE_CONFIG_H
24054 ac_libobjs=
24055 ac_ltlibobjs=
24056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24057 # 1. Remove the extension, and $U if already installed.
24058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24059 ac_i=`echo "$ac_i" | sed "$ac_script"`
24060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24061 # will be set to the directory where LIBOBJS objects are built.
24062 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24063 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24064 done
24065 LIBOBJS=$ac_libobjs
24067 LTLIBOBJS=$ac_ltlibobjs
24071 : ${CONFIG_STATUS=./config.status}
24072 ac_clean_files_save=$ac_clean_files
24073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24074 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24076 cat >$CONFIG_STATUS <<_ACEOF
24077 #! $SHELL
24078 # Generated by $as_me.
24079 # Run this file to recreate the current configuration.
24080 # Compiler output produced by configure, useful for debugging
24081 # configure, is in config.log if it exists.
24083 debug=false
24084 ac_cs_recheck=false
24085 ac_cs_silent=false
24086 SHELL=\${CONFIG_SHELL-$SHELL}
24087 _ACEOF
24089 cat >>$CONFIG_STATUS <<\_ACEOF
24090 ## --------------------- ##
24091 ## M4sh Initialization. ##
24092 ## --------------------- ##
24094 # Be more Bourne compatible
24095 DUALCASE=1; export DUALCASE # for MKS sh
24096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24097 emulate sh
24098 NULLCMD=:
24099 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24100 # is contrary to our usage. Disable this feature.
24101 alias -g '${1+"$@"}'='"$@"'
24102 setopt NO_GLOB_SUBST
24103 else
24104 case `(set -o) 2>/dev/null` in
24105 *posix*) set -o posix ;;
24106 esac
24113 # PATH needs CR
24114 # Avoid depending upon Character Ranges.
24115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24118 as_cr_digits='0123456789'
24119 as_cr_alnum=$as_cr_Letters$as_cr_digits
24121 # The user is always right.
24122 if test "${PATH_SEPARATOR+set}" != set; then
24123 echo "#! /bin/sh" >conf$$.sh
24124 echo "exit 0" >>conf$$.sh
24125 chmod +x conf$$.sh
24126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24127 PATH_SEPARATOR=';'
24128 else
24129 PATH_SEPARATOR=:
24131 rm -f conf$$.sh
24134 # Support unset when possible.
24135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24136 as_unset=unset
24137 else
24138 as_unset=false
24142 # IFS
24143 # We need space, tab and new line, in precisely that order. Quoting is
24144 # there to prevent editors from complaining about space-tab.
24145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24146 # splitting by setting IFS to empty value.)
24147 as_nl='
24149 IFS=" "" $as_nl"
24151 # Find who we are. Look in the path if we contain no directory separator.
24152 case $0 in
24153 *[\\/]* ) as_myself=$0 ;;
24154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24155 for as_dir in $PATH
24157 IFS=$as_save_IFS
24158 test -z "$as_dir" && as_dir=.
24159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24160 done
24161 IFS=$as_save_IFS
24164 esac
24165 # We did not find ourselves, most probably we were run as `sh COMMAND'
24166 # in which case we are not to be found in the path.
24167 if test "x$as_myself" = x; then
24168 as_myself=$0
24170 if test ! -f "$as_myself"; then
24171 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24172 { (exit 1); exit 1; }
24175 # Work around bugs in pre-3.0 UWIN ksh.
24176 for as_var in ENV MAIL MAILPATH
24177 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24178 done
24179 PS1='$ '
24180 PS2='> '
24181 PS4='+ '
24183 # NLS nuisances.
24184 for as_var in \
24185 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24186 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24187 LC_TELEPHONE LC_TIME
24189 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24190 eval $as_var=C; export $as_var
24191 else
24192 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24194 done
24196 # Required to use basename.
24197 if expr a : '\(a\)' >/dev/null 2>&1 &&
24198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24199 as_expr=expr
24200 else
24201 as_expr=false
24204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24205 as_basename=basename
24206 else
24207 as_basename=false
24211 # Name of the executable.
24212 as_me=`$as_basename -- "$0" ||
24213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24214 X"$0" : 'X\(//\)$' \| \
24215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24216 echo X/"$0" |
24217 sed '/^.*\/\([^/][^/]*\)\/*$/{
24218 s//\1/
24221 /^X\/\(\/\/\)$/{
24222 s//\1/
24225 /^X\/\(\/\).*/{
24226 s//\1/
24229 s/.*/./; q'`
24231 # CDPATH.
24232 $as_unset CDPATH
24236 as_lineno_1=$LINENO
24237 as_lineno_2=$LINENO
24238 test "x$as_lineno_1" != "x$as_lineno_2" &&
24239 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24241 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24242 # uniformly replaced by the line number. The first 'sed' inserts a
24243 # line-number line after each line using $LINENO; the second 'sed'
24244 # does the real work. The second script uses 'N' to pair each
24245 # line-number line with the line containing $LINENO, and appends
24246 # trailing '-' during substitution so that $LINENO is not a special
24247 # case at line end.
24248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24249 # scripts with optimization help from Paolo Bonzini. Blame Lee
24250 # E. McMahon (1931-1989) for sed's syntax. :-)
24251 sed -n '
24253 /[$]LINENO/=
24254 ' <$as_myself |
24255 sed '
24256 s/[$]LINENO.*/&-/
24257 t lineno
24259 :lineno
24261 :loop
24262 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24263 t loop
24264 s/-\n.*//
24265 ' >$as_me.lineno &&
24266 chmod +x "$as_me.lineno" ||
24267 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24268 { (exit 1); exit 1; }; }
24270 # Don't try to exec as it changes $[0], causing all sort of problems
24271 # (the dirname of $[0] is not the place where we might find the
24272 # original and so on. Autoconf is especially sensitive to this).
24273 . "./$as_me.lineno"
24274 # Exit status is that of the last command.
24275 exit
24279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24280 as_dirname=dirname
24281 else
24282 as_dirname=false
24285 ECHO_C= ECHO_N= ECHO_T=
24286 case `echo -n x` in
24287 -n*)
24288 case `echo 'x\c'` in
24289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24290 *) ECHO_C='\c';;
24291 esac;;
24293 ECHO_N='-n';;
24294 esac
24296 if expr a : '\(a\)' >/dev/null 2>&1 &&
24297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24298 as_expr=expr
24299 else
24300 as_expr=false
24303 rm -f conf$$ conf$$.exe conf$$.file
24304 if test -d conf$$.dir; then
24305 rm -f conf$$.dir/conf$$.file
24306 else
24307 rm -f conf$$.dir
24308 mkdir conf$$.dir
24310 echo >conf$$.file
24311 if ln -s conf$$.file conf$$ 2>/dev/null; then
24312 as_ln_s='ln -s'
24313 # ... but there are two gotchas:
24314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24316 # In both cases, we have to default to `cp -p'.
24317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24318 as_ln_s='cp -p'
24319 elif ln conf$$.file conf$$ 2>/dev/null; then
24320 as_ln_s=ln
24321 else
24322 as_ln_s='cp -p'
24324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24325 rmdir conf$$.dir 2>/dev/null
24327 if mkdir -p . 2>/dev/null; then
24328 as_mkdir_p=:
24329 else
24330 test -d ./-p && rmdir ./-p
24331 as_mkdir_p=false
24334 if test -x / >/dev/null 2>&1; then
24335 as_test_x='test -x'
24336 else
24337 if ls -dL / >/dev/null 2>&1; then
24338 as_ls_L_option=L
24339 else
24340 as_ls_L_option=
24342 as_test_x='
24343 eval sh -c '\''
24344 if test -d "$1"; then
24345 test -d "$1/.";
24346 else
24347 case $1 in
24348 -*)set "./$1";;
24349 esac;
24350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24351 ???[sx]*):;;*)false;;esac;fi
24352 '\'' sh
24355 as_executable_p=$as_test_x
24357 # Sed expression to map a string onto a valid CPP name.
24358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24360 # Sed expression to map a string onto a valid variable name.
24361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24364 exec 6>&1
24366 # Save the log message, to keep $[0] and so on meaningful, and to
24367 # report actual input values of CONFIG_FILES etc. instead of their
24368 # values after options handling.
24369 ac_log="
24370 This file was extended by emacs $as_me 23.0.50, which was
24371 generated by GNU Autoconf 2.61. Invocation command line was
24373 CONFIG_FILES = $CONFIG_FILES
24374 CONFIG_HEADERS = $CONFIG_HEADERS
24375 CONFIG_LINKS = $CONFIG_LINKS
24376 CONFIG_COMMANDS = $CONFIG_COMMANDS
24377 $ $0 $@
24379 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24382 _ACEOF
24384 cat >>$CONFIG_STATUS <<_ACEOF
24385 # Files that config.status was made for.
24386 config_files="$ac_config_files"
24387 config_headers="$ac_config_headers"
24388 config_commands="$ac_config_commands"
24390 _ACEOF
24392 cat >>$CONFIG_STATUS <<\_ACEOF
24393 ac_cs_usage="\
24394 \`$as_me' instantiates files from templates according to the
24395 current configuration.
24397 Usage: $0 [OPTIONS] [FILE]...
24399 -h, --help print this help, then exit
24400 -V, --version print version number and configuration settings, then exit
24401 -q, --quiet do not print progress messages
24402 -d, --debug don't remove temporary files
24403 --recheck update $as_me by reconfiguring in the same conditions
24404 --file=FILE[:TEMPLATE]
24405 instantiate the configuration file FILE
24406 --header=FILE[:TEMPLATE]
24407 instantiate the configuration header FILE
24409 Configuration files:
24410 $config_files
24412 Configuration headers:
24413 $config_headers
24415 Configuration commands:
24416 $config_commands
24418 Report bugs to <bug-autoconf@gnu.org>."
24420 _ACEOF
24421 cat >>$CONFIG_STATUS <<_ACEOF
24422 ac_cs_version="\\
24423 emacs config.status 23.0.50
24424 configured by $0, generated by GNU Autoconf 2.61,
24425 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24427 Copyright (C) 2006 Free Software Foundation, Inc.
24428 This config.status script is free software; the Free Software Foundation
24429 gives unlimited permission to copy, distribute and modify it."
24431 ac_pwd='$ac_pwd'
24432 srcdir='$srcdir'
24433 INSTALL='$INSTALL'
24434 _ACEOF
24436 cat >>$CONFIG_STATUS <<\_ACEOF
24437 # If no file are specified by the user, then we need to provide default
24438 # value. By we need to know if files were specified by the user.
24439 ac_need_defaults=:
24440 while test $# != 0
24442 case $1 in
24443 --*=*)
24444 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24445 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24446 ac_shift=:
24449 ac_option=$1
24450 ac_optarg=$2
24451 ac_shift=shift
24453 esac
24455 case $ac_option in
24456 # Handling of the options.
24457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24458 ac_cs_recheck=: ;;
24459 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24460 echo "$ac_cs_version"; exit ;;
24461 --debug | --debu | --deb | --de | --d | -d )
24462 debug=: ;;
24463 --file | --fil | --fi | --f )
24464 $ac_shift
24465 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24466 ac_need_defaults=false;;
24467 --header | --heade | --head | --hea )
24468 $ac_shift
24469 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24470 ac_need_defaults=false;;
24471 --he | --h)
24472 # Conflict between --help and --header
24473 { echo "$as_me: error: ambiguous option: $1
24474 Try \`$0 --help' for more information." >&2
24475 { (exit 1); exit 1; }; };;
24476 --help | --hel | -h )
24477 echo "$ac_cs_usage"; exit ;;
24478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24480 ac_cs_silent=: ;;
24482 # This is an error.
24483 -*) { echo "$as_me: error: unrecognized option: $1
24484 Try \`$0 --help' for more information." >&2
24485 { (exit 1); exit 1; }; } ;;
24487 *) ac_config_targets="$ac_config_targets $1"
24488 ac_need_defaults=false ;;
24490 esac
24491 shift
24492 done
24494 ac_configure_extra_args=
24496 if $ac_cs_silent; then
24497 exec 6>/dev/null
24498 ac_configure_extra_args="$ac_configure_extra_args --silent"
24501 _ACEOF
24502 cat >>$CONFIG_STATUS <<_ACEOF
24503 if \$ac_cs_recheck; then
24504 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24505 CONFIG_SHELL=$SHELL
24506 export CONFIG_SHELL
24507 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24510 _ACEOF
24511 cat >>$CONFIG_STATUS <<\_ACEOF
24512 exec 5>>config.log
24514 echo
24515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24516 ## Running $as_me. ##
24517 _ASBOX
24518 echo "$ac_log"
24519 } >&5
24521 _ACEOF
24522 cat >>$CONFIG_STATUS <<_ACEOF
24524 # INIT-COMMANDS
24526 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24528 _ACEOF
24530 cat >>$CONFIG_STATUS <<\_ACEOF
24532 # Handling of arguments.
24533 for ac_config_target in $ac_config_targets
24535 case $ac_config_target in
24536 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24538 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24539 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24540 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24541 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24542 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24543 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24544 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24545 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24546 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24547 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24548 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24550 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24551 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24552 { (exit 1); exit 1; }; };;
24553 esac
24554 done
24557 # If the user did not use the arguments to specify the items to instantiate,
24558 # then the envvar interface is used. Set only those that are not.
24559 # We use the long form for the default assignment because of an extremely
24560 # bizarre bug on SunOS 4.1.3.
24561 if $ac_need_defaults; then
24562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24563 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24567 # Have a temporary directory for convenience. Make it in the build tree
24568 # simply because there is no reason against having it here, and in addition,
24569 # creating and moving files from /tmp can sometimes cause problems.
24570 # Hook for its removal unless debugging.
24571 # Note that there is a small window in which the directory will not be cleaned:
24572 # after its creation but before its name has been assigned to `$tmp'.
24573 $debug ||
24575 tmp=
24576 trap 'exit_status=$?
24577 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24579 trap '{ (exit 1); exit 1; }' 1 2 13 15
24581 # Create a (secure) tmp directory for tmp files.
24584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24585 test -n "$tmp" && test -d "$tmp"
24586 } ||
24588 tmp=./conf$$-$RANDOM
24589 (umask 077 && mkdir "$tmp")
24590 } ||
24592 echo "$me: cannot create a temporary directory in ." >&2
24593 { (exit 1); exit 1; }
24597 # Set up the sed scripts for CONFIG_FILES section.
24600 # No need to generate the scripts if there are no CONFIG_FILES.
24601 # This happens for instance when ./config.status config.h
24602 if test -n "$CONFIG_FILES"; then
24604 _ACEOF
24608 ac_delim='%!_!# '
24609 for ac_last_try in false false false false false :; do
24610 cat >conf$$subs.sed <<_ACEOF
24611 SHELL!$SHELL$ac_delim
24612 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24613 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24614 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24615 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24616 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24617 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24618 exec_prefix!$exec_prefix$ac_delim
24619 prefix!$prefix$ac_delim
24620 program_transform_name!$program_transform_name$ac_delim
24621 bindir!$bindir$ac_delim
24622 sbindir!$sbindir$ac_delim
24623 libexecdir!$libexecdir$ac_delim
24624 datarootdir!$datarootdir$ac_delim
24625 datadir!$datadir$ac_delim
24626 sysconfdir!$sysconfdir$ac_delim
24627 sharedstatedir!$sharedstatedir$ac_delim
24628 localstatedir!$localstatedir$ac_delim
24629 includedir!$includedir$ac_delim
24630 oldincludedir!$oldincludedir$ac_delim
24631 docdir!$docdir$ac_delim
24632 infodir!$infodir$ac_delim
24633 htmldir!$htmldir$ac_delim
24634 dvidir!$dvidir$ac_delim
24635 pdfdir!$pdfdir$ac_delim
24636 psdir!$psdir$ac_delim
24637 libdir!$libdir$ac_delim
24638 localedir!$localedir$ac_delim
24639 mandir!$mandir$ac_delim
24640 DEFS!$DEFS$ac_delim
24641 ECHO_C!$ECHO_C$ac_delim
24642 ECHO_N!$ECHO_N$ac_delim
24643 ECHO_T!$ECHO_T$ac_delim
24644 LIBS!$LIBS$ac_delim
24645 build_alias!$build_alias$ac_delim
24646 host_alias!$host_alias$ac_delim
24647 target_alias!$target_alias$ac_delim
24648 MAINT!$MAINT$ac_delim
24649 build!$build$ac_delim
24650 build_cpu!$build_cpu$ac_delim
24651 build_vendor!$build_vendor$ac_delim
24652 build_os!$build_os$ac_delim
24653 host!$host$ac_delim
24654 host_cpu!$host_cpu$ac_delim
24655 host_vendor!$host_vendor$ac_delim
24656 host_os!$host_os$ac_delim
24657 CC!$CC$ac_delim
24658 CFLAGS!$CFLAGS$ac_delim
24659 LDFLAGS!$LDFLAGS$ac_delim
24660 CPPFLAGS!$CPPFLAGS$ac_delim
24661 ac_ct_CC!$ac_ct_CC$ac_delim
24662 EXEEXT!$EXEEXT$ac_delim
24663 OBJEXT!$OBJEXT$ac_delim
24664 CPP!$CPP$ac_delim
24665 GREP!$GREP$ac_delim
24666 EGREP!$EGREP$ac_delim
24667 LN_S!$LN_S$ac_delim
24668 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24669 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24670 INSTALL_DATA!$INSTALL_DATA$ac_delim
24671 RANLIB!$RANLIB$ac_delim
24672 INSTALL_INFO!$INSTALL_INFO$ac_delim
24673 GZIP_PROG!$GZIP_PROG$ac_delim
24674 MAKEINFO!$MAKEINFO$ac_delim
24675 LIBSOUND!$LIBSOUND$ac_delim
24676 PKG_CONFIG!$PKG_CONFIG$ac_delim
24677 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24678 ALSA_LIBS!$ALSA_LIBS$ac_delim
24679 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24680 SET_MAKE!$SET_MAKE$ac_delim
24681 XMKMF!$XMKMF$ac_delim
24682 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24683 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24684 RSVG_LIBS!$RSVG_LIBS$ac_delim
24685 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24686 GTK_LIBS!$GTK_LIBS$ac_delim
24687 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24688 DBUS_LIBS!$DBUS_LIBS$ac_delim
24689 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24690 XFT_LIBS!$XFT_LIBS$ac_delim
24691 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24692 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24693 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24694 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24695 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24696 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24697 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24698 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24699 ALLOCA!$ALLOCA$ac_delim
24700 liblockfile!$liblockfile$ac_delim
24701 LIBOBJS!$LIBOBJS$ac_delim
24702 NEED_SETGID!$NEED_SETGID$ac_delim
24703 KMEM_GROUP!$KMEM_GROUP$ac_delim
24704 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24705 GETOPT_H!$GETOPT_H$ac_delim
24706 GETOPTOBJS!$GETOPTOBJS$ac_delim
24707 version!$version$ac_delim
24708 _ACEOF
24710 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24711 break
24712 elif $ac_last_try; then
24713 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24714 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24715 { (exit 1); exit 1; }; }
24716 else
24717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24719 done
24721 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24722 if test -n "$ac_eof"; then
24723 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24724 ac_eof=`expr $ac_eof + 1`
24727 cat >>$CONFIG_STATUS <<_ACEOF
24728 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24730 _ACEOF
24731 sed '
24732 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24733 s/^/s,@/; s/!/@,|#_!!_#|/
24736 s/'"$ac_delim"'$/,g/; t
24737 s/$/\\/; p
24738 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24739 ' >>$CONFIG_STATUS <conf$$subs.sed
24740 rm -f conf$$subs.sed
24741 cat >>$CONFIG_STATUS <<_ACEOF
24742 CEOF$ac_eof
24743 _ACEOF
24746 ac_delim='%!_!# '
24747 for ac_last_try in false false false false false :; do
24748 cat >conf$$subs.sed <<_ACEOF
24749 configuration!$configuration$ac_delim
24750 canonical!$canonical$ac_delim
24751 srcdir!$srcdir$ac_delim
24752 lispdir!$lispdir$ac_delim
24753 locallisppath!$locallisppath$ac_delim
24754 lisppath!$lisppath$ac_delim
24755 x_default_search_path!$x_default_search_path$ac_delim
24756 etcdir!$etcdir$ac_delim
24757 archlibdir!$archlibdir$ac_delim
24758 bitmapdir!$bitmapdir$ac_delim
24759 gamedir!$gamedir$ac_delim
24760 gameuser!$gameuser$ac_delim
24761 c_switch_system!$c_switch_system$ac_delim
24762 c_switch_machine!$c_switch_machine$ac_delim
24763 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24764 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24765 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24766 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24767 machfile!$machfile$ac_delim
24768 opsysfile!$opsysfile$ac_delim
24769 carbon_appdir!$carbon_appdir$ac_delim
24770 LTLIBOBJS!$LTLIBOBJS$ac_delim
24771 _ACEOF
24773 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24774 break
24775 elif $ac_last_try; then
24776 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24777 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24778 { (exit 1); exit 1; }; }
24779 else
24780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24782 done
24784 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24785 if test -n "$ac_eof"; then
24786 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24787 ac_eof=`expr $ac_eof + 1`
24790 cat >>$CONFIG_STATUS <<_ACEOF
24791 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24793 _ACEOF
24794 sed '
24795 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24796 s/^/s,@/; s/!/@,|#_!!_#|/
24799 s/'"$ac_delim"'$/,g/; t
24800 s/$/\\/; p
24801 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24802 ' >>$CONFIG_STATUS <conf$$subs.sed
24803 rm -f conf$$subs.sed
24804 cat >>$CONFIG_STATUS <<_ACEOF
24805 :end
24806 s/|#_!!_#|//g
24807 CEOF$ac_eof
24808 _ACEOF
24811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24813 # trailing colons and then remove the whole line if VPATH becomes empty
24814 # (actually we leave an empty line to preserve line numbers).
24815 if test "x$srcdir" = x.; then
24816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24817 s/:*\$(srcdir):*/:/
24818 s/:*\${srcdir}:*/:/
24819 s/:*@srcdir@:*/:/
24820 s/^\([^=]*=[ ]*\):*/\1/
24821 s/:*$//
24822 s/^[^=]*=[ ]*$//
24826 cat >>$CONFIG_STATUS <<\_ACEOF
24827 fi # test -n "$CONFIG_FILES"
24830 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24832 case $ac_tag in
24833 :[FHLC]) ac_mode=$ac_tag; continue;;
24834 esac
24835 case $ac_mode$ac_tag in
24836 :[FHL]*:*);;
24837 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24838 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24839 { (exit 1); exit 1; }; };;
24840 :[FH]-) ac_tag=-:-;;
24841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24842 esac
24843 ac_save_IFS=$IFS
24844 IFS=:
24845 set x $ac_tag
24846 IFS=$ac_save_IFS
24847 shift
24848 ac_file=$1
24849 shift
24851 case $ac_mode in
24852 :L) ac_source=$1;;
24853 :[FH])
24854 ac_file_inputs=
24855 for ac_f
24857 case $ac_f in
24858 -) ac_f="$tmp/stdin";;
24859 *) # Look for the file first in the build tree, then in the source tree
24860 # (if the path is not absolute). The absolute path cannot be DOS-style,
24861 # because $ac_f cannot contain `:'.
24862 test -f "$ac_f" ||
24863 case $ac_f in
24864 [\\/$]*) false;;
24865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24866 esac ||
24867 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24868 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24869 { (exit 1); exit 1; }; };;
24870 esac
24871 ac_file_inputs="$ac_file_inputs $ac_f"
24872 done
24874 # Let's still pretend it is `configure' which instantiates (i.e., don't
24875 # use $as_me), people would be surprised to read:
24876 # /* config.h. Generated by config.status. */
24877 configure_input="Generated from "`IFS=:
24878 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24879 if test x"$ac_file" != x-; then
24880 configure_input="$ac_file. $configure_input"
24881 { echo "$as_me:$LINENO: creating $ac_file" >&5
24882 echo "$as_me: creating $ac_file" >&6;}
24885 case $ac_tag in
24886 *:-:* | *:-) cat >"$tmp/stdin";;
24887 esac
24889 esac
24891 ac_dir=`$as_dirname -- "$ac_file" ||
24892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24893 X"$ac_file" : 'X\(//\)[^/]' \| \
24894 X"$ac_file" : 'X\(//\)$' \| \
24895 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24896 echo X"$ac_file" |
24897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24898 s//\1/
24901 /^X\(\/\/\)[^/].*/{
24902 s//\1/
24905 /^X\(\/\/\)$/{
24906 s//\1/
24909 /^X\(\/\).*/{
24910 s//\1/
24913 s/.*/./; q'`
24914 { as_dir="$ac_dir"
24915 case $as_dir in #(
24916 -*) as_dir=./$as_dir;;
24917 esac
24918 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24919 as_dirs=
24920 while :; do
24921 case $as_dir in #(
24922 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24923 *) as_qdir=$as_dir;;
24924 esac
24925 as_dirs="'$as_qdir' $as_dirs"
24926 as_dir=`$as_dirname -- "$as_dir" ||
24927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24928 X"$as_dir" : 'X\(//\)[^/]' \| \
24929 X"$as_dir" : 'X\(//\)$' \| \
24930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24931 echo X"$as_dir" |
24932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24933 s//\1/
24936 /^X\(\/\/\)[^/].*/{
24937 s//\1/
24940 /^X\(\/\/\)$/{
24941 s//\1/
24944 /^X\(\/\).*/{
24945 s//\1/
24948 s/.*/./; q'`
24949 test -d "$as_dir" && break
24950 done
24951 test -z "$as_dirs" || eval "mkdir $as_dirs"
24952 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24953 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24954 { (exit 1); exit 1; }; }; }
24955 ac_builddir=.
24957 case "$ac_dir" in
24958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24961 # A ".." for each directory in $ac_dir_suffix.
24962 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24963 case $ac_top_builddir_sub in
24964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24966 esac ;;
24967 esac
24968 ac_abs_top_builddir=$ac_pwd
24969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24970 # for backward compatibility:
24971 ac_top_builddir=$ac_top_build_prefix
24973 case $srcdir in
24974 .) # We are building in place.
24975 ac_srcdir=.
24976 ac_top_srcdir=$ac_top_builddir_sub
24977 ac_abs_top_srcdir=$ac_pwd ;;
24978 [\\/]* | ?:[\\/]* ) # Absolute name.
24979 ac_srcdir=$srcdir$ac_dir_suffix;
24980 ac_top_srcdir=$srcdir
24981 ac_abs_top_srcdir=$srcdir ;;
24982 *) # Relative name.
24983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24984 ac_top_srcdir=$ac_top_build_prefix$srcdir
24985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24986 esac
24987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24990 case $ac_mode in
24993 # CONFIG_FILE
24996 case $INSTALL in
24997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24999 esac
25000 _ACEOF
25002 cat >>$CONFIG_STATUS <<\_ACEOF
25003 # If the template does not know about datarootdir, expand it.
25004 # FIXME: This hack should be removed a few years after 2.60.
25005 ac_datarootdir_hack=; ac_datarootdir_seen=
25007 case `sed -n '/datarootdir/ {
25011 /@datadir@/p
25012 /@docdir@/p
25013 /@infodir@/p
25014 /@localedir@/p
25015 /@mandir@/p
25016 ' $ac_file_inputs` in
25017 *datarootdir*) ac_datarootdir_seen=yes;;
25018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25019 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25020 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25021 _ACEOF
25022 cat >>$CONFIG_STATUS <<_ACEOF
25023 ac_datarootdir_hack='
25024 s&@datadir@&$datadir&g
25025 s&@docdir@&$docdir&g
25026 s&@infodir@&$infodir&g
25027 s&@localedir@&$localedir&g
25028 s&@mandir@&$mandir&g
25029 s&\\\${datarootdir}&$datarootdir&g' ;;
25030 esac
25031 _ACEOF
25033 # Neutralize VPATH when `$srcdir' = `.'.
25034 # Shell code in configure.ac might set extrasub.
25035 # FIXME: do we really want to maintain this feature?
25036 cat >>$CONFIG_STATUS <<_ACEOF
25037 sed "$ac_vpsub
25038 $extrasub
25039 _ACEOF
25040 cat >>$CONFIG_STATUS <<\_ACEOF
25042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25043 s&@configure_input@&$configure_input&;t t
25044 s&@top_builddir@&$ac_top_builddir_sub&;t t
25045 s&@srcdir@&$ac_srcdir&;t t
25046 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25047 s&@top_srcdir@&$ac_top_srcdir&;t t
25048 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25049 s&@builddir@&$ac_builddir&;t t
25050 s&@abs_builddir@&$ac_abs_builddir&;t t
25051 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25052 s&@INSTALL@&$ac_INSTALL&;t t
25053 $ac_datarootdir_hack
25054 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25056 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25057 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25058 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25059 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25060 which seems to be undefined. Please make sure it is defined." >&5
25061 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25062 which seems to be undefined. Please make sure it is defined." >&2;}
25064 rm -f "$tmp/stdin"
25065 case $ac_file in
25066 -) cat "$tmp/out"; rm -f "$tmp/out";;
25067 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25068 esac
25072 # CONFIG_HEADER
25074 _ACEOF
25076 # Transform confdefs.h into a sed script `conftest.defines', that
25077 # substitutes the proper values into config.h.in to produce config.h.
25078 rm -f conftest.defines conftest.tail
25079 # First, append a space to every undef/define line, to ease matching.
25080 echo 's/$/ /' >conftest.defines
25081 # Then, protect against being on the right side of a sed subst, or in
25082 # an unquoted here document, in config.status. If some macros were
25083 # called several times there might be several #defines for the same
25084 # symbol, which is useless. But do not sort them, since the last
25085 # AC_DEFINE must be honored.
25086 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25087 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25088 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25089 # PARAMS is the parameter list in the macro definition--in most cases, it's
25090 # just an empty string.
25091 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25092 ac_dB='\\)[ (].*,\\1define\\2'
25093 ac_dC=' '
25094 ac_dD=' ,'
25096 uniq confdefs.h |
25097 sed -n '
25098 t rset
25099 :rset
25100 s/^[ ]*#[ ]*define[ ][ ]*//
25101 t ok
25104 s/[\\&,]/\\&/g
25105 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25106 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25107 ' >>conftest.defines
25109 # Remove the space that was appended to ease matching.
25110 # Then replace #undef with comments. This is necessary, for
25111 # example, in the case of _POSIX_SOURCE, which is predefined and required
25112 # on some systems where configure will not decide to define it.
25113 # (The regexp can be short, since the line contains either #define or #undef.)
25114 echo 's/ $//
25115 s,^[ #]*u.*,/* & */,' >>conftest.defines
25117 # Break up conftest.defines:
25118 ac_max_sed_lines=50
25120 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25121 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25122 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25123 # et cetera.
25124 ac_in='$ac_file_inputs'
25125 ac_out='"$tmp/out1"'
25126 ac_nxt='"$tmp/out2"'
25128 while :
25130 # Write a here document:
25131 cat >>$CONFIG_STATUS <<_ACEOF
25132 # First, check the format of the line:
25133 cat >"\$tmp/defines.sed" <<\\CEOF
25134 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25135 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25137 :def
25138 _ACEOF
25139 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25140 echo 'CEOF
25141 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25142 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25143 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25144 grep . conftest.tail >/dev/null || break
25145 rm -f conftest.defines
25146 mv conftest.tail conftest.defines
25147 done
25148 rm -f conftest.defines conftest.tail
25150 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25151 cat >>$CONFIG_STATUS <<\_ACEOF
25152 if test x"$ac_file" != x-; then
25153 echo "/* $configure_input */" >"$tmp/config.h"
25154 cat "$ac_result" >>"$tmp/config.h"
25155 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25156 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25157 echo "$as_me: $ac_file is unchanged" >&6;}
25158 else
25159 rm -f $ac_file
25160 mv "$tmp/config.h" $ac_file
25162 else
25163 echo "/* $configure_input */"
25164 cat "$ac_result"
25166 rm -f "$tmp/out12"
25169 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25170 echo "$as_me: executing $ac_file commands" >&6;}
25172 esac
25175 case $ac_file$ac_mode in
25176 "default":C)
25178 ### Make the necessary directories, if they don't exist.
25179 for dir in etc lisp ; do
25180 test -d ${dir} || mkdir ${dir}
25181 done
25183 # Build src/Makefile from ${srcdir}/src/Makefile.c
25184 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25185 # This must be done after src/config.h is built, since we rely on that file.
25187 # Now get this: Some word that is part of the ${srcdir} directory name
25188 # or the ${configuration} value might, just might, happen to be an
25189 # identifier like `sun4' or `i386' or something, and be predefined by
25190 # the C preprocessor to some helpful value like 1, or maybe the empty
25191 # string. Needless to say consequent macro substitutions are less
25192 # than conducive to the makefile finding the correct directory.
25193 undefs="`echo $top_srcdir $configuration $canonical |
25194 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25195 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25198 echo creating src/epaths.h
25199 ${MAKE-make} epaths-force
25201 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25202 # `..' to `. .' unless invoked with -traditional
25204 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25205 CPPFLAGS="$CPPFLAGS -traditional"
25208 echo creating lib-src/Makefile
25209 ( cd lib-src
25210 rm -f junk.c junk1.c junk2.c
25211 sed -e '/start of cpp stuff/q' \
25212 < Makefile.c > junk1.c
25213 sed -e '1,/start of cpp stuff/d'\
25214 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25215 < Makefile.c > junk.c
25216 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25217 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25218 cat junk1.c junk2.c > Makefile.new
25219 rm -f junk.c junk1.c junk2.c
25220 chmod 444 Makefile.new
25221 mv -f Makefile.new Makefile
25224 echo creating src/Makefile
25225 ( cd src
25226 rm -f junk.c junk1.c junk2.c
25227 sed -e '/start of cpp stuff/q' \
25228 < Makefile.c > junk1.c
25229 sed -e '1,/start of cpp stuff/d'\
25230 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25231 < Makefile.c > junk.c
25232 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25233 echo creating ${srcdir}/admin/unidata/Makefile
25234 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25235 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25237 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25238 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25239 cat junk1.c junk2.c > Makefile.new
25240 rm -f junk.c junk1.c junk2.c
25241 chmod 444 Makefile.new
25242 mv -f Makefile.new Makefile
25245 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25246 echo creating src/.gdbinit
25247 echo source $srcdir/src/.gdbinit > src/.gdbinit
25250 # This is how we know whether to re-run configure in certain cases.
25251 touch src/config.stamp
25255 esac
25256 done # for ac_tag
25259 { (exit 0); exit 0; }
25260 _ACEOF
25261 chmod +x $CONFIG_STATUS
25262 ac_clean_files=$ac_clean_files_save
25265 # configure is writing to config.log, and then calls config.status.
25266 # config.status does its own redirection, appending to config.log.
25267 # Unfortunately, on DOS this fails, as config.log is still kept open
25268 # by configure, so config.status won't be able to write to it; its
25269 # output is simply discarded. So we exec the FD to /dev/null,
25270 # effectively closing config.log, so it can be properly (re)opened and
25271 # appended to by config.status. When coming back to configure, we
25272 # need to make the FD available again.
25273 if test "$no_create" != yes; then
25274 ac_cs_success=:
25275 ac_config_status_args=
25276 test "$silent" = yes &&
25277 ac_config_status_args="$ac_config_status_args --quiet"
25278 exec 5>/dev/null
25279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25280 exec 5>>config.log
25281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25282 # would make configure fail if this is the last instruction.
25283 $ac_cs_success || { (exit 1); exit 1; }