Add Copyright and GPL. Years from date of installation in public Emacs
[emacs.git] / configure
blob001cf65d3e8562c3df04ff2379eba2a314859547
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
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 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
735 XMKMF'
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
784 ac_prev=
785 ac_dashdash=
786 for ac_option
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 esac
1113 done
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1293 cat <<\_ACEOF
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1365 _ACEOF
1366 ac_status=$?
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1442 $ $0 $@
1444 _ACEOF
1445 exec 5>>config.log
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469 _ASUNAME
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1480 } >&5
1482 cat >&5 <<_ACEOF
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1489 _ACEOF
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1503 for ac_arg
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1548 echo
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 esac |
1583 sort
1585 echo
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1684 shift
1685 for ac_site_file
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1693 done
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1813 gameuser=games
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1829 else :
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1843 #define KERBEROS 1
1844 _ACEOF
1850 # Check whether --with-kerberos5 was given.
1851 if test "${with_kerberos5+set}" = set; then
1852 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1853 if test "${with_kerberos+set}" != set; then
1854 with_kerberos=yes
1855 cat >>confdefs.h <<\_ACEOF
1856 #define KERBEROS 1
1857 _ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1863 #define KERBEROS5 1
1864 _ACEOF
1869 # Check whether --with-hesiod was given.
1870 if test "${with_hesiod+set}" = set; then
1871 withval=$with_hesiod;
1872 cat >>confdefs.h <<\_ACEOF
1873 #define HESIOD 1
1874 _ACEOF
1880 # Check whether --with-sound was given.
1881 if test "${with_sound+set}" = set; then
1882 withval=$with_sound;
1887 # Check whether --with-x-toolkit was given.
1888 if test "${with_x_toolkit+set}" = set; then
1889 withval=$with_x_toolkit; case "${withval}" in
1890 y | ye | yes ) val=athena ;;
1891 n | no ) val=no ;;
1892 l | lu | luc | luci | lucid ) val=lucid ;;
1893 a | at | ath | athe | athen | athena ) val=athena ;;
1894 m | mo | mot | moti | motif ) val=motif ;;
1895 g | gt | gtk ) val=gtk ;;
1897 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1898 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1899 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1900 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1901 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1902 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1903 { (exit 1); exit 1; }; }
1905 esac
1906 with_x_toolkit=$val
1911 # Check whether --with-xpm was given.
1912 if test "${with_xpm+set}" = set; then
1913 withval=$with_xpm;
1917 # Check whether --with-jpeg was given.
1918 if test "${with_jpeg+set}" = set; then
1919 withval=$with_jpeg;
1923 # Check whether --with-tiff was given.
1924 if test "${with_tiff+set}" = set; then
1925 withval=$with_tiff;
1929 # Check whether --with-gif was given.
1930 if test "${with_gif+set}" = set; then
1931 withval=$with_gif;
1935 # Check whether --with-png was given.
1936 if test "${with_png+set}" = set; then
1937 withval=$with_png;
1941 # Check whether --with-gtk was given.
1942 if test "${with_gtk+set}" = set; then
1943 withval=$with_gtk;
1947 # Check whether --with-pkg-config-prog was given.
1948 if test "${with_pkg_config_prog+set}" = set; then
1949 withval=$with_pkg_config_prog;
1953 # Check whether --with-toolkit-scroll-bars was given.
1954 if test "${with_toolkit_scroll_bars+set}" = set; then
1955 withval=$with_toolkit_scroll_bars;
1959 # Check whether --with-xim was given.
1960 if test "${with_xim+set}" = set; then
1961 withval=$with_xim;
1965 # Check whether --with-carbon was given.
1966 if test "${with_carbon+set}" = set; then
1967 withval=$with_carbon;
1970 # Check whether --enable-carbon-app was given.
1971 if test "${enable_carbon_app+set}" = set; then
1972 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1976 # Check whether --enable-asserts was given.
1977 if test "${enable_asserts+set}" = set; then
1978 enableval=$enable_asserts; USE_XASSERTS=$enableval
1979 else
1980 USE_XASSERTS=no
1984 # Check whether --enable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1987 else
1988 USE_MAINTAINER_MODE=no
1991 if test $USE_MAINTAINER_MODE = yes; then
1992 MAINT=
1993 else
1994 MAINT=#
1998 # Check whether --enable-locallisppath was given.
1999 if test "${enable_locallisppath+set}" = set; then
2000 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2001 locallisppath=
2002 elif test "${enableval}" != "yes"; then
2003 locallisppath=${enableval}
2008 #### Make srcdir absolute, if it isn't already. It's important to
2009 #### avoid running the path through pwd unnecessarily, since pwd can
2010 #### give you automounter prefixes, which can go away. We do all this
2011 #### so Emacs can find its files when run uninstalled.
2012 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2013 unset CDPATH
2014 case "${srcdir}" in
2015 /* ) ;;
2017 ## We may be able to use the $PWD environment variable to make this
2018 ## absolute. But sometimes PWD is inaccurate.
2019 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2020 ## but that tested only for a well-formed and valid PWD,
2021 ## it did not object when PWD was well-formed and valid but just wrong.
2022 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2023 then
2024 srcdir="$PWD"
2025 else
2026 srcdir="`(cd ${srcdir}; pwd)`"
2029 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2030 esac
2032 #### Check if the source directory already has a configured system in it.
2033 if test `pwd` != `(cd ${srcdir} && pwd)` \
2034 && test -f "${srcdir}/src/config.h" ; then
2035 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2036 as a build directory right now; it has been configured in its own
2037 right. To configure in another directory as well, you MUST
2038 use GNU make. If you do not have GNU make, then you must
2039 now do \`make distclean' in ${srcdir},
2040 and then run $0 again." >&5
2041 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2042 as a build directory right now; it has been configured in its own
2043 right. To configure in another directory as well, you MUST
2044 use GNU make. If you do not have GNU make, then you must
2045 now do \`make distclean' in ${srcdir},
2046 and then run $0 again." >&2;}
2049 #### Given the configuration name, set machfile and opsysfile to the
2050 #### names of the m/*.h and s/*.h files we should use.
2052 ### Canonicalize the configuration name.
2054 ac_aux_dir=
2055 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2056 if test -f "$ac_dir/install-sh"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/install-sh -c"
2059 break
2060 elif test -f "$ac_dir/install.sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install.sh -c"
2063 break
2064 elif test -f "$ac_dir/shtool"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/shtool install -c"
2067 break
2069 done
2070 if test -z "$ac_aux_dir"; then
2071 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2073 { (exit 1); exit 1; }; }
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 ac_build_alias=$build_alias
2097 test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x &&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2112 *-*-*) ;;
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2116 esac
2117 build=$ac_cv_build
2118 ac_save_IFS=$IFS; IFS='-'
2119 set x $ac_cv_build
2120 shift
2121 build_cpu=$1
2122 build_vendor=$2
2123 shift; shift
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2126 build_os=$*
2127 IFS=$ac_save_IFS
2128 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test "x$host_alias" = x; then
2137 ac_cv_host=$ac_cv_build
2138 else
2139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2148 case $ac_cv_host in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2153 esac
2154 host=$ac_cv_host
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_host
2157 shift
2158 host_cpu=$1
2159 host_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 host_os=$*
2164 IFS=$ac_save_IFS
2165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2168 canonical=$host
2169 configuration=${host_alias-$host}
2173 ### If you add support for a new configuration, add code to this
2174 ### switch statement to recognize your configuration name and select
2175 ### the appropriate operating system and machine description files.
2177 ### You would hope that you could choose an m/*.h file pretty much
2178 ### based on the machine portion of the configuration name, and an s-
2179 ### file based on the operating system portion. However, it turns out
2180 ### that each m/*.h file is pretty manufacturer-specific - for
2181 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2182 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2183 ### machines. So we basically have to have a special case for each
2184 ### configuration name.
2186 ### As far as handling version numbers on operating systems is
2187 ### concerned, make sure things will fail in a fixable way. If
2188 ### /etc/MACHINES doesn't say anything about version numbers, be
2189 ### prepared to handle anything reasonably. If version numbers
2190 ### matter, be sure /etc/MACHINES says something about it.
2192 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2193 ### "System V Release 4"; he writes, "The old convention encouraged
2194 ### confusion between `system' and `release' levels'."
2196 machine='' opsys='' unported=no
2197 case "${canonical}" in
2199 ## FreeBSD ports
2200 *-*-freebsd* )
2201 opsys=freebsd
2202 case "${canonical}" in
2203 alpha*-*-freebsd*) machine=alpha ;;
2204 ia64-*-freebsd*) machine=ia64 ;;
2205 sparc64-*-freebsd*) machine=sparc ;;
2206 powerpc-*-freebsd*) machine=macppc ;;
2207 i[3456]86-*-freebsd*) machine=intel386 ;;
2208 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2209 esac
2212 ## NetBSD ports
2213 *-*-netbsd* )
2214 opsys=netbsd
2215 if test -f /usr/lib/crti.o; then
2217 cat >>confdefs.h <<\_ACEOF
2218 #define HAVE_CRTIN
2219 _ACEOF
2223 case "${canonical}" in
2224 alpha*-*-netbsd*) machine=alpha ;;
2225 i[3456]86-*-netbsd*) machine=intel386 ;;
2226 m68k-*-netbsd*)
2227 # This is somewhat bogus.
2228 machine=hp9000s300 ;;
2229 mips-*-netbsd*) machine=pmax ;;
2230 mipsel-*-netbsd*) machine=pmax ;;
2231 mipseb-*-netbsd*) machine=pmax ;;
2232 ns32k-*-netbsd*) machine=ns32000 ;;
2233 powerpc-*-netbsd*) machine=macppc ;;
2234 sparc*-*-netbsd*) machine=sparc ;;
2235 vax-*-netbsd*) machine=vax ;;
2236 arm-*-netbsd*) machine=arm ;;
2237 x86_64-*-netbsd*) machine=amdx86-64 ;;
2238 shle-*-netbsd*) machine=sh3el ;;
2239 esac
2242 ## OpenBSD ports
2243 *-*-openbsd* )
2244 opsys=openbsd
2245 case "${canonical}" in
2246 alpha*-*-openbsd*) machine=alpha ;;
2247 i386-*-openbsd*) machine=intel386 ;;
2248 x86_64-*-openbsd*) machine=amdx86-64 ;;
2249 m68k-*-openbsd*) machine=hp9000s300 ;;
2250 mipsel-*-openbsd*) machine=pmax ;;
2251 ns32k-*-openbsd*) machine=ns32000 ;;
2252 sparc-*-openbsd*) machine=sparc ;;
2253 vax-*-openbsd*) machine=vax ;;
2254 esac
2257 ## LynxOS ports
2258 *-*-lynxos* )
2259 opsys=lynxos
2260 case "${canonical}" in
2261 i[3456]86-*-lynxos*) machine=intel386 ;;
2262 powerpc-*-lynxos*) machine=powerpc ;;
2263 esac
2266 ## Acorn RISCiX:
2267 arm-acorn-riscix1.1* )
2268 machine=acorn opsys=riscix1-1
2270 arm-acorn-riscix1.2* | arm-acorn-riscix )
2271 ## This name is riscix12 instead of riscix1.2
2272 ## to avoid a file name conflict on MSDOS.
2273 machine=acorn opsys=riscix12
2276 ## BSDI ports
2277 *-*-bsdi* )
2278 opsys=bsdi
2279 case "${canonical}" in
2280 i[345]86-*-bsdi*) machine=intel386 ;;
2281 sparc-*-bsdi*) machine=sparc ;;
2282 powerpc-*-bsdi*) machine=macppc ;;
2283 esac
2284 case "${canonical}" in
2285 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2286 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2287 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2288 *-*-bsdi3* ) opsys=bsdos3 ;;
2289 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2290 esac
2293 ## Alliant machines
2294 ## Strictly speaking, we need the version of the alliant operating
2295 ## system to choose the right machine file, but currently the
2296 ## configuration name doesn't tell us enough to choose the right
2297 ## one; we need to give alliants their own operating system name to
2298 ## do this right. When someone cares, they can help us.
2299 fx80-alliant-* )
2300 machine=alliant4 opsys=bsd4-2
2302 i860-alliant-* )
2303 machine=alliant-2800 opsys=bsd4-3
2306 ## Alpha (DEC) machines.
2307 alpha*-dec-osf* )
2308 machine=alpha opsys=osf1
2309 # This is needed to find X11R6.1 libraries for certain tests.
2310 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2311 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2312 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2313 # due to non-traditional preprocessing with the current compiler
2314 # defaults. OSF 4 can also have that compiler version, and there
2315 # seems always to have been a usable /usr/bin/cpp.
2316 NON_GNU_CPP=/usr/bin/cpp
2317 case "${canonical}" in
2318 alpha*-dec-osf[5-9]*)
2319 opsys=osf5-0 ;;
2320 esac
2323 alpha*-*-linux-gnu* )
2324 machine=alpha opsys=gnu-linux
2327 arm*-*-linux-gnu* )
2328 machine=arm opsys=gnu-linux
2331 ## Altos 3068
2332 m68*-altos-sysv* )
2333 machine=altos opsys=usg5-2
2336 ## Amdahl UTS
2337 580-amdahl-sysv* )
2338 machine=amdahl opsys=usg5-2-2
2341 ## Apollo, Domain/OS
2342 m68*-apollo-* )
2343 machine=apollo opsys=bsd4-3
2346 ## Apple Darwin / Mac OS X
2347 *-apple-darwin* )
2348 case "${canonical}" in
2349 i[3456]86-* ) machine=intel386 ;;
2350 powerpc-* ) machine=powermac ;;
2351 * ) unported=yes ;;
2352 esac
2353 opsys=darwin
2354 # Define CPP as follows to make autoconf work correctly.
2355 CPP="${CC-cc} -E -no-cpp-precomp"
2356 # Use fink packages if available.
2357 if test -d /sw/include && test -d /sw/lib; then
2358 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2359 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2360 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2364 ## AT&T 3b2, 3b5, 3b15, 3b20
2365 we32k-att-sysv* )
2366 machine=att3b opsys=usg5-2-2
2369 ## AT&T 3b1 - The Mighty Unix PC!
2370 m68*-att-sysv* )
2371 machine=7300 opsys=usg5-2-2
2374 ## Bull dpx20
2375 rs6000-bull-bosx* )
2376 machine=ibmrs6000 opsys=aix3-2
2379 ## Bull dpx2
2380 m68*-bull-sysv3* )
2381 machine=dpx2 opsys=usg5-3
2384 ## Bull sps7
2385 m68*-bull-sysv2* )
2386 machine=sps7 opsys=usg5-2
2389 ## CCI 5/32, 6/32 -- see "Tahoe".
2391 ## Celerity
2392 ## I don't know what configuration name to use for this; config.sub
2393 ## doesn't seem to know anything about it. Hey, Celerity users, get
2394 ## in touch with us!
2395 celerity-celerity-bsd* )
2396 machine=celerity opsys=bsd4-2
2399 ## Clipper
2400 ## What operating systems does this chip run that Emacs has been
2401 ## tested on?
2402 clipper-* )
2403 machine=clipper
2404 ## We'll use the catch-all code at the bottom to guess the
2405 ## operating system.
2408 ## Compaq Nonstop
2409 mips-compaq-nonstopux* )
2410 machine=nonstopux opsys=nonstopux
2413 ## Convex
2414 *-convex-bsd* | *-convex-convexos* )
2415 machine=convex opsys=bsd4-3
2416 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2417 NON_GNU_CPP="cc -E -P"
2420 ## Cubix QBx/386
2421 i[3456]86-cubix-sysv* )
2422 machine=intel386 opsys=usg5-3
2425 ## Cydra 5
2426 cydra*-cydrome-sysv* )
2427 machine=cydra5 opsys=usg5-3
2430 ## Data General AViiON Machines
2431 ## DG changed naming conventions with the release of 5.4.4.10, they
2432 ## dropped the initial 5.4 but left the intervening R. Because of the
2433 ## R this shouldn't conflict with older versions of the OS (which I
2434 ## think were named like dgux4.*). In addition, DG new AViiONs series
2435 ## uses either Motorola M88k or Intel Pentium CPUs.
2436 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2437 machine=aviion opsys=dgux4
2439 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2440 ## This name is dgux5-4-3 instead of dgux5-4r3
2441 ## to avoid a file name conflict on MSDOS.
2442 machine=aviion opsys=dgux5-4-3
2444 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2445 machine=aviion opsys=dgux5-4r2
2447 m88k-dg-dgux* )
2448 machine=aviion opsys=dgux
2451 ## Data General AViiON Intel (x86) Machines
2452 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2453 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2454 i[345]86-dg-dguxR4* )
2455 machine=aviion-intel opsys=dgux4
2458 ## DECstations
2459 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2460 machine=pmax opsys=bsd4-2
2462 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2463 machine=pmax opsys=bsd4-3
2465 mips-dec-ultrix* )
2466 machine=pmax opsys=ultrix4-3
2468 mips-dec-osf* )
2469 machine=pmax opsys=osf1
2471 mips-dec-mach_bsd4.3* )
2472 machine=pmax opsys=mach-bsd4-3
2475 ## Motorola Delta machines
2476 m68k-motorola-sysv* | m68000-motorola-sysv* )
2477 machine=delta opsys=usg5-3
2478 if test -z "`type gnucc | grep 'not found'`"
2479 then
2480 if test -s /etc/167config
2481 then CC="gnucc -m68040"
2482 else CC="gnucc -m68881"
2484 else
2485 if test -z "`type gcc | grep 'not found'`"
2486 then CC=gcc
2487 else CC=cc
2491 m88k-motorola-sysv4* )
2492 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2493 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2494 # I hope there are not other 4.0 versions for this machine
2495 # which really need usg5-4 instead.
2496 machine=delta88k opsys=usg5-4-2
2498 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2499 machine=delta88k opsys=usg5-3
2502 ## Dual machines
2503 m68*-dual-sysv* )
2504 machine=dual opsys=usg5-2
2506 m68*-dual-uniplus* )
2507 machine=dual opsys=unipl5-2
2510 ## Elxsi 6400
2511 elxsi-elxsi-sysv* )
2512 machine=elxsi opsys=usg5-2
2515 ## Encore machines
2516 ns16k-encore-bsd* )
2517 machine=ns16000 opsys=umax
2520 ## The GEC 63 - apparently, this port isn't really finished yet.
2521 # I'm sure we finished off the last of the machines, though. -- fx
2523 ## Gould Power Node and NP1
2524 pn-gould-bsd4.2* )
2525 machine=gould opsys=bsd4-2
2527 pn-gould-bsd4.3* )
2528 machine=gould opsys=bsd4-3
2530 np1-gould-bsd* )
2531 machine=gould-np1 opsys=bsd4-3
2534 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2535 ## as far as Emacs is concerned).
2536 m88k-harris-cxux* )
2537 # Build needs to be different on 7.0 and later releases
2538 case "`uname -r`" in
2539 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2540 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2541 esac
2542 NON_GNU_CPP="/lib/cpp"
2544 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2545 m68k-harris-cxux* )
2546 machine=nh3000 opsys=cxux
2548 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2549 powerpc-harris-powerunix )
2550 machine=nh6000 opsys=powerunix
2551 NON_GNU_CPP="cc -Xo -E -P"
2553 ## Honeywell XPS100
2554 xps*-honeywell-sysv* )
2555 machine=xps100 opsys=usg5-2
2558 ## HP 9000 series 200 or 300
2559 m68*-hp-bsd* )
2560 machine=hp9000s300 opsys=bsd4-3
2562 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2563 m68*-hp-hpux* )
2564 case "`uname -r`" in
2565 ## Someone's system reports A.B8.05 for this.
2566 ## I wonder what other possibilities there are.
2567 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2568 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2569 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2570 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2571 *) machine=hp9000s300 opsys=hpux ;;
2572 esac
2575 ## Orion machines
2576 orion-orion-bsd* )
2577 machine=orion opsys=bsd4-2
2579 clipper-orion-bsd* )
2580 machine=orion105 opsys=bsd4-2
2583 ## IBM machines
2584 i[3456]86-ibm-aix1.1* )
2585 machine=ibmps2-aix opsys=usg5-2-2
2587 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2588 machine=ibmps2-aix opsys=usg5-3
2590 i370-ibm-aix*)
2591 machine=ibm370aix opsys=usg5-3
2593 s390-*-linux-gnu* )
2594 machine=ibms390 opsys=gnu-linux
2596 s390x-*-linux-gnu* )
2597 machine=ibms390x opsys=gnu-linux
2599 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2600 machine=ibmrs6000 opsys=aix3-1
2602 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2603 machine=ibmrs6000 opsys=aix3-2-5
2605 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2606 machine=ibmrs6000 opsys=aix4-1
2608 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2609 machine=ibmrs6000 opsys=aix4-2
2611 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2612 machine=ibmrs6000 opsys=aix4-2
2614 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2615 machine=ibmrs6000 opsys=aix4
2617 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2618 machine=ibmrs6000 opsys=aix4-1
2620 rs6000-ibm-aix* | powerpc-ibm-aix* )
2621 machine=ibmrs6000 opsys=aix3-2
2623 romp-ibm-bsd4.3* )
2624 machine=ibmrt opsys=bsd4-3
2626 romp-ibm-bsd4.2* )
2627 machine=ibmrt opsys=bsd4-2
2629 romp-ibm-aos4.3* )
2630 machine=ibmrt opsys=bsd4-3
2632 romp-ibm-aos4.2* )
2633 machine=ibmrt opsys=bsd4-2
2635 romp-ibm-aos* )
2636 machine=ibmrt opsys=bsd4-3
2638 romp-ibm-bsd* )
2639 machine=ibmrt opsys=bsd4-3
2641 romp-ibm-aix* )
2642 machine=ibmrt-aix opsys=usg5-2-2
2645 ## Integrated Solutions `Optimum V'
2646 m68*-isi-bsd4.2* )
2647 machine=isi-ov opsys=bsd4-2
2649 m68*-isi-bsd4.3* )
2650 machine=isi-ov opsys=bsd4-3
2653 ## Intel 386 machines where we do care about the manufacturer
2654 i[3456]86-intsys-sysv* )
2655 machine=is386 opsys=usg5-2-2
2658 ## Prime EXL
2659 i[3456]86-prime-sysv* )
2660 machine=i386 opsys=usg5-3
2663 ## Sequent Symmetry running Dynix
2664 i[3456]86-sequent-bsd* )
2665 machine=symmetry opsys=bsd4-3
2668 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2669 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2670 machine=sequent-ptx opsys=ptx4
2671 NON_GNU_CPP=/lib/cpp
2674 ## Sequent Symmetry running DYNIX/ptx
2675 ## Use the old cpp rather than the newer ANSI one.
2676 i[3456]86-sequent-ptx* )
2677 machine=sequent-ptx opsys=ptx
2678 NON_GNU_CPP="/lib/cpp"
2681 ## ncr machine running svr4.3.
2682 i[3456]86-ncr-sysv4.3 )
2683 machine=ncr386 opsys=usg5-4-3
2686 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2687 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2688 i[3456]86-ncr-sysv* )
2689 machine=ncr386 opsys=usg5-4-2
2692 ## Intel Paragon OSF/1
2693 i860-intel-osf1* )
2694 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2697 ## Intel 860
2698 i860-*-sysv4* )
2699 machine=i860 opsys=usg5-4
2700 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2701 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2704 ## Macintosh PowerPC
2705 powerpc*-*-linux-gnu* )
2706 machine=macppc opsys=gnu-linux
2709 ## Masscomp machines
2710 m68*-masscomp-rtu* )
2711 machine=masscomp opsys=rtu
2714 ## Megatest machines
2715 m68*-megatest-bsd* )
2716 machine=mega68 opsys=bsd4-2
2719 ## Workstations sold by MIPS
2720 ## This is not necessarily all workstations using the MIPS processor -
2721 ## Irises are produced by SGI, and DECstations by DEC.
2723 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2724 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2725 ## it gives for choosing between the alternatives seems to be "Use
2726 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2727 ## the BSD world." I'll assume that these are instructions for
2728 ## handling two odd situations, and that every other situation
2729 ## should use mips.h and usg5-2-2, they being listed first.
2730 mips-mips-usg* )
2731 machine=mips4
2732 ## Fall through to the general code at the bottom to decide on the OS.
2734 mips-mips-riscos4* )
2735 machine=mips4 opsys=bsd4-3
2736 NON_GNU_CC="cc -systype bsd43"
2737 NON_GNU_CPP="cc -systype bsd43 -E"
2739 mips-mips-riscos5* )
2740 machine=mips4 opsys=riscos5
2741 NON_GNU_CC="cc -systype bsd43"
2742 NON_GNU_CPP="cc -systype bsd43 -E"
2744 mips-mips-bsd* )
2745 machine=mips opsys=bsd4-3
2747 mips-mips-* )
2748 machine=mips opsys=usg5-2-2
2751 ## NeXT
2752 m68*-next-* | m68k-*-nextstep* )
2753 machine=m68k opsys=nextstep
2756 ## The complete machine from National Semiconductor
2757 ns32k-ns-genix* )
2758 machine=ns32000 opsys=usg5-2
2761 ## NCR machines
2762 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2763 machine=tower32 opsys=usg5-2-2
2765 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2766 machine=tower32v3 opsys=usg5-3
2769 ## NEC EWS4800
2770 mips-nec-sysv4*)
2771 machine=ews4800 opsys=ux4800
2774 ## Nixdorf Targon 31
2775 m68*-nixdorf-sysv* )
2776 machine=targon31 opsys=usg5-2-2
2779 ## Nu (TI or LMI)
2780 m68*-nu-sysv* )
2781 machine=nu opsys=usg5-2
2784 ## Plexus
2785 m68*-plexus-sysv* )
2786 machine=plexus opsys=usg5-2
2789 ## Pyramid machines
2790 ## I don't really have any idea what sort of processor the Pyramid has,
2791 ## so I'm assuming it is its own architecture.
2792 pyramid-pyramid-bsd* )
2793 machine=pyramid opsys=bsd4-2
2796 ## Sequent Balance
2797 ns32k-sequent-bsd4.2* )
2798 machine=sequent opsys=bsd4-2
2800 ns32k-sequent-bsd4.3* )
2801 machine=sequent opsys=bsd4-3
2804 ## Siemens Nixdorf
2805 mips-siemens-sysv* | mips-sni-sysv*)
2806 machine=mips-siemens opsys=usg5-4
2807 NON_GNU_CC=/usr/ccs/bin/cc
2808 NON_GNU_CPP=/usr/ccs/lib/cpp
2811 ## Silicon Graphics machines
2812 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2813 m68*-sgi-iris3.5* )
2814 machine=irist opsys=iris3-5
2816 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2817 machine=irist opsys=iris3-6
2819 ## Iris 4D
2820 mips-sgi-irix3* )
2821 machine=iris4d opsys=irix3-3
2823 mips-sgi-irix4* )
2824 machine=iris4d opsys=irix4-0
2826 mips-sgi-irix6.5 )
2827 machine=iris4d opsys=irix6-5
2828 # Without defining _LANGUAGE_C, things get masked out in the headers
2829 # so that, for instance, grepping for `free' in stdlib.h fails and
2830 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2831 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2832 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2834 mips-sgi-irix6* )
2835 machine=iris4d opsys=irix6-0
2836 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2837 # but presumably it does no harm.
2838 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2839 # -32 probably isn't necessary in later v.6s -- anyone know which?
2840 NON_GCC_TEST_OPTIONS=-32
2842 mips-sgi-irix5.[01]* )
2843 machine=iris4d opsys=irix5-0
2845 mips-sgi-irix5* | mips-sgi-irix* )
2846 machine=iris4d opsys=irix5-2
2849 ## SONY machines
2850 m68*-sony-bsd4.2* )
2851 machine=news opsys=bsd4-2
2853 m68*-sony-bsd4.3* )
2854 machine=news opsys=bsd4-3
2856 m68*-sony-newsos3* | m68*-sony-news3*)
2857 machine=news opsys=bsd4-3
2859 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2860 machine=news-risc opsys=bsd4-3
2862 mips-sony-newsos6* )
2863 machine=news-r6 opsys=newsos6
2865 mips-sony-news* )
2866 machine=news-risc opsys=newsos5
2869 ## Stride
2870 m68*-stride-sysv* )
2871 machine=stride opsys=usg5-2
2874 ## Suns
2875 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2876 machine=sparc opsys=gnu-linux
2879 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2880 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2881 | rs6000-*-solaris2*)
2882 case "${canonical}" in
2883 m68*-sunos1* ) machine=sun1 ;;
2884 m68*-sunos2* ) machine=sun2 ;;
2885 m68* ) machine=sun3 ;;
2886 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2887 i[3456]86-*-* ) machine=intel386 ;;
2888 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2889 powerpcle* ) machine=powerpcle ;;
2890 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2891 sparc* ) machine=sparc ;;
2892 * ) unported=yes ;;
2893 esac
2894 case "${canonical}" in
2895 ## The Sun386 didn't get past 4.0.
2896 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2897 *-sunos4.0* ) opsys=sunos4-0 ;;
2898 *-sunos4.1.[3-9]*noshare )
2899 ## This name is sunos413 instead of sunos4-1-3
2900 ## to avoid a file name conflict on MSDOS.
2901 opsys=sunos413
2902 NON_GNU_CPP=/usr/lib/cpp
2903 NON_GCC_TEST_OPTIONS=-Bstatic
2904 GCC_TEST_OPTIONS=-static
2906 *-sunos4.1.[3-9]* | *-sunos4shr*)
2907 opsys=sunos4shr
2908 NON_GNU_CPP=/usr/lib/cpp
2910 *-sunos4* | *-sunos )
2911 opsys=sunos4-1
2912 NON_GCC_TEST_OPTIONS=-Bstatic
2913 GCC_TEST_OPTIONS=-static
2915 *-sunos5.3* | *-solaris2.3* )
2916 opsys=sol2-3
2917 NON_GNU_CPP=/usr/ccs/lib/cpp
2919 *-sunos5.4* | *-solaris2.4* )
2920 opsys=sol2-4
2921 NON_GNU_CPP=/usr/ccs/lib/cpp
2922 RANLIB="ar -ts"
2924 *-sunos5.5* | *-solaris2.5* )
2925 opsys=sol2-5
2926 NON_GNU_CPP=/usr/ccs/lib/cpp
2927 RANLIB="ar -ts"
2929 *-sunos5.6* | *-solaris2.6* )
2930 opsys=sol2-6
2931 NON_GNU_CPP=/usr/ccs/lib/cpp
2932 RANLIB="ar -ts"
2934 *-sunos5* | *-solaris* )
2935 opsys=sol2-6
2936 NON_GNU_CPP=/usr/ccs/lib/cpp
2938 * ) opsys=bsd4-2 ;;
2939 esac
2940 ## Watch out for a compiler that we know will not work.
2941 case "${canonical}" in
2942 *-solaris* | *-sunos5* )
2943 if [ "x$CC" = x/usr/ucb/cc ]; then
2944 ## /usr/ucb/cc doesn't work;
2945 ## we should find some other compiler that does work.
2946 unset CC
2949 *) ;;
2950 esac
2952 sparc-*-nextstep* )
2953 machine=sparc opsys=nextstep
2956 ## Tadpole 68k
2957 m68*-tadpole-sysv* )
2958 machine=tad68k opsys=usg5-3
2961 ## Tahoe machines
2962 tahoe-tahoe-bsd4.2* )
2963 machine=tahoe opsys=bsd4-2
2965 tahoe-tahoe-bsd4.3* )
2966 machine=tahoe opsys=bsd4-3
2969 ## Tandem Integrity S2
2970 mips-tandem-sysv* )
2971 machine=tandem-s2 opsys=usg5-3
2974 ## Tektronix XD88
2975 m88k-tektronix-sysv3* )
2976 machine=tekxd88 opsys=usg5-3
2979 ## Tektronix 16000 box (6130?)
2980 ns16k-tektronix-bsd* )
2981 machine=ns16000 opsys=bsd4-2
2983 ## Tektronix 4300
2984 ## src/m/tek4300.h hints that this is a m68k machine.
2985 m68*-tektronix-bsd* )
2986 machine=tek4300 opsys=bsd4-3
2989 ## Titan P2 or P3
2990 ## We seem to have lost the machine-description file titan.h!
2991 titan-titan-sysv* )
2992 machine=titan opsys=usg5-3
2995 ## Ustation E30 (SS5E)
2996 m68*-unisys-uniplus* )
2997 machine=ustation opsystem=unipl5-2
3000 ## Vaxen.
3001 vax-dec-* )
3002 machine=vax
3003 case "${canonical}" in
3004 *-bsd4.1* ) opsys=bsd4-1 ;;
3005 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3006 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3007 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3008 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3009 *-vms* ) opsys=vms ;;
3010 * ) unported=yes
3011 esac
3014 ## Whitechapel MG1
3015 ns16k-whitechapel-* )
3016 machine=mg1
3017 ## We don't know what sort of OS runs on these; we'll let the
3018 ## operating system guessing code below try.
3021 ## Wicat
3022 m68*-wicat-sysv* )
3023 machine=wicat opsys=usg5-2
3026 ## IA-64
3027 ia64*-*-linux* )
3028 machine=ia64 opsys=gnu-linux
3031 ## Intel 386 machines where we don't care about the manufacturer
3032 i[3456]86-*-* )
3033 machine=intel386
3034 case "${canonical}" in
3035 *-cygwin ) opsys=cygwin ;;
3036 *-darwin* ) opsys=darwin
3037 CPP="${CC-cc} -E -no-cpp-precomp"
3039 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3040 *-isc2.2* ) opsys=isc2-2 ;;
3041 *-isc4.0* ) opsys=isc4-0 ;;
3042 *-isc4.* ) opsys=isc4-1
3043 GCC_TEST_OPTIONS=-posix
3044 NON_GCC_TEST_OPTIONS=-Xp
3046 *-isc* ) opsys=isc3-0 ;;
3047 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3048 *-esix* ) opsys=esix ;;
3049 *-xenix* ) opsys=xenix ;;
3050 *-linux-gnu* ) opsys=gnu-linux ;;
3051 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3052 *-sco3.2v5* ) opsys=sco5
3053 NON_GNU_CPP=/lib/cpp
3054 # Prevent -belf from being passed to $CPP.
3055 # /lib/cpp does not accept it.
3056 OVERRIDE_CPPFLAGS=" "
3058 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3059 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3060 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3061 *-386bsd* ) opsys=386bsd ;;
3062 *-nextstep* ) opsys=nextstep ;;
3063 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3064 esac
3067 ## m68k Linux-based GNU system
3068 m68k-*-linux-gnu* )
3069 machine=m68k opsys=gnu-linux
3072 ## Mips Linux-based GNU system
3073 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3074 machine=mips opsys=gnu-linux
3077 ## UXP/DS
3078 sparc-fujitsu-sysv4* )
3079 machine=sparc opsys=uxpds
3080 NON_GNU_CPP=/usr/ccs/lib/cpp
3081 RANLIB="ar -ts"
3084 ## UXP/V
3085 f301-fujitsu-uxpv4.1)
3086 machine=f301 opsys=uxpv
3089 ## AMD x86-64 Linux-based GNU system
3090 x86_64-*-linux-gnu* )
3091 machine=amdx86-64 opsys=gnu-linux
3095 unported=yes
3097 esac
3099 ### If the code above didn't choose an operating system, just choose
3100 ### an operating system based on the configuration name. You really
3101 ### only want to use this when you have no idea what the right
3102 ### operating system is; if you know what operating systems a machine
3103 ### runs, it's cleaner to make it explicit in the case statement
3104 ### above.
3105 if test x"${opsys}" = x; then
3106 case "${canonical}" in
3107 *-gnu* ) opsys=gnu ;;
3108 *-bsd4.[01] ) opsys=bsd4-1 ;;
3109 *-bsd4.2 ) opsys=bsd4-2 ;;
3110 *-bsd4.3 ) opsys=bsd4-3 ;;
3111 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3112 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3113 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3114 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3115 *-sysv4.2uw* ) opsys=unixware ;;
3116 *-sysv5uw* ) opsys=unixware ;;
3117 *-sysv5OpenUNIX* ) opsys=unixware ;;
3118 *-sysv4.1* | *-sysvr4.1* )
3119 NON_GNU_CPP=/usr/lib/cpp
3120 opsys=usg5-4 ;;
3121 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3122 if [ x$NON_GNU_CPP = x ]; then
3123 if [ -f /usr/ccs/lib/cpp ]; then
3124 NON_GNU_CPP=/usr/ccs/lib/cpp
3125 else
3126 NON_GNU_CPP=/lib/cpp
3129 opsys=usg5-4-2 ;;
3130 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3132 unported=yes
3134 esac
3139 if test $unported = yes; then
3140 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3141 Check \`etc/MACHINES' for recognized configuration names." >&5
3142 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3143 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3144 { (exit 1); exit 1; }; }
3147 machfile="m/${machine}.h"
3148 opsysfile="s/${opsys}.h"
3151 #### Choose a compiler.
3152 test -n "$CC" && cc_specified=yes
3154 # Save the value of CFLAGS that the user specified.
3155 SPECIFIED_CFLAGS="$CFLAGS"
3157 case ${with_gcc} in
3158 "yes" ) CC="gcc" GCC=yes ;;
3159 "no" ) : ${CC=cc} ;;
3161 esac
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3172 if test "${ac_cv_prog_CC+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3189 done
3190 done
3191 IFS=$as_save_IFS
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197 { echo "$as_me:$LINENO: result: $CC" >&5
3198 echo "${ECHO_T}$CC" >&6; }
3199 else
3200 { echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6; }
3206 if test -z "$ac_cv_prog_CC"; then
3207 ac_ct_CC=$CC
3208 # Extract the first word of "gcc", so it can be a program name with args.
3209 set dummy gcc; ac_word=$2
3210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_prog_ac_ct_CC="gcc"
3226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3229 done
3230 done
3231 IFS=$as_save_IFS
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3238 echo "${ECHO_T}$ac_ct_CC" >&6; }
3239 else
3240 { echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6; }
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3250 whose name does not start with the host triplet. If you think this
3251 configuration is useful to you, please write to autoconf@gnu.org." >&5
3252 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3253 whose name does not start with the host triplet. If you think this
3254 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257 CC=$ac_ct_CC
3259 else
3260 CC="$ac_cv_prog_CC"
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}cc; ac_word=$2
3267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_CC+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_CC="${ac_tool_prefix}cc"
3283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3286 done
3287 done
3288 IFS=$as_save_IFS
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { echo "$as_me:$LINENO: result: $CC" >&5
3295 echo "${ECHO_T}$CC" >&6; }
3296 else
3297 { echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6; }
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_CC+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 ac_prog_rejected=no
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324 ac_prog_rejected=yes
3325 continue
3327 ac_cv_prog_CC="cc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
3335 if test $ac_prog_rejected = yes; then
3336 # We found a bogon in the path, so make sure we never use it.
3337 set dummy $ac_cv_prog_CC
3338 shift
3339 if test $# != 0; then
3340 # We chose a different compiler from the bogus one.
3341 # However, it has the same basename, so the bogon will be chosen
3342 # first if we set CC to just the basename; use the full file name.
3343 shift
3344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { echo "$as_me:$LINENO: result: $CC" >&5
3352 echo "${ECHO_T}$CC" >&6; }
3353 else
3354 { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl.exe
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { echo "$as_me:$LINENO: result: $CC" >&5
3394 echo "${ECHO_T}$CC" >&6; }
3395 else
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3401 test -n "$CC" && break
3402 done
3404 if test -z "$CC"; then
3405 ac_ct_CC=$CC
3406 for ac_prog in cl.exe
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_ac_ct_CC="$ac_prog"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3438 echo "${ECHO_T}$ac_ct_CC" >&6; }
3439 else
3440 { echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6; }
3445 test -n "$ac_ct_CC" && break
3446 done
3448 if test "x$ac_ct_CC" = x; then
3449 CC=""
3450 else
3451 case $cross_compiling:$ac_tool_warned in
3452 yes:)
3453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3454 whose name does not start with the host triplet. If you think this
3455 configuration is useful to you, please write to autoconf@gnu.org." >&5
3456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3457 whose name does not start with the host triplet. If you think this
3458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3459 ac_tool_warned=yes ;;
3460 esac
3461 CC=$ac_ct_CC
3468 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3469 See \`config.log' for more details." >&5
3470 echo "$as_me: error: no acceptable C compiler found in \$PATH
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
3474 # Provide some information about the compiler.
3475 echo "$as_me:$LINENO: checking for C compiler version" >&5
3476 ac_compiler=`set X $ac_compile; echo $2`
3477 { (ac_try="$ac_compiler --version >&5"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compiler --version >&5") 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }
3487 { (ac_try="$ac_compiler -v >&5"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compiler -v >&5") 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }
3497 { (ac_try="$ac_compiler -V >&5"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compiler -V >&5") 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3516 main ()
3520 return 0;
3522 _ACEOF
3523 ac_clean_files_save=$ac_clean_files
3524 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3525 # Try to create an executable without -o first, disregard a.out.
3526 # It will help us diagnose broken compilers, and finding out an intuition
3527 # of exeext.
3528 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3529 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3530 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3532 # List of possible output files, starting from the most likely.
3533 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3534 # only as a last resort. b.out is created by i960 compilers.
3535 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3537 # The IRIX 6 linker writes into existing files which may not be
3538 # executable, retaining their permissions. Remove them first so a
3539 # subsequent execution test works.
3540 ac_rmfiles=
3541 for ac_file in $ac_files
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3545 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3546 esac
3547 done
3548 rm -f $ac_rmfiles
3550 if { (ac_try="$ac_link_default"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_link_default") 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; then
3560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3563 # so that the user can short-circuit this test for compilers unknown to
3564 # Autoconf.
3565 for ac_file in $ac_files ''
3567 test -f "$ac_file" || continue
3568 case $ac_file in
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3571 [ab].out )
3572 # We found the default executable, but exeext='' is most
3573 # certainly right.
3574 break;;
3575 *.* )
3576 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3577 then :; else
3578 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3580 # We set ac_cv_exeext here because the later test for it is not
3581 # safe: cross compilers may not add the suffix if given an `-o'
3582 # argument, so we may need to know it at that point already.
3583 # Even if this section looks crufty: it has the advantage of
3584 # actually working.
3585 break;;
3587 break;;
3588 esac
3589 done
3590 test "$ac_cv_exeext" = no && ac_cv_exeext=
3592 else
3593 ac_file=''
3596 { echo "$as_me:$LINENO: result: $ac_file" >&5
3597 echo "${ECHO_T}$ac_file" >&6; }
3598 if test -z "$ac_file"; then
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C compiler cannot create executables
3605 See \`config.log' for more details." >&2;}
3606 { (exit 77); exit 77; }; }
3609 ac_exeext=$ac_cv_exeext
3611 # Check that the compiler produces executables we can run. If not, either
3612 # the compiler is broken, or we cross compile.
3613 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3614 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3615 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3616 # If not cross compiling, check that we can run a simple program.
3617 if test "$cross_compiling" != yes; then
3618 if { ac_try='./$ac_file'
3619 { (case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_try") 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 cross_compiling=no
3629 else
3630 if test "$cross_compiling" = maybe; then
3631 cross_compiling=yes
3632 else
3633 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details." >&5
3636 echo "$as_me: error: cannot run C compiled programs.
3637 If you meant to cross compile, use \`--host'.
3638 See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3646 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3647 ac_clean_files=$ac_clean_files_save
3648 # Check that the compiler produces executables we can run. If not, either
3649 # the compiler is broken, or we cross compile.
3650 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3651 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3652 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3653 echo "${ECHO_T}$cross_compiling" >&6; }
3655 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3656 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3657 if { (ac_try="$ac_link"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_link") 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; then
3667 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3668 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3669 # work properly (i.e., refer to `conftest.exe'), while it won't with
3670 # `rm'.
3671 for ac_file in conftest.exe conftest conftest.*; do
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3675 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676 break;;
3677 * ) break;;
3678 esac
3679 done
3680 else
3681 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3682 See \`config.log' for more details." >&5
3683 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3684 See \`config.log' for more details." >&2;}
3685 { (exit 1); exit 1; }; }
3688 rm -f conftest$ac_cv_exeext
3689 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3690 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3692 rm -f conftest.$ac_ext
3693 EXEEXT=$ac_cv_exeext
3694 ac_exeext=$EXEEXT
3695 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3696 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3697 if test "${ac_cv_objext+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3708 main ()
3712 return 0;
3714 _ACEOF
3715 rm -f conftest.o conftest.obj
3716 if { (ac_try="$ac_compile"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_compile") 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; then
3726 for ac_file in conftest.o conftest.obj conftest.*; do
3727 test -f "$ac_file" || continue;
3728 case $ac_file in
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3731 break;;
3732 esac
3733 done
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3739 See \`config.log' for more details." >&5
3740 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3741 See \`config.log' for more details." >&2;}
3742 { (exit 1); exit 1; }; }
3745 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3747 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3748 echo "${ECHO_T}$ac_cv_objext" >&6; }
3749 OBJEXT=$ac_cv_objext
3750 ac_objext=$OBJEXT
3751 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3752 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3753 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3764 main ()
3766 #ifndef __GNUC__
3767 choke me
3768 #endif
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 ac_compiler_gnu=yes
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 ac_compiler_gnu=no
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3803 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3804 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3805 GCC=`test $ac_compiler_gnu = yes && echo yes`
3806 ac_test_CFLAGS=${CFLAGS+set}
3807 ac_save_CFLAGS=$CFLAGS
3808 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3809 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3810 if test "${ac_cv_prog_cc_g+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 ac_save_c_werror_flag=$ac_c_werror_flag
3814 ac_c_werror_flag=yes
3815 ac_cv_prog_cc_g=no
3816 CFLAGS="-g"
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3825 main ()
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && {
3846 test -z "$ac_c_werror_flag" ||
3847 test ! -s conftest.err
3848 } && test -s conftest.$ac_objext; then
3849 ac_cv_prog_cc_g=yes
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 CFLAGS=""
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3863 main ()
3867 return 0;
3869 _ACEOF
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3872 case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3893 CFLAGS="-g"
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3902 main ()
3906 return 0;
3908 _ACEOF
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3926 ac_cv_prog_cc_g=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 ac_c_werror_flag=$ac_save_c_werror_flag
3943 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3944 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3945 if test "$ac_test_CFLAGS" = set; then
3946 CFLAGS=$ac_save_CFLAGS
3947 elif test $ac_cv_prog_cc_g = yes; then
3948 if test "$GCC" = yes; then
3949 CFLAGS="-g -O2"
3950 else
3951 CFLAGS="-g"
3953 else
3954 if test "$GCC" = yes; then
3955 CFLAGS="-O2"
3956 else
3957 CFLAGS=
3960 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3961 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3962 if test "${ac_cv_prog_cc_c89+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 ac_cv_prog_cc_c89=no
3966 ac_save_CC=$CC
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 #include <stdarg.h>
3974 #include <stdio.h>
3975 #include <sys/types.h>
3976 #include <sys/stat.h>
3977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3978 struct buf { int x; };
3979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3980 static char *e (p, i)
3981 char **p;
3982 int i;
3984 return p[i];
3986 static char *f (char * (*g) (char **, int), char **p, ...)
3988 char *s;
3989 va_list v;
3990 va_start (v,p);
3991 s = g (p, va_arg (v,int));
3992 va_end (v);
3993 return s;
3996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3997 function prototypes and stuff, but not '\xHH' hex character constants.
3998 These don't provoke an error unfortunately, instead are silently treated
3999 as 'x'. The following induces an error, until -std is added to get
4000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4001 array size at least. It's necessary to write '\x00'==0 to get something
4002 that's true only with -std. */
4003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4006 inside strings and character constants. */
4007 #define FOO(x) 'x'
4008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010 int test (int i, double x);
4011 struct s1 {int (*f) (int a);};
4012 struct s2 {int (*f) (double a);};
4013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4014 int argc;
4015 char **argv;
4017 main ()
4019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4021 return 0;
4023 _ACEOF
4024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4027 CC="$ac_save_CC $ac_arg"
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest.$ac_objext; then
4045 ac_cv_prog_cc_c89=$ac_arg
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4055 done
4056 rm -f conftest.$ac_ext
4057 CC=$ac_save_CC
4060 # AC_CACHE_VAL
4061 case "x$ac_cv_prog_cc_c89" in
4063 { echo "$as_me:$LINENO: result: none needed" >&5
4064 echo "${ECHO_T}none needed" >&6; } ;;
4065 xno)
4066 { echo "$as_me:$LINENO: result: unsupported" >&5
4067 echo "${ECHO_T}unsupported" >&6; } ;;
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4071 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4072 esac
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 # On Suns, sometimes $CPP names a directory.
4083 if test -n "$CPP" && test -d "$CPP"; then
4084 CPP=
4087 #### Some systems specify a CPP to use unless we are using GCC.
4088 #### Now that we know whether we are using GCC, we can decide whether
4089 #### to use that one.
4090 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4091 then
4092 CPP="$NON_GNU_CPP"
4095 #### Some systems specify a CC to use unless we are using GCC.
4096 #### Now that we know whether we are using GCC, we can decide whether
4097 #### to use that one.
4098 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4099 test x$cc_specified != xyes
4100 then
4101 CC="$NON_GNU_CC"
4104 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4105 then
4106 CC="$CC $GCC_TEST_OPTIONS"
4109 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4110 then
4111 CC="$CC $NON_GCC_TEST_OPTIONS"
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4122 # On Suns, sometimes $CPP names a directory.
4123 if test -n "$CPP" && test -d "$CPP"; then
4124 CPP=
4126 if test -z "$CPP"; then
4127 if test "${ac_cv_prog_CPP+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 # Double quotes because CPP needs to be expanded
4131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4133 ac_preproc_ok=false
4134 for ac_c_preproc_warn_flag in '' yes
4136 # Use a header file that comes with gcc, so configuring glibc
4137 # with a fresh cross-compiler works.
4138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4139 # <limits.h> exists even on freestanding compilers.
4140 # On the NeXT, cc -E runs the code through the compiler's parser,
4141 # not just through cpp. "Syntax error" is here to catch this case.
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 #ifdef __STDC__
4149 # include <limits.h>
4150 #else
4151 # include <assert.h>
4152 #endif
4153 Syntax error
4154 _ACEOF
4155 if { (ac_try="$ac_cpp conftest.$ac_ext"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } >/dev/null && {
4168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 }; then
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 # Broken: fails on valid input.
4177 continue
4180 rm -f conftest.err conftest.$ac_ext
4182 # OK, works on sane cases. Now check whether nonexistent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if { (ac_try="$ac_cpp conftest.$ac_ext"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } >/dev/null && {
4205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 }; then
4208 # Broken: success on invalid input.
4209 continue
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # Passes both tests.
4215 ac_preproc_ok=:
4216 break
4219 rm -f conftest.err conftest.$ac_ext
4221 done
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.err conftest.$ac_ext
4224 if $ac_preproc_ok; then
4225 break
4228 done
4229 ac_cv_prog_CPP=$CPP
4232 CPP=$ac_cv_prog_CPP
4233 else
4234 ac_cv_prog_CPP=$CPP
4236 { echo "$as_me:$LINENO: result: $CPP" >&5
4237 echo "${ECHO_T}$CPP" >&6; }
4238 ac_preproc_ok=false
4239 for ac_c_preproc_warn_flag in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4258 Syntax error
4259 _ACEOF
4260 if { (ac_try="$ac_cpp conftest.$ac_ext"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 }; then
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 # Broken: fails on valid input.
4282 continue
4285 rm -f conftest.err conftest.$ac_ext
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4296 _ACEOF
4297 if { (ac_try="$ac_cpp conftest.$ac_ext"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev/null && {
4310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4312 }; then
4313 # Broken: success on invalid input.
4314 continue
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 # Passes both tests.
4320 ac_preproc_ok=:
4321 break
4324 rm -f conftest.err conftest.$ac_ext
4326 done
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then
4331 else
4332 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4333 See \`config.log' for more details." >&5
4334 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log' for more details." >&2;}
4336 { (exit 1); exit 1; }; }
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4347 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4348 if test "${ac_cv_path_GREP+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 # Extract the first word of "grep ggrep" to use in msg output
4352 if test -z "$GREP"; then
4353 set dummy grep ggrep; ac_prog_name=$2
4354 if test "${ac_cv_path_GREP+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 ac_path_GREP_found=false
4358 # Loop through the user's path and test for each of PROGNAME-LIST
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_prog in grep ggrep; do
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4367 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4368 # Check for GNU ac_path_GREP and select it if it is found.
4369 # Check for GNU $ac_path_GREP
4370 case `"$ac_path_GREP" --version 2>&1` in
4371 *GNU*)
4372 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4374 ac_count=0
4375 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4376 while :
4378 cat "conftest.in" "conftest.in" >"conftest.tmp"
4379 mv "conftest.tmp" "conftest.in"
4380 cp "conftest.in" "conftest.nl"
4381 echo 'GREP' >> "conftest.nl"
4382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4384 ac_count=`expr $ac_count + 1`
4385 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4386 # Best one so far, save it but keep looking for a better one
4387 ac_cv_path_GREP="$ac_path_GREP"
4388 ac_path_GREP_max=$ac_count
4390 # 10*(2^10) chars as input seems more than enough
4391 test $ac_count -gt 10 && break
4392 done
4393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4394 esac
4397 $ac_path_GREP_found && break 3
4398 done
4399 done
4401 done
4402 IFS=$as_save_IFS
4407 GREP="$ac_cv_path_GREP"
4408 if test -z "$GREP"; then
4409 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4410 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4411 { (exit 1); exit 1; }; }
4414 else
4415 ac_cv_path_GREP=$GREP
4420 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4421 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4422 GREP="$ac_cv_path_GREP"
4425 { echo "$as_me:$LINENO: checking for egrep" >&5
4426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4427 if test "${ac_cv_path_EGREP+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4431 then ac_cv_path_EGREP="$GREP -E"
4432 else
4433 # Extract the first word of "egrep" to use in msg output
4434 if test -z "$EGREP"; then
4435 set dummy egrep; ac_prog_name=$2
4436 if test "${ac_cv_path_EGREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 ac_path_EGREP_found=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_prog in egrep; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4450 # Check for GNU ac_path_EGREP and select it if it is found.
4451 # Check for GNU $ac_path_EGREP
4452 case `"$ac_path_EGREP" --version 2>&1` in
4453 *GNU*)
4454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4456 ac_count=0
4457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4458 while :
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 echo 'EGREP' >> "conftest.nl"
4464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466 ac_count=`expr $ac_count + 1`
4467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_EGREP="$ac_path_EGREP"
4470 ac_path_EGREP_max=$ac_count
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4474 done
4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 esac
4479 $ac_path_EGREP_found && break 3
4480 done
4481 done
4483 done
4484 IFS=$as_save_IFS
4489 EGREP="$ac_cv_path_EGREP"
4490 if test -z "$EGREP"; then
4491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4493 { (exit 1); exit 1; }; }
4496 else
4497 ac_cv_path_EGREP=$EGREP
4503 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4504 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4505 EGREP="$ac_cv_path_EGREP"
4509 { echo "$as_me:$LINENO: checking for AIX" >&5
4510 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #ifdef _AIX
4519 #endif
4521 _ACEOF
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "yes" >/dev/null 2>&1; then
4524 { echo "$as_me:$LINENO: result: yes" >&5
4525 echo "${ECHO_T}yes" >&6; }
4526 cat >>confdefs.h <<\_ACEOF
4527 #define _ALL_SOURCE 1
4528 _ACEOF
4530 else
4531 { echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6; }
4534 rm -f conftest*
4538 cat >>confdefs.h <<\_ACEOF
4539 #define _GNU_SOURCE 1
4540 _ACEOF
4544 ### Use -Wno-pointer-sign if the compiler supports it
4545 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4546 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4547 SAVE_CFLAGS="$CFLAGS"
4548 CFLAGS="$CFLAGS -Wno-pointer-sign"
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4557 main ()
4561 return 0;
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (ac_try="$ac_compile"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_compile") 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
4581 has_option=yes
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 has_option=no
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 if test $has_option = yes; then
4591 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4593 { echo "$as_me:$LINENO: result: $has_option" >&5
4594 echo "${ECHO_T}$has_option" >&6; }
4595 CFLAGS="$SAVE_CFLAGS"
4596 unset has_option
4597 unset SAVE_CFLAGS
4599 #### Some other nice autoconf tests.
4601 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4602 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4603 LN_S=$as_ln_s
4604 if test "$LN_S" = "ln -s"; then
4605 { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4607 else
4608 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4609 echo "${ECHO_T}no, using $LN_S" >&6; }
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4618 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4619 # On Suns, sometimes $CPP names a directory.
4620 if test -n "$CPP" && test -d "$CPP"; then
4621 CPP=
4623 if test -z "$CPP"; then
4624 if test "${ac_cv_prog_CPP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 # Double quotes because CPP needs to be expanded
4628 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4630 ac_preproc_ok=false
4631 for ac_c_preproc_warn_flag in '' yes
4633 # Use a header file that comes with gcc, so configuring glibc
4634 # with a fresh cross-compiler works.
4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636 # <limits.h> exists even on freestanding compilers.
4637 # On the NeXT, cc -E runs the code through the compiler's parser,
4638 # not just through cpp. "Syntax error" is here to catch this case.
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650 Syntax error
4651 _ACEOF
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev/null && {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 }; then
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 # Broken: fails on valid input.
4674 continue
4677 rm -f conftest.err conftest.$ac_ext
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h. */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include <ac_nonexistent.h>
4688 _ACEOF
4689 if { (ac_try="$ac_cpp conftest.$ac_ext"
4690 case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } >/dev/null && {
4702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 }; then
4705 # Broken: success on invalid input.
4706 continue
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 # Passes both tests.
4712 ac_preproc_ok=:
4713 break
4716 rm -f conftest.err conftest.$ac_ext
4718 done
4719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4720 rm -f conftest.err conftest.$ac_ext
4721 if $ac_preproc_ok; then
4722 break
4725 done
4726 ac_cv_prog_CPP=$CPP
4729 CPP=$ac_cv_prog_CPP
4730 else
4731 ac_cv_prog_CPP=$CPP
4733 { echo "$as_me:$LINENO: result: $CPP" >&5
4734 echo "${ECHO_T}$CPP" >&6; }
4735 ac_preproc_ok=false
4736 for ac_c_preproc_warn_flag in '' yes
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #ifdef __STDC__
4751 # include <limits.h>
4752 #else
4753 # include <assert.h>
4754 #endif
4755 Syntax error
4756 _ACEOF
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 }; then
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 # Broken: fails on valid input.
4779 continue
4782 rm -f conftest.err conftest.$ac_ext
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4793 _ACEOF
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 }; then
4810 # Broken: success on invalid input.
4811 continue
4812 else
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4821 rm -f conftest.err conftest.$ac_ext
4823 done
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.$ac_ext
4826 if $ac_preproc_ok; then
4828 else
4829 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4832 See \`config.log' for more details." >&2;}
4833 { (exit 1); exit 1; }; }
4836 ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 # Find a good install program. We prefer a C program (faster),
4843 # so one script is as good as another. But avoid the broken or
4844 # incompatible versions:
4845 # SysV /etc/install, /usr/sbin/install
4846 # SunOS /usr/etc/install
4847 # IRIX /sbin/install
4848 # AIX /bin/install
4849 # AmigaOS /C/install, which installs bootblocks on floppy discs
4850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4853 # OS/2's system install, which has a completely different semantic
4854 # ./install, which can be erroneously created by make from ./install.sh.
4855 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4856 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4857 if test -z "$INSTALL"; then
4858 if test "${ac_cv_path_install+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 # Account for people who put trailing slashes in PATH elements.
4867 case $as_dir/ in
4868 ./ | .// | /cC/* | \
4869 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4870 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4871 /usr/ucb/* ) ;;
4873 # OSF1 and SCO ODT 3.0 have their own names for install.
4874 # Don't use installbsd from OSF since it installs stuff as root
4875 # by default.
4876 for ac_prog in ginstall scoinst install; do
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4879 if test $ac_prog = install &&
4880 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4881 # AIX install. It has an incompatible calling convention.
4883 elif test $ac_prog = install &&
4884 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4885 # program-specific install script used by HP pwplus--don't use.
4887 else
4888 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4889 break 3
4892 done
4893 done
4895 esac
4896 done
4897 IFS=$as_save_IFS
4901 if test "${ac_cv_path_install+set}" = set; then
4902 INSTALL=$ac_cv_path_install
4903 else
4904 # As a last resort, use the slow shell script. Don't cache a
4905 # value for INSTALL within a source directory, because that will
4906 # break other packages using the cache if that directory is
4907 # removed, or if the value is a relative name.
4908 INSTALL=$ac_install_sh
4911 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4912 echo "${ECHO_T}$INSTALL" >&6; }
4914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4915 # It thinks the first close brace ends the variable substitution.
4916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4922 if test "x$RANLIB" = x; then
4923 if test -n "$ac_tool_prefix"; then
4924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_prog_RANLIB+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 if test -n "$RANLIB"; then
4932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 RANLIB=$ac_cv_prog_RANLIB
4952 if test -n "$RANLIB"; then
4953 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4954 echo "${ECHO_T}$RANLIB" >&6; }
4955 else
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4962 if test -z "$ac_cv_prog_RANLIB"; then
4963 ac_ct_RANLIB=$RANLIB
4964 # Extract the first word of "ranlib", so it can be a program name with args.
4965 set dummy ranlib; 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_prog_ac_ct_RANLIB+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 if test -n "$ac_ct_RANLIB"; then
4972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_ac_ct_RANLIB="ranlib"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4985 done
4986 done
4987 IFS=$as_save_IFS
4991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4992 if test -n "$ac_ct_RANLIB"; then
4993 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4994 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4995 else
4996 { echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6; }
5000 if test "x$ac_ct_RANLIB" = x; then
5001 RANLIB=":"
5002 else
5003 case $cross_compiling:$ac_tool_warned in
5004 yes:)
5005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5006 whose name does not start with the host triplet. If you think this
5007 configuration is useful to you, please write to autoconf@gnu.org." >&5
5008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5009 whose name does not start with the host triplet. If you think this
5010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5011 ac_tool_warned=yes ;;
5012 esac
5013 RANLIB=$ac_ct_RANLIB
5015 else
5016 RANLIB="$ac_cv_prog_RANLIB"
5020 # Extract the first word of "install-info", so it can be a program name with args.
5021 set dummy install-info; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 case $INSTALL_INFO in
5028 [\\/]* | ?:[\\/]*)
5029 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5043 done
5044 done
5045 IFS=$as_save_IFS
5048 esac
5050 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5051 if test -n "$INSTALL_INFO"; then
5052 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5053 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5054 else
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5060 # Extract the first word of "install-info", so it can be a program name with args.
5061 set dummy install-info; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 case $INSTALL_INFO in
5068 [\\/]* | ?:[\\/]*)
5069 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in /usr/sbin
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5088 esac
5090 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5091 if test -n "$INSTALL_INFO"; then
5092 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5093 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5094 else
5095 { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5100 # Extract the first word of "install-info", so it can be a program name with args.
5101 set dummy install-info; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 case $INSTALL_INFO in
5108 [\\/]* | ?:[\\/]*)
5109 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in /sbin
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5123 done
5124 done
5125 IFS=$as_save_IFS
5127 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5129 esac
5131 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5132 if test -n "$INSTALL_INFO"; then
5133 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5134 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5135 else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5141 # Extract the first word of "gzip", so it can be a program name with args.
5142 set dummy gzip; ac_word=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 case $GZIP_PROG in
5149 [\\/]* | ?:[\\/]*)
5150 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5169 esac
5171 GZIP_PROG=$ac_cv_path_GZIP_PROG
5172 if test -n "$GZIP_PROG"; then
5173 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5174 echo "${ECHO_T}$GZIP_PROG" >&6; }
5175 else
5176 { echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6; }
5183 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5184 then
5185 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5188 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5189 then
5190 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5194 late_LDFLAGS=$LDFLAGS
5195 if test "$GCC" = yes; then
5196 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5197 else
5198 LDFLAGS="$LDFLAGS -znocombreloc"
5201 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5202 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5203 cat >conftest.$ac_ext <<_ACEOF
5204 main(){return 0;}
5205 _ACEOF
5206 rm -f conftest.$ac_objext conftest$ac_exeext
5207 if { (ac_try="$ac_link"
5208 case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_link") 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && {
5220 test -z "$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5222 } && test -s conftest$ac_exeext &&
5223 $as_test_x conftest$ac_exeext; then
5224 { echo "$as_me:$LINENO: result: yes" >&5
5225 echo "${ECHO_T}yes" >&6; }
5226 else
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 LDFLAGS=$late_LDFLAGS
5231 { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5236 conftest$ac_exeext conftest.$ac_ext
5238 #### Extract some information from the operating system and machine files.
5240 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5241 - which libraries the lib-src programs will want, and
5242 - whether the GNU malloc routines are usable..." >&5
5243 echo "$as_me: checking the machine- and system-dependent files to find out
5244 - which libraries the lib-src programs will want, and
5245 - whether the GNU malloc routines are usable..." >&6;}
5247 ### First figure out CFLAGS (which we use for running the compiler here)
5248 ### and REAL_CFLAGS (which we use for real compilation).
5249 ### The two are the same except on a few systems, where they are made
5250 ### different to work around various lossages. For example,
5251 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5252 ### as implying static linking.
5254 ### If the CFLAGS env var is specified, we use that value
5255 ### instead of the default.
5257 ### It's not important that this name contain the PID; you can't run
5258 ### two configures in the same directory and have anything work
5259 ### anyway.
5260 tempcname="conftest.c"
5262 echo '
5263 #include "'${srcdir}'/src/'${opsysfile}'"
5264 #include "'${srcdir}'/src/'${machfile}'"
5265 #ifndef LIBS_MACHINE
5266 #define LIBS_MACHINE
5267 #endif
5268 #ifndef LIBS_SYSTEM
5269 #define LIBS_SYSTEM
5270 #endif
5271 #ifndef C_SWITCH_SYSTEM
5272 #define C_SWITCH_SYSTEM
5273 #endif
5274 #ifndef C_SWITCH_MACHINE
5275 #define C_SWITCH_MACHINE
5276 #endif
5277 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5278 configure___ c_switch_system=C_SWITCH_SYSTEM
5279 configure___ c_switch_machine=C_SWITCH_MACHINE
5281 #ifndef LIB_X11_LIB
5282 #define LIB_X11_LIB -lX11
5283 #endif
5285 #ifndef LIBX11_MACHINE
5286 #define LIBX11_MACHINE
5287 #endif
5289 #ifndef LIBX11_SYSTEM
5290 #define LIBX11_SYSTEM
5291 #endif
5292 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5294 #ifdef UNEXEC
5295 configure___ unexec=UNEXEC
5296 #else
5297 configure___ unexec=unexec.o
5298 #endif
5300 #ifdef SYSTEM_MALLOC
5301 configure___ system_malloc=yes
5302 #else
5303 configure___ system_malloc=no
5304 #endif
5306 #ifdef USE_MMAP_FOR_BUFFERS
5307 configure___ use_mmap_for_buffers=yes
5308 #else
5309 configure___ use_mmap_for_buffers=no
5310 #endif
5312 #ifndef C_DEBUG_SWITCH
5313 #define C_DEBUG_SWITCH -g
5314 #endif
5316 #ifndef C_OPTIMIZE_SWITCH
5317 #ifdef __GNUC__
5318 #define C_OPTIMIZE_SWITCH -O2
5319 #else
5320 #define C_OPTIMIZE_SWITCH -O
5321 #endif
5322 #endif
5324 #ifndef C_WARNINGS_SWITCH
5325 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5326 #endif
5328 #ifndef LD_SWITCH_MACHINE
5329 #define LD_SWITCH_MACHINE
5330 #endif
5332 #ifndef LD_SWITCH_SYSTEM
5333 #define LD_SWITCH_SYSTEM
5334 #endif
5336 #ifndef LD_SWITCH_X_SITE_AUX
5337 #define LD_SWITCH_X_SITE_AUX
5338 #endif
5340 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5341 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5343 #ifdef THIS_IS_CONFIGURE
5345 /* Get the CFLAGS for tests in configure. */
5346 #ifdef __GNUC__
5347 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5348 #else
5349 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5350 #endif
5352 #else /* not THIS_IS_CONFIGURE */
5354 /* Get the CFLAGS for real compilation. */
5355 #ifdef __GNUC__
5356 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5357 #else
5358 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5359 #endif
5361 #endif /* not THIS_IS_CONFIGURE */
5362 ' > ${tempcname}
5364 # The value of CPP is a quoted variable reference, so we need to do this
5365 # to get its actual value...
5366 CPP=`eval "echo $CPP"`
5367 eval `${CPP} -Isrc ${tempcname} \
5368 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5369 if test "x$SPECIFIED_CFLAGS" = x; then
5370 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5371 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5372 else
5373 REAL_CFLAGS="$CFLAGS"
5375 rm ${tempcname}
5377 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5379 ### Make sure subsequent tests use flags consistent with the build flags.
5381 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5382 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5383 else
5384 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5389 # Check whether --enable-largefile was given.
5390 if test "${enable_largefile+set}" = set; then
5391 enableval=$enable_largefile;
5394 if test "$enable_largefile" != no; then
5396 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5397 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5398 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 ac_cv_sys_largefile_CC=no
5402 if test "$GCC" != yes; then
5403 ac_save_CC=$CC
5404 while :; do
5405 # IRIX 6.2 and later do not support large files by default,
5406 # so use the C compiler's -n32 option if that helps.
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <sys/types.h>
5414 /* Check that off_t can represent 2**63 - 1 correctly.
5415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5416 since some C++ compilers masquerading as C compilers
5417 incorrectly reject 9223372036854775807. */
5418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5420 && LARGE_OFF_T % 2147483647 == 1)
5421 ? 1 : -1];
5423 main ()
5427 return 0;
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (ac_try="$ac_compile"
5432 case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435 esac
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_compile") 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } && {
5444 test -z "$ac_c_werror_flag" ||
5445 test ! -s conftest.err
5446 } && test -s conftest.$ac_objext; then
5447 break
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5455 rm -f core conftest.err conftest.$ac_objext
5456 CC="$CC -n32"
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5474 ac_cv_sys_largefile_CC=' -n32'; break
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5482 rm -f core conftest.err conftest.$ac_objext
5483 break
5484 done
5485 CC=$ac_save_CC
5486 rm -f conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5490 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5491 if test "$ac_cv_sys_largefile_CC" != no; then
5492 CC=$CC$ac_cv_sys_largefile_CC
5495 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5496 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5497 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 while :; do
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #include <sys/types.h>
5508 /* Check that off_t can represent 2**63 - 1 correctly.
5509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5510 since some C++ compilers masquerading as C compilers
5511 incorrectly reject 9223372036854775807. */
5512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5514 && LARGE_OFF_T % 2147483647 == 1)
5515 ? 1 : -1];
5517 main ()
5521 return 0;
5523 _ACEOF
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5526 case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5529 esac
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_compile") 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } && {
5538 test -z "$ac_c_werror_flag" ||
5539 test ! -s conftest.err
5540 } && test -s conftest.$ac_objext; then
5541 ac_cv_sys_file_offset_bits=no; break
5542 else
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #define _FILE_OFFSET_BITS 64
5557 #include <sys/types.h>
5558 /* Check that off_t can represent 2**63 - 1 correctly.
5559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5560 since some C++ compilers masquerading as C compilers
5561 incorrectly reject 9223372036854775807. */
5562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5564 && LARGE_OFF_T % 2147483647 == 1)
5565 ? 1 : -1];
5567 main ()
5571 return 0;
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5576 case "(($ac_try" in
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_c_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5591 ac_cv_sys_file_offset_bits=64; break
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 ac_cv_sys_file_offset_bits=unknown
5601 break
5602 done
5604 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5605 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5606 case $ac_cv_sys_file_offset_bits in #(
5607 no | unknown) ;;
5609 cat >>confdefs.h <<_ACEOF
5610 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5611 _ACEOF
5613 esac
5614 rm -f conftest*
5615 if test $ac_cv_sys_file_offset_bits = unknown; then
5616 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5617 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5618 if test "${ac_cv_sys_large_files+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 while :; do
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 /* Check that off_t can represent 2**63 - 1 correctly.
5630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5631 since some C++ compilers masquerading as C compilers
5632 incorrectly reject 9223372036854775807. */
5633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5635 && LARGE_OFF_T % 2147483647 == 1)
5636 ? 1 : -1];
5638 main ()
5642 return 0;
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5647 case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_compile") 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && {
5659 test -z "$ac_c_werror_flag" ||
5660 test ! -s conftest.err
5661 } && test -s conftest.$ac_objext; then
5662 ac_cv_sys_large_files=no; break
5663 else
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #define _LARGE_FILES 1
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5686 ? 1 : -1];
5688 main ()
5692 return 0;
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && {
5709 test -z "$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 } && test -s conftest.$ac_objext; then
5712 ac_cv_sys_large_files=1; break
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 ac_cv_sys_large_files=unknown
5722 break
5723 done
5725 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5726 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5727 case $ac_cv_sys_large_files in #(
5728 no | unknown) ;;
5730 cat >>confdefs.h <<_ACEOF
5731 #define _LARGE_FILES $ac_cv_sys_large_files
5732 _ACEOF
5734 esac
5735 rm -f conftest*
5741 ### The standard library on x86-64 GNU/Linux distributions can
5742 ### be located in either /usr/lib64 or /usr/lib.
5743 case "${canonical}" in
5744 x86_64-*-linux-gnu* )
5745 if test -d /usr/lib64; then
5747 cat >>confdefs.h <<\_ACEOF
5748 #define HAVE_X86_64_LIB64_DIR 1
5749 _ACEOF
5752 esac
5757 if test "${with_sound}" != "no"; then
5758 # Sound support for GNU/Linux and the free BSDs.
5759 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5760 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5761 if test "${ac_cv_header_stdc+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 #include <stdlib.h>
5771 #include <stdarg.h>
5772 #include <string.h>
5773 #include <float.h>
5776 main ()
5780 return 0;
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_cv_header_stdc=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_cv_header_stdc=no
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 if test $ac_cv_header_stdc = yes; then
5811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #include <string.h>
5820 _ACEOF
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 $EGREP "memchr" >/dev/null 2>&1; then
5824 else
5825 ac_cv_header_stdc=no
5827 rm -f conftest*
5831 if test $ac_cv_header_stdc = yes; then
5832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #include <stdlib.h>
5841 _ACEOF
5842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5843 $EGREP "free" >/dev/null 2>&1; then
5845 else
5846 ac_cv_header_stdc=no
5848 rm -f conftest*
5852 if test $ac_cv_header_stdc = yes; then
5853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5854 if test "$cross_compiling" = yes; then
5856 else
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <ctype.h>
5864 #include <stdlib.h>
5865 #if ((' ' & 0x0FF) == 0x020)
5866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5868 #else
5869 # define ISLOWER(c) \
5870 (('a' <= (c) && (c) <= 'i') \
5871 || ('j' <= (c) && (c) <= 'r') \
5872 || ('s' <= (c) && (c) <= 'z'))
5873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5874 #endif
5876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5878 main ()
5880 int i;
5881 for (i = 0; i < 256; i++)
5882 if (XOR (islower (i), ISLOWER (i))
5883 || toupper (i) != TOUPPER (i))
5884 return 2;
5885 return 0;
5887 _ACEOF
5888 rm -f conftest$ac_exeext
5889 if { (ac_try="$ac_link"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_link") 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5899 { (case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_try") 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5909 else
5910 echo "$as_me: program exited with status $ac_status" >&5
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 ( exit $ac_status )
5915 ac_cv_header_stdc=no
5917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5923 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5924 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5925 if test $ac_cv_header_stdc = yes; then
5927 cat >>confdefs.h <<\_ACEOF
5928 #define STDC_HEADERS 1
5929 _ACEOF
5933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5944 inttypes.h stdint.h unistd.h
5946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 $ac_includes_default
5960 #include <$ac_header>
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_c_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5979 eval "$as_ac_Header=yes"
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 eval "$as_ac_Header=no"
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 ac_res=`eval echo '${'$as_ac_Header'}'`
5990 { echo "$as_me:$LINENO: result: $ac_res" >&5
5991 echo "${ECHO_T}$ac_res" >&6; }
5992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5993 cat >>confdefs.h <<_ACEOF
5994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 _ACEOF
5999 done
6005 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_res=`eval echo '${'$as_ac_Header'}'`
6015 { echo "$as_me:$LINENO: result: $ac_res" >&5
6016 echo "${ECHO_T}$ac_res" >&6; }
6017 else
6018 # Is the header compilable?
6019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 $ac_includes_default
6028 #include <$ac_header>
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 ac_header_compiler=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 ac_header_compiler=no
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6057 echo "${ECHO_T}$ac_header_compiler" >&6; }
6059 # Is the header present?
6060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <$ac_header>
6069 _ACEOF
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null && {
6083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6085 }; then
6086 ac_header_preproc=yes
6087 else
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ac_header_preproc=no
6094 rm -f conftest.err conftest.$ac_ext
6095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6096 echo "${ECHO_T}$ac_header_preproc" >&6; }
6098 # So? What about this header?
6099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6100 yes:no: )
6101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6105 ac_header_preproc=yes
6107 no:yes:* )
6108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6122 esac
6123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128 eval "$as_ac_Header=\$ac_header_preproc"
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131 { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6136 cat >>confdefs.h <<_ACEOF
6137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6138 _ACEOF
6142 done
6144 # Emulation library used on NetBSD.
6145 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6146 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6147 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 ac_check_lib_save_LIBS=$LIBS
6151 LIBS="-lossaudio $LIBS"
6152 cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6159 /* Override any GCC internal prototype to avoid an error.
6160 Use char because int might match the return type of a GCC
6161 builtin and then its argument prototype would still apply. */
6162 #ifdef __cplusplus
6163 extern "C"
6164 #endif
6165 char _oss_ioctl ();
6167 main ()
6169 return _oss_ioctl ();
6171 return 0;
6173 _ACEOF
6174 rm -f conftest.$ac_objext conftest$ac_exeext
6175 if { (ac_try="$ac_link"
6176 case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_link") 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest$ac_exeext &&
6191 $as_test_x conftest$ac_exeext; then
6192 ac_cv_lib_ossaudio__oss_ioctl=yes
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 ac_cv_lib_ossaudio__oss_ioctl=no
6200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6201 conftest$ac_exeext conftest.$ac_ext
6202 LIBS=$ac_check_lib_save_LIBS
6204 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6205 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6206 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6207 LIBSOUND=-lossaudio
6208 else
6209 LIBSOUND=
6214 ALSA_REQUIRED=1.0.0
6215 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6216 if test "X${with_pkg_config_prog}" != X; then
6217 PKG_CONFIG="${with_pkg_config_prog}"
6220 succeeded=no
6222 if test -z "$PKG_CONFIG"; then
6223 # Extract the first word of "pkg-config", so it can be a program name with args.
6224 set dummy pkg-config; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 case $PKG_CONFIG in
6231 [\\/]* | ?:[\\/]*)
6232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6246 done
6247 done
6248 IFS=$as_save_IFS
6250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6252 esac
6254 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6255 if test -n "$PKG_CONFIG"; then
6256 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6257 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6258 else
6259 { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6266 if test "$PKG_CONFIG" = "no" ; then
6267 HAVE_ALSA=no
6268 else
6269 PKG_CONFIG_MIN_VERSION=0.9.0
6270 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6271 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6272 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6274 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6275 { echo "$as_me:$LINENO: result: yes" >&5
6276 echo "${ECHO_T}yes" >&6; }
6277 succeeded=yes
6279 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6280 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6281 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6282 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6283 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6285 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6286 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6287 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6288 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6289 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6290 else
6291 { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6293 ALSA_CFLAGS=""
6294 ALSA_LIBS=""
6295 ## If we have a custom action on failure, don't print errors, but
6296 ## do set a variable so people can do so.
6297 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6303 else
6304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6309 if test $succeeded = yes; then
6310 HAVE_ALSA=yes
6311 else
6312 HAVE_ALSA=no
6315 if test $HAVE_ALSA = yes; then
6316 SAVE_CFLAGS="$CFLAGS"
6317 SAVE_LDFLAGS="$LDFLAGS"
6318 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6319 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <asoundlib.h>
6328 main ()
6330 snd_lib_error_set_handler (0);
6332 return 0;
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 emacs_alsa_normal=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 emacs_alsa_normal=no
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 if test "$emacs_alsa_normal" != yes; then
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <alsa/asoundlib.h>
6370 main ()
6372 snd_lib_error_set_handler (0);
6374 return 0;
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.$ac_objext; then
6394 emacs_alsa_subdir=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 emacs_alsa_subdir=no
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 if test "$emacs_alsa_subdir" != yes; then
6404 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6405 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6406 { (exit 1); exit 1; }; }
6408 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6411 CFLAGS="$SAVE_CFLAGS"
6412 LDFLAGS="$SAVE_LDFLAGS"
6413 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6414 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_ALSA 1
6418 _ACEOF
6450 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6451 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6452 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6453 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6454 sys/utsname.h pwd.h
6456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 ac_res=`eval echo '${'$as_ac_Header'}'`
6464 { echo "$as_me:$LINENO: result: $ac_res" >&5
6465 echo "${ECHO_T}$ac_res" >&6; }
6466 else
6467 # Is the header compilable?
6468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include <$ac_header>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest.$ac_objext; then
6496 ac_header_compiler=yes
6497 else
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_header_compiler=no
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6506 echo "${ECHO_T}$ac_header_compiler" >&6; }
6508 # Is the header present?
6509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <$ac_header>
6518 _ACEOF
6519 if { (ac_try="$ac_cpp conftest.$ac_ext"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } >/dev/null && {
6532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 }; then
6535 ac_header_preproc=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 ac_header_preproc=no
6543 rm -f conftest.err conftest.$ac_ext
6544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6545 echo "${ECHO_T}$ac_header_preproc" >&6; }
6547 # So? What about this header?
6548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6549 yes:no: )
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6554 ac_header_preproc=yes
6556 no:yes:* )
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6571 esac
6572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 eval "$as_ac_Header=\$ac_header_preproc"
6579 ac_res=`eval echo '${'$as_ac_Header'}'`
6580 { echo "$as_me:$LINENO: result: $ac_res" >&5
6581 echo "${ECHO_T}$ac_res" >&6; }
6584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6587 _ACEOF
6591 done
6594 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6595 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <sys/personality.h>
6604 main ()
6606 personality (PER_LINUX32)
6608 return 0;
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (ac_try="$ac_compile"
6613 case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_compile") 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && {
6625 test -z "$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 } && test -s conftest.$ac_objext; then
6628 emacs_cv_personality_linux32=yes
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 emacs_cv_personality_linux32=no
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6638 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6640 if test $emacs_cv_personality_linux32 = yes; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_PERSONALITY_LINUX32 1
6644 _ACEOF
6649 for ac_header in term.h
6651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <$ac_header>
6664 _ACEOF
6665 if { (ac_try="$ac_cpp conftest.$ac_ext"
6666 case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669 esac
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } >/dev/null && {
6678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 }; then
6681 eval "$as_ac_Header=yes"
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 eval "$as_ac_Header=no"
6689 rm -f conftest.err conftest.$ac_ext
6691 ac_res=`eval echo '${'$as_ac_Header'}'`
6692 { echo "$as_me:$LINENO: result: $ac_res" >&5
6693 echo "${ECHO_T}$ac_res" >&6; }
6694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 cat >>confdefs.h <<_ACEOF
6696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 _ACEOF
6701 done
6703 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6704 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6705 if test "${ac_cv_header_stdc+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 #include <stdlib.h>
6715 #include <stdarg.h>
6716 #include <string.h>
6717 #include <float.h>
6720 main ()
6724 return 0;
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6729 case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732 esac
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_compile") 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest.$ac_objext; then
6744 ac_cv_header_stdc=yes
6745 else
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_cv_header_stdc=no
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 if test $ac_cv_header_stdc = yes; then
6755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 #include <string.h>
6764 _ACEOF
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 $EGREP "memchr" >/dev/null 2>&1; then
6768 else
6769 ac_cv_header_stdc=no
6771 rm -f conftest*
6775 if test $ac_cv_header_stdc = yes; then
6776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <stdlib.h>
6785 _ACEOF
6786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6787 $EGREP "free" >/dev/null 2>&1; then
6789 else
6790 ac_cv_header_stdc=no
6792 rm -f conftest*
6796 if test $ac_cv_header_stdc = yes; then
6797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6798 if test "$cross_compiling" = yes; then
6800 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <ctype.h>
6808 #include <stdlib.h>
6809 #if ((' ' & 0x0FF) == 0x020)
6810 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6811 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6812 #else
6813 # define ISLOWER(c) \
6814 (('a' <= (c) && (c) <= 'i') \
6815 || ('j' <= (c) && (c) <= 'r') \
6816 || ('s' <= (c) && (c) <= 'z'))
6817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6818 #endif
6820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6822 main ()
6824 int i;
6825 for (i = 0; i < 256; i++)
6826 if (XOR (islower (i), ISLOWER (i))
6827 || toupper (i) != TOUPPER (i))
6828 return 2;
6829 return 0;
6831 _ACEOF
6832 rm -f conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6834 case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6843 { (case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_try") 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6853 else
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 ( exit $ac_status )
6859 ac_cv_header_stdc=no
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6868 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6869 if test $ac_cv_header_stdc = yes; then
6871 cat >>confdefs.h <<\_ACEOF
6872 #define STDC_HEADERS 1
6873 _ACEOF
6877 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6878 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6879 if test "${ac_cv_header_time+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <sys/types.h>
6889 #include <sys/time.h>
6890 #include <time.h>
6893 main ()
6895 if ((struct tm *) 0)
6896 return 0;
6898 return 0;
6900 _ACEOF
6901 rm -f conftest.$ac_objext
6902 if { (ac_try="$ac_compile"
6903 case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_compile") 2>conftest.er1
6909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest.$ac_objext; then
6918 ac_cv_header_time=yes
6919 else
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_cv_header_time=no
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6929 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6930 if test $ac_cv_header_time = yes; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define TIME_WITH_SYS_TIME 1
6934 _ACEOF
6938 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6939 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6940 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6951 main ()
6953 #ifndef sys_siglist
6954 (void) sys_siglist;
6955 #endif
6958 return 0;
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_cv_have_decl_sys_siglist=yes
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_cv_have_decl_sys_siglist=no
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6989 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6990 if test $ac_cv_have_decl_sys_siglist = yes; then
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_DECL_SYS_SIGLIST 1
6994 _ACEOF
6997 else
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_DECL_SYS_SIGLIST 0
7000 _ACEOF
7006 if test $ac_cv_have_decl_sys_siglist != yes; then
7007 # For Tru64, at least:
7008 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7009 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7010 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 $ac_includes_default
7021 main ()
7023 #ifndef __sys_siglist
7024 (void) __sys_siglist;
7025 #endif
7028 return 0;
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7033 case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036 esac
7037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038 (eval "$ac_compile") 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest.$ac_objext; then
7048 ac_cv_have_decl___sys_siglist=yes
7049 else
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 ac_cv_have_decl___sys_siglist=no
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7059 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7060 if test $ac_cv_have_decl___sys_siglist = yes; then
7062 cat >>confdefs.h <<_ACEOF
7063 #define HAVE_DECL___SYS_SIGLIST 1
7064 _ACEOF
7067 else
7068 cat >>confdefs.h <<_ACEOF
7069 #define HAVE_DECL___SYS_SIGLIST 0
7070 _ACEOF
7076 if test $ac_cv_have_decl___sys_siglist = yes; then
7078 cat >>confdefs.h <<\_ACEOF
7079 #define sys_siglist __sys_siglist
7080 _ACEOF
7084 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7085 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7086 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 #include <sys/types.h>
7096 #include <sys/wait.h>
7097 #ifndef WEXITSTATUS
7098 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7099 #endif
7100 #ifndef WIFEXITED
7101 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7102 #endif
7105 main ()
7107 int s;
7108 wait (&s);
7109 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7111 return 0;
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_header_sys_wait_h=yes
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_header_sys_wait_h=no
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7142 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7143 if test $ac_cv_header_sys_wait_h = yes; then
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_SYS_WAIT_H 1
7147 _ACEOF
7152 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7153 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7154 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #ifdef TIME_WITH_SYS_TIME
7164 #include <sys/time.h>
7165 #include <time.h>
7166 #else
7167 #ifdef HAVE_SYS_TIME_H
7168 #include <sys/time.h>
7169 #else
7170 #include <time.h>
7171 #endif
7172 #endif
7173 #ifdef HAVE_UTIME_H
7174 #include <utime.h>
7175 #endif
7177 main ()
7179 static struct utimbuf x; x.actime = x.modtime;
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7186 case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7201 emacs_cv_struct_utimbuf=yes
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 emacs_cv_struct_utimbuf=no
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7212 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7213 if test $emacs_cv_struct_utimbuf = yes; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define HAVE_STRUCT_UTIMBUF 1
7217 _ACEOF
7221 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7222 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7223 if test "${ac_cv_type_signal+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 #include <sys/types.h>
7233 #include <signal.h>
7236 main ()
7238 return *(signal (0, 0)) (0) == 1;
7240 return 0;
7242 _ACEOF
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7260 ac_cv_type_signal=int
7261 else
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ac_cv_type_signal=void
7268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7271 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7273 cat >>confdefs.h <<_ACEOF
7274 #define RETSIGTYPE $ac_cv_type_signal
7275 _ACEOF
7279 { echo "$as_me:$LINENO: checking for speed_t" >&5
7280 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7281 if test "${emacs_cv_speed_t+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #include <termios.h>
7292 main ()
7294 speed_t x = 1;
7296 return 0;
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7301 case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304 esac
7305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7316 emacs_cv_speed_t=yes
7317 else
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 emacs_cv_speed_t=no
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7327 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7328 if test $emacs_cv_speed_t = yes; then
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_SPEED_T 1
7332 _ACEOF
7336 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7337 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7338 if test "${emacs_cv_struct_timeval+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #ifdef TIME_WITH_SYS_TIME
7348 #include <sys/time.h>
7349 #include <time.h>
7350 #else
7351 #ifdef HAVE_SYS_TIME_H
7352 #include <sys/time.h>
7353 #else
7354 #include <time.h>
7355 #endif
7356 #endif
7358 main ()
7360 static struct timeval x; x.tv_sec = x.tv_usec;
7362 return 0;
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7367 case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370 esac
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 emacs_cv_struct_timeval=yes
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 emacs_cv_struct_timeval=no
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7393 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7394 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7395 if test $emacs_cv_struct_timeval = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_TIMEVAL 1
7399 _ACEOF
7403 { echo "$as_me:$LINENO: checking for struct exception" >&5
7404 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7405 if test "${emacs_cv_struct_exception+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #include <math.h>
7416 main ()
7418 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7420 return 0;
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (ac_try="$ac_compile"
7425 case "(($ac_try" in
7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7428 esac
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.$ac_objext; then
7440 emacs_cv_struct_exception=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 emacs_cv_struct_exception=no
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7451 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7452 HAVE_EXCEPTION=$emacs_cv_struct_exception
7453 if test $emacs_cv_struct_exception != yes; then
7455 cat >>confdefs.h <<\_ACEOF
7456 #define NO_MATHERR 1
7457 _ACEOF
7462 for ac_header in sys/socket.h
7464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_res=`eval echo '${'$as_ac_Header'}'`
7472 { echo "$as_me:$LINENO: result: $ac_res" >&5
7473 echo "${ECHO_T}$ac_res" >&6; }
7474 else
7475 # Is the header compilable?
7476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 $ac_includes_default
7485 #include <$ac_header>
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_header_compiler=yes
7505 else
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_header_compiler=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7514 echo "${ECHO_T}$ac_header_compiler" >&6; }
7516 # Is the header present?
7517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 #include <$ac_header>
7526 _ACEOF
7527 if { (ac_try="$ac_cpp conftest.$ac_ext"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } >/dev/null && {
7540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 }; then
7543 ac_header_preproc=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_header_preproc=no
7551 rm -f conftest.err conftest.$ac_ext
7552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7553 echo "${ECHO_T}$ac_header_preproc" >&6; }
7555 # So? What about this header?
7556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7557 yes:no: )
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7562 ac_header_preproc=yes
7564 no:yes:* )
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7579 esac
7580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 eval "$as_ac_Header=\$ac_header_preproc"
7587 ac_res=`eval echo '${'$as_ac_Header'}'`
7588 { echo "$as_me:$LINENO: result: $ac_res" >&5
7589 echo "${ECHO_T}$ac_res" >&6; }
7592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7593 cat >>confdefs.h <<_ACEOF
7594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7595 _ACEOF
7599 done
7602 for ac_header in net/if.h
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 $ac_includes_default
7617 #if HAVE_SYS_SOCKET_H
7618 #include <sys/socket.h>
7619 #endif
7621 #include <$ac_header>
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7625 case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_compile") 2>conftest.er1
7631 ac_status=$?
7632 grep -v '^ *+' conftest.er1 >conftest.err
7633 rm -f conftest.er1
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && {
7637 test -z "$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 } && test -s conftest.$ac_objext; then
7640 eval "$as_ac_Header=yes"
7641 else
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 eval "$as_ac_Header=no"
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 ac_res=`eval echo '${'$as_ac_Header'}'`
7651 { echo "$as_me:$LINENO: result: $ac_res" >&5
7652 echo "${ECHO_T}$ac_res" >&6; }
7653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7656 _ACEOF
7660 done
7663 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7664 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7665 if test "${ac_cv_struct_tm+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <sys/types.h>
7675 #include <time.h>
7678 main ()
7680 struct tm tm;
7681 int *p = &tm.tm_sec;
7682 return !p;
7684 return 0;
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7704 ac_cv_struct_tm=time.h
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 ac_cv_struct_tm=sys/time.h
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7715 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7716 if test $ac_cv_struct_tm = sys/time.h; then
7718 cat >>confdefs.h <<\_ACEOF
7719 #define TM_IN_SYS_TIME 1
7720 _ACEOF
7724 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7725 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7726 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 #include <sys/types.h>
7736 #include <$ac_cv_struct_tm>
7740 main ()
7742 static struct tm ac_aggr;
7743 if (ac_aggr.tm_zone)
7744 return 0;
7746 return 0;
7748 _ACEOF
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7751 case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_compile") 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest.$ac_objext; then
7766 ac_cv_member_struct_tm_tm_zone=yes
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <sys/types.h>
7778 #include <$ac_cv_struct_tm>
7782 main ()
7784 static struct tm ac_aggr;
7785 if (sizeof ac_aggr.tm_zone)
7786 return 0;
7788 return 0;
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7793 case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_member_struct_tm_tm_zone=yes
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_member_struct_tm_tm_zone=no
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7822 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7823 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7825 cat >>confdefs.h <<_ACEOF
7826 #define HAVE_STRUCT_TM_TM_ZONE 1
7827 _ACEOF
7832 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7834 cat >>confdefs.h <<\_ACEOF
7835 #define HAVE_TM_ZONE 1
7836 _ACEOF
7838 else
7839 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7840 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7841 if test "${ac_cv_have_decl_tzname+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <time.h>
7853 main ()
7855 #ifndef tzname
7856 (void) tzname;
7857 #endif
7860 return 0;
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (ac_try="$ac_compile"
7865 case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 ac_cv_have_decl_tzname=yes
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_have_decl_tzname=no
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7891 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7892 if test $ac_cv_have_decl_tzname = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define HAVE_DECL_TZNAME 1
7896 _ACEOF
7899 else
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_DECL_TZNAME 0
7902 _ACEOF
7908 { echo "$as_me:$LINENO: checking for tzname" >&5
7909 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7910 if test "${ac_cv_var_tzname+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 #include <time.h>
7920 #if !HAVE_DECL_TZNAME
7921 extern char *tzname[];
7922 #endif
7925 main ()
7927 return tzname[0][0];
7929 return 0;
7931 _ACEOF
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (ac_try="$ac_link"
7934 case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937 esac
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_link") 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest$ac_exeext &&
7949 $as_test_x conftest$ac_exeext; then
7950 ac_cv_var_tzname=yes
7951 else
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 ac_cv_var_tzname=no
7958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7959 conftest$ac_exeext conftest.$ac_ext
7961 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7962 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7963 if test $ac_cv_var_tzname = yes; then
7965 cat >>confdefs.h <<\_ACEOF
7966 #define HAVE_TZNAME 1
7967 _ACEOF
7972 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7973 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7974 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <time.h>
7986 main ()
7988 static struct tm ac_aggr;
7989 if (ac_aggr.tm_gmtoff)
7990 return 0;
7992 return 0;
7994 _ACEOF
7995 rm -f conftest.$ac_objext
7996 if { (ac_try="$ac_compile"
7997 case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000 esac
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_compile") 2>conftest.er1
8003 ac_status=$?
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest.$ac_objext; then
8012 ac_cv_member_struct_tm_tm_gmtoff=yes
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 #include <time.h>
8026 main ()
8028 static struct tm ac_aggr;
8029 if (sizeof ac_aggr.tm_gmtoff)
8030 return 0;
8032 return 0;
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (ac_try="$ac_compile"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.$ac_objext; then
8052 ac_cv_member_struct_tm_tm_gmtoff=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_cv_member_struct_tm_tm_gmtoff=no
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8066 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8067 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8069 cat >>confdefs.h <<\_ACEOF
8070 #define HAVE_TM_GMTOFF 1
8071 _ACEOF
8075 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8076 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8077 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 $ac_includes_default
8087 #if HAVE_SYS_SOCKET_H
8088 #include <sys/socket.h>
8089 #endif
8090 #if HAVE_NET_IF_H
8091 #include <net/if.h>
8092 #endif
8095 main ()
8097 static struct ifreq ac_aggr;
8098 if (ac_aggr.ifr_flags)
8099 return 0;
8101 return 0;
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8106 case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest.$ac_objext; then
8121 ac_cv_member_struct_ifreq_ifr_flags=yes
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 #if HAVE_SYS_SOCKET_H
8134 #include <sys/socket.h>
8135 #endif
8136 #if HAVE_NET_IF_H
8137 #include <net/if.h>
8138 #endif
8141 main ()
8143 static struct ifreq ac_aggr;
8144 if (sizeof ac_aggr.ifr_flags)
8145 return 0;
8147 return 0;
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8152 case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155 esac
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 ac_cv_member_struct_ifreq_ifr_flags=yes
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 ac_cv_member_struct_ifreq_ifr_flags=no
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8181 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8182 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8184 cat >>confdefs.h <<_ACEOF
8185 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8186 _ACEOF
8190 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8191 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8192 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h. */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 $ac_includes_default
8202 #if HAVE_SYS_SOCKET_H
8203 #include <sys/socket.h>
8204 #endif
8205 #if HAVE_NET_IF_H
8206 #include <net/if.h>
8207 #endif
8210 main ()
8212 static struct ifreq ac_aggr;
8213 if (ac_aggr.ifr_hwaddr)
8214 return 0;
8216 return 0;
8218 _ACEOF
8219 rm -f conftest.$ac_objext
8220 if { (ac_try="$ac_compile"
8221 case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_compile") 2>conftest.er1
8227 ac_status=$?
8228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && {
8233 test -z "$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8235 } && test -s conftest.$ac_objext; then
8236 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8237 else
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h. */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8247 $ac_includes_default
8248 #if HAVE_SYS_SOCKET_H
8249 #include <sys/socket.h>
8250 #endif
8251 #if HAVE_NET_IF_H
8252 #include <net/if.h>
8253 #endif
8256 main ()
8258 static struct ifreq ac_aggr;
8259 if (sizeof ac_aggr.ifr_hwaddr)
8260 return 0;
8262 return 0;
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (ac_try="$ac_compile"
8267 case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_compile") 2>conftest.er1
8273 ac_status=$?
8274 grep -v '^ *+' conftest.er1 >conftest.err
8275 rm -f conftest.er1
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } && {
8279 test -z "$ac_c_werror_flag" ||
8280 test ! -s conftest.err
8281 } && test -s conftest.$ac_objext; then
8282 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8283 else
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8296 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8297 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8301 _ACEOF
8305 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8306 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8307 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 $ac_includes_default
8317 #if HAVE_SYS_SOCKET_H
8318 #include <sys/socket.h>
8319 #endif
8320 #if HAVE_NET_IF_H
8321 #include <net/if.h>
8322 #endif
8325 main ()
8327 static struct ifreq ac_aggr;
8328 if (ac_aggr.ifr_netmask)
8329 return 0;
8331 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8336 case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 ac_cv_member_struct_ifreq_ifr_netmask=yes
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h. */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 $ac_includes_default
8363 #if HAVE_SYS_SOCKET_H
8364 #include <sys/socket.h>
8365 #endif
8366 #if HAVE_NET_IF_H
8367 #include <net/if.h>
8368 #endif
8371 main ()
8373 static struct ifreq ac_aggr;
8374 if (sizeof ac_aggr.ifr_netmask)
8375 return 0;
8377 return 0;
8379 _ACEOF
8380 rm -f conftest.$ac_objext
8381 if { (ac_try="$ac_compile"
8382 case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_compile") 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } && {
8394 test -z "$ac_c_werror_flag" ||
8395 test ! -s conftest.err
8396 } && test -s conftest.$ac_objext; then
8397 ac_cv_member_struct_ifreq_ifr_netmask=yes
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 ac_cv_member_struct_ifreq_ifr_netmask=no
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8411 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8412 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8416 _ACEOF
8420 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8421 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8422 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 #if HAVE_SYS_SOCKET_H
8433 #include <sys/socket.h>
8434 #endif
8435 #if HAVE_NET_IF_H
8436 #include <net/if.h>
8437 #endif
8440 main ()
8442 static struct ifreq ac_aggr;
8443 if (ac_aggr.ifr_broadaddr)
8444 return 0;
8446 return 0;
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest.$ac_objext; then
8466 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 cat >conftest.$ac_ext <<_ACEOF
8472 /* confdefs.h. */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 $ac_includes_default
8478 #if HAVE_SYS_SOCKET_H
8479 #include <sys/socket.h>
8480 #endif
8481 #if HAVE_NET_IF_H
8482 #include <net/if.h>
8483 #endif
8486 main ()
8488 static struct ifreq ac_aggr;
8489 if (sizeof ac_aggr.ifr_broadaddr)
8490 return 0;
8492 return 0;
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8497 case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8526 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8527 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8529 cat >>confdefs.h <<_ACEOF
8530 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8531 _ACEOF
8535 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8536 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8537 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8549 #endif
8550 #if HAVE_NET_IF_H
8551 #include <net/if.h>
8552 #endif
8555 main ()
8557 static struct ifreq ac_aggr;
8558 if (ac_aggr.ifr_addr)
8559 return 0;
8561 return 0;
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_cv_member_struct_ifreq_ifr_addr=yes
8582 else
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 $ac_includes_default
8593 #if HAVE_SYS_SOCKET_H
8594 #include <sys/socket.h>
8595 #endif
8596 #if HAVE_NET_IF_H
8597 #include <net/if.h>
8598 #endif
8601 main ()
8603 static struct ifreq ac_aggr;
8604 if (sizeof ac_aggr.ifr_addr)
8605 return 0;
8607 return 0;
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8627 ac_cv_member_struct_ifreq_ifr_addr=yes
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_member_struct_ifreq_ifr_addr=no
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8641 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8642 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8644 cat >>confdefs.h <<_ACEOF
8645 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8646 _ACEOF
8653 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8654 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8655 if test "$ac_cv_prog_cc_c89" != no; then
8656 { echo "$as_me:$LINENO: result: yes" >&5
8657 echo "${ECHO_T}yes" >&6; }
8659 cat >>confdefs.h <<\_ACEOF
8660 #define PROTOTYPES 1
8661 _ACEOF
8664 cat >>confdefs.h <<\_ACEOF
8665 #define __PROTOTYPES 1
8666 _ACEOF
8668 else
8669 { echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6; }
8673 { echo "$as_me:$LINENO: checking for working volatile" >&5
8674 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8675 if test "${ac_cv_c_volatile+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h. */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8686 main ()
8689 volatile int x;
8690 int * volatile y = (int *) 0;
8691 return !x && !y;
8693 return 0;
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.$ac_objext; then
8713 ac_cv_c_volatile=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ac_cv_c_volatile=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8724 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8725 if test $ac_cv_c_volatile = no; then
8727 cat >>confdefs.h <<\_ACEOF
8728 #define volatile
8729 _ACEOF
8733 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8734 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8735 if test "${ac_cv_c_const+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8746 main ()
8748 /* FIXME: Include the comments suggested by Paul. */
8749 #ifndef __cplusplus
8750 /* Ultrix mips cc rejects this. */
8751 typedef int charset[2];
8752 const charset cs;
8753 /* SunOS 4.1.1 cc rejects this. */
8754 char const *const *pcpcc;
8755 char **ppc;
8756 /* NEC SVR4.0.2 mips cc rejects this. */
8757 struct point {int x, y;};
8758 static struct point const zero = {0,0};
8759 /* AIX XL C 1.02.0.0 rejects this.
8760 It does not let you subtract one const X* pointer from another in
8761 an arm of an if-expression whose if-part is not a constant
8762 expression */
8763 const char *g = "string";
8764 pcpcc = &g + (g ? g-g : 0);
8765 /* HPUX 7.0 cc rejects these. */
8766 ++pcpcc;
8767 ppc = (char**) pcpcc;
8768 pcpcc = (char const *const *) ppc;
8769 { /* SCO 3.2v4 cc rejects this. */
8770 char *t;
8771 char const *s = 0 ? (char *) 0 : (char const *) 0;
8773 *t++ = 0;
8774 if (s) return 0;
8776 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8777 int x[] = {25, 17};
8778 const int *foo = &x[0];
8779 ++foo;
8781 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8782 typedef const int *iptr;
8783 iptr p = 0;
8784 ++p;
8786 { /* AIX XL C 1.02.0.0 rejects this saying
8787 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8788 struct s { int j; const int *ap[3]; };
8789 struct s *b; b->j = 5;
8791 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8792 const int foo = 10;
8793 if (!foo) return 0;
8795 return !cs[0] && !zero.x;
8796 #endif
8799 return 0;
8801 _ACEOF
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8804 case "(($ac_try" in
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8807 esac
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
8819 ac_cv_c_const=yes
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_cv_c_const=no
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8830 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8831 if test $ac_cv_c_const = no; then
8833 cat >>confdefs.h <<\_ACEOF
8834 #define const
8835 _ACEOF
8839 { echo "$as_me:$LINENO: checking for void * support" >&5
8840 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8841 if test "${emacs_cv_void_star+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8852 main ()
8854 void * foo;
8856 return 0;
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (ac_try="$ac_compile"
8861 case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_c_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8876 emacs_cv_void_star=yes
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 emacs_cv_void_star=no
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8887 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8888 if test $emacs_cv_void_star = yes; then
8889 cat >>confdefs.h <<\_ACEOF
8890 #define POINTER_TYPE void
8891 _ACEOF
8893 else
8894 cat >>confdefs.h <<\_ACEOF
8895 #define POINTER_TYPE char
8896 _ACEOF
8904 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8905 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8906 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8907 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 cat >conftest.make <<\_ACEOF
8911 SHELL = /bin/sh
8912 all:
8913 @echo '@@@%%%=$(MAKE)=@@@%%%'
8914 _ACEOF
8915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8916 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8917 *@@@%%%=?*=@@@%%%*)
8918 eval ac_cv_prog_make_${ac_make}_set=yes;;
8920 eval ac_cv_prog_make_${ac_make}_set=no;;
8921 esac
8922 rm -f conftest.make
8924 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8925 { echo "$as_me:$LINENO: result: yes" >&5
8926 echo "${ECHO_T}yes" >&6; }
8927 SET_MAKE=
8928 else
8929 { echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6; }
8931 SET_MAKE="MAKE=${MAKE-make}"
8935 { echo "$as_me:$LINENO: checking for long file names" >&5
8936 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8937 if test "${ac_cv_sys_long_file_names+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 ac_cv_sys_long_file_names=yes
8941 # Test for long file names in all the places we know might matter:
8942 # . the current directory, where building will happen
8943 # $prefix/lib where we will be installing things
8944 # $exec_prefix/lib likewise
8945 # $TMPDIR if set, where it might want to write temporary files
8946 # /tmp where it might want to write temporary files
8947 # /var/tmp likewise
8948 # /usr/tmp likewise
8949 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8950 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8951 # in the usual case where exec_prefix is '${prefix}'.
8952 case $ac_dir in #(
8953 . | /* | ?:[\\/]*) ;; #(
8954 *) continue;;
8955 esac
8956 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8957 ac_xdir=$ac_dir/cf$$
8958 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8959 ac_tf1=$ac_xdir/conftest9012345
8960 ac_tf2=$ac_xdir/conftest9012346
8961 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8962 ac_cv_sys_long_file_names=no
8963 rm -f -r "$ac_xdir" 2>/dev/null
8964 test $ac_cv_sys_long_file_names = no && break
8965 done
8967 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8968 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8969 if test $ac_cv_sys_long_file_names = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_LONG_FILE_NAMES 1
8973 _ACEOF
8978 #### Choose a window system.
8980 { echo "$as_me:$LINENO: checking for X" >&5
8981 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8984 # Check whether --with-x was given.
8985 if test "${with_x+set}" = set; then
8986 withval=$with_x;
8989 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8990 if test "x$with_x" = xno; then
8991 # The user explicitly disabled X.
8992 have_x=disabled
8993 else
8994 case $x_includes,$x_libraries in #(
8995 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8996 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8997 { (exit 1); exit 1; }; };; #(
8998 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001 # One or both of the vars are not set, and there is no cached value.
9002 ac_x_includes=no ac_x_libraries=no
9003 rm -f -r conftest.dir
9004 if mkdir conftest.dir; then
9005 cd conftest.dir
9006 cat >Imakefile <<'_ACEOF'
9007 incroot:
9008 @echo incroot='${INCROOT}'
9009 usrlibdir:
9010 @echo usrlibdir='${USRLIBDIR}'
9011 libdir:
9012 @echo libdir='${LIBDIR}'
9013 _ACEOF
9014 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9016 for ac_var in incroot usrlibdir libdir; do
9017 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9018 done
9019 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9020 for ac_extension in a so sl; do
9021 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9022 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9023 ac_im_usrlibdir=$ac_im_libdir; break
9025 done
9026 # Screen out bogus values from the imake configuration. They are
9027 # bogus both because they are the default anyway, and because
9028 # using them would break gcc on systems where it needs fixed includes.
9029 case $ac_im_incroot in
9030 /usr/include) ac_x_includes= ;;
9031 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9032 esac
9033 case $ac_im_usrlibdir in
9034 /usr/lib | /lib) ;;
9035 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9036 esac
9038 cd ..
9039 rm -f -r conftest.dir
9042 # Standard set of common directories for X headers.
9043 # Check X11 before X11Rn because it is often a symlink to the current release.
9044 ac_x_header_dirs='
9045 /usr/X11/include
9046 /usr/X11R6/include
9047 /usr/X11R5/include
9048 /usr/X11R4/include
9050 /usr/include/X11
9051 /usr/include/X11R6
9052 /usr/include/X11R5
9053 /usr/include/X11R4
9055 /usr/local/X11/include
9056 /usr/local/X11R6/include
9057 /usr/local/X11R5/include
9058 /usr/local/X11R4/include
9060 /usr/local/include/X11
9061 /usr/local/include/X11R6
9062 /usr/local/include/X11R5
9063 /usr/local/include/X11R4
9065 /usr/X386/include
9066 /usr/x386/include
9067 /usr/XFree86/include/X11
9069 /usr/include
9070 /usr/local/include
9071 /usr/unsupported/include
9072 /usr/athena/include
9073 /usr/local/x11r5/include
9074 /usr/lpp/Xamples/include
9076 /usr/openwin/include
9077 /usr/openwin/share/include'
9079 if test "$ac_x_includes" = no; then
9080 # Guess where to find include files, by looking for Xlib.h.
9081 # First, try using that file with no special directory specified.
9082 cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 #include <X11/Xlib.h>
9089 _ACEOF
9090 if { (ac_try="$ac_cpp conftest.$ac_ext"
9091 case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9097 ac_status=$?
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } >/dev/null && {
9103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9105 }; then
9106 # We can compile using X headers with no special include directory.
9107 ac_x_includes=
9108 else
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9112 for ac_dir in $ac_x_header_dirs; do
9113 if test -r "$ac_dir/X11/Xlib.h"; then
9114 ac_x_includes=$ac_dir
9115 break
9117 done
9120 rm -f conftest.err conftest.$ac_ext
9121 fi # $ac_x_includes = no
9123 if test "$ac_x_libraries" = no; then
9124 # Check for the libraries.
9125 # See if we find them without any special options.
9126 # Don't add to $LIBS permanently.
9127 ac_save_LIBS=$LIBS
9128 LIBS="-lX11 $LIBS"
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 #include <X11/Xlib.h>
9137 main ()
9139 XrmInitialize ()
9141 return 0;
9143 _ACEOF
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (ac_try="$ac_link"
9146 case "(($ac_try" in
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9149 esac
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_link") 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest$ac_exeext &&
9161 $as_test_x conftest$ac_exeext; then
9162 LIBS=$ac_save_LIBS
9163 # We can link X programs with no special library path.
9164 ac_x_libraries=
9165 else
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 LIBS=$ac_save_LIBS
9170 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9172 # Don't even attempt the hair of trying to link an X program!
9173 for ac_extension in a so sl; do
9174 if test -r "$ac_dir/libX11.$ac_extension"; then
9175 ac_x_libraries=$ac_dir
9176 break 2
9178 done
9179 done
9182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9183 conftest$ac_exeext conftest.$ac_ext
9184 fi # $ac_x_libraries = no
9186 case $ac_x_includes,$ac_x_libraries in #(
9187 no,* | *,no | *\'*)
9188 # Didn't find X, or a directory has "'" in its name.
9189 ac_cv_have_x="have_x=no";; #(
9191 # Record where we found X for the cache.
9192 ac_cv_have_x="have_x=yes\
9193 ac_x_includes='$ac_x_includes'\
9194 ac_x_libraries='$ac_x_libraries'"
9195 esac
9197 ;; #(
9198 *) have_x=yes;;
9199 esac
9200 eval "$ac_cv_have_x"
9201 fi # $with_x != no
9203 if test "$have_x" != yes; then
9204 { echo "$as_me:$LINENO: result: $have_x" >&5
9205 echo "${ECHO_T}$have_x" >&6; }
9206 no_x=yes
9207 else
9208 # If each of the values was on the command line, it overrides each guess.
9209 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9210 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9211 # Update the cache value to reflect the command line values.
9212 ac_cv_have_x="have_x=yes\
9213 ac_x_includes='$x_includes'\
9214 ac_x_libraries='$x_libraries'"
9215 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9216 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9219 if test "$no_x" = yes; then
9220 window_system=none
9221 else
9222 window_system=x11
9225 if test "${x_libraries}" != NONE; then
9226 if test -n "${x_libraries}"; then
9227 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9228 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9230 x_default_search_path=""
9231 x_search_path=${x_libraries}
9232 if test -z "${x_search_path}"; then
9233 x_search_path=/usr/lib
9235 for x_library in `echo ${x_search_path}: | \
9236 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9237 x_search_path="\
9238 ${x_library}/X11/%L/%T/%N%C%S:\
9239 ${x_library}/X11/%l/%T/%N%C%S:\
9240 ${x_library}/X11/%T/%N%C%S:\
9241 ${x_library}/X11/%L/%T/%N%S:\
9242 ${x_library}/X11/%l/%T/%N%S:\
9243 ${x_library}/X11/%T/%N%S"
9244 if test x"${x_default_search_path}" = x; then
9245 x_default_search_path=${x_search_path}
9246 else
9247 x_default_search_path="${x_search_path}:${x_default_search_path}"
9249 done
9251 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9252 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9255 if test x"${x_includes}" = x; then
9256 bitmapdir=/usr/include/X11/bitmaps
9257 else
9258 # accumulate include directories that have X11 bitmap subdirectories
9259 bmd_acc="dummyval"
9260 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9261 if test -d "${bmd}/X11/bitmaps"; then
9262 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9264 if test -d "${bmd}/bitmaps"; then
9265 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9267 done
9268 if test ${bmd_acc} != "dummyval"; then
9269 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9273 HAVE_CARBON=no
9274 if test "${with_carbon}" != no; then
9275 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9276 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9277 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9278 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9282 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9283 else
9284 # Is the header compilable?
9285 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9286 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9287 cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h. */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 #include <Carbon/Carbon.h>
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (ac_try="$ac_compile"
9298 case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_compile") 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest.$ac_objext; then
9313 ac_header_compiler=yes
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_header_compiler=no
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9323 echo "${ECHO_T}$ac_header_compiler" >&6; }
9325 # Is the header present?
9326 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9327 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 #include <Carbon/Carbon.h>
9335 _ACEOF
9336 if { (ac_try="$ac_cpp conftest.$ac_ext"
9337 case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } >/dev/null && {
9349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 }; then
9352 ac_header_preproc=yes
9353 else
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_header_preproc=no
9360 rm -f conftest.err conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9362 echo "${ECHO_T}$ac_header_preproc" >&6; }
9364 # So? What about this header?
9365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9366 yes:no: )
9367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9368 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9370 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9371 ac_header_preproc=yes
9373 no:yes:* )
9374 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9375 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9377 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9379 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9381 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9383 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9385 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9388 esac
9389 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9390 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9391 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9396 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9397 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9400 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9401 HAVE_CARBON=yes
9406 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9407 if test "${with_carbon+set}" != set \
9408 && test "${carbon_appdir_x+set}" != set; then
9409 for var in with_x with_x_toolkit with_gtk with_xim \
9410 with_xpm with_jpeg with_tiff with_gif with_png; do
9411 if eval test \"\${$var+set}\" = set; then
9412 HAVE_CARBON=no
9413 break
9415 done
9418 if test "${HAVE_CARBON}" = yes; then
9419 window_system=mac
9422 case "${window_system}" in
9423 x11 )
9424 HAVE_X_WINDOWS=yes
9425 HAVE_X11=yes
9426 case "${with_x_toolkit}" in
9427 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9428 motif ) USE_X_TOOLKIT=MOTIF ;;
9429 gtk ) with_gtk=yes
9430 USE_X_TOOLKIT=none ;;
9431 no ) USE_X_TOOLKIT=none ;;
9432 * ) USE_X_TOOLKIT=maybe ;;
9433 esac
9435 mac | none )
9436 HAVE_X_WINDOWS=no
9437 HAVE_X11=no
9438 USE_X_TOOLKIT=none
9440 esac
9442 ### If we're using X11, we should use the X menu package.
9443 HAVE_MENUS=no
9444 case ${HAVE_X11} in
9445 yes ) HAVE_MENUS=yes ;;
9446 esac
9448 if test "${opsys}" = "hpux9"; then
9449 case "${x_libraries}" in
9450 *X11R4* )
9451 opsysfile="s/hpux9-x11r4.h"
9453 esac
9456 if test "${opsys}" = "hpux9shr"; then
9457 case "${x_libraries}" in
9458 *X11R4* )
9459 opsysfile="s/hpux9shxr4.h"
9461 esac
9464 ### Compute the unexec source name from the object name.
9465 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9467 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9468 # Assume not, until told otherwise.
9469 GNU_MALLOC=yes
9470 doug_lea_malloc=yes
9471 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9472 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9473 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484 #define malloc_get_state innocuous_malloc_get_state
9486 /* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char malloc_get_state (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9491 #ifdef __STDC__
9492 # include <limits.h>
9493 #else
9494 # include <assert.h>
9495 #endif
9497 #undef malloc_get_state
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 char malloc_get_state ();
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9510 choke me
9511 #endif
9514 main ()
9516 return malloc_get_state ();
9518 return 0;
9520 _ACEOF
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (ac_try="$ac_link"
9523 case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_link") 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest$ac_exeext &&
9538 $as_test_x conftest$ac_exeext; then
9539 ac_cv_func_malloc_get_state=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 ac_cv_func_malloc_get_state=no
9547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548 conftest$ac_exeext conftest.$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9551 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9552 if test $ac_cv_func_malloc_get_state = yes; then
9554 else
9555 doug_lea_malloc=no
9558 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9559 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9560 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h. */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define malloc_set_state innocuous_malloc_set_state
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char malloc_set_state (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9578 #ifdef __STDC__
9579 # include <limits.h>
9580 #else
9581 # include <assert.h>
9582 #endif
9584 #undef malloc_set_state
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 char malloc_set_state ();
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9597 choke me
9598 #endif
9601 main ()
9603 return malloc_set_state ();
9605 return 0;
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9610 case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest$ac_exeext &&
9625 $as_test_x conftest$ac_exeext; then
9626 ac_cv_func_malloc_set_state=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_cv_func_malloc_set_state=no
9634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9635 conftest$ac_exeext conftest.$ac_ext
9637 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9638 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9639 if test $ac_cv_func_malloc_set_state = yes; then
9641 else
9642 doug_lea_malloc=no
9645 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9646 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9647 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 extern void (* __after_morecore_hook)();
9658 main ()
9660 __after_morecore_hook = 0
9662 return 0;
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest$ac_exeext &&
9682 $as_test_x conftest$ac_exeext; then
9683 emacs_cv_var___after_morecore_hook=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 emacs_cv_var___after_morecore_hook=no
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9694 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9695 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9696 if test $emacs_cv_var___after_morecore_hook = no; then
9697 doug_lea_malloc=no
9699 if test "${system_malloc}" = "yes"; then
9700 GNU_MALLOC=no
9701 GNU_MALLOC_reason="
9702 (The GNU allocators don't work with this system configuration.)"
9704 if test "$doug_lea_malloc" = "yes" ; then
9705 if test "$GNU_MALLOC" = yes ; then
9706 GNU_MALLOC_reason="
9707 (Using Doug Lea's new malloc from the GNU C Library.)"
9710 cat >>confdefs.h <<\_ACEOF
9711 #define DOUG_LEA_MALLOC 1
9712 _ACEOF
9716 if test x"${REL_ALLOC}" = x; then
9717 REL_ALLOC=${GNU_MALLOC}
9723 for ac_header in stdlib.h unistd.h
9725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 ac_res=`eval echo '${'$as_ac_Header'}'`
9733 { echo "$as_me:$LINENO: result: $ac_res" >&5
9734 echo "${ECHO_T}$ac_res" >&6; }
9735 else
9736 # Is the header compilable?
9737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 $ac_includes_default
9746 #include <$ac_header>
9747 _ACEOF
9748 rm -f conftest.$ac_objext
9749 if { (ac_try="$ac_compile"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 echo "${ECHO_T}$ac_header_compiler" >&6; }
9777 # Is the header present?
9778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <$ac_header>
9787 _ACEOF
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
9801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 }; then
9804 ac_header_preproc=yes
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_header_preproc=no
9812 rm -f conftest.err conftest.$ac_ext
9813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6; }
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9818 yes:no: )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc=yes
9825 no:yes:* )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9840 esac
9841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 eval "$as_ac_Header=\$ac_header_preproc"
9848 ac_res=`eval echo '${'$as_ac_Header'}'`
9849 { echo "$as_me:$LINENO: result: $ac_res" >&5
9850 echo "${ECHO_T}$ac_res" >&6; }
9853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854 cat >>confdefs.h <<_ACEOF
9855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856 _ACEOF
9860 done
9863 for ac_func in getpagesize
9865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h. */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9879 #define $ac_func innocuous_$ac_func
9881 /* System header to define __stub macros and hopefully few prototypes,
9882 which can conflict with char $ac_func (); below.
9883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9884 <limits.h> exists even on freestanding compilers. */
9886 #ifdef __STDC__
9887 # include <limits.h>
9888 #else
9889 # include <assert.h>
9890 #endif
9892 #undef $ac_func
9894 /* Override any GCC internal prototype to avoid an error.
9895 Use char because int might match the return type of a GCC
9896 builtin and then its argument prototype would still apply. */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 char $ac_func ();
9901 /* The GNU C library defines this for functions which it implements
9902 to always fail with ENOSYS. Some functions are actually named
9903 something starting with __ and the normal name is an alias. */
9904 #if defined __stub_$ac_func || defined __stub___$ac_func
9905 choke me
9906 #endif
9909 main ()
9911 return $ac_func ();
9913 return 0;
9915 _ACEOF
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (ac_try="$ac_link"
9918 case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext &&
9933 $as_test_x conftest$ac_exeext; then
9934 eval "$as_ac_var=yes"
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 eval "$as_ac_var=no"
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9945 ac_res=`eval echo '${'$as_ac_var'}'`
9946 { echo "$as_me:$LINENO: result: $ac_res" >&5
9947 echo "${ECHO_T}$ac_res" >&6; }
9948 if test `eval echo '${'$as_ac_var'}'` = yes; then
9949 cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9951 _ACEOF
9954 done
9956 { echo "$as_me:$LINENO: checking for working mmap" >&5
9957 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9958 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961 if test "$cross_compiling" = yes; then
9962 ac_cv_func_mmap_fixed_mapped=no
9963 else
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 $ac_includes_default
9971 /* malloc might have been renamed as rpl_malloc. */
9972 #undef malloc
9974 /* Thanks to Mike Haertel and Jim Avera for this test.
9975 Here is a matrix of mmap possibilities:
9976 mmap private not fixed
9977 mmap private fixed at somewhere currently unmapped
9978 mmap private fixed at somewhere already mapped
9979 mmap shared not fixed
9980 mmap shared fixed at somewhere currently unmapped
9981 mmap shared fixed at somewhere already mapped
9982 For private mappings, we should verify that changes cannot be read()
9983 back from the file, nor mmap's back from the file at a different
9984 address. (There have been systems where private was not correctly
9985 implemented like the infamous i386 svr4.0, and systems where the
9986 VM page cache was not coherent with the file system buffer cache
9987 like early versions of FreeBSD and possibly contemporary NetBSD.)
9988 For shared mappings, we should conversely verify that changes get
9989 propagated back to all the places they're supposed to be.
9991 Grep wants private fixed already mapped.
9992 The main things grep needs to know about mmap are:
9993 * does it exist and is it safe to write into the mmap'd area
9994 * how to use it (BSD variants) */
9996 #include <fcntl.h>
9997 #include <sys/mman.h>
9999 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10000 char *malloc ();
10001 #endif
10003 /* This mess was copied from the GNU getpagesize.h. */
10004 #ifndef HAVE_GETPAGESIZE
10005 /* Assume that all systems that can run configure have sys/param.h. */
10006 # ifndef HAVE_SYS_PARAM_H
10007 # define HAVE_SYS_PARAM_H 1
10008 # endif
10010 # ifdef _SC_PAGESIZE
10011 # define getpagesize() sysconf(_SC_PAGESIZE)
10012 # else /* no _SC_PAGESIZE */
10013 # ifdef HAVE_SYS_PARAM_H
10014 # include <sys/param.h>
10015 # ifdef EXEC_PAGESIZE
10016 # define getpagesize() EXEC_PAGESIZE
10017 # else /* no EXEC_PAGESIZE */
10018 # ifdef NBPG
10019 # define getpagesize() NBPG * CLSIZE
10020 # ifndef CLSIZE
10021 # define CLSIZE 1
10022 # endif /* no CLSIZE */
10023 # else /* no NBPG */
10024 # ifdef NBPC
10025 # define getpagesize() NBPC
10026 # else /* no NBPC */
10027 # ifdef PAGESIZE
10028 # define getpagesize() PAGESIZE
10029 # endif /* PAGESIZE */
10030 # endif /* no NBPC */
10031 # endif /* no NBPG */
10032 # endif /* no EXEC_PAGESIZE */
10033 # else /* no HAVE_SYS_PARAM_H */
10034 # define getpagesize() 8192 /* punt totally */
10035 # endif /* no HAVE_SYS_PARAM_H */
10036 # endif /* no _SC_PAGESIZE */
10038 #endif /* no HAVE_GETPAGESIZE */
10041 main ()
10043 char *data, *data2, *data3;
10044 int i, pagesize;
10045 int fd;
10047 pagesize = getpagesize ();
10049 /* First, make a file with some known garbage in it. */
10050 data = (char *) malloc (pagesize);
10051 if (!data)
10052 return 1;
10053 for (i = 0; i < pagesize; ++i)
10054 *(data + i) = rand ();
10055 umask (0);
10056 fd = creat ("conftest.mmap", 0600);
10057 if (fd < 0)
10058 return 1;
10059 if (write (fd, data, pagesize) != pagesize)
10060 return 1;
10061 close (fd);
10063 /* Next, try to mmap the file at a fixed address which already has
10064 something else allocated at it. If we can, also make sure that
10065 we see the same garbage. */
10066 fd = open ("conftest.mmap", O_RDWR);
10067 if (fd < 0)
10068 return 1;
10069 data2 = (char *) malloc (2 * pagesize);
10070 if (!data2)
10071 return 1;
10072 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10073 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10074 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10075 return 1;
10076 for (i = 0; i < pagesize; ++i)
10077 if (*(data + i) != *(data2 + i))
10078 return 1;
10080 /* Finally, make sure that changes to the mapped area do not
10081 percolate back to the file as seen by read(). (This is a bug on
10082 some variants of i386 svr4.0.) */
10083 for (i = 0; i < pagesize; ++i)
10084 *(data2 + i) = *(data2 + i) + 1;
10085 data3 = (char *) malloc (pagesize);
10086 if (!data3)
10087 return 1;
10088 if (read (fd, data3, pagesize) != pagesize)
10089 return 1;
10090 for (i = 0; i < pagesize; ++i)
10091 if (*(data + i) != *(data3 + i))
10092 return 1;
10093 close (fd);
10094 return 0;
10096 _ACEOF
10097 rm -f conftest$ac_exeext
10098 if { (ac_try="$ac_link"
10099 case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_link") 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_func_mmap_fixed_mapped=yes
10118 else
10119 echo "$as_me: program exited with status $ac_status" >&5
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ( exit $ac_status )
10124 ac_cv_func_mmap_fixed_mapped=no
10126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10131 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10132 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10133 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_MMAP 1
10137 _ACEOF
10140 rm -f conftest.mmap
10142 if test $use_mmap_for_buffers = yes; then
10143 REL_ALLOC=no
10146 LIBS="$libsrc_libs $LIBS"
10149 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10150 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10151 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-ldnet $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char dnet_ntoa ();
10171 main ()
10173 return dnet_ntoa ();
10175 return 0;
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest$ac_exeext &&
10195 $as_test_x conftest$ac_exeext; then
10196 ac_cv_lib_dnet_dnet_ntoa=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_cv_lib_dnet_dnet_ntoa=no
10204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10209 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10210 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_LIBDNET 1
10213 _ACEOF
10215 LIBS="-ldnet $LIBS"
10220 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10221 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10222 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225 ac_check_lib_save_LIBS=$LIBS
10226 LIBS="-lXbsd $LIBS"
10227 cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h. */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10236 main ()
10238 return main ();
10240 return 0;
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest$ac_exeext &&
10260 $as_test_x conftest$ac_exeext; then
10261 ac_cv_lib_Xbsd_main=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_lib_Xbsd_main=no
10269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10274 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10275 if test $ac_cv_lib_Xbsd_main = yes; then
10276 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10281 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10282 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10283 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286 ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lpthreads $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 char cma_open ();
10303 main ()
10305 return cma_open ();
10307 return 0;
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
10328 ac_cv_lib_pthreads_cma_open=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_cv_lib_pthreads_cma_open=no
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10341 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10342 if test $ac_cv_lib_pthreads_cma_open = yes; then
10343 cat >>confdefs.h <<_ACEOF
10344 #define HAVE_LIBPTHREADS 1
10345 _ACEOF
10347 LIBS="-lpthreads $LIBS"
10352 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10353 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10354 if test -d /usr/X386/include; then
10355 HAVE_XFREE386=yes
10356 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10357 else
10358 HAVE_XFREE386=no
10360 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10361 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10364 case ${host_os} in
10365 aix*)
10366 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10367 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10368 if test "${gdb_cv_bigtoc+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10372 case $GCC in
10373 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10374 *) gdb_cv_bigtoc=-bbigtoc ;;
10375 esac
10377 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10386 main ()
10388 int i;
10390 return 0;
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_link") 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest$ac_exeext &&
10410 $as_test_x conftest$ac_exeext; then
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10416 gdb_cv_bigtoc=
10419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10420 conftest$ac_exeext conftest.$ac_ext
10423 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10424 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10426 esac
10428 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10429 # used for the tests that follow. We set them back to REAL_CFLAGS and
10430 # REAL_CPPFLAGS later on.
10432 REAL_CPPFLAGS="$CPPFLAGS"
10434 if test "${HAVE_X11}" = "yes"; then
10435 DEFS="$C_SWITCH_X_SITE $DEFS"
10436 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10437 LIBS="$LIBX $LIBS"
10438 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10439 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10441 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10442 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10443 # but it's more convenient here to set LD_RUN_PATH
10444 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10445 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10446 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10447 export LD_RUN_PATH
10450 if test "${opsys}" = "gnu-linux"; then
10451 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10452 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10461 main ()
10463 XOpenDisplay ("foo");
10465 return 0;
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest$ac_exeext &&
10485 $as_test_x conftest$ac_exeext; then
10486 xlinux_first_failure=no
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 xlinux_first_failure=yes
10494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10495 conftest$ac_exeext conftest.$ac_ext
10496 if test "${xlinux_first_failure}" = "yes"; then
10497 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10498 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10499 OLD_CPPFLAGS="$CPPFLAGS"
10500 OLD_LIBS="$LIBS"
10501 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10502 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10503 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10504 LIBS="$LIBS -b i486-linuxaout"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10513 main ()
10515 XOpenDisplay ("foo");
10517 return 0;
10519 _ACEOF
10520 rm -f conftest.$ac_objext conftest$ac_exeext
10521 if { (ac_try="$ac_link"
10522 case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_link") 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest$ac_exeext &&
10537 $as_test_x conftest$ac_exeext; then
10538 xlinux_second_failure=no
10539 else
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 xlinux_second_failure=yes
10546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10547 conftest$ac_exeext conftest.$ac_ext
10548 if test "${xlinux_second_failure}" = "yes"; then
10549 # If we get the same failure with -b, there is no use adding -b.
10550 # So take it out. This plays safe.
10551 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10552 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10553 CPPFLAGS="$OLD_CPPFLAGS"
10554 LIBS="$OLD_LIBS"
10555 { echo "$as_me:$LINENO: result: no" >&5
10556 echo "${ECHO_T}no" >&6; }
10557 else
10558 { echo "$as_me:$LINENO: result: yes" >&5
10559 echo "${ECHO_T}yes" >&6; }
10561 else
10562 { echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6; }
10567 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10568 # header files included from there.
10569 { echo "$as_me:$LINENO: checking for Xkb" >&5
10570 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #include <X11/Xlib.h>
10578 #include <X11/XKBlib.h>
10580 main ()
10582 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10584 return 0;
10586 _ACEOF
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest$ac_exeext &&
10604 $as_test_x conftest$ac_exeext; then
10605 emacs_xkb=yes
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 emacs_xkb=no
10613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10614 conftest$ac_exeext conftest.$ac_ext
10615 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10616 echo "${ECHO_T}$emacs_xkb" >&6; }
10617 if test $emacs_xkb = yes; then
10619 cat >>confdefs.h <<\_ACEOF
10620 #define HAVE_XKBGETKEYBOARD 1
10621 _ACEOF
10629 for ac_func in XrmSetDatabase XScreenResourceString \
10630 XScreenNumberOfScreen XSetWMProtocols
10632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h. */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10646 #define $ac_func innocuous_$ac_func
10648 /* System header to define __stub macros and hopefully few prototypes,
10649 which can conflict with char $ac_func (); below.
10650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10651 <limits.h> exists even on freestanding compilers. */
10653 #ifdef __STDC__
10654 # include <limits.h>
10655 #else
10656 # include <assert.h>
10657 #endif
10659 #undef $ac_func
10661 /* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 char $ac_func ();
10668 /* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671 #if defined __stub_$ac_func || defined __stub___$ac_func
10672 choke me
10673 #endif
10676 main ()
10678 return $ac_func ();
10680 return 0;
10682 _ACEOF
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (ac_try="$ac_link"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688 esac
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_link") 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && {
10697 test -z "$ac_c_werror_flag" ||
10698 test ! -s conftest.err
10699 } && test -s conftest$ac_exeext &&
10700 $as_test_x conftest$ac_exeext; then
10701 eval "$as_ac_var=yes"
10702 else
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 eval "$as_ac_var=no"
10709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10710 conftest$ac_exeext conftest.$ac_ext
10712 ac_res=`eval echo '${'$as_ac_var'}'`
10713 { echo "$as_me:$LINENO: result: $ac_res" >&5
10714 echo "${ECHO_T}$ac_res" >&6; }
10715 if test `eval echo '${'$as_ac_var'}'` = yes; then
10716 cat >>confdefs.h <<_ACEOF
10717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10718 _ACEOF
10721 done
10725 if test "${window_system}" = "x11"; then
10726 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10727 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10728 if test "${emacs_cv_x11_version_6+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #include <X11/Xlib.h>
10739 main ()
10741 #if XlibSpecificationRelease < 6
10742 fail;
10743 #endif
10746 return 0;
10748 _ACEOF
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (ac_try="$ac_link"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_link") 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest$ac_exeext &&
10766 $as_test_x conftest$ac_exeext; then
10767 emacs_cv_x11_version_6=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 emacs_cv_x11_version_6=no
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10779 if test $emacs_cv_x11_version_6 = yes; then
10780 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10781 echo "${ECHO_T}6 or newer" >&6; }
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_X11R6 1
10785 _ACEOF
10787 else
10788 { echo "$as_me:$LINENO: result: before 6" >&5
10789 echo "${ECHO_T}before 6" >&6; }
10793 if test "${window_system}" = "x11"; then
10794 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10795 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10796 if test "${emacs_cv_x11_version_5+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <X11/Xlib.h>
10807 main ()
10809 #if XlibSpecificationRelease < 5
10810 fail;
10811 #endif
10814 return 0;
10816 _ACEOF
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (ac_try="$ac_link"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822 esac
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_link") 2>conftest.er1
10825 ac_status=$?
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } && {
10831 test -z "$ac_c_werror_flag" ||
10832 test ! -s conftest.err
10833 } && test -s conftest$ac_exeext &&
10834 $as_test_x conftest$ac_exeext; then
10835 emacs_cv_x11_version_5=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 emacs_cv_x11_version_5=no
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10847 if test $emacs_cv_x11_version_5 = yes; then
10848 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10849 echo "${ECHO_T}5 or newer" >&6; }
10850 HAVE_X11R5=yes
10852 cat >>confdefs.h <<\_ACEOF
10853 #define HAVE_X11R5 1
10854 _ACEOF
10856 else
10857 HAVE_X11R5=no
10858 { echo "$as_me:$LINENO: result: before 5" >&5
10859 echo "${ECHO_T}before 5" >&6; }
10863 HAVE_GTK=no
10864 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10865 USE_X_TOOLKIT=none
10867 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10868 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10869 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10870 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10871 { (exit 1); exit 1; }; };
10873 GLIB_REQUIRED=2.4
10874 GTK_REQUIRED=2.4
10875 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10877 if test "X${with_pkg_config_prog}" != X; then
10878 PKG_CONFIG="${with_pkg_config_prog}"
10881 succeeded=no
10883 if test -z "$PKG_CONFIG"; then
10884 # Extract the first word of "pkg-config", so it can be a program name with args.
10885 set dummy pkg-config; ac_word=$2
10886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10888 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 case $PKG_CONFIG in
10892 [\\/]* | ?:[\\/]*)
10893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10903 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10907 done
10908 done
10909 IFS=$as_save_IFS
10911 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10913 esac
10915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10916 if test -n "$PKG_CONFIG"; then
10917 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10918 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10919 else
10920 { echo "$as_me:$LINENO: result: no" >&5
10921 echo "${ECHO_T}no" >&6; }
10927 if test "$PKG_CONFIG" = "no" ; then
10928 { { echo "$as_me:$LINENO: error:
10929 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10930 echo "$as_me: error:
10931 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10932 { (exit 1); exit 1; }; }
10933 else
10934 PKG_CONFIG_MIN_VERSION=0.9.0
10935 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10936 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10937 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10939 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10940 { echo "$as_me:$LINENO: result: yes" >&5
10941 echo "${ECHO_T}yes" >&6; }
10942 succeeded=yes
10944 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10945 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10946 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10947 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10948 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10950 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10951 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10952 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10953 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10954 echo "${ECHO_T}$GTK_LIBS" >&6; }
10955 else
10956 { echo "$as_me:$LINENO: result: no" >&5
10957 echo "${ECHO_T}no" >&6; }
10958 GTK_CFLAGS=""
10959 GTK_LIBS=""
10960 ## If we have a custom action on failure, don't print errors, but
10961 ## do set a variable so people can do so.
10962 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10963 echo $GTK_PKG_ERRORS
10968 else
10969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10974 if test $succeeded = yes; then
10976 else
10977 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10978 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10979 { (exit 1); exit 1; }; }
10984 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10985 CFLAGS="$CFLAGS $GTK_CFLAGS"
10986 LIBS="$GTK_LIBS $LIBS"
10987 GTK_COMPILES=no
10989 for ac_func in gtk_main
10991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h. */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define $ac_func innocuous_$ac_func
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11012 #ifdef __STDC__
11013 # include <limits.h>
11014 #else
11015 # include <assert.h>
11016 #endif
11018 #undef $ac_func
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 char $ac_func ();
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined __stub_$ac_func || defined __stub___$ac_func
11031 choke me
11032 #endif
11035 main ()
11037 return $ac_func ();
11039 return 0;
11041 _ACEOF
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (ac_try="$ac_link"
11044 case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext &&
11059 $as_test_x conftest$ac_exeext; then
11060 eval "$as_ac_var=yes"
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 eval "$as_ac_var=no"
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11071 ac_res=`eval echo '${'$as_ac_var'}'`
11072 { echo "$as_me:$LINENO: result: $ac_res" >&5
11073 echo "${ECHO_T}$ac_res" >&6; }
11074 if test `eval echo '${'$as_ac_var'}'` = yes; then
11075 cat >>confdefs.h <<_ACEOF
11076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11077 _ACEOF
11078 GTK_COMPILES=yes
11080 done
11082 if test "${GTK_COMPILES}" != "yes"; then
11083 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11084 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11085 { (exit 1); exit 1; }; };
11088 HAVE_GTK=yes
11090 cat >>confdefs.h <<\_ACEOF
11091 #define HAVE_GTK 1
11092 _ACEOF
11094 USE_X_TOOLKIT=none
11096 if test "$with_toolkit_scroll_bars" != no; then
11097 with_toolkit_scroll_bars=yes
11100 HAVE_GTK_MULTIDISPLAY=no
11102 for ac_func in gdk_display_open
11104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define $ac_func innocuous_$ac_func
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char $ac_func (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11125 #ifdef __STDC__
11126 # include <limits.h>
11127 #else
11128 # include <assert.h>
11129 #endif
11131 #undef $ac_func
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char $ac_func ();
11140 /* The GNU C library defines this for functions which it implements
11141 to always fail with ENOSYS. Some functions are actually named
11142 something starting with __ and the normal name is an alias. */
11143 #if defined __stub_$ac_func || defined __stub___$ac_func
11144 choke me
11145 #endif
11148 main ()
11150 return $ac_func ();
11152 return 0;
11154 _ACEOF
11155 rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (ac_try="$ac_link"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160 esac
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_link") 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest$ac_exeext &&
11172 $as_test_x conftest$ac_exeext; then
11173 eval "$as_ac_var=yes"
11174 else
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 eval "$as_ac_var=no"
11181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11182 conftest$ac_exeext conftest.$ac_ext
11184 ac_res=`eval echo '${'$as_ac_var'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11190 _ACEOF
11191 HAVE_GTK_MULTIDISPLAY=yes
11193 done
11195 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define HAVE_GTK_MULTIDISPLAY 1
11199 _ACEOF
11202 HAVE_GTK_FILE_SELECTION=no
11204 for ac_func in gtk_file_selection_new
11206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11220 #define $ac_func innocuous_$ac_func
11222 /* System header to define __stub macros and hopefully few prototypes,
11223 which can conflict with char $ac_func (); below.
11224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11225 <limits.h> exists even on freestanding compilers. */
11227 #ifdef __STDC__
11228 # include <limits.h>
11229 #else
11230 # include <assert.h>
11231 #endif
11233 #undef $ac_func
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11238 #ifdef __cplusplus
11239 extern "C"
11240 #endif
11241 char $ac_func ();
11242 /* The GNU C library defines this for functions which it implements
11243 to always fail with ENOSYS. Some functions are actually named
11244 something starting with __ and the normal name is an alias. */
11245 #if defined __stub_$ac_func || defined __stub___$ac_func
11246 choke me
11247 #endif
11250 main ()
11252 return $ac_func ();
11254 return 0;
11256 _ACEOF
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (ac_try="$ac_link"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_link") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest$ac_exeext &&
11274 $as_test_x conftest$ac_exeext; then
11275 eval "$as_ac_var=yes"
11276 else
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 eval "$as_ac_var=no"
11283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11284 conftest$ac_exeext conftest.$ac_ext
11286 ac_res=`eval echo '${'$as_ac_var'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289 if test `eval echo '${'$as_ac_var'}'` = yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11292 _ACEOF
11293 HAVE_GTK_FILE_SELECTION=yes
11295 done
11298 HAVE_GTK_FILE_CHOOSER=no
11300 for ac_func in gtk_file_chooser_dialog_new
11302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11323 #ifdef __STDC__
11324 # include <limits.h>
11325 #else
11326 # include <assert.h>
11327 #endif
11329 #undef $ac_func
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char $ac_func ();
11338 /* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
11341 #if defined __stub_$ac_func || defined __stub___$ac_func
11342 choke me
11343 #endif
11346 main ()
11348 return $ac_func ();
11350 return 0;
11352 _ACEOF
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (ac_try="$ac_link"
11355 case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_link") 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest$ac_exeext &&
11370 $as_test_x conftest$ac_exeext; then
11371 eval "$as_ac_var=yes"
11372 else
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 eval "$as_ac_var=no"
11379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11380 conftest$ac_exeext conftest.$ac_ext
11382 ac_res=`eval echo '${'$as_ac_var'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384 echo "${ECHO_T}$ac_res" >&6; }
11385 if test `eval echo '${'$as_ac_var'}'` = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11388 _ACEOF
11389 HAVE_GTK_FILE_CHOOSER=yes
11391 done
11394 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11395 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11397 cat >>confdefs.h <<\_ACEOF
11398 #define HAVE_GTK_FILE_BOTH 1
11399 _ACEOF
11403 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11404 HAVE_GTK_AND_PTHREAD=no
11406 for ac_header in pthread.h
11408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 ac_res=`eval echo '${'$as_ac_Header'}'`
11416 { echo "$as_me:$LINENO: result: $ac_res" >&5
11417 echo "${ECHO_T}$ac_res" >&6; }
11418 else
11419 # Is the header compilable?
11420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11422 cat >conftest.$ac_ext <<_ACEOF
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11429 #include <$ac_header>
11430 _ACEOF
11431 rm -f conftest.$ac_objext
11432 if { (ac_try="$ac_compile"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_compile") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest.$ac_objext; then
11448 ac_header_compiler=yes
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_header_compiler=no
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11458 echo "${ECHO_T}$ac_header_compiler" >&6; }
11460 # Is the header present?
11461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 #include <$ac_header>
11470 _ACEOF
11471 if { (ac_try="$ac_cpp conftest.$ac_ext"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } >/dev/null && {
11484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 }; then
11487 ac_header_preproc=yes
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_header_preproc=no
11495 rm -f conftest.err conftest.$ac_ext
11496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11497 echo "${ECHO_T}$ac_header_preproc" >&6; }
11499 # So? What about this header?
11500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11501 yes:no: )
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11506 ac_header_preproc=yes
11508 no:yes:* )
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11523 esac
11524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529 eval "$as_ac_Header=\$ac_header_preproc"
11531 ac_res=`eval echo '${'$as_ac_Header'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11537 cat >>confdefs.h <<_ACEOF
11538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11539 _ACEOF
11543 done
11545 if test "$ac_cv_header_pthread_h"; then
11546 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11547 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11548 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-lpthread $LIBS"
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char pthread_self ();
11568 main ()
11570 return pthread_self ();
11572 return 0;
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest$ac_exeext &&
11592 $as_test_x conftest$ac_exeext; then
11593 ac_cv_lib_pthread_pthread_self=yes
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_cv_lib_pthread_pthread_self=no
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11605 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11606 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11607 if test $ac_cv_lib_pthread_pthread_self = yes; then
11608 HAVE_GTK_AND_PTHREAD=yes
11612 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11613 GTK_LIBS="$GTK_LIBS -lpthread"
11615 cat >>confdefs.h <<\_ACEOF
11616 #define HAVE_GTK_AND_PTHREAD 1
11617 _ACEOF
11623 ### Link with -lXft if available to work around a bug.
11624 HAVE_XFT=maybe
11625 if test "${HAVE_GTK}" = "yes"; then
11626 if test "X${with_pkg_config_prog}" != X; then
11627 PKG_CONFIG="${with_pkg_config_prog}"
11631 succeeded=no
11633 if test -z "$PKG_CONFIG"; then
11634 # Extract the first word of "pkg-config", so it can be a program name with args.
11635 set dummy pkg-config; ac_word=$2
11636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11638 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 case $PKG_CONFIG in
11642 [\\/]* | ?:[\\/]*)
11643 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11657 done
11658 done
11659 IFS=$as_save_IFS
11661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11663 esac
11665 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11666 if test -n "$PKG_CONFIG"; then
11667 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11668 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11669 else
11670 { echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6; }
11677 if test "$PKG_CONFIG" = "no" ; then
11678 HAVE_XFT=no
11679 else
11680 PKG_CONFIG_MIN_VERSION=0.9.0
11681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11683 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11685 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11686 { echo "$as_me:$LINENO: result: yes" >&5
11687 echo "${ECHO_T}yes" >&6; }
11688 succeeded=yes
11690 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11691 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11692 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11693 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11694 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11696 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11697 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11698 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11699 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11700 echo "${ECHO_T}$XFT_LIBS" >&6; }
11701 else
11702 { echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6; }
11704 XFT_CFLAGS=""
11705 XFT_LIBS=""
11706 ## If we have a custom action on failure, don't print errors, but
11707 ## do set a variable so people can do so.
11708 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11714 else
11715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11720 if test $succeeded = yes; then
11722 else
11723 HAVE_XFT=no
11726 if test "$HAVE_XFT" != no; then
11727 OLD_CFLAGS="$CPPFLAGS"
11728 OLD_CFLAGS="$CFLAGS"
11729 OLD_LIBS="$LIBS"
11730 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11731 CFLAGS="$CFLAGS $XFT_CFLAGS"
11732 LIBS="$XFT_LIBS $LIBS"
11733 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11734 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11735 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11736 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11740 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11741 else
11742 # Is the header compilable?
11743 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11744 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 $ac_includes_default
11752 #include <X11/Xft/Xft.h>
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (ac_try="$ac_compile"
11756 case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_compile") 2>conftest.er1
11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest.$ac_objext; then
11771 ac_header_compiler=yes
11772 else
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_header_compiler=no
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6; }
11783 # Is the header present?
11784 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11785 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11786 cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h. */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <X11/Xft/Xft.h>
11793 _ACEOF
11794 if { (ac_try="$ac_cpp conftest.$ac_ext"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } >/dev/null && {
11807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 }; then
11810 ac_header_preproc=yes
11811 else
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_header_preproc=no
11818 rm -f conftest.err conftest.$ac_ext
11819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11820 echo "${ECHO_T}$ac_header_preproc" >&6; }
11822 # So? What about this header?
11823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11824 yes:no: )
11825 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11826 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11828 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11829 ac_header_preproc=yes
11831 no:yes:* )
11832 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11833 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11835 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11837 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11838 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11839 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11840 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11841 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11843 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11846 esac
11847 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11848 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11849 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11854 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11855 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11858 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11859 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11860 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11861 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-lXft $XFT_LIBS $LIBS"
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11876 #ifdef __cplusplus
11877 extern "C"
11878 #endif
11879 char XftFontOpen ();
11881 main ()
11883 return XftFontOpen ();
11885 return 0;
11887 _ACEOF
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } && {
11902 test -z "$ac_c_werror_flag" ||
11903 test ! -s conftest.err
11904 } && test -s conftest$ac_exeext &&
11905 $as_test_x conftest$ac_exeext; then
11906 ac_cv_lib_Xft_XftFontOpen=yes
11907 else
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 ac_cv_lib_Xft_XftFontOpen=no
11914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11915 conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11918 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11919 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11920 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11921 HAVE_XFT=yes
11928 if test "${HAVE_XFT}" = "yes"; then
11930 cat >>confdefs.h <<\_ACEOF
11931 #define HAVE_XFT 1
11932 _ACEOF
11935 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11936 else
11937 CFLAGS="$OLD_CPPFLAGS"
11938 CFLAGS="$OLD_CFLAGS"
11939 LIBS="$OLD_LIBS"
11944 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11945 if test x"${HAVE_X11R5}" = xyes; then
11946 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11947 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11948 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 #include <X11/Intrinsic.h>
11959 #include <X11/Xaw/Simple.h>
11961 main ()
11965 return 0;
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_link") 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest$ac_exeext &&
11985 $as_test_x conftest$ac_exeext; then
11986 emacs_cv_x11_version_5_with_xaw=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 emacs_cv_x11_version_5_with_xaw=no
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995 conftest$ac_exeext conftest.$ac_ext
11998 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11999 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12000 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12001 USE_X_TOOLKIT=LUCID
12002 else
12003 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12004 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12005 USE_X_TOOLKIT=none
12007 else
12008 USE_X_TOOLKIT=none
12012 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12014 if test "${USE_X_TOOLKIT}" != "none"; then
12015 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12016 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12017 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h. */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 #include <X11/Intrinsic.h>
12028 main ()
12030 #if XtSpecificationRelease < 6
12031 fail;
12032 #endif
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest$ac_exeext &&
12055 $as_test_x conftest$ac_exeext; then
12056 emacs_cv_x11_toolkit_version_6=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 emacs_cv_x11_toolkit_version_6=no
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12068 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12069 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12070 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12071 echo "${ECHO_T}6 or newer" >&6; }
12073 cat >>confdefs.h <<\_ACEOF
12074 #define HAVE_X11XTR6 1
12075 _ACEOF
12077 else
12078 { echo "$as_me:$LINENO: result: before 6" >&5
12079 echo "${ECHO_T}before 6" >&6; }
12082 OLDLIBS="$LIBS"
12083 if test x$HAVE_X11XTR6 = xyes; then
12084 LIBS="-lXt -lSM -lICE $LIBS"
12085 else
12086 LIBS="-lXt $LIBS"
12089 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12090 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 ac_check_lib_save_LIBS=$LIBS
12095 LIBS="-lXmu $LIBS"
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 char XmuConvertStandardSelection ();
12111 main ()
12113 return XmuConvertStandardSelection ();
12115 return 0;
12117 _ACEOF
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest$ac_exeext &&
12135 $as_test_x conftest$ac_exeext; then
12136 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12149 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12150 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define HAVE_LIBXMU 1
12153 _ACEOF
12155 LIBS="-lXmu $LIBS"
12159 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${USE_X_TOOLKIT}" != "none"; then
12166 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12167 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12168 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-lXext $LIBS"
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char XShapeQueryExtension ();
12188 main ()
12190 return XShapeQueryExtension ();
12192 return 0;
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest$ac_exeext &&
12212 $as_test_x conftest$ac_exeext; then
12213 ac_cv_lib_Xext_XShapeQueryExtension=yes
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_cv_lib_Xext_XShapeQueryExtension=no
12221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12225 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12226 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12227 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_LIBXEXT 1
12230 _ACEOF
12232 LIBS="-lXext $LIBS"
12239 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12240 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12241 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12242 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 #include <Xm/Xm.h>
12253 main ()
12255 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12256 int x = 5;
12257 #else
12258 Motif version prior to 2.1.
12259 #endif
12261 return 0;
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.$ac_objext; then
12281 emacs_cv_motif_version_2_1=yes
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 emacs_cv_motif_version_2_1=no
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12292 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12293 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12294 if test $emacs_cv_motif_version_2_1 = yes; then
12295 HAVE_LIBXP=no
12297 cat >>confdefs.h <<\_ACEOF
12298 #define HAVE_MOTIF_2_1 1
12299 _ACEOF
12301 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12302 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lXp $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char XpCreateContext ();
12323 main ()
12325 return XpCreateContext ();
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext &&
12347 $as_test_x conftest$ac_exeext; then
12348 ac_cv_lib_Xp_XpCreateContext=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_Xp_XpCreateContext=no
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12361 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12362 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12363 HAVE_LIBXP=yes
12366 if test ${HAVE_LIBXP} = yes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_LIBXP 1
12370 _ACEOF
12373 else
12374 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12375 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12376 if test "${emacs_cv_lesstif+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 # We put this in CFLAGS temporarily to precede other -I options
12380 # that might be in CFLAGS temporarily.
12381 # We put this in CPPFLAGS where it precedes the other -I options.
12382 OLD_CPPFLAGS=$CPPFLAGS
12383 OLD_CFLAGS=$CFLAGS
12384 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12385 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12394 main ()
12396 int x = 5;
12398 return 0;
12400 _ACEOF
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest.$ac_objext; then
12418 emacs_cv_lesstif=yes
12419 else
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 emacs_cv_lesstif=no
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12429 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12430 if test $emacs_cv_lesstif = yes; then
12431 # Make sure this -I option remains in CPPFLAGS after it is set
12432 # back to REAL_CPPFLAGS.
12433 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12434 # have those other -I options anyway. Ultimately, having this
12435 # directory ultimately in CPPFLAGS will be enough.
12436 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12437 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12438 else
12439 CFLAGS=$OLD_CFLAGS
12440 CPPFLAGS=$OLD_CPPFLAGS
12445 ### Is -lXaw3d available?
12446 HAVE_XAW3D=no
12447 if test "${HAVE_X11}" = "yes"; then
12448 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12449 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12450 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12451 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h. */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 #include <X11/Xaw3d/Scrollbar.h>
12461 _ACEOF
12462 if { (ac_try="$ac_cpp conftest.$ac_ext"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } >/dev/null && {
12475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 }; then
12478 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12486 rm -f conftest.err conftest.$ac_ext
12488 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12489 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12490 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12491 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12492 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12493 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lXaw3d $LIBS"
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h. */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 char XawScrollbarSetThumb ();
12513 main ()
12515 return XawScrollbarSetThumb ();
12517 return 0;
12519 _ACEOF
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (ac_try="$ac_link"
12522 case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12525 esac
12526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_link") 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && {
12534 test -z "$ac_c_werror_flag" ||
12535 test ! -s conftest.err
12536 } && test -s conftest$ac_exeext &&
12537 $as_test_x conftest$ac_exeext; then
12538 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12539 else
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12550 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12551 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12552 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12553 HAVE_XAW3D=yes
12559 if test "${HAVE_XAW3D}" = "yes"; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_XAW3D 1
12563 _ACEOF
12571 USE_TOOLKIT_SCROLL_BARS=no
12572 if test "${with_toolkit_scroll_bars}" != "no"; then
12573 if test "${USE_X_TOOLKIT}" != "none"; then
12574 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12575 cat >>confdefs.h <<\_ACEOF
12576 #define USE_TOOLKIT_SCROLL_BARS 1
12577 _ACEOF
12579 HAVE_XAW3D=no
12580 USE_TOOLKIT_SCROLL_BARS=yes
12581 elif test "${HAVE_XAW3D}" = "yes"; then
12582 cat >>confdefs.h <<\_ACEOF
12583 #define USE_TOOLKIT_SCROLL_BARS 1
12584 _ACEOF
12586 USE_TOOLKIT_SCROLL_BARS=yes
12588 elif test "${HAVE_GTK}" = "yes"; then
12589 cat >>confdefs.h <<\_ACEOF
12590 #define USE_TOOLKIT_SCROLL_BARS 1
12591 _ACEOF
12593 USE_TOOLKIT_SCROLL_BARS=yes
12594 elif test "${HAVE_CARBON}" = "yes"; then
12595 cat >>confdefs.h <<\_ACEOF
12596 #define USE_TOOLKIT_SCROLL_BARS 1
12597 _ACEOF
12599 USE_TOOLKIT_SCROLL_BARS=yes
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 #include <X11/Xlib.h>
12611 #include <X11/Xresource.h>
12613 main ()
12615 XIMProc callback;
12617 return 0;
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (ac_try="$ac_compile"
12622 case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12625 esac
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_compile") 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest.$ac_objext; then
12637 HAVE_XIM=yes
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_XIM 1
12641 _ACEOF
12643 else
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12647 HAVE_XIM=no
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 if test "${with_xim}" != "no"; then
12655 cat >>confdefs.h <<\_ACEOF
12656 #define USE_XIM 1
12657 _ACEOF
12662 if test "${HAVE_XIM}" != "no"; then
12663 late_CFLAGS=$CFLAGS
12664 if test "$GCC" = yes; then
12665 CFLAGS="$CFLAGS --pedantic-errors"
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12674 #include <X11/Xlib.h>
12675 #include <X11/Xresource.h>
12677 main ()
12679 Display *display;
12680 XrmDatabase db;
12681 char *res_name;
12682 char *res_class;
12683 XIMProc callback;
12684 XPointer *client_data;
12685 #ifndef __GNUC__
12686 /* If we're not using GCC, it's probably not XFree86, and this is
12687 probably right, but we can't use something like --pedantic-errors. */
12688 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12689 char*, XIMProc, XPointer*);
12690 #endif
12691 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12692 client_data);
12694 return 0;
12696 _ACEOF
12697 rm -f conftest.$ac_objext
12698 if { (ac_try="$ac_compile"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_compile") 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } && {
12711 test -z "$ac_c_werror_flag" ||
12712 test ! -s conftest.err
12713 } && test -s conftest.$ac_objext; then
12714 emacs_cv_arg6_star=yes
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 if test "$emacs_cv_arg6_star" = yes; then
12725 cat >>confdefs.h <<\_ACEOF
12726 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12727 _ACEOF
12729 else
12730 cat >>confdefs.h <<\_ACEOF
12731 #define XRegisterIMInstantiateCallback_arg6 XPointer
12732 _ACEOF
12735 CFLAGS=$late_CFLAGS
12738 ### Use -lXpm if available, unless `--with-xpm=no'.
12739 HAVE_XPM=no
12740 if test "${HAVE_X11}" = "yes"; then
12741 if test "${with_xpm}" != "no"; then
12742 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12743 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12744 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12745 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12749 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12750 else
12751 # Is the header compilable?
12752 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12753 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 $ac_includes_default
12761 #include <X11/xpm.h>
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (ac_try="$ac_compile"
12765 case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
12780 ac_header_compiler=yes
12781 else
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ac_header_compiler=no
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12790 echo "${ECHO_T}$ac_header_compiler" >&6; }
12792 # Is the header present?
12793 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12794 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #include <X11/xpm.h>
12802 _ACEOF
12803 if { (ac_try="$ac_cpp conftest.$ac_ext"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } >/dev/null && {
12816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 }; then
12819 ac_header_preproc=yes
12820 else
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_preproc=no
12827 rm -f conftest.err conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12829 echo "${ECHO_T}$ac_header_preproc" >&6; }
12831 # So? What about this header?
12832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12833 yes:no: )
12834 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12835 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12837 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12838 ac_header_preproc=yes
12840 no:yes:* )
12841 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12842 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12844 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12846 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12848 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12850 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12851 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12852 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12855 esac
12856 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12857 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12858 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861 ac_cv_header_X11_xpm_h=$ac_header_preproc
12863 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12864 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12867 if test $ac_cv_header_X11_xpm_h = yes; then
12868 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12869 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12870 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 ac_check_lib_save_LIBS=$LIBS
12874 LIBS="-lXpm -lX11 $LIBS"
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h. */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 char XpmReadFileToPixmap ();
12890 main ()
12892 return XpmReadFileToPixmap ();
12894 return 0;
12896 _ACEOF
12897 rm -f conftest.$ac_objext conftest$ac_exeext
12898 if { (ac_try="$ac_link"
12899 case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_link") 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest$ac_exeext &&
12914 $as_test_x conftest$ac_exeext; then
12915 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12924 conftest$ac_exeext conftest.$ac_ext
12925 LIBS=$ac_check_lib_save_LIBS
12927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12928 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12929 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12930 HAVE_XPM=yes
12936 if test "${HAVE_XPM}" = "yes"; then
12937 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12938 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h. */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12945 #include "X11/xpm.h"
12946 #ifndef XpmReturnAllocPixels
12947 no_return_alloc_pixels
12948 #endif
12950 _ACEOF
12951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12952 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12953 HAVE_XPM=no
12954 else
12955 HAVE_XPM=yes
12957 rm -f conftest*
12960 if test "${HAVE_XPM}" = "yes"; then
12961 { echo "$as_me:$LINENO: result: yes" >&5
12962 echo "${ECHO_T}yes" >&6; }
12963 else
12964 { echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6; }
12970 if test "${HAVE_XPM}" = "yes"; then
12972 cat >>confdefs.h <<\_ACEOF
12973 #define HAVE_XPM 1
12974 _ACEOF
12979 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12980 HAVE_JPEG=no
12981 if test "${HAVE_X11}" = "yes"; then
12982 if test "${with_jpeg}" != "no"; then
12983 if test "${ac_cv_header_jerror_h+set}" = set; then
12984 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12985 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12986 if test "${ac_cv_header_jerror_h+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12990 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12991 else
12992 # Is the header compilable?
12993 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12994 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h. */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13001 $ac_includes_default
13002 #include <jerror.h>
13003 _ACEOF
13004 rm -f conftest.$ac_objext
13005 if { (ac_try="$ac_compile"
13006 case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_compile") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest.$ac_objext; then
13021 ac_header_compiler=yes
13022 else
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_header_compiler=no
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 echo "${ECHO_T}$ac_header_compiler" >&6; }
13033 # Is the header present?
13034 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13035 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h. */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <jerror.h>
13043 _ACEOF
13044 if { (ac_try="$ac_cpp conftest.$ac_ext"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048 esac
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } >/dev/null && {
13057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13058 test ! -s conftest.err
13059 }; then
13060 ac_header_preproc=yes
13061 else
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 ac_header_preproc=no
13068 rm -f conftest.err conftest.$ac_ext
13069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13070 echo "${ECHO_T}$ac_header_preproc" >&6; }
13072 # So? What about this header?
13073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13074 yes:no: )
13075 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13076 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13077 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13078 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13079 ac_header_preproc=yes
13081 no:yes:* )
13082 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13083 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13084 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13085 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13086 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13087 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13089 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13091 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13093 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13096 esac
13097 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13098 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13099 if test "${ac_cv_header_jerror_h+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102 ac_cv_header_jerror_h=$ac_header_preproc
13104 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13105 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13108 if test $ac_cv_header_jerror_h = yes; then
13109 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13110 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13111 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-ljpeg $LIBS"
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h. */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 char jpeg_destroy_compress ();
13131 main ()
13133 return jpeg_destroy_compress ();
13135 return 0;
13137 _ACEOF
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_link") 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest$ac_exeext &&
13155 $as_test_x conftest$ac_exeext; then
13156 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13157 else
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13168 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13169 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13170 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13171 HAVE_JPEG=yes
13180 if test "${HAVE_JPEG}" = "yes"; then
13181 cat >>confdefs.h <<\_ACEOF
13182 #define HAVE_JPEG 1
13183 _ACEOF
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <jpeglib.h>
13192 version=JPEG_LIB_VERSION
13194 _ACEOF
13195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13196 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13197 cat >>confdefs.h <<\_ACEOF
13198 #define HAVE_JPEG 1
13199 _ACEOF
13201 else
13202 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13203 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13204 HAVE_JPEG=no
13206 rm -f conftest*
13211 ### Use -lpng if available, unless `--with-png=no'.
13212 HAVE_PNG=no
13213 if test "${HAVE_X11}" = "yes"; then
13214 if test "${with_png}" != "no"; then
13215 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13216 # in /usr/include/libpng.
13219 for ac_header in png.h libpng/png.h
13221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 ac_res=`eval echo '${'$as_ac_Header'}'`
13229 { echo "$as_me:$LINENO: result: $ac_res" >&5
13230 echo "${ECHO_T}$ac_res" >&6; }
13231 else
13232 # Is the header compilable?
13233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13242 #include <$ac_header>
13243 _ACEOF
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_header_compiler=yes
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_header_compiler=no
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6; }
13273 # Is the header present?
13274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <$ac_header>
13283 _ACEOF
13284 if { (ac_try="$ac_cpp conftest.$ac_ext"
13285 case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13288 esac
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev/null && {
13297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13299 }; then
13300 ac_header_preproc=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_header_preproc=no
13308 rm -f conftest.err conftest.$ac_ext
13309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13310 echo "${ECHO_T}$ac_header_preproc" >&6; }
13312 # So? What about this header?
13313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13314 yes:no: )
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13319 ac_header_preproc=yes
13321 no:yes:* )
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13336 esac
13337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 eval "$as_ac_Header=\$ac_header_preproc"
13344 ac_res=`eval echo '${'$as_ac_Header'}'`
13345 { echo "$as_me:$LINENO: result: $ac_res" >&5
13346 echo "${ECHO_T}$ac_res" >&6; }
13349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13350 cat >>confdefs.h <<_ACEOF
13351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13352 _ACEOF
13356 done
13358 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13359 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13360 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13361 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 else
13364 ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-lpng -lz -lm $LIBS"
13366 cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h. */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 char png_get_channels ();
13381 main ()
13383 return png_get_channels ();
13385 return 0;
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_link") 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext &&
13405 $as_test_x conftest$ac_exeext; then
13406 ac_cv_lib_png_png_get_channels=yes
13407 else
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 ac_cv_lib_png_png_get_channels=no
13414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13415 conftest$ac_exeext conftest.$ac_ext
13416 LIBS=$ac_check_lib_save_LIBS
13418 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13419 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13420 if test $ac_cv_lib_png_png_get_channels = yes; then
13421 HAVE_PNG=yes
13427 if test "${HAVE_PNG}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF
13430 #define HAVE_PNG 1
13431 _ACEOF
13436 ### Use -ltiff if available, unless `--with-tiff=no'.
13437 HAVE_TIFF=no
13438 if test "${HAVE_X11}" = "yes"; then
13439 if test "${with_tiff}" != "no"; then
13440 if test "${ac_cv_header_tiffio_h+set}" = set; then
13441 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13442 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13443 if test "${ac_cv_header_tiffio_h+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13447 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13448 else
13449 # Is the header compilable?
13450 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13451 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 $ac_includes_default
13459 #include <tiffio.h>
13460 _ACEOF
13461 rm -f conftest.$ac_objext
13462 if { (ac_try="$ac_compile"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466 esac
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_compile") 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } && {
13475 test -z "$ac_c_werror_flag" ||
13476 test ! -s conftest.err
13477 } && test -s conftest.$ac_objext; then
13478 ac_header_compiler=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_header_compiler=no
13486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13488 echo "${ECHO_T}$ac_header_compiler" >&6; }
13490 # Is the header present?
13491 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13492 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h. */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 #include <tiffio.h>
13500 _ACEOF
13501 if { (ac_try="$ac_cpp conftest.$ac_ext"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } >/dev/null && {
13514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 }; then
13517 ac_header_preproc=yes
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_header_preproc=no
13525 rm -f conftest.err conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13527 echo "${ECHO_T}$ac_header_preproc" >&6; }
13529 # So? What about this header?
13530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13531 yes:no: )
13532 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13533 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13534 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13535 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13536 ac_header_preproc=yes
13538 no:yes:* )
13539 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13540 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13542 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13544 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13546 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13548 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13550 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13553 esac
13554 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13555 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13556 if test "${ac_cv_header_tiffio_h+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559 ac_cv_header_tiffio_h=$ac_header_preproc
13561 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13562 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13565 if test $ac_cv_header_tiffio_h = yes; then
13566 tifflibs="-lz -lm"
13567 # At least one tiff package requires the jpeg library.
13568 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13569 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13570 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13571 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574 ac_check_lib_save_LIBS=$LIBS
13575 LIBS="-ltiff $tifflibs $LIBS"
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13583 /* Override any GCC internal prototype to avoid an error.
13584 Use char because int might match the return type of a GCC
13585 builtin and then its argument prototype would still apply. */
13586 #ifdef __cplusplus
13587 extern "C"
13588 #endif
13589 char TIFFGetVersion ();
13591 main ()
13593 return TIFFGetVersion ();
13595 return 0;
13597 _ACEOF
13598 rm -f conftest.$ac_objext conftest$ac_exeext
13599 if { (ac_try="$ac_link"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_link") 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } && {
13612 test -z "$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13614 } && test -s conftest$ac_exeext &&
13615 $as_test_x conftest$ac_exeext; then
13616 ac_cv_lib_tiff_TIFFGetVersion=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_cv_lib_tiff_TIFFGetVersion=no
13624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13628 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13629 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13630 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13631 HAVE_TIFF=yes
13639 if test "${HAVE_TIFF}" = "yes"; then
13641 cat >>confdefs.h <<\_ACEOF
13642 #define HAVE_TIFF 1
13643 _ACEOF
13648 ### Use -lgif if available, unless `--with-gif=no'.
13649 HAVE_GIF=no
13650 if test "${HAVE_X11}" = "yes"; then
13651 if test "${with_gif}" != "no"; then
13652 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13653 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13654 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13655 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13659 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13660 else
13661 # Is the header compilable?
13662 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13663 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 $ac_includes_default
13671 #include <gif_lib.h>
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 ac_header_compiler=yes
13691 else
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_header_compiler=no
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13700 echo "${ECHO_T}$ac_header_compiler" >&6; }
13702 # Is the header present?
13703 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13704 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13705 cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h. */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711 #include <gif_lib.h>
13712 _ACEOF
13713 if { (ac_try="$ac_cpp conftest.$ac_ext"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null && {
13726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 }; then
13729 ac_header_preproc=yes
13730 else
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_header_preproc=no
13737 rm -f conftest.err conftest.$ac_ext
13738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 echo "${ECHO_T}$ac_header_preproc" >&6; }
13741 # So? What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743 yes:no: )
13744 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13745 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13747 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13750 no:yes:* )
13751 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13752 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13754 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13756 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13758 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13760 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13762 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13765 esac
13766 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13767 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13768 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771 ac_cv_header_gif_lib_h=$ac_header_preproc
13773 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13774 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13777 if test $ac_cv_header_gif_lib_h = yes; then
13778 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13779 # Earlier versions can crash Emacs.
13780 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13781 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-lungif $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 char EGifPutExtensionLast ();
13802 main ()
13804 return EGifPutExtensionLast ();
13806 return 0;
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_lib_ungif_EGifPutExtensionLast=no
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13840 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13841 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13842 HAVE_GIF=yes
13850 if test "${HAVE_GIF}" = "yes"; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_GIF 1
13854 _ACEOF
13859 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13860 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13861 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13862 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13866 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13867 else
13868 # Is the header compilable?
13869 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13870 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h. */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 $ac_includes_default
13878 #include <malloc/malloc.h>
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (ac_try="$ac_compile"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_compile") 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } && {
13894 test -z "$ac_c_werror_flag" ||
13895 test ! -s conftest.err
13896 } && test -s conftest.$ac_objext; then
13897 ac_header_compiler=yes
13898 else
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ac_header_compiler=no
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 echo "${ECHO_T}$ac_header_compiler" >&6; }
13909 # Is the header present?
13910 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13911 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13912 cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h. */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <malloc/malloc.h>
13919 _ACEOF
13920 if { (ac_try="$ac_cpp conftest.$ac_ext"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } >/dev/null && {
13933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 }; then
13936 ac_header_preproc=yes
13937 else
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_header_preproc=no
13944 rm -f conftest.err conftest.$ac_ext
13945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13946 echo "${ECHO_T}$ac_header_preproc" >&6; }
13948 # So? What about this header?
13949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13950 yes:no: )
13951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13952 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13954 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13955 ac_header_preproc=yes
13957 no:yes:* )
13958 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13959 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13961 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13963 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13965 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13967 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13968 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13969 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13972 esac
13973 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13974 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13975 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13980 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13981 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13984 if test $ac_cv_header_malloc_malloc_h = yes; then
13986 cat >>confdefs.h <<\_ACEOF
13987 #define HAVE_MALLOC_MALLOC_H 1
13988 _ACEOF
13994 ### Use Mac OS X Carbon API to implement GUI.
13995 if test "${HAVE_CARBON}" = "yes"; then
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_CARBON 1
13999 _ACEOF
14001 ## Specify the install directory
14002 carbon_appdir=
14003 if test "${carbon_appdir_x}" != ""; then
14004 case ${carbon_appdir_x} in
14005 y | ye | yes) carbon_appdir=/Applications ;;
14006 * ) carbon_appdir=${carbon_appdir_x} ;;
14007 esac
14009 # We also have mouse menus.
14010 HAVE_MENUS=yes
14013 ### Use session management (-lSM -lICE) if available
14014 HAVE_X_SM=no
14015 if test "${HAVE_X11}" = "yes"; then
14016 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14017 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14018 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14019 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14023 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14024 else
14025 # Is the header compilable?
14026 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14027 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h. */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14035 #include <X11/SM/SMlib.h>
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 ac_header_compiler=yes
14055 else
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ac_header_compiler=no
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14064 echo "${ECHO_T}$ac_header_compiler" >&6; }
14066 # Is the header present?
14067 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14068 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h. */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 #include <X11/SM/SMlib.h>
14076 _ACEOF
14077 if { (ac_try="$ac_cpp conftest.$ac_ext"
14078 case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14084 ac_status=$?
14085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } >/dev/null && {
14090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14091 test ! -s conftest.err
14092 }; then
14093 ac_header_preproc=yes
14094 else
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_header_preproc=no
14101 rm -f conftest.err conftest.$ac_ext
14102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14103 echo "${ECHO_T}$ac_header_preproc" >&6; }
14105 # So? What about this header?
14106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14107 yes:no: )
14108 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14109 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14111 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14112 ac_header_preproc=yes
14114 no:yes:* )
14115 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14116 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14118 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14120 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14122 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14124 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14126 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14129 esac
14130 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14131 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14132 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14137 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14138 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14141 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14142 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14143 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14144 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 ac_check_lib_save_LIBS=$LIBS
14148 LIBS="-lSM -lICE $LIBS"
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14156 /* Override any GCC internal prototype to avoid an error.
14157 Use char because int might match the return type of a GCC
14158 builtin and then its argument prototype would still apply. */
14159 #ifdef __cplusplus
14160 extern "C"
14161 #endif
14162 char SmcOpenConnection ();
14164 main ()
14166 return SmcOpenConnection ();
14168 return 0;
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (ac_try="$ac_link"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_link") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext &&
14188 $as_test_x conftest$ac_exeext; then
14189 ac_cv_lib_SM_SmcOpenConnection=yes
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_cv_lib_SM_SmcOpenConnection=no
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14202 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14203 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14204 HAVE_X_SM=yes
14211 if test "${HAVE_X_SM}" = "yes"; then
14213 cat >>confdefs.h <<\_ACEOF
14214 #define HAVE_X_SM 1
14215 _ACEOF
14217 case "$LIBS" in
14218 *-lSM*) ;;
14219 *) LIBS="-lSM -lICE $LIBS" ;;
14220 esac
14224 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14225 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14226 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14227 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 #include <netdb.h>
14238 main ()
14240 return h_errno;
14242 return 0;
14244 _ACEOF
14245 rm -f conftest.$ac_objext conftest$ac_exeext
14246 if { (ac_try="$ac_link"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_link") 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest$ac_exeext &&
14262 $as_test_x conftest$ac_exeext; then
14263 emacs_cv_netdb_declares_h_errno=yes
14264 else
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14268 emacs_cv_netdb_declares_h_errno=no
14271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14272 conftest$ac_exeext conftest.$ac_ext
14274 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14275 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14276 if test $emacs_cv_netdb_declares_h_errno = yes; then
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_H_ERRNO 1
14280 _ACEOF
14284 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14285 # for constant arguments. Useless!
14286 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14287 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14288 if test "${ac_cv_working_alloca_h+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h. */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <alloca.h>
14299 main ()
14301 char *p = (char *) alloca (2 * sizeof (int));
14302 if (p) return 0;
14304 return 0;
14306 _ACEOF
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest$ac_exeext &&
14324 $as_test_x conftest$ac_exeext; then
14325 ac_cv_working_alloca_h=yes
14326 else
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_cv_working_alloca_h=no
14333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14334 conftest$ac_exeext conftest.$ac_ext
14336 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14337 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14338 if test $ac_cv_working_alloca_h = yes; then
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_ALLOCA_H 1
14342 _ACEOF
14346 { echo "$as_me:$LINENO: checking for alloca" >&5
14347 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14348 if test "${ac_cv_func_alloca_works+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h. */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 #ifdef __GNUC__
14358 # define alloca __builtin_alloca
14359 #else
14360 # ifdef _MSC_VER
14361 # include <malloc.h>
14362 # define alloca _alloca
14363 # else
14364 # ifdef HAVE_ALLOCA_H
14365 # include <alloca.h>
14366 # else
14367 # ifdef _AIX
14368 #pragma alloca
14369 # else
14370 # ifndef alloca /* predefined by HP cc +Olibcalls */
14371 char *alloca ();
14372 # endif
14373 # endif
14374 # endif
14375 # endif
14376 #endif
14379 main ()
14381 char *p = (char *) alloca (1);
14382 if (p) return 0;
14384 return 0;
14386 _ACEOF
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (ac_try="$ac_link"
14389 case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_link") 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && {
14401 test -z "$ac_c_werror_flag" ||
14402 test ! -s conftest.err
14403 } && test -s conftest$ac_exeext &&
14404 $as_test_x conftest$ac_exeext; then
14405 ac_cv_func_alloca_works=yes
14406 else
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_cv_func_alloca_works=no
14413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14414 conftest$ac_exeext conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14417 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14419 if test $ac_cv_func_alloca_works = yes; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_ALLOCA 1
14423 _ACEOF
14425 else
14426 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14427 # that cause trouble. Some versions do not even contain alloca or
14428 # contain a buggy version. If you still want to use their alloca,
14429 # use ar to extract alloca.o from them instead of compiling alloca.c.
14431 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14433 cat >>confdefs.h <<\_ACEOF
14434 #define C_ALLOCA 1
14435 _ACEOF
14438 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14439 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14440 if test "${ac_cv_os_cray+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443 cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 #if defined CRAY && ! defined CRAY2
14450 webecray
14451 #else
14452 wenotbecray
14453 #endif
14455 _ACEOF
14456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14457 $EGREP "webecray" >/dev/null 2>&1; then
14458 ac_cv_os_cray=yes
14459 else
14460 ac_cv_os_cray=no
14462 rm -f conftest*
14465 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14466 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14467 if test $ac_cv_os_cray = yes; then
14468 for ac_func in _getb67 GETB67 getb67; do
14469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14483 #define $ac_func innocuous_$ac_func
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char $ac_func (); below.
14487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14488 <limits.h> exists even on freestanding compilers. */
14490 #ifdef __STDC__
14491 # include <limits.h>
14492 #else
14493 # include <assert.h>
14494 #endif
14496 #undef $ac_func
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14501 #ifdef __cplusplus
14502 extern "C"
14503 #endif
14504 char $ac_func ();
14505 /* The GNU C library defines this for functions which it implements
14506 to always fail with ENOSYS. Some functions are actually named
14507 something starting with __ and the normal name is an alias. */
14508 #if defined __stub_$ac_func || defined __stub___$ac_func
14509 choke me
14510 #endif
14513 main ()
14515 return $ac_func ();
14517 return 0;
14519 _ACEOF
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest$ac_exeext &&
14537 $as_test_x conftest$ac_exeext; then
14538 eval "$as_ac_var=yes"
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 eval "$as_ac_var=no"
14546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14547 conftest$ac_exeext conftest.$ac_ext
14549 ac_res=`eval echo '${'$as_ac_var'}'`
14550 { echo "$as_me:$LINENO: result: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14552 if test `eval echo '${'$as_ac_var'}'` = yes; then
14554 cat >>confdefs.h <<_ACEOF
14555 #define CRAY_STACKSEG_END $ac_func
14556 _ACEOF
14558 break
14561 done
14564 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14565 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14566 if test "${ac_cv_c_stack_direction+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569 if test "$cross_compiling" = yes; then
14570 ac_cv_c_stack_direction=0
14571 else
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14580 find_stack_direction ()
14582 static char *addr = 0;
14583 auto char dummy;
14584 if (addr == 0)
14586 addr = &dummy;
14587 return find_stack_direction ();
14589 else
14590 return (&dummy > addr) ? 1 : -1;
14594 main ()
14596 return find_stack_direction () < 0;
14598 _ACEOF
14599 rm -f conftest$ac_exeext
14600 if { (ac_try="$ac_link"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_c_stack_direction=1
14620 else
14621 echo "$as_me: program exited with status $ac_status" >&5
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ( exit $ac_status )
14626 ac_cv_c_stack_direction=-1
14628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14634 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14636 cat >>confdefs.h <<_ACEOF
14637 #define STACK_DIRECTION $ac_cv_c_stack_direction
14638 _ACEOF
14644 # fmod, logb, and frexp are found in -lm on most systems.
14645 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14647 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14648 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14649 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652 ac_check_lib_save_LIBS=$LIBS
14653 LIBS="-lm $LIBS"
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14661 /* Override any GCC internal prototype to avoid an error.
14662 Use char because int might match the return type of a GCC
14663 builtin and then its argument prototype would still apply. */
14664 #ifdef __cplusplus
14665 extern "C"
14666 #endif
14667 char sqrt ();
14669 main ()
14671 return sqrt ();
14673 return 0;
14675 _ACEOF
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (ac_try="$ac_link"
14678 case "(($ac_try" in
14679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680 *) ac_try_echo=$ac_try;;
14681 esac
14682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14683 (eval "$ac_link") 2>conftest.er1
14684 ac_status=$?
14685 grep -v '^ *+' conftest.er1 >conftest.err
14686 rm -f conftest.er1
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } && {
14690 test -z "$ac_c_werror_flag" ||
14691 test ! -s conftest.err
14692 } && test -s conftest$ac_exeext &&
14693 $as_test_x conftest$ac_exeext; then
14694 ac_cv_lib_m_sqrt=yes
14695 else
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 ac_cv_lib_m_sqrt=no
14702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14703 conftest$ac_exeext conftest.$ac_ext
14704 LIBS=$ac_check_lib_save_LIBS
14706 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14707 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14708 if test $ac_cv_lib_m_sqrt = yes; then
14709 cat >>confdefs.h <<_ACEOF
14710 #define HAVE_LIBM 1
14711 _ACEOF
14713 LIBS="-lm $LIBS"
14718 # Check for mail-locking functions in a "mail" library. Probably this should
14719 # have the same check as for liblockfile below.
14721 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14722 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14723 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726 ac_check_lib_save_LIBS=$LIBS
14727 LIBS="-lmail $LIBS"
14728 cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h. */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14735 /* Override any GCC internal prototype to avoid an error.
14736 Use char because int might match the return type of a GCC
14737 builtin and then its argument prototype would still apply. */
14738 #ifdef __cplusplus
14739 extern "C"
14740 #endif
14741 char maillock ();
14743 main ()
14745 return maillock ();
14747 return 0;
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest$ac_exeext &&
14767 $as_test_x conftest$ac_exeext; then
14768 ac_cv_lib_mail_maillock=yes
14769 else
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_cv_lib_mail_maillock=no
14776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14777 conftest$ac_exeext conftest.$ac_ext
14778 LIBS=$ac_check_lib_save_LIBS
14780 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14781 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14782 if test $ac_cv_lib_mail_maillock = yes; then
14783 cat >>confdefs.h <<_ACEOF
14784 #define HAVE_LIBMAIL 1
14785 _ACEOF
14787 LIBS="-lmail $LIBS"
14792 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14793 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14794 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797 ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-llockfile $LIBS"
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h. */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14806 /* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14809 #ifdef __cplusplus
14810 extern "C"
14811 #endif
14812 char maillock ();
14814 main ()
14816 return maillock ();
14818 return 0;
14820 _ACEOF
14821 rm -f conftest.$ac_objext conftest$ac_exeext
14822 if { (ac_try="$ac_link"
14823 case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_link") 2>conftest.er1
14829 ac_status=$?
14830 grep -v '^ *+' conftest.er1 >conftest.err
14831 rm -f conftest.er1
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } && {
14835 test -z "$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 } && test -s conftest$ac_exeext &&
14838 $as_test_x conftest$ac_exeext; then
14839 ac_cv_lib_lockfile_maillock=yes
14840 else
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_cv_lib_lockfile_maillock=no
14847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14848 conftest$ac_exeext conftest.$ac_ext
14849 LIBS=$ac_check_lib_save_LIBS
14851 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14852 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14853 if test $ac_cv_lib_lockfile_maillock = yes; then
14854 cat >>confdefs.h <<_ACEOF
14855 #define HAVE_LIBLOCKFILE 1
14856 _ACEOF
14858 LIBS="-llockfile $LIBS"
14862 # If we have the shared liblockfile, assume we must use it for mail
14863 # locking (e.g. Debian). If we couldn't link against liblockfile
14864 # (no liblockfile.a installed), ensure that we don't need to.
14865 if test "$ac_cv_lib_lockfile_maillock" = no; then
14866 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14867 set dummy liblockfile.so; ac_word=$2
14868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14870 if test "${ac_cv_prog_liblockfile+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873 if test -n "$liblockfile"; then
14874 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14875 else
14876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14877 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14878 for as_dir in $as_dummy
14880 IFS=$as_save_IFS
14881 test -z "$as_dir" && as_dir=.
14882 for ac_exec_ext in '' $ac_executable_extensions; do
14883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14884 ac_cv_prog_liblockfile="yes"
14885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14886 break 2
14888 done
14889 done
14890 IFS=$as_save_IFS
14892 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14895 liblockfile=$ac_cv_prog_liblockfile
14896 if test -n "$liblockfile"; then
14897 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14898 echo "${ECHO_T}$liblockfile" >&6; }
14899 else
14900 { echo "$as_me:$LINENO: result: no" >&5
14901 echo "${ECHO_T}no" >&6; }
14905 if test $ac_cv_prog_liblockfile = yes; then
14906 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14907 This probably means that movemail could lose mail.
14908 There may be a \`development' package to install containing liblockfile." >&5
14909 echo "$as_me: error: Shared liblockfile found but can't link against it.
14910 This probably means that movemail could lose mail.
14911 There may be a \`development' package to install containing liblockfile." >&2;}
14912 { (exit 1); exit 1; }; }
14913 else :
14917 for ac_func in touchlock
14919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 else
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14933 #define $ac_func innocuous_$ac_func
14935 /* System header to define __stub macros and hopefully few prototypes,
14936 which can conflict with char $ac_func (); below.
14937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14938 <limits.h> exists even on freestanding compilers. */
14940 #ifdef __STDC__
14941 # include <limits.h>
14942 #else
14943 # include <assert.h>
14944 #endif
14946 #undef $ac_func
14948 /* Override any GCC internal prototype to avoid an error.
14949 Use char because int might match the return type of a GCC
14950 builtin and then its argument prototype would still apply. */
14951 #ifdef __cplusplus
14952 extern "C"
14953 #endif
14954 char $ac_func ();
14955 /* The GNU C library defines this for functions which it implements
14956 to always fail with ENOSYS. Some functions are actually named
14957 something starting with __ and the normal name is an alias. */
14958 #if defined __stub_$ac_func || defined __stub___$ac_func
14959 choke me
14960 #endif
14963 main ()
14965 return $ac_func ();
14967 return 0;
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_link") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest$ac_exeext &&
14987 $as_test_x conftest$ac_exeext; then
14988 eval "$as_ac_var=yes"
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 eval "$as_ac_var=no"
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14999 ac_res=`eval echo '${'$as_ac_var'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15002 if test `eval echo '${'$as_ac_var'}'` = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15005 _ACEOF
15008 done
15011 for ac_header in maillock.h
15013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 ac_res=`eval echo '${'$as_ac_Header'}'`
15021 { echo "$as_me:$LINENO: result: $ac_res" >&5
15022 echo "${ECHO_T}$ac_res" >&6; }
15023 else
15024 # Is the header compilable?
15025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15027 cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h. */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 $ac_includes_default
15034 #include <$ac_header>
15035 _ACEOF
15036 rm -f conftest.$ac_objext
15037 if { (ac_try="$ac_compile"
15038 case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_compile") 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } && {
15050 test -z "$ac_c_werror_flag" ||
15051 test ! -s conftest.err
15052 } && test -s conftest.$ac_objext; then
15053 ac_header_compiler=yes
15054 else
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_header_compiler=no
15061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15063 echo "${ECHO_T}$ac_header_compiler" >&6; }
15065 # Is the header present?
15066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h. */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 #include <$ac_header>
15075 _ACEOF
15076 if { (ac_try="$ac_cpp conftest.$ac_ext"
15077 case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080 esac
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } >/dev/null && {
15089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15090 test ! -s conftest.err
15091 }; then
15092 ac_header_preproc=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_header_preproc=no
15100 rm -f conftest.err conftest.$ac_ext
15101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15102 echo "${ECHO_T}$ac_header_preproc" >&6; }
15104 # So? What about this header?
15105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15106 yes:no: )
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15111 ac_header_preproc=yes
15113 no:yes:* )
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15128 esac
15129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134 eval "$as_ac_Header=\$ac_header_preproc"
15136 ac_res=`eval echo '${'$as_ac_Header'}'`
15137 { echo "$as_me:$LINENO: result: $ac_res" >&5
15138 echo "${ECHO_T}$ac_res" >&6; }
15141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15142 cat >>confdefs.h <<_ACEOF
15143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15144 _ACEOF
15148 done
15220 for ac_func in gethostname getdomainname dup2 \
15221 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15222 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15223 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15224 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15225 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15226 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15227 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15228 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h. */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15244 #define $ac_func innocuous_$ac_func
15246 /* System header to define __stub macros and hopefully few prototypes,
15247 which can conflict with char $ac_func (); below.
15248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15249 <limits.h> exists even on freestanding compilers. */
15251 #ifdef __STDC__
15252 # include <limits.h>
15253 #else
15254 # include <assert.h>
15255 #endif
15257 #undef $ac_func
15259 /* Override any GCC internal prototype to avoid an error.
15260 Use char because int might match the return type of a GCC
15261 builtin and then its argument prototype would still apply. */
15262 #ifdef __cplusplus
15263 extern "C"
15264 #endif
15265 char $ac_func ();
15266 /* The GNU C library defines this for functions which it implements
15267 to always fail with ENOSYS. Some functions are actually named
15268 something starting with __ and the normal name is an alias. */
15269 #if defined __stub_$ac_func || defined __stub___$ac_func
15270 choke me
15271 #endif
15274 main ()
15276 return $ac_func ();
15278 return 0;
15280 _ACEOF
15281 rm -f conftest.$ac_objext conftest$ac_exeext
15282 if { (ac_try="$ac_link"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15286 esac
15287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_link") 2>conftest.er1
15289 ac_status=$?
15290 grep -v '^ *+' conftest.er1 >conftest.err
15291 rm -f conftest.er1
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest$ac_exeext &&
15298 $as_test_x conftest$ac_exeext; then
15299 eval "$as_ac_var=yes"
15300 else
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 eval "$as_ac_var=no"
15307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15308 conftest$ac_exeext conftest.$ac_ext
15310 ac_res=`eval echo '${'$as_ac_var'}'`
15311 { echo "$as_me:$LINENO: result: $ac_res" >&5
15312 echo "${ECHO_T}$ac_res" >&6; }
15313 if test `eval echo '${'$as_ac_var'}'` = yes; then
15314 cat >>confdefs.h <<_ACEOF
15315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15316 _ACEOF
15319 done
15323 for ac_header in sys/un.h
15325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 ac_res=`eval echo '${'$as_ac_Header'}'`
15333 { echo "$as_me:$LINENO: result: $ac_res" >&5
15334 echo "${ECHO_T}$ac_res" >&6; }
15335 else
15336 # Is the header compilable?
15337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 $ac_includes_default
15346 #include <$ac_header>
15347 _ACEOF
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15356 ac_status=$?
15357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest.$ac_objext; then
15365 ac_header_compiler=yes
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_header_compiler=no
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15375 echo "${ECHO_T}$ac_header_compiler" >&6; }
15377 # Is the header present?
15378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <$ac_header>
15387 _ACEOF
15388 if { (ac_try="$ac_cpp conftest.$ac_ext"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15395 ac_status=$?
15396 grep -v '^ *+' conftest.er1 >conftest.err
15397 rm -f conftest.er1
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } >/dev/null && {
15401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15402 test ! -s conftest.err
15403 }; then
15404 ac_header_preproc=yes
15405 else
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_header_preproc=no
15412 rm -f conftest.err conftest.$ac_ext
15413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15414 echo "${ECHO_T}$ac_header_preproc" >&6; }
15416 # So? What about this header?
15417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15418 yes:no: )
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15423 ac_header_preproc=yes
15425 no:yes:* )
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15440 esac
15441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 eval "$as_ac_Header=\$ac_header_preproc"
15448 ac_res=`eval echo '${'$as_ac_Header'}'`
15449 { echo "$as_me:$LINENO: result: $ac_res" >&5
15450 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15456 _ACEOF
15460 done
15467 for ac_header in $ac_header_list
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 ac_res=`eval echo '${'$as_ac_Header'}'`
15477 { echo "$as_me:$LINENO: result: $ac_res" >&5
15478 echo "${ECHO_T}$ac_res" >&6; }
15479 else
15480 # Is the header compilable?
15481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 $ac_includes_default
15490 #include <$ac_header>
15491 _ACEOF
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497 esac
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15500 ac_status=$?
15501 grep -v '^ *+' conftest.er1 >conftest.err
15502 rm -f conftest.er1
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && {
15506 test -z "$ac_c_werror_flag" ||
15507 test ! -s conftest.err
15508 } && test -s conftest.$ac_objext; then
15509 ac_header_compiler=yes
15510 else
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_header_compiler=no
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15519 echo "${ECHO_T}$ac_header_compiler" >&6; }
15521 # Is the header present?
15522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h. */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <$ac_header>
15531 _ACEOF
15532 if { (ac_try="$ac_cpp conftest.$ac_ext"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } >/dev/null && {
15545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 }; then
15548 ac_header_preproc=yes
15549 else
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_preproc=no
15556 rm -f conftest.err conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6; }
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562 yes:no: )
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15569 no:yes:* )
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15584 esac
15585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590 eval "$as_ac_Header=\$ac_header_preproc"
15592 ac_res=`eval echo '${'$as_ac_Header'}'`
15593 { echo "$as_me:$LINENO: result: $ac_res" >&5
15594 echo "${ECHO_T}$ac_res" >&6; }
15597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15598 cat >>confdefs.h <<_ACEOF
15599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15600 _ACEOF
15604 done
15614 for ac_func in $ac_func_list
15616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15630 #define $ac_func innocuous_$ac_func
15632 /* System header to define __stub macros and hopefully few prototypes,
15633 which can conflict with char $ac_func (); below.
15634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15635 <limits.h> exists even on freestanding compilers. */
15637 #ifdef __STDC__
15638 # include <limits.h>
15639 #else
15640 # include <assert.h>
15641 #endif
15643 #undef $ac_func
15645 /* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15648 #ifdef __cplusplus
15649 extern "C"
15650 #endif
15651 char $ac_func ();
15652 /* The GNU C library defines this for functions which it implements
15653 to always fail with ENOSYS. Some functions are actually named
15654 something starting with __ and the normal name is an alias. */
15655 #if defined __stub_$ac_func || defined __stub___$ac_func
15656 choke me
15657 #endif
15660 main ()
15662 return $ac_func ();
15664 return 0;
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (ac_try="$ac_link"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_link") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest$ac_exeext &&
15684 $as_test_x conftest$ac_exeext; then
15685 eval "$as_ac_var=yes"
15686 else
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 eval "$as_ac_var=no"
15693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15694 conftest$ac_exeext conftest.$ac_ext
15696 ac_res=`eval echo '${'$as_ac_var'}'`
15697 { echo "$as_me:$LINENO: result: $ac_res" >&5
15698 echo "${ECHO_T}$ac_res" >&6; }
15699 if test `eval echo '${'$as_ac_var'}'` = yes; then
15700 cat >>confdefs.h <<_ACEOF
15701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15702 _ACEOF
15705 done
15723 { echo "$as_me:$LINENO: checking for working mktime" >&5
15724 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15725 if test "${ac_cv_func_working_mktime+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728 if test "$cross_compiling" = yes; then
15729 ac_cv_func_working_mktime=no
15730 else
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h. */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 /* Test program from Paul Eggert and Tony Leneis. */
15738 #ifdef TIME_WITH_SYS_TIME
15739 # include <sys/time.h>
15740 # include <time.h>
15741 #else
15742 # ifdef HAVE_SYS_TIME_H
15743 # include <sys/time.h>
15744 # else
15745 # include <time.h>
15746 # endif
15747 #endif
15749 #include <stdlib.h>
15751 #ifdef HAVE_UNISTD_H
15752 # include <unistd.h>
15753 #endif
15755 #ifndef HAVE_ALARM
15756 # define alarm(X) /* empty */
15757 #endif
15759 /* Work around redefinition to rpl_putenv by other config tests. */
15760 #undef putenv
15762 static time_t time_t_max;
15763 static time_t time_t_min;
15765 /* Values we'll use to set the TZ environment variable. */
15766 static char *tz_strings[] = {
15767 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15768 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15770 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15772 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15773 Based on a problem report from Andreas Jaeger. */
15774 static int
15775 spring_forward_gap ()
15777 /* glibc (up to about 1998-10-07) failed this test. */
15778 struct tm tm;
15780 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15781 instead of "TZ=America/Vancouver" in order to detect the bug even
15782 on systems that don't support the Olson extension, or don't have the
15783 full zoneinfo tables installed. */
15784 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15786 tm.tm_year = 98;
15787 tm.tm_mon = 3;
15788 tm.tm_mday = 5;
15789 tm.tm_hour = 2;
15790 tm.tm_min = 0;
15791 tm.tm_sec = 0;
15792 tm.tm_isdst = -1;
15793 return mktime (&tm) != (time_t) -1;
15796 static int
15797 mktime_test1 (now)
15798 time_t now;
15800 struct tm *lt;
15801 return ! (lt = localtime (&now)) || mktime (lt) == now;
15804 static int
15805 mktime_test (now)
15806 time_t now;
15808 return (mktime_test1 (now)
15809 && mktime_test1 ((time_t) (time_t_max - now))
15810 && mktime_test1 ((time_t) (time_t_min + now)));
15813 static int
15814 irix_6_4_bug ()
15816 /* Based on code from Ariel Faigon. */
15817 struct tm tm;
15818 tm.tm_year = 96;
15819 tm.tm_mon = 3;
15820 tm.tm_mday = 0;
15821 tm.tm_hour = 0;
15822 tm.tm_min = 0;
15823 tm.tm_sec = 0;
15824 tm.tm_isdst = -1;
15825 mktime (&tm);
15826 return tm.tm_mon == 2 && tm.tm_mday == 31;
15829 static int
15830 bigtime_test (j)
15831 int j;
15833 struct tm tm;
15834 time_t now;
15835 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15836 now = mktime (&tm);
15837 if (now != (time_t) -1)
15839 struct tm *lt = localtime (&now);
15840 if (! (lt
15841 && lt->tm_year == tm.tm_year
15842 && lt->tm_mon == tm.tm_mon
15843 && lt->tm_mday == tm.tm_mday
15844 && lt->tm_hour == tm.tm_hour
15845 && lt->tm_min == tm.tm_min
15846 && lt->tm_sec == tm.tm_sec
15847 && lt->tm_yday == tm.tm_yday
15848 && lt->tm_wday == tm.tm_wday
15849 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15850 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15851 return 0;
15853 return 1;
15856 static int
15857 year_2050_test ()
15859 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15860 ignoring leap seconds. */
15861 unsigned long int answer = 2527315200UL;
15863 struct tm tm;
15864 time_t t;
15865 tm.tm_year = 2050 - 1900;
15866 tm.tm_mon = 2 - 1;
15867 tm.tm_mday = 1;
15868 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15869 tm.tm_isdst = -1;
15871 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15872 instead of "TZ=America/Vancouver" in order to detect the bug even
15873 on systems that don't support the Olson extension, or don't have the
15874 full zoneinfo tables installed. */
15875 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15877 t = mktime (&tm);
15879 /* Check that the result is either a failure, or close enough
15880 to the correct answer that we can assume the discrepancy is
15881 due to leap seconds. */
15882 return (t == (time_t) -1
15883 || (0 < t && answer - 120 <= t && t <= answer + 120));
15887 main ()
15889 time_t t, delta;
15890 int i, j;
15892 /* This test makes some buggy mktime implementations loop.
15893 Give up after 60 seconds; a mktime slower than that
15894 isn't worth using anyway. */
15895 alarm (60);
15897 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15898 continue;
15899 time_t_max--;
15900 if ((time_t) -1 < 0)
15901 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15902 continue;
15903 delta = time_t_max / 997; /* a suitable prime number */
15904 for (i = 0; i < N_STRINGS; i++)
15906 if (tz_strings[i])
15907 putenv (tz_strings[i]);
15909 for (t = 0; t <= time_t_max - delta; t += delta)
15910 if (! mktime_test (t))
15911 return 1;
15912 if (! (mktime_test ((time_t) 1)
15913 && mktime_test ((time_t) (60 * 60))
15914 && mktime_test ((time_t) (60 * 60 * 24))))
15915 return 1;
15917 for (j = 1; 0 < j; j *= 2)
15918 if (! bigtime_test (j))
15919 return 1;
15920 if (! bigtime_test (j - 1))
15921 return 1;
15923 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15925 _ACEOF
15926 rm -f conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_link") 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15937 { (case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_try") 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_cv_func_working_mktime=yes
15947 else
15948 echo "$as_me: program exited with status $ac_status" >&5
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ( exit $ac_status )
15953 ac_cv_func_working_mktime=no
15955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15960 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15961 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15962 if test $ac_cv_func_working_mktime = no; then
15963 case " $LIBOBJS " in
15964 *" mktime.$ac_objext "* ) ;;
15965 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15967 esac
15971 if test "$ac_cv_func_working_mktime" = no; then
15973 cat >>confdefs.h <<\_ACEOF
15974 #define BROKEN_MKTIME 1
15975 _ACEOF
15979 ac_have_func=no # yes means we've found a way to get the load average.
15981 # Make sure getloadavg.c is where it belongs, at configure-time.
15982 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15983 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15984 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15985 { (exit 1); exit 1; }; }
15987 ac_save_LIBS=$LIBS
15989 # Check for getloadavg, but be sure not to touch the cache variable.
15990 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
15991 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
15992 if test "${ac_cv_func_getloadavg+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h. */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16003 #define getloadavg innocuous_getloadavg
16005 /* System header to define __stub macros and hopefully few prototypes,
16006 which can conflict with char getloadavg (); below.
16007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16008 <limits.h> exists even on freestanding compilers. */
16010 #ifdef __STDC__
16011 # include <limits.h>
16012 #else
16013 # include <assert.h>
16014 #endif
16016 #undef getloadavg
16018 /* Override any GCC internal prototype to avoid an error.
16019 Use char because int might match the return type of a GCC
16020 builtin and then its argument prototype would still apply. */
16021 #ifdef __cplusplus
16022 extern "C"
16023 #endif
16024 char getloadavg ();
16025 /* The GNU C library defines this for functions which it implements
16026 to always fail with ENOSYS. Some functions are actually named
16027 something starting with __ and the normal name is an alias. */
16028 #if defined __stub_getloadavg || defined __stub___getloadavg
16029 choke me
16030 #endif
16033 main ()
16035 return getloadavg ();
16037 return 0;
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (ac_try="$ac_link"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_link") 2>conftest.er1
16048 ac_status=$?
16049 grep -v '^ *+' conftest.er1 >conftest.err
16050 rm -f conftest.er1
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest$ac_exeext &&
16057 $as_test_x conftest$ac_exeext; then
16058 ac_cv_func_getloadavg=yes
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_cv_func_getloadavg=no
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067 conftest$ac_exeext conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16070 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16071 if test $ac_cv_func_getloadavg = yes; then
16072 exit 0
16073 else
16074 exit 1
16076 ) && ac_have_func=yes
16078 # On HPUX9, an unprivileged user can get load averages through this function.
16080 for ac_func in pstat_getdynamic
16082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16087 else
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h. */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16096 #define $ac_func innocuous_$ac_func
16098 /* System header to define __stub macros and hopefully few prototypes,
16099 which can conflict with char $ac_func (); below.
16100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16101 <limits.h> exists even on freestanding compilers. */
16103 #ifdef __STDC__
16104 # include <limits.h>
16105 #else
16106 # include <assert.h>
16107 #endif
16109 #undef $ac_func
16111 /* Override any GCC internal prototype to avoid an error.
16112 Use char because int might match the return type of a GCC
16113 builtin and then its argument prototype would still apply. */
16114 #ifdef __cplusplus
16115 extern "C"
16116 #endif
16117 char $ac_func ();
16118 /* The GNU C library defines this for functions which it implements
16119 to always fail with ENOSYS. Some functions are actually named
16120 something starting with __ and the normal name is an alias. */
16121 #if defined __stub_$ac_func || defined __stub___$ac_func
16122 choke me
16123 #endif
16126 main ()
16128 return $ac_func ();
16130 return 0;
16132 _ACEOF
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_link") 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest$ac_exeext &&
16150 $as_test_x conftest$ac_exeext; then
16151 eval "$as_ac_var=yes"
16152 else
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 eval "$as_ac_var=no"
16159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16160 conftest$ac_exeext conftest.$ac_ext
16162 ac_res=`eval echo '${'$as_ac_var'}'`
16163 { echo "$as_me:$LINENO: result: $ac_res" >&5
16164 echo "${ECHO_T}$ac_res" >&6; }
16165 if test `eval echo '${'$as_ac_var'}'` = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16168 _ACEOF
16171 done
16174 # Solaris has libkstat which does not require root.
16176 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16177 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16178 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181 ac_check_lib_save_LIBS=$LIBS
16182 LIBS="-lkstat $LIBS"
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16190 /* Override any GCC internal prototype to avoid an error.
16191 Use char because int might match the return type of a GCC
16192 builtin and then its argument prototype would still apply. */
16193 #ifdef __cplusplus
16194 extern "C"
16195 #endif
16196 char kstat_open ();
16198 main ()
16200 return kstat_open ();
16202 return 0;
16204 _ACEOF
16205 rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (ac_try="$ac_link"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_link") 2>conftest.er1
16213 ac_status=$?
16214 grep -v '^ *+' conftest.er1 >conftest.err
16215 rm -f conftest.er1
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest$ac_exeext &&
16222 $as_test_x conftest$ac_exeext; then
16223 ac_cv_lib_kstat_kstat_open=yes
16224 else
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 ac_cv_lib_kstat_kstat_open=no
16231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16232 conftest$ac_exeext conftest.$ac_ext
16233 LIBS=$ac_check_lib_save_LIBS
16235 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16236 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16237 if test $ac_cv_lib_kstat_kstat_open = yes; then
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_LIBKSTAT 1
16240 _ACEOF
16242 LIBS="-lkstat $LIBS"
16246 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16248 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16249 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16250 # to get the right answer into the cache.
16251 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16252 if test $ac_have_func = no; then
16253 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16254 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16255 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 ac_check_lib_save_LIBS=$LIBS
16259 LIBS="-lelf $LIBS"
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16267 /* Override any GCC internal prototype to avoid an error.
16268 Use char because int might match the return type of a GCC
16269 builtin and then its argument prototype would still apply. */
16270 #ifdef __cplusplus
16271 extern "C"
16272 #endif
16273 char elf_begin ();
16275 main ()
16277 return elf_begin ();
16279 return 0;
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_link") 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest$ac_exeext &&
16299 $as_test_x conftest$ac_exeext; then
16300 ac_cv_lib_elf_elf_begin=yes
16301 else
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ac_cv_lib_elf_elf_begin=no
16308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16309 conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16312 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16313 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16314 if test $ac_cv_lib_elf_elf_begin = yes; then
16315 LIBS="-lelf $LIBS"
16319 if test $ac_have_func = no; then
16320 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16321 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16322 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325 ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lkvm $LIBS"
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16334 /* Override any GCC internal prototype to avoid an error.
16335 Use char because int might match the return type of a GCC
16336 builtin and then its argument prototype would still apply. */
16337 #ifdef __cplusplus
16338 extern "C"
16339 #endif
16340 char kvm_open ();
16342 main ()
16344 return kvm_open ();
16346 return 0;
16348 _ACEOF
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (ac_try="$ac_link"
16351 case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_link") 2>conftest.er1
16357 ac_status=$?
16358 grep -v '^ *+' conftest.er1 >conftest.err
16359 rm -f conftest.er1
16360 cat conftest.err >&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } && {
16363 test -z "$ac_c_werror_flag" ||
16364 test ! -s conftest.err
16365 } && test -s conftest$ac_exeext &&
16366 $as_test_x conftest$ac_exeext; then
16367 ac_cv_lib_kvm_kvm_open=yes
16368 else
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ac_cv_lib_kvm_kvm_open=no
16375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS
16379 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16380 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16381 if test $ac_cv_lib_kvm_kvm_open = yes; then
16382 LIBS="-lkvm $LIBS"
16385 # Check for the 4.4BSD definition of getloadavg.
16386 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16387 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16388 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391 ac_check_lib_save_LIBS=$LIBS
16392 LIBS="-lutil $LIBS"
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16400 /* Override any GCC internal prototype to avoid an error.
16401 Use char because int might match the return type of a GCC
16402 builtin and then its argument prototype would still apply. */
16403 #ifdef __cplusplus
16404 extern "C"
16405 #endif
16406 char getloadavg ();
16408 main ()
16410 return getloadavg ();
16412 return 0;
16414 _ACEOF
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_link") 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest$ac_exeext &&
16432 $as_test_x conftest$ac_exeext; then
16433 ac_cv_lib_util_getloadavg=yes
16434 else
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 ac_cv_lib_util_getloadavg=no
16441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16442 conftest$ac_exeext conftest.$ac_ext
16443 LIBS=$ac_check_lib_save_LIBS
16445 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16446 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16447 if test $ac_cv_lib_util_getloadavg = yes; then
16448 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16453 if test $ac_have_func = no; then
16454 # There is a commonly available library for RS/6000 AIX.
16455 # Since it is not a standard part of AIX, it might be installed locally.
16456 ac_getloadavg_LIBS=$LIBS
16457 LIBS="-L/usr/local/lib $LIBS"
16458 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16459 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16460 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463 ac_check_lib_save_LIBS=$LIBS
16464 LIBS="-lgetloadavg $LIBS"
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16472 /* Override any GCC internal prototype to avoid an error.
16473 Use char because int might match the return type of a GCC
16474 builtin and then its argument prototype would still apply. */
16475 #ifdef __cplusplus
16476 extern "C"
16477 #endif
16478 char getloadavg ();
16480 main ()
16482 return getloadavg ();
16484 return 0;
16486 _ACEOF
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (ac_try="$ac_link"
16489 case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_link") 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } && {
16501 test -z "$ac_c_werror_flag" ||
16502 test ! -s conftest.err
16503 } && test -s conftest$ac_exeext &&
16504 $as_test_x conftest$ac_exeext; then
16505 ac_cv_lib_getloadavg_getloadavg=yes
16506 else
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_cv_lib_getloadavg_getloadavg=no
16513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16514 conftest$ac_exeext conftest.$ac_ext
16515 LIBS=$ac_check_lib_save_LIBS
16517 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16518 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16519 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16520 LIBS="-lgetloadavg $LIBS"
16521 else
16522 LIBS=$ac_getloadavg_LIBS
16527 # Make sure it is really in the library, if we think we found it,
16528 # otherwise set up the replacement function.
16530 for ac_func in getloadavg
16532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h. */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16546 #define $ac_func innocuous_$ac_func
16548 /* System header to define __stub macros and hopefully few prototypes,
16549 which can conflict with char $ac_func (); below.
16550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16551 <limits.h> exists even on freestanding compilers. */
16553 #ifdef __STDC__
16554 # include <limits.h>
16555 #else
16556 # include <assert.h>
16557 #endif
16559 #undef $ac_func
16561 /* Override any GCC internal prototype to avoid an error.
16562 Use char because int might match the return type of a GCC
16563 builtin and then its argument prototype would still apply. */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 char $ac_func ();
16568 /* The GNU C library defines this for functions which it implements
16569 to always fail with ENOSYS. Some functions are actually named
16570 something starting with __ and the normal name is an alias. */
16571 #if defined __stub_$ac_func || defined __stub___$ac_func
16572 choke me
16573 #endif
16576 main ()
16578 return $ac_func ();
16580 return 0;
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_link") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } && {
16597 test -z "$ac_c_werror_flag" ||
16598 test ! -s conftest.err
16599 } && test -s conftest$ac_exeext &&
16600 $as_test_x conftest$ac_exeext; then
16601 eval "$as_ac_var=yes"
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 eval "$as_ac_var=no"
16609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610 conftest$ac_exeext conftest.$ac_ext
16612 ac_res=`eval echo '${'$as_ac_var'}'`
16613 { echo "$as_me:$LINENO: result: $ac_res" >&5
16614 echo "${ECHO_T}$ac_res" >&6; }
16615 if test `eval echo '${'$as_ac_var'}'` = yes; then
16616 cat >>confdefs.h <<_ACEOF
16617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16618 _ACEOF
16620 else
16621 case " $LIBOBJS " in
16622 *" getloadavg.$ac_objext "* ) ;;
16623 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16625 esac
16628 cat >>confdefs.h <<\_ACEOF
16629 #define C_GETLOADAVG 1
16630 _ACEOF
16632 # Figure out what our getloadavg.c needs.
16633 ac_have_func=no
16634 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16635 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16636 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16637 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16641 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16642 else
16643 # Is the header compilable?
16644 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16645 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 $ac_includes_default
16653 #include <sys/dg_sys_info.h>
16654 _ACEOF
16655 rm -f conftest.$ac_objext
16656 if { (ac_try="$ac_compile"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_compile") 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest.$ac_objext; then
16672 ac_header_compiler=yes
16673 else
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_header_compiler=no
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16682 echo "${ECHO_T}$ac_header_compiler" >&6; }
16684 # Is the header present?
16685 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16686 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h. */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <sys/dg_sys_info.h>
16694 _ACEOF
16695 if { (ac_try="$ac_cpp conftest.$ac_ext"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } >/dev/null && {
16708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16709 test ! -s conftest.err
16710 }; then
16711 ac_header_preproc=yes
16712 else
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_header_preproc=no
16719 rm -f conftest.err conftest.$ac_ext
16720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721 echo "${ECHO_T}$ac_header_preproc" >&6; }
16723 # So? What about this header?
16724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16725 yes:no: )
16726 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16727 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16729 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc=yes
16732 no:yes:* )
16733 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16734 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16736 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16738 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16740 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16742 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16744 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16747 esac
16748 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16749 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16750 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16755 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16756 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16759 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16760 ac_have_func=yes
16762 cat >>confdefs.h <<\_ACEOF
16763 #define DGUX 1
16764 _ACEOF
16767 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16768 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16769 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772 ac_check_lib_save_LIBS=$LIBS
16773 LIBS="-ldgc $LIBS"
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 char dg_sys_info ();
16789 main ()
16791 return dg_sys_info ();
16793 return 0;
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (ac_try="$ac_link"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext &&
16813 $as_test_x conftest$ac_exeext; then
16814 ac_cv_lib_dgc_dg_sys_info=yes
16815 else
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_lib_dgc_dg_sys_info=no
16822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823 conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16827 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16828 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define HAVE_LIBDGC 1
16831 _ACEOF
16833 LIBS="-ldgc $LIBS"
16841 if test "${ac_cv_header_locale_h+set}" = set; then
16842 { echo "$as_me:$LINENO: checking for locale.h" >&5
16843 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16844 if test "${ac_cv_header_locale_h+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16848 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16849 else
16850 # Is the header compilable?
16851 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16852 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 $ac_includes_default
16860 #include <locale.h>
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16867 esac
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_compile") 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && {
16876 test -z "$ac_c_werror_flag" ||
16877 test ! -s conftest.err
16878 } && test -s conftest.$ac_objext; then
16879 ac_header_compiler=yes
16880 else
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 ac_header_compiler=no
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16889 echo "${ECHO_T}$ac_header_compiler" >&6; }
16891 # Is the header present?
16892 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16893 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16894 cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h. */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #include <locale.h>
16901 _ACEOF
16902 if { (ac_try="$ac_cpp conftest.$ac_ext"
16903 case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } >/dev/null && {
16915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16917 }; then
16918 ac_header_preproc=yes
16919 else
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ac_header_preproc=no
16926 rm -f conftest.err conftest.$ac_ext
16927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16928 echo "${ECHO_T}$ac_header_preproc" >&6; }
16930 # So? What about this header?
16931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16932 yes:no: )
16933 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16934 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16935 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16936 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16937 ac_header_preproc=yes
16939 no:yes:* )
16940 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16941 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16942 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16943 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16944 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16945 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16947 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16949 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16951 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16954 esac
16955 { echo "$as_me:$LINENO: checking for locale.h" >&5
16956 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16957 if test "${ac_cv_header_locale_h+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 else
16960 ac_cv_header_locale_h=$ac_header_preproc
16962 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16963 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16969 for ac_func in setlocale
16971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 else
16977 cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h. */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16985 #define $ac_func innocuous_$ac_func
16987 /* System header to define __stub macros and hopefully few prototypes,
16988 which can conflict with char $ac_func (); below.
16989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16990 <limits.h> exists even on freestanding compilers. */
16992 #ifdef __STDC__
16993 # include <limits.h>
16994 #else
16995 # include <assert.h>
16996 #endif
16998 #undef $ac_func
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 char $ac_func ();
17007 /* The GNU C library defines this for functions which it implements
17008 to always fail with ENOSYS. Some functions are actually named
17009 something starting with __ and the normal name is an alias. */
17010 #if defined __stub_$ac_func || defined __stub___$ac_func
17011 choke me
17012 #endif
17015 main ()
17017 return $ac_func ();
17019 return 0;
17021 _ACEOF
17022 rm -f conftest.$ac_objext conftest$ac_exeext
17023 if { (ac_try="$ac_link"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_link") 2>conftest.er1
17030 ac_status=$?
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } && {
17036 test -z "$ac_c_werror_flag" ||
17037 test ! -s conftest.err
17038 } && test -s conftest$ac_exeext &&
17039 $as_test_x conftest$ac_exeext; then
17040 eval "$as_ac_var=yes"
17041 else
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 eval "$as_ac_var=no"
17048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17049 conftest$ac_exeext conftest.$ac_ext
17051 ac_res=`eval echo '${'$as_ac_var'}'`
17052 { echo "$as_me:$LINENO: result: $ac_res" >&5
17053 echo "${ECHO_T}$ac_res" >&6; }
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17057 _ACEOF
17060 done
17063 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17064 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17065 # Irix 4.0.5F has the header but not the library.
17066 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17067 ac_have_func=yes
17069 cat >>confdefs.h <<\_ACEOF
17070 #define SVR4 1
17071 _ACEOF
17075 if test $ac_have_func = no; then
17076 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17077 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17078 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17079 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17083 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17084 else
17085 # Is the header compilable?
17086 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17087 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h. */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 $ac_includes_default
17095 #include <inq_stats/cpustats.h>
17096 _ACEOF
17097 rm -f conftest.$ac_objext
17098 if { (ac_try="$ac_compile"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_compile") 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest.$ac_objext; then
17114 ac_header_compiler=yes
17115 else
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_header_compiler=no
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17124 echo "${ECHO_T}$ac_header_compiler" >&6; }
17126 # Is the header present?
17127 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17128 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17129 cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h. */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 #include <inq_stats/cpustats.h>
17136 _ACEOF
17137 if { (ac_try="$ac_cpp conftest.$ac_ext"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17144 ac_status=$?
17145 grep -v '^ *+' conftest.er1 >conftest.err
17146 rm -f conftest.er1
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } >/dev/null && {
17150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17151 test ! -s conftest.err
17152 }; then
17153 ac_header_preproc=yes
17154 else
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_header_preproc=no
17161 rm -f conftest.err conftest.$ac_ext
17162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17163 echo "${ECHO_T}$ac_header_preproc" >&6; }
17165 # So? What about this header?
17166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17167 yes:no: )
17168 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17169 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17170 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17171 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17172 ac_header_preproc=yes
17174 no:yes:* )
17175 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17176 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17177 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17178 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17179 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17180 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17181 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17182 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17184 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17186 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17189 esac
17190 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17191 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17192 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17197 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17198 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17201 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17202 ac_have_func=yes
17204 cat >>confdefs.h <<\_ACEOF
17205 #define UMAX 1
17206 _ACEOF
17209 cat >>confdefs.h <<\_ACEOF
17210 #define UMAX4_3 1
17211 _ACEOF
17218 if test $ac_have_func = no; then
17219 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17220 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17221 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17222 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17226 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17227 else
17228 # Is the header compilable?
17229 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17230 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17238 #include <sys/cpustats.h>
17239 _ACEOF
17240 rm -f conftest.$ac_objext
17241 if { (ac_try="$ac_compile"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_compile") 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } && {
17254 test -z "$ac_c_werror_flag" ||
17255 test ! -s conftest.err
17256 } && test -s conftest.$ac_objext; then
17257 ac_header_compiler=yes
17258 else
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ac_header_compiler=no
17265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17267 echo "${ECHO_T}$ac_header_compiler" >&6; }
17269 # Is the header present?
17270 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17271 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 #include <sys/cpustats.h>
17279 _ACEOF
17280 if { (ac_try="$ac_cpp conftest.$ac_ext"
17281 case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17284 esac
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17287 ac_status=$?
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } >/dev/null && {
17293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17295 }; then
17296 ac_header_preproc=yes
17297 else
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_header_preproc=no
17304 rm -f conftest.err conftest.$ac_ext
17305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17306 echo "${ECHO_T}$ac_header_preproc" >&6; }
17308 # So? What about this header?
17309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17310 yes:no: )
17311 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17312 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17314 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17315 ac_header_preproc=yes
17317 no:yes:* )
17318 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17319 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17321 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17323 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17325 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17327 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17329 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17332 esac
17333 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17334 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17335 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17340 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17341 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17344 if test $ac_cv_header_sys_cpustats_h = yes; then
17345 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17346 #define UMAX 1
17347 _ACEOF
17354 if test $ac_have_func = no; then
17356 for ac_header in mach/mach.h
17358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 ac_res=`eval echo '${'$as_ac_Header'}'`
17366 { echo "$as_me:$LINENO: result: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17368 else
17369 # Is the header compilable?
17370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17379 #include <$ac_header>
17380 _ACEOF
17381 rm -f conftest.$ac_objext
17382 if { (ac_try="$ac_compile"
17383 case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_compile") 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } && {
17395 test -z "$ac_c_werror_flag" ||
17396 test ! -s conftest.err
17397 } && test -s conftest.$ac_objext; then
17398 ac_header_compiler=yes
17399 else
17400 echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17403 ac_header_compiler=no
17406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17408 echo "${ECHO_T}$ac_header_compiler" >&6; }
17410 # Is the header present?
17411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17413 cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h. */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 #include <$ac_header>
17420 _ACEOF
17421 if { (ac_try="$ac_cpp conftest.$ac_ext"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } >/dev/null && {
17434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 }; then
17437 ac_header_preproc=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_header_preproc=no
17445 rm -f conftest.err conftest.$ac_ext
17446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17447 echo "${ECHO_T}$ac_header_preproc" >&6; }
17449 # So? What about this header?
17450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17451 yes:no: )
17452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17456 ac_header_preproc=yes
17458 no:yes:* )
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17473 esac
17474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479 eval "$as_ac_Header=\$ac_header_preproc"
17481 ac_res=`eval echo '${'$as_ac_Header'}'`
17482 { echo "$as_me:$LINENO: result: $ac_res" >&5
17483 echo "${ECHO_T}$ac_res" >&6; }
17486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17489 _ACEOF
17493 done
17498 for ac_header in nlist.h
17500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 ac_res=`eval echo '${'$as_ac_Header'}'`
17508 { echo "$as_me:$LINENO: result: $ac_res" >&5
17509 echo "${ECHO_T}$ac_res" >&6; }
17510 else
17511 # Is the header compilable?
17512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 $ac_includes_default
17521 #include <$ac_header>
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (ac_try="$ac_compile"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_compile") 2>conftest.er1
17531 ac_status=$?
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest.$ac_objext; then
17540 ac_header_compiler=yes
17541 else
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_header_compiler=no
17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17550 echo "${ECHO_T}$ac_header_compiler" >&6; }
17552 # Is the header present?
17553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17555 cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h. */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 #include <$ac_header>
17562 _ACEOF
17563 if { (ac_try="$ac_cpp conftest.$ac_ext"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567 esac
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } >/dev/null && {
17576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 }; then
17579 ac_header_preproc=yes
17580 else
17581 echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 ac_header_preproc=no
17587 rm -f conftest.err conftest.$ac_ext
17588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17589 echo "${ECHO_T}$ac_header_preproc" >&6; }
17591 # So? What about this header?
17592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17593 yes:no: )
17594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17598 ac_header_preproc=yes
17600 no:yes:* )
17601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17615 esac
17616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621 eval "$as_ac_Header=\$ac_header_preproc"
17623 ac_res=`eval echo '${'$as_ac_Header'}'`
17624 { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17629 cat >>confdefs.h <<_ACEOF
17630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17631 _ACEOF
17632 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17633 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17634 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <nlist.h>
17646 main ()
17648 static struct nlist ac_aggr;
17649 if (ac_aggr.n_un.n_name)
17650 return 0;
17652 return 0;
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_compile") 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest.$ac_objext; then
17672 ac_cv_member_struct_nlist_n_un_n_name=yes
17673 else
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 #include <nlist.h>
17686 main ()
17688 static struct nlist ac_aggr;
17689 if (sizeof ac_aggr.n_un.n_name)
17690 return 0;
17692 return 0;
17694 _ACEOF
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } && {
17709 test -z "$ac_c_werror_flag" ||
17710 test ! -s conftest.err
17711 } && test -s conftest.$ac_objext; then
17712 ac_cv_member_struct_nlist_n_un_n_name=yes
17713 else
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_member_struct_nlist_n_un_n_name=no
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17726 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17727 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17729 cat >>confdefs.h <<_ACEOF
17730 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17731 _ACEOF
17734 cat >>confdefs.h <<\_ACEOF
17735 #define NLIST_NAME_UNION 1
17736 _ACEOF
17743 done
17746 done
17749 # Some definitions of getloadavg require that the program be installed setgid.
17750 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17751 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17752 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 else
17755 cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h. */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17762 #ifdef LDAV_PRIVILEGED
17763 Yowza Am I SETGID yet
17764 #endif
17765 _ACEOF
17766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17767 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17768 ac_cv_func_getloadavg_setgid=yes
17769 else
17770 ac_cv_func_getloadavg_setgid=no
17772 rm -f conftest*
17775 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17776 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17777 if test $ac_cv_func_getloadavg_setgid = yes; then
17778 NEED_SETGID=true
17780 cat >>confdefs.h <<\_ACEOF
17781 #define GETLOADAVG_PRIVILEGED 1
17782 _ACEOF
17784 else
17785 NEED_SETGID=false
17788 if test $ac_cv_func_getloadavg_setgid = yes; then
17789 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17790 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17791 if test "${ac_cv_group_kmem+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17795 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17796 # If we got an error (system does not support symlinks), try without -L.
17797 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17798 ac_cv_group_kmem=`echo $ac_ls_output \
17799 | sed -ne 's/[ ][ ]*/ /g;
17800 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17801 / /s/.* //;p;'`
17804 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17805 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17806 KMEM_GROUP=$ac_cv_group_kmem
17808 if test "x$ac_save_LIBS" = x; then
17809 GETLOADAVG_LIBS=$LIBS
17810 else
17811 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17813 LIBS=$ac_save_LIBS
17817 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17818 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17819 if test "${ac_cv_sys_largefile_source+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 else
17822 while :; do
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h. */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 #include <stdio.h>
17831 main ()
17833 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17835 return 0;
17837 _ACEOF
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (ac_try="$ac_link"
17840 case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17843 esac
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_link") 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } && {
17852 test -z "$ac_c_werror_flag" ||
17853 test ! -s conftest.err
17854 } && test -s conftest$ac_exeext &&
17855 $as_test_x conftest$ac_exeext; then
17856 ac_cv_sys_largefile_source=no; break
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17865 conftest$ac_exeext conftest.$ac_ext
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 #define _LARGEFILE_SOURCE 1
17873 #include <stdio.h>
17875 main ()
17877 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17879 return 0;
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest$ac_exeext &&
17899 $as_test_x conftest$ac_exeext; then
17900 ac_cv_sys_largefile_source=1; break
17901 else
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909 conftest$ac_exeext conftest.$ac_ext
17910 ac_cv_sys_largefile_source=unknown
17911 break
17912 done
17914 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17915 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17916 case $ac_cv_sys_largefile_source in #(
17917 no | unknown) ;;
17919 cat >>confdefs.h <<_ACEOF
17920 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17921 _ACEOF
17923 esac
17924 rm -f conftest*
17926 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17927 # in glibc 2.1.3, but that breaks too many other things.
17928 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17929 if test $ac_cv_sys_largefile_source != unknown; then
17931 cat >>confdefs.h <<\_ACEOF
17932 #define HAVE_FSEEKO 1
17933 _ACEOF
17938 # Configure getopt.
17939 # getopt.m4 serial 10
17941 # The getopt module assume you want GNU getopt, with getopt_long etc,
17942 # rather than vanilla POSIX getopt. This means your your code should
17943 # always include <getopt.h> for the getopt prototypes.
17955 # Prerequisites of lib/getopt*.
17960 GETOPT_H=
17962 for ac_header in getopt.h
17964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 ac_res=`eval echo '${'$as_ac_Header'}'`
17972 { echo "$as_me:$LINENO: result: $ac_res" >&5
17973 echo "${ECHO_T}$ac_res" >&6; }
17974 else
17975 # Is the header compilable?
17976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17978 cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h. */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 $ac_includes_default
17985 #include <$ac_header>
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest.$ac_objext; then
18004 ac_header_compiler=yes
18005 else
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_header_compiler=no
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18014 echo "${ECHO_T}$ac_header_compiler" >&6; }
18016 # Is the header present?
18017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18019 cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h. */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 #include <$ac_header>
18026 _ACEOF
18027 if { (ac_try="$ac_cpp conftest.$ac_ext"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } >/dev/null && {
18040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18042 }; then
18043 ac_header_preproc=yes
18044 else
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 ac_header_preproc=no
18051 rm -f conftest.err conftest.$ac_ext
18052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18053 echo "${ECHO_T}$ac_header_preproc" >&6; }
18055 # So? What about this header?
18056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18057 yes:no: )
18058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18062 ac_header_preproc=yes
18064 no:yes:* )
18065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18079 esac
18080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 else
18085 eval "$as_ac_Header=\$ac_header_preproc"
18087 ac_res=`eval echo '${'$as_ac_Header'}'`
18088 { echo "$as_me:$LINENO: result: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18095 _ACEOF
18097 else
18098 GETOPT_H=getopt.h
18101 done
18103 if test -z "$GETOPT_H"; then
18105 for ac_func in getopt_long_only
18107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18121 #define $ac_func innocuous_$ac_func
18123 /* System header to define __stub macros and hopefully few prototypes,
18124 which can conflict with char $ac_func (); below.
18125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18126 <limits.h> exists even on freestanding compilers. */
18128 #ifdef __STDC__
18129 # include <limits.h>
18130 #else
18131 # include <assert.h>
18132 #endif
18134 #undef $ac_func
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18139 #ifdef __cplusplus
18140 extern "C"
18141 #endif
18142 char $ac_func ();
18143 /* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146 #if defined __stub_$ac_func || defined __stub___$ac_func
18147 choke me
18148 #endif
18151 main ()
18153 return $ac_func ();
18155 return 0;
18157 _ACEOF
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (ac_try="$ac_link"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_link") 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } && {
18172 test -z "$ac_c_werror_flag" ||
18173 test ! -s conftest.err
18174 } && test -s conftest$ac_exeext &&
18175 $as_test_x conftest$ac_exeext; then
18176 eval "$as_ac_var=yes"
18177 else
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 eval "$as_ac_var=no"
18184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18185 conftest$ac_exeext conftest.$ac_ext
18187 ac_res=`eval echo '${'$as_ac_var'}'`
18188 { echo "$as_me:$LINENO: result: $ac_res" >&5
18189 echo "${ECHO_T}$ac_res" >&6; }
18190 if test `eval echo '${'$as_ac_var'}'` = yes; then
18191 cat >>confdefs.h <<_ACEOF
18192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18193 _ACEOF
18195 else
18196 GETOPT_H=getopt.h
18198 done
18202 if test -z "$GETOPT_H"; then
18203 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18204 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18205 if test "${ac_cv_have_decl_optreset+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208 cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 #include <getopt.h>
18217 main ()
18219 #ifndef optreset
18220 (void) optreset;
18221 #endif
18224 return 0;
18226 _ACEOF
18227 rm -f conftest.$ac_objext
18228 if { (ac_try="$ac_compile"
18229 case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_compile") 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } && {
18241 test -z "$ac_c_werror_flag" ||
18242 test ! -s conftest.err
18243 } && test -s conftest.$ac_objext; then
18244 ac_cv_have_decl_optreset=yes
18245 else
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ac_cv_have_decl_optreset=no
18252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18255 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18256 if test $ac_cv_have_decl_optreset = yes; then
18257 GETOPT_H=getopt.h
18262 if test -z "$GETOPT_H"; then
18263 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18264 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18265 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268 if test "$cross_compiling" = yes; then
18269 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18270 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18271 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 else
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h. */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 #include <getopt.h>
18283 main ()
18285 #ifndef getopt_clip
18286 (void) getopt_clip;
18287 #endif
18290 return 0;
18292 _ACEOF
18293 rm -f conftest.$ac_objext
18294 if { (ac_try="$ac_compile"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_compile") 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } && {
18307 test -z "$ac_c_werror_flag" ||
18308 test ! -s conftest.err
18309 } && test -s conftest.$ac_objext; then
18310 ac_cv_have_decl_getopt_clip=yes
18311 else
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_cv_have_decl_getopt_clip=no
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18321 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18322 if test $ac_cv_have_decl_getopt_clip = yes; then
18323 gl_cv_func_gnu_getopt=no
18324 else
18325 gl_cv_func_gnu_getopt=yes
18328 else
18329 cat >conftest.$ac_ext <<_ACEOF
18330 /* confdefs.h. */
18331 _ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18335 #include <getopt.h>
18337 main ()
18340 char *myargv[3];
18341 myargv[0] = "conftest";
18342 myargv[1] = "-+";
18343 myargv[2] = 0;
18344 return getopt (2, myargv, "+a") != '?';
18347 return 0;
18349 _ACEOF
18350 rm -f conftest$ac_exeext
18351 if { (ac_try="$ac_link"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_link") 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361 { (case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18364 esac
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_try") 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 gl_cv_func_gnu_getopt=yes
18371 else
18372 echo "$as_me: program exited with status $ac_status" >&5
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ( exit $ac_status )
18377 gl_cv_func_gnu_getopt=no
18379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18384 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18385 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18386 if test "$gl_cv_func_gnu_getopt" = "no"; then
18387 GETOPT_H=getopt.h
18393 if test -n "$GETOPT_H"; then
18396 GETOPT_H=getopt.h
18398 cat >>confdefs.h <<\_ACEOF
18399 #define __GETOPT_PREFIX rpl_
18400 _ACEOF
18405 GETOPTOBJS='getopt.o getopt1.o'
18412 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18413 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18414 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417 # Use it with a single arg.
18418 cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h. */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 $ac_includes_default
18426 main ()
18428 getpgrp (0);
18430 return 0;
18432 _ACEOF
18433 rm -f conftest.$ac_objext
18434 if { (ac_try="$ac_compile"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_compile") 2>conftest.er1
18441 ac_status=$?
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest.$ac_objext; then
18450 ac_cv_func_getpgrp_void=no
18451 else
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 ac_cv_func_getpgrp_void=yes
18458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18462 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18463 if test $ac_cv_func_getpgrp_void = yes; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define GETPGRP_VOID 1
18467 _ACEOF
18473 for ac_func in strftime
18475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h. */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18489 #define $ac_func innocuous_$ac_func
18491 /* System header to define __stub macros and hopefully few prototypes,
18492 which can conflict with char $ac_func (); below.
18493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18494 <limits.h> exists even on freestanding compilers. */
18496 #ifdef __STDC__
18497 # include <limits.h>
18498 #else
18499 # include <assert.h>
18500 #endif
18502 #undef $ac_func
18504 /* Override any GCC internal prototype to avoid an error.
18505 Use char because int might match the return type of a GCC
18506 builtin and then its argument prototype would still apply. */
18507 #ifdef __cplusplus
18508 extern "C"
18509 #endif
18510 char $ac_func ();
18511 /* The GNU C library defines this for functions which it implements
18512 to always fail with ENOSYS. Some functions are actually named
18513 something starting with __ and the normal name is an alias. */
18514 #if defined __stub_$ac_func || defined __stub___$ac_func
18515 choke me
18516 #endif
18519 main ()
18521 return $ac_func ();
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_link") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext &&
18543 $as_test_x conftest$ac_exeext; then
18544 eval "$as_ac_var=yes"
18545 else
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 eval "$as_ac_var=no"
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553 conftest$ac_exeext conftest.$ac_ext
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556 { echo "$as_me:$LINENO: result: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18561 _ACEOF
18563 else
18564 # strftime is in -lintl on SCO UNIX.
18565 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18566 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18567 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570 ac_check_lib_save_LIBS=$LIBS
18571 LIBS="-lintl $LIBS"
18572 cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h. */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18579 /* Override any GCC internal prototype to avoid an error.
18580 Use char because int might match the return type of a GCC
18581 builtin and then its argument prototype would still apply. */
18582 #ifdef __cplusplus
18583 extern "C"
18584 #endif
18585 char strftime ();
18587 main ()
18589 return strftime ();
18591 return 0;
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_link") 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest$ac_exeext &&
18611 $as_test_x conftest$ac_exeext; then
18612 ac_cv_lib_intl_strftime=yes
18613 else
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_cv_lib_intl_strftime=no
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621 conftest$ac_exeext conftest.$ac_ext
18622 LIBS=$ac_check_lib_save_LIBS
18624 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18625 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18626 if test $ac_cv_lib_intl_strftime = yes; then
18627 cat >>confdefs.h <<\_ACEOF
18628 #define HAVE_STRFTIME 1
18629 _ACEOF
18631 LIBS="-lintl $LIBS"
18635 done
18638 # UNIX98 PTYs.
18640 for ac_func in grantpt
18642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648 cat >conftest.$ac_ext <<_ACEOF
18649 /* confdefs.h. */
18650 _ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18656 #define $ac_func innocuous_$ac_func
18658 /* System header to define __stub macros and hopefully few prototypes,
18659 which can conflict with char $ac_func (); below.
18660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18661 <limits.h> exists even on freestanding compilers. */
18663 #ifdef __STDC__
18664 # include <limits.h>
18665 #else
18666 # include <assert.h>
18667 #endif
18669 #undef $ac_func
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 char $ac_func ();
18678 /* The GNU C library defines this for functions which it implements
18679 to always fail with ENOSYS. Some functions are actually named
18680 something starting with __ and the normal name is an alias. */
18681 #if defined __stub_$ac_func || defined __stub___$ac_func
18682 choke me
18683 #endif
18686 main ()
18688 return $ac_func ();
18690 return 0;
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest$ac_exeext &&
18710 $as_test_x conftest$ac_exeext; then
18711 eval "$as_ac_var=yes"
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 eval "$as_ac_var=no"
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720 conftest$ac_exeext conftest.$ac_ext
18722 ac_res=`eval echo '${'$as_ac_var'}'`
18723 { echo "$as_me:$LINENO: result: $ac_res" >&5
18724 echo "${ECHO_T}$ac_res" >&6; }
18725 if test `eval echo '${'$as_ac_var'}'` = yes; then
18726 cat >>confdefs.h <<_ACEOF
18727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18728 _ACEOF
18731 done
18734 # PTY-related GNU extensions.
18736 for ac_func in getpt
18738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h. */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18752 #define $ac_func innocuous_$ac_func
18754 /* System header to define __stub macros and hopefully few prototypes,
18755 which can conflict with char $ac_func (); below.
18756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18757 <limits.h> exists even on freestanding compilers. */
18759 #ifdef __STDC__
18760 # include <limits.h>
18761 #else
18762 # include <assert.h>
18763 #endif
18765 #undef $ac_func
18767 /* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18770 #ifdef __cplusplus
18771 extern "C"
18772 #endif
18773 char $ac_func ();
18774 /* The GNU C library defines this for functions which it implements
18775 to always fail with ENOSYS. Some functions are actually named
18776 something starting with __ and the normal name is an alias. */
18777 #if defined __stub_$ac_func || defined __stub___$ac_func
18778 choke me
18779 #endif
18782 main ()
18784 return $ac_func ();
18786 return 0;
18788 _ACEOF
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (ac_try="$ac_link"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_link") 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest$ac_exeext &&
18806 $as_test_x conftest$ac_exeext; then
18807 eval "$as_ac_var=yes"
18808 else
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 eval "$as_ac_var=no"
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18818 ac_res=`eval echo '${'$as_ac_var'}'`
18819 { echo "$as_me:$LINENO: result: $ac_res" >&5
18820 echo "${ECHO_T}$ac_res" >&6; }
18821 if test `eval echo '${'$as_ac_var'}'` = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18824 _ACEOF
18827 done
18830 # Check this now, so that we will NOT find the above functions in ncurses.
18831 # That is because we have not set up to link ncurses in lib-src.
18832 # It's better to believe a function is not available
18833 # than to expect to find it in ncurses.
18835 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18836 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18837 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840 ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lncurses $LIBS"
18842 cat >conftest.$ac_ext <<_ACEOF
18843 /* confdefs.h. */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char tparm ();
18857 main ()
18859 return tparm ();
18861 return 0;
18863 _ACEOF
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest$ac_exeext &&
18881 $as_test_x conftest$ac_exeext; then
18882 ac_cv_lib_ncurses_tparm=yes
18883 else
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_lib_ncurses_tparm=no
18890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18891 conftest$ac_exeext conftest.$ac_ext
18892 LIBS=$ac_check_lib_save_LIBS
18894 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18895 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18896 if test $ac_cv_lib_ncurses_tparm = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_LIBNCURSES 1
18899 _ACEOF
18901 LIBS="-lncurses $LIBS"
18906 # Do we need the Hesiod library to provide the support routines?
18907 if test "$with_hesiod" = yes ; then
18908 # Don't set $LIBS here -- see comments above.
18909 resolv=no
18910 { echo "$as_me:$LINENO: checking for res_send" >&5
18911 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18912 if test "${ac_cv_func_res_send+set}" = set; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 else
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h. */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18923 #define res_send innocuous_res_send
18925 /* System header to define __stub macros and hopefully few prototypes,
18926 which can conflict with char res_send (); below.
18927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18928 <limits.h> exists even on freestanding compilers. */
18930 #ifdef __STDC__
18931 # include <limits.h>
18932 #else
18933 # include <assert.h>
18934 #endif
18936 #undef res_send
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18941 #ifdef __cplusplus
18942 extern "C"
18943 #endif
18944 char res_send ();
18945 /* The GNU C library defines this for functions which it implements
18946 to always fail with ENOSYS. Some functions are actually named
18947 something starting with __ and the normal name is an alias. */
18948 #if defined __stub_res_send || defined __stub___res_send
18949 choke me
18950 #endif
18953 main ()
18955 return res_send ();
18957 return 0;
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18968 ac_status=$?
18969 grep -v '^ *+' conftest.er1 >conftest.err
18970 rm -f conftest.er1
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18978 ac_cv_func_res_send=yes
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_func_res_send=no
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987 conftest$ac_exeext conftest.$ac_ext
18989 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18990 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18991 if test $ac_cv_func_res_send = yes; then
18993 else
18994 { echo "$as_me:$LINENO: checking for __res_send" >&5
18995 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
18996 if test "${ac_cv_func___res_send+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h. */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19007 #define __res_send innocuous___res_send
19009 /* System header to define __stub macros and hopefully few prototypes,
19010 which can conflict with char __res_send (); below.
19011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012 <limits.h> exists even on freestanding compilers. */
19014 #ifdef __STDC__
19015 # include <limits.h>
19016 #else
19017 # include <assert.h>
19018 #endif
19020 #undef __res_send
19022 /* Override any GCC internal prototype to avoid an error.
19023 Use char because int might match the return type of a GCC
19024 builtin and then its argument prototype would still apply. */
19025 #ifdef __cplusplus
19026 extern "C"
19027 #endif
19028 char __res_send ();
19029 /* The GNU C library defines this for functions which it implements
19030 to always fail with ENOSYS. Some functions are actually named
19031 something starting with __ and the normal name is an alias. */
19032 #if defined __stub___res_send || defined __stub_____res_send
19033 choke me
19034 #endif
19037 main ()
19039 return __res_send ();
19041 return 0;
19043 _ACEOF
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext &&
19061 $as_test_x conftest$ac_exeext; then
19062 ac_cv_func___res_send=yes
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_cv_func___res_send=no
19070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19071 conftest$ac_exeext conftest.$ac_ext
19073 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19074 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19075 if test $ac_cv_func___res_send = yes; then
19077 else
19078 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19079 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19080 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083 ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-lresolv $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19092 /* Override any GCC internal prototype to avoid an error.
19093 Use char because int might match the return type of a GCC
19094 builtin and then its argument prototype would still apply. */
19095 #ifdef __cplusplus
19096 extern "C"
19097 #endif
19098 char res_send ();
19100 main ()
19102 return res_send ();
19104 return 0;
19106 _ACEOF
19107 rm -f conftest.$ac_objext 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>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest$ac_exeext &&
19124 $as_test_x conftest$ac_exeext; then
19125 ac_cv_lib_resolv_res_send=yes
19126 else
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_cv_lib_resolv_res_send=no
19133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19134 conftest$ac_exeext conftest.$ac_ext
19135 LIBS=$ac_check_lib_save_LIBS
19137 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19138 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19139 if test $ac_cv_lib_resolv_res_send = yes; then
19140 resolv=yes
19141 else
19142 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19143 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19144 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147 ac_check_lib_save_LIBS=$LIBS
19148 LIBS="-lresolv $LIBS"
19149 cat >conftest.$ac_ext <<_ACEOF
19150 /* confdefs.h. */
19151 _ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 char __res_send ();
19164 main ()
19166 return __res_send ();
19168 return 0;
19170 _ACEOF
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } && {
19185 test -z "$ac_c_werror_flag" ||
19186 test ! -s conftest.err
19187 } && test -s conftest$ac_exeext &&
19188 $as_test_x conftest$ac_exeext; then
19189 ac_cv_lib_resolv___res_send=yes
19190 else
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 ac_cv_lib_resolv___res_send=no
19197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19198 conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19201 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19202 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19203 if test $ac_cv_lib_resolv___res_send = yes; then
19204 resolv=yes
19213 if test "$resolv" = yes ; then
19214 RESOLVLIB=-lresolv
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_LIBRESOLV 1
19218 _ACEOF
19220 else
19221 RESOLVLIB=
19223 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19224 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19225 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h. */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19236 #define hes_getmailhost innocuous_hes_getmailhost
19238 /* System header to define __stub macros and hopefully few prototypes,
19239 which can conflict with char hes_getmailhost (); below.
19240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19241 <limits.h> exists even on freestanding compilers. */
19243 #ifdef __STDC__
19244 # include <limits.h>
19245 #else
19246 # include <assert.h>
19247 #endif
19249 #undef hes_getmailhost
19251 /* Override any GCC internal prototype to avoid an error.
19252 Use char because int might match the return type of a GCC
19253 builtin and then its argument prototype would still apply. */
19254 #ifdef __cplusplus
19255 extern "C"
19256 #endif
19257 char hes_getmailhost ();
19258 /* The GNU C library defines this for functions which it implements
19259 to always fail with ENOSYS. Some functions are actually named
19260 something starting with __ and the normal name is an alias. */
19261 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19262 choke me
19263 #endif
19266 main ()
19268 return hes_getmailhost ();
19270 return 0;
19272 _ACEOF
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_link") 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } && {
19287 test -z "$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 } && test -s conftest$ac_exeext &&
19290 $as_test_x conftest$ac_exeext; then
19291 ac_cv_func_hes_getmailhost=yes
19292 else
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_cv_func_hes_getmailhost=no
19299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19300 conftest$ac_exeext conftest.$ac_ext
19302 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19303 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19304 if test $ac_cv_func_hes_getmailhost = yes; then
19306 else
19307 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19308 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19309 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312 ac_check_lib_save_LIBS=$LIBS
19313 LIBS="-lhesiod $RESOLVLIB $LIBS"
19314 cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h. */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324 #ifdef __cplusplus
19325 extern "C"
19326 #endif
19327 char hes_getmailhost ();
19329 main ()
19331 return hes_getmailhost ();
19333 return 0;
19335 _ACEOF
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext &&
19353 $as_test_x conftest$ac_exeext; then
19354 ac_cv_lib_hesiod_hes_getmailhost=yes
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 ac_cv_lib_hesiod_hes_getmailhost=no
19362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19363 conftest$ac_exeext conftest.$ac_ext
19364 LIBS=$ac_check_lib_save_LIBS
19366 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19367 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19368 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE_LIBHESIOD 1
19372 _ACEOF
19374 else
19382 # These tell us which Kerberos-related libraries to use.
19383 if test "${with_kerberos+set}" = set; then
19385 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19386 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19387 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390 ac_check_lib_save_LIBS=$LIBS
19391 LIBS="-lcom_err $LIBS"
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 char com_err ();
19407 main ()
19409 return com_err ();
19411 return 0;
19413 _ACEOF
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest$ac_exeext &&
19431 $as_test_x conftest$ac_exeext; then
19432 ac_cv_lib_com_err_com_err=yes
19433 else
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_lib_com_err_com_err=no
19440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19441 conftest$ac_exeext conftest.$ac_ext
19442 LIBS=$ac_check_lib_save_LIBS
19444 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19445 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19446 if test $ac_cv_lib_com_err_com_err = yes; then
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_LIBCOM_ERR 1
19449 _ACEOF
19451 LIBS="-lcom_err $LIBS"
19456 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19457 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19458 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461 ac_check_lib_save_LIBS=$LIBS
19462 LIBS="-lk5crypto $LIBS"
19463 cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h. */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19470 /* Override any GCC internal prototype to avoid an error.
19471 Use char because int might match the return type of a GCC
19472 builtin and then its argument prototype would still apply. */
19473 #ifdef __cplusplus
19474 extern "C"
19475 #endif
19476 char mit_des_cbc_encrypt ();
19478 main ()
19480 return mit_des_cbc_encrypt ();
19482 return 0;
19484 _ACEOF
19485 rm -f conftest.$ac_objext conftest$ac_exeext
19486 if { (ac_try="$ac_link"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_link") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest$ac_exeext &&
19502 $as_test_x conftest$ac_exeext; then
19503 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19504 else
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19516 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19517 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19518 cat >>confdefs.h <<_ACEOF
19519 #define HAVE_LIBK5CRYPTO 1
19520 _ACEOF
19522 LIBS="-lk5crypto $LIBS"
19527 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19528 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19529 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532 ac_check_lib_save_LIBS=$LIBS
19533 LIBS="-lcrypto $LIBS"
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h. */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 /* Override any GCC internal prototype to avoid an error.
19542 Use char because int might match the return type of a GCC
19543 builtin and then its argument prototype would still apply. */
19544 #ifdef __cplusplus
19545 extern "C"
19546 #endif
19547 char mit_des_cbc_encrypt ();
19549 main ()
19551 return mit_des_cbc_encrypt ();
19553 return 0;
19555 _ACEOF
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_link") 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext &&
19573 $as_test_x conftest$ac_exeext; then
19574 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19575 else
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19584 LIBS=$ac_check_lib_save_LIBS
19586 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19587 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19588 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19589 cat >>confdefs.h <<_ACEOF
19590 #define HAVE_LIBCRYPTO 1
19591 _ACEOF
19593 LIBS="-lcrypto $LIBS"
19598 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19599 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19600 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603 ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-lkrb5 $LIBS"
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19612 /* Override any GCC internal prototype to avoid an error.
19613 Use char because int might match the return type of a GCC
19614 builtin and then its argument prototype would still apply. */
19615 #ifdef __cplusplus
19616 extern "C"
19617 #endif
19618 char krb5_init_context ();
19620 main ()
19622 return krb5_init_context ();
19624 return 0;
19626 _ACEOF
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_link") 2>conftest.er1
19635 ac_status=$?
19636 grep -v '^ *+' conftest.er1 >conftest.err
19637 rm -f conftest.er1
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && {
19641 test -z "$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 } && test -s conftest$ac_exeext &&
19644 $as_test_x conftest$ac_exeext; then
19645 ac_cv_lib_krb5_krb5_init_context=yes
19646 else
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 ac_cv_lib_krb5_krb5_init_context=no
19653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19654 conftest$ac_exeext conftest.$ac_ext
19655 LIBS=$ac_check_lib_save_LIBS
19657 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19658 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19659 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19660 cat >>confdefs.h <<_ACEOF
19661 #define HAVE_LIBKRB5 1
19662 _ACEOF
19664 LIBS="-lkrb5 $LIBS"
19668 if test "${with_kerberos5+set}" != set; then
19670 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19671 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19672 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675 ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-ldes425 $LIBS"
19677 cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h. */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19684 /* Override any GCC internal prototype to avoid an error.
19685 Use char because int might match the return type of a GCC
19686 builtin and then its argument prototype would still apply. */
19687 #ifdef __cplusplus
19688 extern "C"
19689 #endif
19690 char des_cbc_encrypt ();
19692 main ()
19694 return des_cbc_encrypt ();
19696 return 0;
19698 _ACEOF
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest$ac_exeext &&
19716 $as_test_x conftest$ac_exeext; then
19717 ac_cv_lib_des425_des_cbc_encrypt=yes
19718 else
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ac_cv_lib_des425_des_cbc_encrypt=no
19725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19726 conftest$ac_exeext conftest.$ac_ext
19727 LIBS=$ac_check_lib_save_LIBS
19729 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19730 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19731 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733 #define HAVE_LIBDES425 1
19734 _ACEOF
19736 LIBS="-ldes425 $LIBS"
19738 else
19740 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19741 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19742 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745 ac_check_lib_save_LIBS=$LIBS
19746 LIBS="-ldes $LIBS"
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h. */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19757 #ifdef __cplusplus
19758 extern "C"
19759 #endif
19760 char des_cbc_encrypt ();
19762 main ()
19764 return des_cbc_encrypt ();
19766 return 0;
19768 _ACEOF
19769 rm -f conftest.$ac_objext conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_link") 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest$ac_exeext &&
19786 $as_test_x conftest$ac_exeext; then
19787 ac_cv_lib_des_des_cbc_encrypt=yes
19788 else
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_lib_des_des_cbc_encrypt=no
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796 conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19799 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19800 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19801 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19802 cat >>confdefs.h <<_ACEOF
19803 #define HAVE_LIBDES 1
19804 _ACEOF
19806 LIBS="-ldes $LIBS"
19813 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19814 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19815 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818 ac_check_lib_save_LIBS=$LIBS
19819 LIBS="-lkrb4 $LIBS"
19820 cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h. */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19827 /* Override any GCC internal prototype to avoid an error.
19828 Use char because int might match the return type of a GCC
19829 builtin and then its argument prototype would still apply. */
19830 #ifdef __cplusplus
19831 extern "C"
19832 #endif
19833 char krb_get_cred ();
19835 main ()
19837 return krb_get_cred ();
19839 return 0;
19841 _ACEOF
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (ac_try="$ac_link"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_link") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest$ac_exeext &&
19859 $as_test_x conftest$ac_exeext; then
19860 ac_cv_lib_krb4_krb_get_cred=yes
19861 else
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_cv_lib_krb4_krb_get_cred=no
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19873 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19874 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBKRB4 1
19877 _ACEOF
19879 LIBS="-lkrb4 $LIBS"
19881 else
19883 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19884 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19885 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888 ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-lkrb $LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19900 #ifdef __cplusplus
19901 extern "C"
19902 #endif
19903 char krb_get_cred ();
19905 main ()
19907 return krb_get_cred ();
19909 return 0;
19911 _ACEOF
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>conftest.er1
19920 ac_status=$?
19921 grep -v '^ *+' conftest.er1 >conftest.err
19922 rm -f conftest.er1
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest$ac_exeext &&
19929 $as_test_x conftest$ac_exeext; then
19930 ac_cv_lib_krb_krb_get_cred=yes
19931 else
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_lib_krb_krb_get_cred=no
19938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19939 conftest$ac_exeext conftest.$ac_ext
19940 LIBS=$ac_check_lib_save_LIBS
19942 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19943 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19944 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_LIBKRB 1
19947 _ACEOF
19949 LIBS="-lkrb $LIBS"
19957 if test "${with_kerberos5+set}" = set; then
19959 for ac_header in krb5.h
19961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 ac_res=`eval echo '${'$as_ac_Header'}'`
19969 { echo "$as_me:$LINENO: result: $ac_res" >&5
19970 echo "${ECHO_T}$ac_res" >&6; }
19971 else
19972 # Is the header compilable?
19973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h. */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19982 #include <$ac_header>
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_header_compiler=yes
20002 else
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_compiler=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20011 echo "${ECHO_T}$ac_header_compiler" >&6; }
20013 # Is the header present?
20014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <$ac_header>
20023 _ACEOF
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } >/dev/null && {
20037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 }; then
20040 ac_header_preproc=yes
20041 else
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_header_preproc=no
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20052 # So? What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054 yes:no: )
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20059 ac_header_preproc=yes
20061 no:yes:* )
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20076 esac
20077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 eval "$as_ac_Header=\$ac_header_preproc"
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085 { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20092 _ACEOF
20096 done
20098 else
20100 for ac_header in des.h
20102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 ac_res=`eval echo '${'$as_ac_Header'}'`
20110 { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112 else
20113 # Is the header compilable?
20114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h. */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20123 #include <$ac_header>
20124 _ACEOF
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_header_compiler=yes
20143 else
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_header_compiler=no
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20152 echo "${ECHO_T}$ac_header_compiler" >&6; }
20154 # Is the header present?
20155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <$ac_header>
20164 _ACEOF
20165 if { (ac_try="$ac_cpp conftest.$ac_ext"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } >/dev/null && {
20178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 }; then
20181 ac_header_preproc=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ac_header_preproc=no
20189 rm -f conftest.err conftest.$ac_ext
20190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20191 echo "${ECHO_T}$ac_header_preproc" >&6; }
20193 # So? What about this header?
20194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20195 yes:no: )
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20200 ac_header_preproc=yes
20202 no:yes:* )
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20217 esac
20218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 eval "$as_ac_Header=\$ac_header_preproc"
20225 ac_res=`eval echo '${'$as_ac_Header'}'`
20226 { echo "$as_me:$LINENO: result: $ac_res" >&5
20227 echo "${ECHO_T}$ac_res" >&6; }
20230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20231 cat >>confdefs.h <<_ACEOF
20232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20233 _ACEOF
20235 else
20237 for ac_header in kerberosIV/des.h
20239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 ac_res=`eval echo '${'$as_ac_Header'}'`
20247 { echo "$as_me:$LINENO: result: $ac_res" >&5
20248 echo "${ECHO_T}$ac_res" >&6; }
20249 else
20250 # Is the header compilable?
20251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 $ac_includes_default
20260 #include <$ac_header>
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (ac_try="$ac_compile"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_compile") 2>conftest.er1
20270 ac_status=$?
20271 grep -v '^ *+' conftest.er1 >conftest.err
20272 rm -f conftest.er1
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } && {
20276 test -z "$ac_c_werror_flag" ||
20277 test ! -s conftest.err
20278 } && test -s conftest.$ac_objext; then
20279 ac_header_compiler=yes
20280 else
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_header_compiler=no
20287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20289 echo "${ECHO_T}$ac_header_compiler" >&6; }
20291 # Is the header present?
20292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 #include <$ac_header>
20301 _ACEOF
20302 if { (ac_try="$ac_cpp conftest.$ac_ext"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20309 ac_status=$?
20310 grep -v '^ *+' conftest.er1 >conftest.err
20311 rm -f conftest.er1
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } >/dev/null && {
20315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 }; then
20318 ac_header_preproc=yes
20319 else
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20323 ac_header_preproc=no
20326 rm -f conftest.err conftest.$ac_ext
20327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20328 echo "${ECHO_T}$ac_header_preproc" >&6; }
20330 # So? What about this header?
20331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20332 yes:no: )
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20337 ac_header_preproc=yes
20339 no:yes:* )
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20354 esac
20355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360 eval "$as_ac_Header=\$ac_header_preproc"
20362 ac_res=`eval echo '${'$as_ac_Header'}'`
20363 { echo "$as_me:$LINENO: result: $ac_res" >&5
20364 echo "${ECHO_T}$ac_res" >&6; }
20367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20368 cat >>confdefs.h <<_ACEOF
20369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20370 _ACEOF
20372 else
20374 for ac_header in kerberos/des.h
20376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 ac_res=`eval echo '${'$as_ac_Header'}'`
20384 { echo "$as_me:$LINENO: result: $ac_res" >&5
20385 echo "${ECHO_T}$ac_res" >&6; }
20386 else
20387 # Is the header compilable?
20388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 $ac_includes_default
20397 #include <$ac_header>
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20416 ac_header_compiler=yes
20417 else
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_header_compiler=no
20424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20426 echo "${ECHO_T}$ac_header_compiler" >&6; }
20428 # Is the header present?
20429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <$ac_header>
20438 _ACEOF
20439 if { (ac_try="$ac_cpp conftest.$ac_ext"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } >/dev/null && {
20452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 }; then
20455 ac_header_preproc=yes
20456 else
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_header_preproc=no
20463 rm -f conftest.err conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20465 echo "${ECHO_T}$ac_header_preproc" >&6; }
20467 # So? What about this header?
20468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20469 yes:no: )
20470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20474 ac_header_preproc=yes
20476 no:yes:* )
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20491 esac
20492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497 eval "$as_ac_Header=\$ac_header_preproc"
20499 ac_res=`eval echo '${'$as_ac_Header'}'`
20500 { echo "$as_me:$LINENO: result: $ac_res" >&5
20501 echo "${ECHO_T}$ac_res" >&6; }
20504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20507 _ACEOF
20511 done
20515 done
20519 done
20522 for ac_header in krb.h
20524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 ac_res=`eval echo '${'$as_ac_Header'}'`
20532 { echo "$as_me:$LINENO: result: $ac_res" >&5
20533 echo "${ECHO_T}$ac_res" >&6; }
20534 else
20535 # Is the header compilable?
20536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h. */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 $ac_includes_default
20545 #include <$ac_header>
20546 _ACEOF
20547 rm -f conftest.$ac_objext
20548 if { (ac_try="$ac_compile"
20549 case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20552 esac
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_compile") 2>conftest.er1
20555 ac_status=$?
20556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } && {
20561 test -z "$ac_c_werror_flag" ||
20562 test ! -s conftest.err
20563 } && test -s conftest.$ac_objext; then
20564 ac_header_compiler=yes
20565 else
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 ac_header_compiler=no
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20574 echo "${ECHO_T}$ac_header_compiler" >&6; }
20576 # Is the header present?
20577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 #include <$ac_header>
20586 _ACEOF
20587 if { (ac_try="$ac_cpp conftest.$ac_ext"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } >/dev/null && {
20600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 }; then
20603 ac_header_preproc=yes
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_header_preproc=no
20611 rm -f conftest.err conftest.$ac_ext
20612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20613 echo "${ECHO_T}$ac_header_preproc" >&6; }
20615 # So? What about this header?
20616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20617 yes:no: )
20618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20622 ac_header_preproc=yes
20624 no:yes:* )
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20639 esac
20640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20643 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 else
20645 eval "$as_ac_Header=\$ac_header_preproc"
20647 ac_res=`eval echo '${'$as_ac_Header'}'`
20648 { echo "$as_me:$LINENO: result: $ac_res" >&5
20649 echo "${ECHO_T}$ac_res" >&6; }
20652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20653 cat >>confdefs.h <<_ACEOF
20654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20655 _ACEOF
20657 else
20659 for ac_header in kerberosIV/krb.h
20661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 ac_res=`eval echo '${'$as_ac_Header'}'`
20669 { echo "$as_me:$LINENO: result: $ac_res" >&5
20670 echo "${ECHO_T}$ac_res" >&6; }
20671 else
20672 # Is the header compilable?
20673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 $ac_includes_default
20682 #include <$ac_header>
20683 _ACEOF
20684 rm -f conftest.$ac_objext
20685 if { (ac_try="$ac_compile"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_compile") 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } && {
20698 test -z "$ac_c_werror_flag" ||
20699 test ! -s conftest.err
20700 } && test -s conftest.$ac_objext; then
20701 ac_header_compiler=yes
20702 else
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ac_header_compiler=no
20709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20711 echo "${ECHO_T}$ac_header_compiler" >&6; }
20713 # Is the header present?
20714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 #include <$ac_header>
20723 _ACEOF
20724 if { (ac_try="$ac_cpp conftest.$ac_ext"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } >/dev/null && {
20737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 }; then
20740 ac_header_preproc=yes
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_header_preproc=no
20748 rm -f conftest.err conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20750 echo "${ECHO_T}$ac_header_preproc" >&6; }
20752 # So? What about this header?
20753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20754 yes:no: )
20755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20759 ac_header_preproc=yes
20761 no:yes:* )
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20776 esac
20777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782 eval "$as_ac_Header=\$ac_header_preproc"
20784 ac_res=`eval echo '${'$as_ac_Header'}'`
20785 { echo "$as_me:$LINENO: result: $ac_res" >&5
20786 echo "${ECHO_T}$ac_res" >&6; }
20789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20790 cat >>confdefs.h <<_ACEOF
20791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20792 _ACEOF
20794 else
20796 for ac_header in kerberos/krb.h
20798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 ac_res=`eval echo '${'$as_ac_Header'}'`
20806 { echo "$as_me:$LINENO: result: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20808 else
20809 # Is the header compilable?
20810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h. */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 $ac_includes_default
20819 #include <$ac_header>
20820 _ACEOF
20821 rm -f conftest.$ac_objext
20822 if { (ac_try="$ac_compile"
20823 case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_compile") 2>conftest.er1
20829 ac_status=$?
20830 grep -v '^ *+' conftest.er1 >conftest.err
20831 rm -f conftest.er1
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } && {
20835 test -z "$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 } && test -s conftest.$ac_objext; then
20838 ac_header_compiler=yes
20839 else
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_header_compiler=no
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20848 echo "${ECHO_T}$ac_header_compiler" >&6; }
20850 # Is the header present?
20851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20853 cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h. */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <$ac_header>
20860 _ACEOF
20861 if { (ac_try="$ac_cpp conftest.$ac_ext"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20868 ac_status=$?
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -f conftest.er1
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } >/dev/null && {
20874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 }; then
20877 ac_header_preproc=yes
20878 else
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ac_header_preproc=no
20885 rm -f conftest.err conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20887 echo "${ECHO_T}$ac_header_preproc" >&6; }
20889 # So? What about this header?
20890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20891 yes:no: )
20892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20896 ac_header_preproc=yes
20898 no:yes:* )
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20913 esac
20914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919 eval "$as_ac_Header=\$ac_header_preproc"
20921 ac_res=`eval echo '${'$as_ac_Header'}'`
20922 { echo "$as_me:$LINENO: result: $ac_res" >&5
20923 echo "${ECHO_T}$ac_res" >&6; }
20926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20927 cat >>confdefs.h <<_ACEOF
20928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20929 _ACEOF
20933 done
20937 done
20941 done
20945 for ac_header in com_err.h
20947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 ac_res=`eval echo '${'$as_ac_Header'}'`
20955 { echo "$as_me:$LINENO: result: $ac_res" >&5
20956 echo "${ECHO_T}$ac_res" >&6; }
20957 else
20958 # Is the header compilable?
20959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 $ac_includes_default
20968 #include <$ac_header>
20969 _ACEOF
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_compile") 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } && {
20984 test -z "$ac_c_werror_flag" ||
20985 test ! -s conftest.err
20986 } && test -s conftest.$ac_objext; then
20987 ac_header_compiler=yes
20988 else
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_header_compiler=no
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20997 echo "${ECHO_T}$ac_header_compiler" >&6; }
20999 # Is the header present?
21000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <$ac_header>
21009 _ACEOF
21010 if { (ac_try="$ac_cpp conftest.$ac_ext"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21017 ac_status=$?
21018 grep -v '^ *+' conftest.er1 >conftest.err
21019 rm -f conftest.er1
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } >/dev/null && {
21023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21024 test ! -s conftest.err
21025 }; then
21026 ac_header_preproc=yes
21027 else
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ac_header_preproc=no
21034 rm -f conftest.err conftest.$ac_ext
21035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21036 echo "${ECHO_T}$ac_header_preproc" >&6; }
21038 # So? What about this header?
21039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21040 yes:no: )
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21045 ac_header_preproc=yes
21047 no:yes:* )
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21062 esac
21063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068 eval "$as_ac_Header=\$ac_header_preproc"
21070 ac_res=`eval echo '${'$as_ac_Header'}'`
21071 { echo "$as_me:$LINENO: result: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076 cat >>confdefs.h <<_ACEOF
21077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21078 _ACEOF
21082 done
21086 # Solaris requires -lintl if you want strerror (which calls dgettext)
21087 # to return localized messages.
21089 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21090 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21091 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 ac_check_lib_save_LIBS=$LIBS
21095 LIBS="-lintl $LIBS"
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 /* Override any GCC internal prototype to avoid an error.
21104 Use char because int might match the return type of a GCC
21105 builtin and then its argument prototype would still apply. */
21106 #ifdef __cplusplus
21107 extern "C"
21108 #endif
21109 char dgettext ();
21111 main ()
21113 return dgettext ();
21115 return 0;
21117 _ACEOF
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_link") 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest$ac_exeext &&
21135 $as_test_x conftest$ac_exeext; then
21136 ac_cv_lib_intl_dgettext=yes
21137 else
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 ac_cv_lib_intl_dgettext=no
21144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21145 conftest$ac_exeext conftest.$ac_ext
21146 LIBS=$ac_check_lib_save_LIBS
21148 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21149 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21150 if test $ac_cv_lib_intl_dgettext = yes; then
21151 cat >>confdefs.h <<_ACEOF
21152 #define HAVE_LIBINTL 1
21153 _ACEOF
21155 LIBS="-lintl $LIBS"
21160 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21161 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21162 if test "${emacs_cv_localtime_cache+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165 if test x$ac_cv_func_tzset = xyes; then
21166 if test "$cross_compiling" = yes; then
21167 # If we have tzset, assume the worst when cross-compiling.
21168 emacs_cv_localtime_cache=yes
21169 else
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h. */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 #include <time.h>
21177 extern char **environ;
21178 unset_TZ ()
21180 char **from, **to;
21181 for (to = from = environ; (*to = *from); from++)
21182 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21183 to++;
21185 char TZ_GMT0[] = "TZ=GMT0";
21186 char TZ_PST8[] = "TZ=PST8";
21187 main()
21189 time_t now = time ((time_t *) 0);
21190 int hour_GMT0, hour_unset;
21191 if (putenv (TZ_GMT0) != 0)
21192 exit (1);
21193 hour_GMT0 = localtime (&now)->tm_hour;
21194 unset_TZ ();
21195 hour_unset = localtime (&now)->tm_hour;
21196 if (putenv (TZ_PST8) != 0)
21197 exit (1);
21198 if (localtime (&now)->tm_hour == hour_GMT0)
21199 exit (1);
21200 unset_TZ ();
21201 if (localtime (&now)->tm_hour != hour_unset)
21202 exit (1);
21203 exit (0);
21205 _ACEOF
21206 rm -f conftest$ac_exeext
21207 if { (ac_try="$ac_link"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_link") 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21217 { (case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_try") 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 emacs_cv_localtime_cache=no
21227 else
21228 echo "$as_me: program exited with status $ac_status" >&5
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ( exit $ac_status )
21233 emacs_cv_localtime_cache=yes
21235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21239 else
21240 # If we lack tzset, report that localtime does not cache TZ,
21241 # since we can't invalidate the cache if we don't have tzset.
21242 emacs_cv_localtime_cache=no
21245 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21246 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21247 if test $emacs_cv_localtime_cache = yes; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define LOCALTIME_CACHE 1
21251 _ACEOF
21255 if test "x$HAVE_TIMEVAL" = xyes; then
21257 for ac_func in gettimeofday
21259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 else
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21273 #define $ac_func innocuous_$ac_func
21275 /* System header to define __stub macros and hopefully few prototypes,
21276 which can conflict with char $ac_func (); below.
21277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278 <limits.h> exists even on freestanding compilers. */
21280 #ifdef __STDC__
21281 # include <limits.h>
21282 #else
21283 # include <assert.h>
21284 #endif
21286 #undef $ac_func
21288 /* Override any GCC internal prototype to avoid an error.
21289 Use char because int might match the return type of a GCC
21290 builtin and then its argument prototype would still apply. */
21291 #ifdef __cplusplus
21292 extern "C"
21293 #endif
21294 char $ac_func ();
21295 /* The GNU C library defines this for functions which it implements
21296 to always fail with ENOSYS. Some functions are actually named
21297 something starting with __ and the normal name is an alias. */
21298 #if defined __stub_$ac_func || defined __stub___$ac_func
21299 choke me
21300 #endif
21303 main ()
21305 return $ac_func ();
21307 return 0;
21309 _ACEOF
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (ac_try="$ac_link"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315 esac
21316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_link") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest$ac_exeext &&
21327 $as_test_x conftest$ac_exeext; then
21328 eval "$as_ac_var=yes"
21329 else
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 eval "$as_ac_var=no"
21336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21337 conftest$ac_exeext conftest.$ac_ext
21339 ac_res=`eval echo '${'$as_ac_var'}'`
21340 { echo "$as_me:$LINENO: result: $ac_res" >&5
21341 echo "${ECHO_T}$ac_res" >&6; }
21342 if test `eval echo '${'$as_ac_var'}'` = yes; then
21343 cat >>confdefs.h <<_ACEOF
21344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21345 _ACEOF
21348 done
21350 if test $ac_cv_func_gettimeofday = yes; then
21351 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21352 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21353 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356 cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h. */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21363 #ifdef TIME_WITH_SYS_TIME
21364 #include <sys/time.h>
21365 #include <time.h>
21366 #else
21367 #ifdef HAVE_SYS_TIME_H
21368 #include <sys/time.h>
21369 #else
21370 #include <time.h>
21371 #endif
21372 #endif
21374 main ()
21376 struct timeval time;
21377 gettimeofday (&time, 0);
21379 return 0;
21381 _ACEOF
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 emacs_cv_gettimeofday_two_arguments=yes
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 emacs_cv_gettimeofday_two_arguments=no
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21410 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21411 if test $emacs_cv_gettimeofday_two_arguments = no; then
21413 cat >>confdefs.h <<\_ACEOF
21414 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21415 _ACEOF
21421 ok_so_far=yes
21422 { echo "$as_me:$LINENO: checking for socket" >&5
21423 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21424 if test "${ac_cv_func_socket+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427 cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h. */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21435 #define socket innocuous_socket
21437 /* System header to define __stub macros and hopefully few prototypes,
21438 which can conflict with char socket (); below.
21439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21440 <limits.h> exists even on freestanding compilers. */
21442 #ifdef __STDC__
21443 # include <limits.h>
21444 #else
21445 # include <assert.h>
21446 #endif
21448 #undef socket
21450 /* Override any GCC internal prototype to avoid an error.
21451 Use char because int might match the return type of a GCC
21452 builtin and then its argument prototype would still apply. */
21453 #ifdef __cplusplus
21454 extern "C"
21455 #endif
21456 char socket ();
21457 /* The GNU C library defines this for functions which it implements
21458 to always fail with ENOSYS. Some functions are actually named
21459 something starting with __ and the normal name is an alias. */
21460 #if defined __stub_socket || defined __stub___socket
21461 choke me
21462 #endif
21465 main ()
21467 return socket ();
21469 return 0;
21471 _ACEOF
21472 rm -f conftest.$ac_objext conftest$ac_exeext
21473 if { (ac_try="$ac_link"
21474 case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477 esac
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_link") 2>conftest.er1
21480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } && {
21486 test -z "$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 } && test -s conftest$ac_exeext &&
21489 $as_test_x conftest$ac_exeext; then
21490 ac_cv_func_socket=yes
21491 else
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_cv_func_socket=no
21498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21499 conftest$ac_exeext conftest.$ac_ext
21501 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21502 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21503 if test $ac_cv_func_socket = yes; then
21505 else
21506 ok_so_far=no
21509 if test $ok_so_far = yes; then
21510 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21511 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21512 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21513 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21517 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21518 else
21519 # Is the header compilable?
21520 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21521 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 $ac_includes_default
21529 #include <netinet/in.h>
21530 _ACEOF
21531 rm -f conftest.$ac_objext
21532 if { (ac_try="$ac_compile"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21536 esac
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_compile") 2>conftest.er1
21539 ac_status=$?
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } && {
21545 test -z "$ac_c_werror_flag" ||
21546 test ! -s conftest.err
21547 } && test -s conftest.$ac_objext; then
21548 ac_header_compiler=yes
21549 else
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_header_compiler=no
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21558 echo "${ECHO_T}$ac_header_compiler" >&6; }
21560 # Is the header present?
21561 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21562 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h. */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 #include <netinet/in.h>
21570 _ACEOF
21571 if { (ac_try="$ac_cpp conftest.$ac_ext"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21578 ac_status=$?
21579 grep -v '^ *+' conftest.er1 >conftest.err
21580 rm -f conftest.er1
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } >/dev/null && {
21584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21586 }; then
21587 ac_header_preproc=yes
21588 else
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_header_preproc=no
21595 rm -f conftest.err conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21597 echo "${ECHO_T}$ac_header_preproc" >&6; }
21599 # So? What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21601 yes:no: )
21602 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21603 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21605 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21606 ac_header_preproc=yes
21608 no:yes:* )
21609 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21610 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21612 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21614 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21616 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21618 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21620 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21623 esac
21624 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21625 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21626 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629 ac_cv_header_netinet_in_h=$ac_header_preproc
21631 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21632 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21635 if test $ac_cv_header_netinet_in_h = yes; then
21637 else
21638 ok_so_far=no
21643 if test $ok_so_far = yes; then
21644 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21645 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21646 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21647 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21651 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21652 else
21653 # Is the header compilable?
21654 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21655 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21656 cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h. */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 $ac_includes_default
21663 #include <arpa/inet.h>
21664 _ACEOF
21665 rm -f conftest.$ac_objext
21666 if { (ac_try="$ac_compile"
21667 case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_compile") 2>conftest.er1
21673 ac_status=$?
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } && {
21679 test -z "$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21681 } && test -s conftest.$ac_objext; then
21682 ac_header_compiler=yes
21683 else
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ac_header_compiler=no
21690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21692 echo "${ECHO_T}$ac_header_compiler" >&6; }
21694 # Is the header present?
21695 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21696 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <arpa/inet.h>
21704 _ACEOF
21705 if { (ac_try="$ac_cpp conftest.$ac_ext"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21712 ac_status=$?
21713 grep -v '^ *+' conftest.er1 >conftest.err
21714 rm -f conftest.er1
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } >/dev/null && {
21718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 }; then
21721 ac_header_preproc=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_header_preproc=no
21729 rm -f conftest.err conftest.$ac_ext
21730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21731 echo "${ECHO_T}$ac_header_preproc" >&6; }
21733 # So? What about this header?
21734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21735 yes:no: )
21736 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21737 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21739 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21740 ac_header_preproc=yes
21742 no:yes:* )
21743 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21744 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21746 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21748 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21750 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21752 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21754 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21757 esac
21758 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21759 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21760 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763 ac_cv_header_arpa_inet_h=$ac_header_preproc
21765 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21766 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21769 if test $ac_cv_header_arpa_inet_h = yes; then
21771 else
21772 ok_so_far=no
21777 if test $ok_so_far = yes; then
21779 cat >>confdefs.h <<\_ACEOF
21780 #define HAVE_INET_SOCKETS 1
21781 _ACEOF
21786 for ac_header in sys/ioctl.h
21788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 ac_res=`eval echo '${'$as_ac_Header'}'`
21796 { echo "$as_me:$LINENO: result: $ac_res" >&5
21797 echo "${ECHO_T}$ac_res" >&6; }
21798 else
21799 # Is the header compilable?
21800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21802 cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h. */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21808 $ac_includes_default
21809 #include <$ac_header>
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (ac_try="$ac_compile"
21813 case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21816 esac
21817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818 (eval "$ac_compile") 2>conftest.er1
21819 ac_status=$?
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } && {
21825 test -z "$ac_c_werror_flag" ||
21826 test ! -s conftest.err
21827 } && test -s conftest.$ac_objext; then
21828 ac_header_compiler=yes
21829 else
21830 echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 ac_header_compiler=no
21836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21838 echo "${ECHO_T}$ac_header_compiler" >&6; }
21840 # Is the header present?
21841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21843 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h. */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21849 #include <$ac_header>
21850 _ACEOF
21851 if { (ac_try="$ac_cpp conftest.$ac_ext"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21858 ac_status=$?
21859 grep -v '^ *+' conftest.er1 >conftest.err
21860 rm -f conftest.er1
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } >/dev/null && {
21864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 }; then
21867 ac_header_preproc=yes
21868 else
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 ac_header_preproc=no
21875 rm -f conftest.err conftest.$ac_ext
21876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21877 echo "${ECHO_T}$ac_header_preproc" >&6; }
21879 # So? What about this header?
21880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21881 yes:no: )
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21886 ac_header_preproc=yes
21888 no:yes:* )
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21903 esac
21904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 else
21909 eval "$as_ac_Header=\$ac_header_preproc"
21911 ac_res=`eval echo '${'$as_ac_Header'}'`
21912 { echo "$as_me:$LINENO: result: $ac_res" >&5
21913 echo "${ECHO_T}$ac_res" >&6; }
21916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21917 cat >>confdefs.h <<_ACEOF
21918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21919 _ACEOF
21923 done
21926 if test -f /usr/lpp/X11/bin/smt.exp; then
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_AIX_SMT_EXP 1
21930 _ACEOF
21934 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21935 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21936 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21937 { echo "$as_me:$LINENO: result: yes" >&5
21938 echo "${ECHO_T}yes" >&6; }
21940 cat >>confdefs.h <<\_ACEOF
21941 #define HAVE_DEV_PTMX 1
21942 _ACEOF
21944 else
21945 { echo "$as_me:$LINENO: result: no" >&5
21946 echo "${ECHO_T}no" >&6; }
21949 { echo "$as_me:$LINENO: checking for pid_t" >&5
21950 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21951 if test "${ac_cv_type_pid_t+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h. */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 $ac_includes_default
21961 typedef pid_t ac__type_new_;
21963 main ()
21965 if ((ac__type_new_ *) 0)
21966 return 0;
21967 if (sizeof (ac__type_new_))
21968 return 0;
21970 return 0;
21972 _ACEOF
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21981 ac_status=$?
21982 grep -v '^ *+' conftest.er1 >conftest.err
21983 rm -f conftest.er1
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest.$ac_objext; then
21990 ac_cv_type_pid_t=yes
21991 else
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_cv_type_pid_t=no
21998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22001 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22002 if test $ac_cv_type_pid_t = yes; then
22004 else
22006 cat >>confdefs.h <<_ACEOF
22007 #define pid_t int
22008 _ACEOF
22013 for ac_header in vfork.h
22015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 ac_res=`eval echo '${'$as_ac_Header'}'`
22023 { echo "$as_me:$LINENO: result: $ac_res" >&5
22024 echo "${ECHO_T}$ac_res" >&6; }
22025 else
22026 # Is the header compilable?
22027 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22029 cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h. */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22035 $ac_includes_default
22036 #include <$ac_header>
22037 _ACEOF
22038 rm -f conftest.$ac_objext
22039 if { (ac_try="$ac_compile"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_compile") 2>conftest.er1
22046 ac_status=$?
22047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest.$ac_objext; then
22055 ac_header_compiler=yes
22056 else
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ac_header_compiler=no
22063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22065 echo "${ECHO_T}$ac_header_compiler" >&6; }
22067 # Is the header present?
22068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #include <$ac_header>
22077 _ACEOF
22078 if { (ac_try="$ac_cpp conftest.$ac_ext"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } >/dev/null && {
22091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 }; then
22094 ac_header_preproc=yes
22095 else
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_preproc=no
22102 rm -f conftest.err conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22104 echo "${ECHO_T}$ac_header_preproc" >&6; }
22106 # So? What about this header?
22107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22108 yes:no: )
22109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22113 ac_header_preproc=yes
22115 no:yes:* )
22116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22130 esac
22131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 else
22136 eval "$as_ac_Header=\$ac_header_preproc"
22138 ac_res=`eval echo '${'$as_ac_Header'}'`
22139 { echo "$as_me:$LINENO: result: $ac_res" >&5
22140 echo "${ECHO_T}$ac_res" >&6; }
22143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22144 cat >>confdefs.h <<_ACEOF
22145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22146 _ACEOF
22150 done
22154 for ac_func in fork vfork
22156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22162 cat >conftest.$ac_ext <<_ACEOF
22163 /* confdefs.h. */
22164 _ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h. */
22168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22170 #define $ac_func innocuous_$ac_func
22172 /* System header to define __stub macros and hopefully few prototypes,
22173 which can conflict with char $ac_func (); below.
22174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22175 <limits.h> exists even on freestanding compilers. */
22177 #ifdef __STDC__
22178 # include <limits.h>
22179 #else
22180 # include <assert.h>
22181 #endif
22183 #undef $ac_func
22185 /* Override any GCC internal prototype to avoid an error.
22186 Use char because int might match the return type of a GCC
22187 builtin and then its argument prototype would still apply. */
22188 #ifdef __cplusplus
22189 extern "C"
22190 #endif
22191 char $ac_func ();
22192 /* The GNU C library defines this for functions which it implements
22193 to always fail with ENOSYS. Some functions are actually named
22194 something starting with __ and the normal name is an alias. */
22195 #if defined __stub_$ac_func || defined __stub___$ac_func
22196 choke me
22197 #endif
22200 main ()
22202 return $ac_func ();
22204 return 0;
22206 _ACEOF
22207 rm -f conftest.$ac_objext conftest$ac_exeext
22208 if { (ac_try="$ac_link"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_link") 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest$ac_exeext &&
22224 $as_test_x conftest$ac_exeext; then
22225 eval "$as_ac_var=yes"
22226 else
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 eval "$as_ac_var=no"
22233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22234 conftest$ac_exeext conftest.$ac_ext
22236 ac_res=`eval echo '${'$as_ac_var'}'`
22237 { echo "$as_me:$LINENO: result: $ac_res" >&5
22238 echo "${ECHO_T}$ac_res" >&6; }
22239 if test `eval echo '${'$as_ac_var'}'` = yes; then
22240 cat >>confdefs.h <<_ACEOF
22241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22242 _ACEOF
22245 done
22247 if test "x$ac_cv_func_fork" = xyes; then
22248 { echo "$as_me:$LINENO: checking for working fork" >&5
22249 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22250 if test "${ac_cv_func_fork_works+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 if test "$cross_compiling" = yes; then
22254 ac_cv_func_fork_works=cross
22255 else
22256 cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h. */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 $ac_includes_default
22264 main ()
22267 /* By Ruediger Kuhlmann. */
22268 return fork () < 0;
22271 return 0;
22273 _ACEOF
22274 rm -f conftest$ac_exeext
22275 if { (ac_try="$ac_link"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_link") 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22285 { (case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_try") 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; }; then
22294 ac_cv_func_fork_works=yes
22295 else
22296 echo "$as_me: program exited with status $ac_status" >&5
22297 echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ( exit $ac_status )
22301 ac_cv_func_fork_works=no
22303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22308 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22309 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22311 else
22312 ac_cv_func_fork_works=$ac_cv_func_fork
22314 if test "x$ac_cv_func_fork_works" = xcross; then
22315 case $host in
22316 *-*-amigaos* | *-*-msdosdjgpp*)
22317 # Override, as these systems have only a dummy fork() stub
22318 ac_cv_func_fork_works=no
22321 ac_cv_func_fork_works=yes
22323 esac
22324 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22325 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22327 ac_cv_func_vfork_works=$ac_cv_func_vfork
22328 if test "x$ac_cv_func_vfork" = xyes; then
22329 { echo "$as_me:$LINENO: checking for working vfork" >&5
22330 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22331 if test "${ac_cv_func_vfork_works+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334 if test "$cross_compiling" = yes; then
22335 ac_cv_func_vfork_works=cross
22336 else
22337 cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h. */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 /* Thanks to Paul Eggert for this test. */
22344 $ac_includes_default
22345 #include <sys/wait.h>
22346 #ifdef HAVE_VFORK_H
22347 # include <vfork.h>
22348 #endif
22349 /* On some sparc systems, changes by the child to local and incoming
22350 argument registers are propagated back to the parent. The compiler
22351 is told about this with #include <vfork.h>, but some compilers
22352 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22353 static variable whose address is put into a register that is
22354 clobbered by the vfork. */
22355 static void
22356 #ifdef __cplusplus
22357 sparc_address_test (int arg)
22358 # else
22359 sparc_address_test (arg) int arg;
22360 #endif
22362 static pid_t child;
22363 if (!child) {
22364 child = vfork ();
22365 if (child < 0) {
22366 perror ("vfork");
22367 _exit(2);
22369 if (!child) {
22370 arg = getpid();
22371 write(-1, "", 0);
22372 _exit (arg);
22378 main ()
22380 pid_t parent = getpid ();
22381 pid_t child;
22383 sparc_address_test (0);
22385 child = vfork ();
22387 if (child == 0) {
22388 /* Here is another test for sparc vfork register problems. This
22389 test uses lots of local variables, at least as many local
22390 variables as main has allocated so far including compiler
22391 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22392 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22393 reuse the register of parent for one of the local variables,
22394 since it will think that parent can't possibly be used any more
22395 in this routine. Assigning to the local variable will thus
22396 munge parent in the parent process. */
22397 pid_t
22398 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22399 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22400 /* Convince the compiler that p..p7 are live; otherwise, it might
22401 use the same hardware register for all 8 local variables. */
22402 if (p != p1 || p != p2 || p != p3 || p != p4
22403 || p != p5 || p != p6 || p != p7)
22404 _exit(1);
22406 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22407 from child file descriptors. If the child closes a descriptor
22408 before it execs or exits, this munges the parent's descriptor
22409 as well. Test for this by closing stdout in the child. */
22410 _exit(close(fileno(stdout)) != 0);
22411 } else {
22412 int status;
22413 struct stat st;
22415 while (wait(&status) != child)
22417 return (
22418 /* Was there some problem with vforking? */
22419 child < 0
22421 /* Did the child fail? (This shouldn't happen.) */
22422 || status
22424 /* Did the vfork/compiler bug occur? */
22425 || parent != getpid()
22427 /* Did the file descriptor bug occur? */
22428 || fstat(fileno(stdout), &st) != 0
22432 _ACEOF
22433 rm -f conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_link") 2>&5
22441 ac_status=$?
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_cv_func_vfork_works=yes
22454 else
22455 echo "$as_me: program exited with status $ac_status" >&5
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ( exit $ac_status )
22460 ac_cv_func_vfork_works=no
22462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22468 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22471 if test "x$ac_cv_func_fork_works" = xcross; then
22472 ac_cv_func_vfork_works=$ac_cv_func_vfork
22473 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22474 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22477 if test "x$ac_cv_func_vfork_works" = xyes; then
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_WORKING_VFORK 1
22481 _ACEOF
22483 else
22485 cat >>confdefs.h <<\_ACEOF
22486 #define vfork fork
22487 _ACEOF
22490 if test "x$ac_cv_func_fork_works" = xyes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_WORKING_FORK 1
22494 _ACEOF
22499 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22500 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22501 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h. */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include <langinfo.h>
22512 main ()
22514 char* cs = nl_langinfo(CODESET);
22516 return 0;
22518 _ACEOF
22519 rm -f conftest.$ac_objext conftest$ac_exeext
22520 if { (ac_try="$ac_link"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_link") 2>conftest.er1
22527 ac_status=$?
22528 grep -v '^ *+' conftest.er1 >conftest.err
22529 rm -f conftest.er1
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && {
22533 test -z "$ac_c_werror_flag" ||
22534 test ! -s conftest.err
22535 } && test -s conftest$ac_exeext &&
22536 $as_test_x conftest$ac_exeext; then
22537 emacs_cv_langinfo_codeset=yes
22538 else
22539 echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 emacs_cv_langinfo_codeset=no
22545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22546 conftest$ac_exeext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22550 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22551 if test $emacs_cv_langinfo_codeset = yes; then
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_LANGINFO_CODESET 1
22555 _ACEOF
22559 { echo "$as_me:$LINENO: checking for size_t" >&5
22560 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22561 if test "${ac_cv_type_size_t+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 typedef size_t ac__type_new_;
22573 main ()
22575 if ((ac__type_new_ *) 0)
22576 return 0;
22577 if (sizeof (ac__type_new_))
22578 return 0;
22580 return 0;
22582 _ACEOF
22583 rm -f conftest.$ac_objext
22584 if { (ac_try="$ac_compile"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_compile") 2>conftest.er1
22591 ac_status=$?
22592 grep -v '^ *+' conftest.er1 >conftest.err
22593 rm -f conftest.er1
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } && {
22597 test -z "$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 } && test -s conftest.$ac_objext; then
22600 ac_cv_type_size_t=yes
22601 else
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_cv_type_size_t=no
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22611 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22612 if test $ac_cv_type_size_t = yes; then
22614 cat >>confdefs.h <<_ACEOF
22615 #define HAVE_SIZE_T 1
22616 _ACEOF
22622 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22623 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22624 if test "${ac_cv_type_mbstate_t+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627 cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h. */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 $ac_includes_default
22634 # include <wchar.h>
22636 main ()
22638 mbstate_t x; return sizeof x;
22640 return 0;
22642 _ACEOF
22643 rm -f conftest.$ac_objext
22644 if { (ac_try="$ac_compile"
22645 case "(($ac_try" in
22646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647 *) ac_try_echo=$ac_try;;
22648 esac
22649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650 (eval "$ac_compile") 2>conftest.er1
22651 ac_status=$?
22652 grep -v '^ *+' conftest.er1 >conftest.err
22653 rm -f conftest.er1
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && {
22657 test -z "$ac_c_werror_flag" ||
22658 test ! -s conftest.err
22659 } && test -s conftest.$ac_objext; then
22660 ac_cv_type_mbstate_t=yes
22661 else
22662 echo "$as_me: failed program was:" >&5
22663 sed 's/^/| /' conftest.$ac_ext >&5
22665 ac_cv_type_mbstate_t=no
22668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22671 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22672 if test $ac_cv_type_mbstate_t = yes; then
22674 cat >>confdefs.h <<\_ACEOF
22675 #define HAVE_MBSTATE_T 1
22676 _ACEOF
22678 else
22680 cat >>confdefs.h <<\_ACEOF
22681 #define mbstate_t int
22682 _ACEOF
22686 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22687 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22688 if test "${emacs_cv_c_restrict+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22690 else
22691 cat >conftest.$ac_ext <<_ACEOF
22692 /* confdefs.h. */
22693 _ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 void fred (int *restrict x);
22699 main ()
22703 return 0;
22705 _ACEOF
22706 rm -f conftest.$ac_objext
22707 if { (ac_try="$ac_compile"
22708 case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711 esac
22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22714 ac_status=$?
22715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22723 emacs_cv_c_restrict=yes
22724 else
22725 echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h. */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 void fred (int *__restrict x);
22736 main ()
22740 return 0;
22742 _ACEOF
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22748 esac
22749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750 (eval "$ac_compile") 2>conftest.er1
22751 ac_status=$?
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } && {
22757 test -z "$ac_c_werror_flag" ||
22758 test ! -s conftest.err
22759 } && test -s conftest.$ac_objext; then
22760 emacs_cv_c_restrict=__restrict
22761 else
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 emacs_cv_c_restrict=no
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22774 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22775 case "$emacs_cv_c_restrict" in
22776 yes) emacs_restrict=restrict;;
22777 no) emacs_restrict="";;
22778 *) emacs_restrict="$emacs_cv_c_restrict";;
22779 esac
22780 if test "$emacs_restrict" != __restrict; then
22782 cat >>confdefs.h <<_ACEOF
22783 #define __restrict $emacs_restrict
22784 _ACEOF
22788 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22789 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22790 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793 cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h. */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 void fred (int x[__restrict]);
22801 main ()
22805 return 0;
22807 _ACEOF
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22816 ac_status=$?
22817 grep -v '^ *+' conftest.er1 >conftest.err
22818 rm -f conftest.er1
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 emacs_cv_c_restrict_arr=yes
22826 else
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22830 emacs_cv_c_restrict_arr=no
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22836 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22837 if test "$emacs_cv_c_restrict_arr" = yes; then
22839 cat >>confdefs.h <<\_ACEOF
22840 #define __restrict_arr __restrict
22841 _ACEOF
22847 # Set up the CFLAGS for real compilation, so we can substitute it.
22848 CFLAGS="$REAL_CFLAGS"
22849 CPPFLAGS="$REAL_CPPFLAGS"
22851 #### Find out which version of Emacs this is.
22852 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22853 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22854 if test x"${version}" = x; then
22855 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22856 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22857 { (exit 1); exit 1; }; }
22860 ### Specify what sort of things we'll be editing into Makefile and config.h.
22861 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22897 cat >>confdefs.h <<_ACEOF
22898 #define EMACS_CONFIGURATION "${canonical}"
22899 _ACEOF
22902 cat >>confdefs.h <<_ACEOF
22903 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22904 _ACEOF
22907 cat >>confdefs.h <<_ACEOF
22908 #define config_machfile "${machfile}"
22909 _ACEOF
22912 cat >>confdefs.h <<_ACEOF
22913 #define config_opsysfile "${opsysfile}"
22914 _ACEOF
22917 cat >>confdefs.h <<_ACEOF
22918 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22919 _ACEOF
22922 cat >>confdefs.h <<_ACEOF
22923 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22924 _ACEOF
22927 cat >>confdefs.h <<_ACEOF
22928 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22929 _ACEOF
22932 cat >>confdefs.h <<_ACEOF
22933 #define UNEXEC_SRC ${UNEXEC_SRC}
22934 _ACEOF
22937 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22939 cat >>confdefs.h <<\_ACEOF
22940 #define HAVE_X_WINDOWS 1
22941 _ACEOF
22944 if test "${USE_X_TOOLKIT}" != "none" ; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define USE_X_TOOLKIT 1
22948 _ACEOF
22951 if test "${HAVE_X11}" = "yes" ; then
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_X11 1
22955 _ACEOF
22958 if test "${HAVE_XFREE386}" = "yes" ; then
22960 cat >>confdefs.h <<\_ACEOF
22961 #define HAVE_XFREE386 1
22962 _ACEOF
22965 if test "${HAVE_MENUS}" = "yes" ; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_MENUS 1
22969 _ACEOF
22972 if test "${GNU_MALLOC}" = "yes" ; then
22974 cat >>confdefs.h <<\_ACEOF
22975 #define GNU_MALLOC 1
22976 _ACEOF
22979 if test "${REL_ALLOC}" = "yes" ; then
22981 cat >>confdefs.h <<\_ACEOF
22982 #define REL_ALLOC 1
22983 _ACEOF
22991 #### Report on what we decided to do.
22992 #### Report GTK as a toolkit, even if it doesn't use Xt.
22993 #### It makes printing result more understandable as using GTK sets
22994 #### toolkit_scroll_bars to yes by default.
22995 if test "${HAVE_GTK}" = "yes"; then
22996 USE_X_TOOLKIT=GTK
22999 echo "
23000 Configured for \`${canonical}'.
23002 Where should the build process find the source code? ${srcdir}
23003 What operating system and machine description files should Emacs use?
23004 \`${opsysfile}' and \`${machfile}'
23005 What compiler should emacs be built with? ${CC} ${CFLAGS}
23006 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23007 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23008 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23009 What window system should Emacs use? ${window_system}
23010 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23012 if test -n "${x_includes}"; then
23013 echo " Where do we find X Windows header files? ${x_includes}"
23014 else
23015 echo " Where do we find X Windows header files? Standard dirs"
23017 if test -n "${x_libraries}"; then
23018 echo " Where do we find X Windows libraries? ${x_libraries}"
23019 else
23020 echo " Where do we find X Windows libraries? Standard dirs"
23023 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23024 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23025 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23026 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23027 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23028 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23029 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23030 echo
23032 if test $USE_XASSERTS = yes; then
23033 echo " Compiling with asserts turned on."
23034 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23035 echo
23040 # Remove any trailing slashes in these variables.
23041 test "${prefix}" != NONE &&
23042 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23043 test "${exec_prefix}" != NONE &&
23044 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23046 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23047 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23048 ## from Makefile.c can correctly provide the arg `-traditional' to the
23049 ## C preprocessor.
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 yes..yes
23058 _ACEOF
23059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23060 $EGREP "yes..yes" >/dev/null 2>&1; then
23061 CPP_NEED_TRADITIONAL=no
23062 else
23063 CPP_NEED_TRADITIONAL=yes
23065 rm -f conftest*
23068 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23070 ac_config_commands="$ac_config_commands default"
23072 cat >confcache <<\_ACEOF
23073 # This file is a shell script that caches the results of configure
23074 # tests run on this system so they can be shared between configure
23075 # scripts and configure runs, see configure's option --config-cache.
23076 # It is not useful on other systems. If it contains results you don't
23077 # want to keep, you may remove or edit it.
23079 # config.status only pays attention to the cache file if you give it
23080 # the --recheck option to rerun configure.
23082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23084 # following values.
23086 _ACEOF
23088 # The following way of writing the cache mishandles newlines in values,
23089 # but we know of no workaround that is simple, portable, and efficient.
23090 # So, we kill variables containing newlines.
23091 # Ultrix sh set writes to stderr and can't be redirected directly,
23092 # and sets the high bit in the cache file unless we assign to the vars.
23094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23095 eval ac_val=\$$ac_var
23096 case $ac_val in #(
23097 *${as_nl}*)
23098 case $ac_var in #(
23099 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23100 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23101 esac
23102 case $ac_var in #(
23103 _ | IFS | as_nl) ;; #(
23104 *) $as_unset $ac_var ;;
23105 esac ;;
23106 esac
23107 done
23109 (set) 2>&1 |
23110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23111 *${as_nl}ac_space=\ *)
23112 # `set' does not quote correctly, so add quotes (double-quote
23113 # substitution turns \\\\ into \\, and sed turns \\ into \).
23114 sed -n \
23115 "s/'/'\\\\''/g;
23116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23117 ;; #(
23119 # `set' quotes correctly as required by POSIX, so do not add quotes.
23120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23122 esac |
23123 sort
23125 sed '
23126 /^ac_cv_env_/b end
23127 t clear
23128 :clear
23129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23130 t end
23131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23132 :end' >>confcache
23133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23134 if test -w "$cache_file"; then
23135 test "x$cache_file" != "x/dev/null" &&
23136 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23137 echo "$as_me: updating cache $cache_file" >&6;}
23138 cat confcache >$cache_file
23139 else
23140 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23141 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23144 rm -f confcache
23146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23147 # Let make expand exec_prefix.
23148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23150 DEFS=-DHAVE_CONFIG_H
23152 ac_libobjs=
23153 ac_ltlibobjs=
23154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23155 # 1. Remove the extension, and $U if already installed.
23156 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23157 ac_i=`echo "$ac_i" | sed "$ac_script"`
23158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23159 # will be set to the directory where LIBOBJS objects are built.
23160 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23161 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23162 done
23163 LIBOBJS=$ac_libobjs
23165 LTLIBOBJS=$ac_ltlibobjs
23169 : ${CONFIG_STATUS=./config.status}
23170 ac_clean_files_save=$ac_clean_files
23171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23172 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23173 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23174 cat >$CONFIG_STATUS <<_ACEOF
23175 #! $SHELL
23176 # Generated by $as_me.
23177 # Run this file to recreate the current configuration.
23178 # Compiler output produced by configure, useful for debugging
23179 # configure, is in config.log if it exists.
23181 debug=false
23182 ac_cs_recheck=false
23183 ac_cs_silent=false
23184 SHELL=\${CONFIG_SHELL-$SHELL}
23185 _ACEOF
23187 cat >>$CONFIG_STATUS <<\_ACEOF
23188 ## --------------------- ##
23189 ## M4sh Initialization. ##
23190 ## --------------------- ##
23192 # Be more Bourne compatible
23193 DUALCASE=1; export DUALCASE # for MKS sh
23194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23195 emulate sh
23196 NULLCMD=:
23197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23198 # is contrary to our usage. Disable this feature.
23199 alias -g '${1+"$@"}'='"$@"'
23200 setopt NO_GLOB_SUBST
23201 else
23202 case `(set -o) 2>/dev/null` in
23203 *posix*) set -o posix ;;
23204 esac
23211 # PATH needs CR
23212 # Avoid depending upon Character Ranges.
23213 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23214 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23215 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23216 as_cr_digits='0123456789'
23217 as_cr_alnum=$as_cr_Letters$as_cr_digits
23219 # The user is always right.
23220 if test "${PATH_SEPARATOR+set}" != set; then
23221 echo "#! /bin/sh" >conf$$.sh
23222 echo "exit 0" >>conf$$.sh
23223 chmod +x conf$$.sh
23224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23225 PATH_SEPARATOR=';'
23226 else
23227 PATH_SEPARATOR=:
23229 rm -f conf$$.sh
23232 # Support unset when possible.
23233 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23234 as_unset=unset
23235 else
23236 as_unset=false
23240 # IFS
23241 # We need space, tab and new line, in precisely that order. Quoting is
23242 # there to prevent editors from complaining about space-tab.
23243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23244 # splitting by setting IFS to empty value.)
23245 as_nl='
23247 IFS=" "" $as_nl"
23249 # Find who we are. Look in the path if we contain no directory separator.
23250 case $0 in
23251 *[\\/]* ) as_myself=$0 ;;
23252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23253 for as_dir in $PATH
23255 IFS=$as_save_IFS
23256 test -z "$as_dir" && as_dir=.
23257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23258 done
23259 IFS=$as_save_IFS
23262 esac
23263 # We did not find ourselves, most probably we were run as `sh COMMAND'
23264 # in which case we are not to be found in the path.
23265 if test "x$as_myself" = x; then
23266 as_myself=$0
23268 if test ! -f "$as_myself"; then
23269 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23270 { (exit 1); exit 1; }
23273 # Work around bugs in pre-3.0 UWIN ksh.
23274 for as_var in ENV MAIL MAILPATH
23275 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23276 done
23277 PS1='$ '
23278 PS2='> '
23279 PS4='+ '
23281 # NLS nuisances.
23282 for as_var in \
23283 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23284 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23285 LC_TELEPHONE LC_TIME
23287 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23288 eval $as_var=C; export $as_var
23289 else
23290 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23292 done
23294 # Required to use basename.
23295 if expr a : '\(a\)' >/dev/null 2>&1 &&
23296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23297 as_expr=expr
23298 else
23299 as_expr=false
23302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23303 as_basename=basename
23304 else
23305 as_basename=false
23309 # Name of the executable.
23310 as_me=`$as_basename -- "$0" ||
23311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23312 X"$0" : 'X\(//\)$' \| \
23313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23314 echo X/"$0" |
23315 sed '/^.*\/\([^/][^/]*\)\/*$/{
23316 s//\1/
23319 /^X\/\(\/\/\)$/{
23320 s//\1/
23323 /^X\/\(\/\).*/{
23324 s//\1/
23327 s/.*/./; q'`
23329 # CDPATH.
23330 $as_unset CDPATH
23334 as_lineno_1=$LINENO
23335 as_lineno_2=$LINENO
23336 test "x$as_lineno_1" != "x$as_lineno_2" &&
23337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23340 # uniformly replaced by the line number. The first 'sed' inserts a
23341 # line-number line after each line using $LINENO; the second 'sed'
23342 # does the real work. The second script uses 'N' to pair each
23343 # line-number line with the line containing $LINENO, and appends
23344 # trailing '-' during substitution so that $LINENO is not a special
23345 # case at line end.
23346 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23347 # scripts with optimization help from Paolo Bonzini. Blame Lee
23348 # E. McMahon (1931-1989) for sed's syntax. :-)
23349 sed -n '
23351 /[$]LINENO/=
23352 ' <$as_myself |
23353 sed '
23354 s/[$]LINENO.*/&-/
23355 t lineno
23357 :lineno
23359 :loop
23360 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23361 t loop
23362 s/-\n.*//
23363 ' >$as_me.lineno &&
23364 chmod +x "$as_me.lineno" ||
23365 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23366 { (exit 1); exit 1; }; }
23368 # Don't try to exec as it changes $[0], causing all sort of problems
23369 # (the dirname of $[0] is not the place where we might find the
23370 # original and so on. Autoconf is especially sensitive to this).
23371 . "./$as_me.lineno"
23372 # Exit status is that of the last command.
23373 exit
23377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23378 as_dirname=dirname
23379 else
23380 as_dirname=false
23383 ECHO_C= ECHO_N= ECHO_T=
23384 case `echo -n x` in
23385 -n*)
23386 case `echo 'x\c'` in
23387 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23388 *) ECHO_C='\c';;
23389 esac;;
23391 ECHO_N='-n';;
23392 esac
23394 if expr a : '\(a\)' >/dev/null 2>&1 &&
23395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23396 as_expr=expr
23397 else
23398 as_expr=false
23401 rm -f conf$$ conf$$.exe conf$$.file
23402 if test -d conf$$.dir; then
23403 rm -f conf$$.dir/conf$$.file
23404 else
23405 rm -f conf$$.dir
23406 mkdir conf$$.dir
23408 echo >conf$$.file
23409 if ln -s conf$$.file conf$$ 2>/dev/null; then
23410 as_ln_s='ln -s'
23411 # ... but there are two gotchas:
23412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23414 # In both cases, we have to default to `cp -p'.
23415 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23416 as_ln_s='cp -p'
23417 elif ln conf$$.file conf$$ 2>/dev/null; then
23418 as_ln_s=ln
23419 else
23420 as_ln_s='cp -p'
23422 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23423 rmdir conf$$.dir 2>/dev/null
23425 if mkdir -p . 2>/dev/null; then
23426 as_mkdir_p=:
23427 else
23428 test -d ./-p && rmdir ./-p
23429 as_mkdir_p=false
23432 if test -x / >/dev/null 2>&1; then
23433 as_test_x='test -x'
23434 else
23435 if ls -dL / >/dev/null 2>&1; then
23436 as_ls_L_option=L
23437 else
23438 as_ls_L_option=
23440 as_test_x='
23441 eval sh -c '\''
23442 if test -d "$1"; then
23443 test -d "$1/.";
23444 else
23445 case $1 in
23446 -*)set "./$1";;
23447 esac;
23448 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23449 ???[sx]*):;;*)false;;esac;fi
23450 '\'' sh
23453 as_executable_p=$as_test_x
23455 # Sed expression to map a string onto a valid CPP name.
23456 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23458 # Sed expression to map a string onto a valid variable name.
23459 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23462 exec 6>&1
23464 # Save the log message, to keep $[0] and so on meaningful, and to
23465 # report actual input values of CONFIG_FILES etc. instead of their
23466 # values after options handling.
23467 ac_log="
23468 This file was extended by $as_me, which was
23469 generated by GNU Autoconf 2.61. Invocation command line was
23471 CONFIG_FILES = $CONFIG_FILES
23472 CONFIG_HEADERS = $CONFIG_HEADERS
23473 CONFIG_LINKS = $CONFIG_LINKS
23474 CONFIG_COMMANDS = $CONFIG_COMMANDS
23475 $ $0 $@
23477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23480 _ACEOF
23482 cat >>$CONFIG_STATUS <<_ACEOF
23483 # Files that config.status was made for.
23484 config_files="$ac_config_files"
23485 config_headers="$ac_config_headers"
23486 config_commands="$ac_config_commands"
23488 _ACEOF
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23491 ac_cs_usage="\
23492 \`$as_me' instantiates files from templates according to the
23493 current configuration.
23495 Usage: $0 [OPTIONS] [FILE]...
23497 -h, --help print this help, then exit
23498 -V, --version print version number and configuration settings, then exit
23499 -q, --quiet do not print progress messages
23500 -d, --debug don't remove temporary files
23501 --recheck update $as_me by reconfiguring in the same conditions
23502 --file=FILE[:TEMPLATE]
23503 instantiate the configuration file FILE
23504 --header=FILE[:TEMPLATE]
23505 instantiate the configuration header FILE
23507 Configuration files:
23508 $config_files
23510 Configuration headers:
23511 $config_headers
23513 Configuration commands:
23514 $config_commands
23516 Report bugs to <bug-autoconf@gnu.org>."
23518 _ACEOF
23519 cat >>$CONFIG_STATUS <<_ACEOF
23520 ac_cs_version="\\
23521 config.status
23522 configured by $0, generated by GNU Autoconf 2.61,
23523 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23525 Copyright (C) 2006 Free Software Foundation, Inc.
23526 This config.status script is free software; the Free Software Foundation
23527 gives unlimited permission to copy, distribute and modify it."
23529 ac_pwd='$ac_pwd'
23530 srcdir='$srcdir'
23531 INSTALL='$INSTALL'
23532 _ACEOF
23534 cat >>$CONFIG_STATUS <<\_ACEOF
23535 # If no file are specified by the user, then we need to provide default
23536 # value. By we need to know if files were specified by the user.
23537 ac_need_defaults=:
23538 while test $# != 0
23540 case $1 in
23541 --*=*)
23542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23543 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23544 ac_shift=:
23547 ac_option=$1
23548 ac_optarg=$2
23549 ac_shift=shift
23551 esac
23553 case $ac_option in
23554 # Handling of the options.
23555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23556 ac_cs_recheck=: ;;
23557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23558 echo "$ac_cs_version"; exit ;;
23559 --debug | --debu | --deb | --de | --d | -d )
23560 debug=: ;;
23561 --file | --fil | --fi | --f )
23562 $ac_shift
23563 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23564 ac_need_defaults=false;;
23565 --header | --heade | --head | --hea )
23566 $ac_shift
23567 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23568 ac_need_defaults=false;;
23569 --he | --h)
23570 # Conflict between --help and --header
23571 { echo "$as_me: error: ambiguous option: $1
23572 Try \`$0 --help' for more information." >&2
23573 { (exit 1); exit 1; }; };;
23574 --help | --hel | -h )
23575 echo "$ac_cs_usage"; exit ;;
23576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23577 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23578 ac_cs_silent=: ;;
23580 # This is an error.
23581 -*) { echo "$as_me: error: unrecognized option: $1
23582 Try \`$0 --help' for more information." >&2
23583 { (exit 1); exit 1; }; } ;;
23585 *) ac_config_targets="$ac_config_targets $1"
23586 ac_need_defaults=false ;;
23588 esac
23589 shift
23590 done
23592 ac_configure_extra_args=
23594 if $ac_cs_silent; then
23595 exec 6>/dev/null
23596 ac_configure_extra_args="$ac_configure_extra_args --silent"
23599 _ACEOF
23600 cat >>$CONFIG_STATUS <<_ACEOF
23601 if \$ac_cs_recheck; then
23602 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23603 CONFIG_SHELL=$SHELL
23604 export CONFIG_SHELL
23605 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23608 _ACEOF
23609 cat >>$CONFIG_STATUS <<\_ACEOF
23610 exec 5>>config.log
23612 echo
23613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23614 ## Running $as_me. ##
23615 _ASBOX
23616 echo "$ac_log"
23617 } >&5
23619 _ACEOF
23620 cat >>$CONFIG_STATUS <<_ACEOF
23622 # INIT-COMMANDS
23624 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23626 _ACEOF
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23630 # Handling of arguments.
23631 for ac_config_target in $ac_config_targets
23633 case $ac_config_target in
23634 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23635 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23636 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23637 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23638 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23639 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23640 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23641 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23642 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23643 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23644 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23645 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23647 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23648 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23649 { (exit 1); exit 1; }; };;
23650 esac
23651 done
23654 # If the user did not use the arguments to specify the items to instantiate,
23655 # then the envvar interface is used. Set only those that are not.
23656 # We use the long form for the default assignment because of an extremely
23657 # bizarre bug on SunOS 4.1.3.
23658 if $ac_need_defaults; then
23659 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23660 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23664 # Have a temporary directory for convenience. Make it in the build tree
23665 # simply because there is no reason against having it here, and in addition,
23666 # creating and moving files from /tmp can sometimes cause problems.
23667 # Hook for its removal unless debugging.
23668 # Note that there is a small window in which the directory will not be cleaned:
23669 # after its creation but before its name has been assigned to `$tmp'.
23670 $debug ||
23672 tmp=
23673 trap 'exit_status=$?
23674 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23676 trap '{ (exit 1); exit 1; }' 1 2 13 15
23678 # Create a (secure) tmp directory for tmp files.
23681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23682 test -n "$tmp" && test -d "$tmp"
23683 } ||
23685 tmp=./conf$$-$RANDOM
23686 (umask 077 && mkdir "$tmp")
23687 } ||
23689 echo "$me: cannot create a temporary directory in ." >&2
23690 { (exit 1); exit 1; }
23694 # Set up the sed scripts for CONFIG_FILES section.
23697 # No need to generate the scripts if there are no CONFIG_FILES.
23698 # This happens for instance when ./config.status config.h
23699 if test -n "$CONFIG_FILES"; then
23701 _ACEOF
23705 ac_delim='%!_!# '
23706 for ac_last_try in false false false false false :; do
23707 cat >conf$$subs.sed <<_ACEOF
23708 SHELL!$SHELL$ac_delim
23709 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23710 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23711 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23712 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23713 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23714 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23715 exec_prefix!$exec_prefix$ac_delim
23716 prefix!$prefix$ac_delim
23717 program_transform_name!$program_transform_name$ac_delim
23718 bindir!$bindir$ac_delim
23719 sbindir!$sbindir$ac_delim
23720 libexecdir!$libexecdir$ac_delim
23721 datarootdir!$datarootdir$ac_delim
23722 datadir!$datadir$ac_delim
23723 sysconfdir!$sysconfdir$ac_delim
23724 sharedstatedir!$sharedstatedir$ac_delim
23725 localstatedir!$localstatedir$ac_delim
23726 includedir!$includedir$ac_delim
23727 oldincludedir!$oldincludedir$ac_delim
23728 docdir!$docdir$ac_delim
23729 infodir!$infodir$ac_delim
23730 htmldir!$htmldir$ac_delim
23731 dvidir!$dvidir$ac_delim
23732 pdfdir!$pdfdir$ac_delim
23733 psdir!$psdir$ac_delim
23734 libdir!$libdir$ac_delim
23735 localedir!$localedir$ac_delim
23736 mandir!$mandir$ac_delim
23737 DEFS!$DEFS$ac_delim
23738 ECHO_C!$ECHO_C$ac_delim
23739 ECHO_N!$ECHO_N$ac_delim
23740 ECHO_T!$ECHO_T$ac_delim
23741 LIBS!$LIBS$ac_delim
23742 build_alias!$build_alias$ac_delim
23743 host_alias!$host_alias$ac_delim
23744 target_alias!$target_alias$ac_delim
23745 MAINT!$MAINT$ac_delim
23746 build!$build$ac_delim
23747 build_cpu!$build_cpu$ac_delim
23748 build_vendor!$build_vendor$ac_delim
23749 build_os!$build_os$ac_delim
23750 host!$host$ac_delim
23751 host_cpu!$host_cpu$ac_delim
23752 host_vendor!$host_vendor$ac_delim
23753 host_os!$host_os$ac_delim
23754 CC!$CC$ac_delim
23755 CFLAGS!$CFLAGS$ac_delim
23756 LDFLAGS!$LDFLAGS$ac_delim
23757 CPPFLAGS!$CPPFLAGS$ac_delim
23758 ac_ct_CC!$ac_ct_CC$ac_delim
23759 EXEEXT!$EXEEXT$ac_delim
23760 OBJEXT!$OBJEXT$ac_delim
23761 CPP!$CPP$ac_delim
23762 GREP!$GREP$ac_delim
23763 EGREP!$EGREP$ac_delim
23764 LN_S!$LN_S$ac_delim
23765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23767 INSTALL_DATA!$INSTALL_DATA$ac_delim
23768 RANLIB!$RANLIB$ac_delim
23769 INSTALL_INFO!$INSTALL_INFO$ac_delim
23770 GZIP_PROG!$GZIP_PROG$ac_delim
23771 LIBSOUND!$LIBSOUND$ac_delim
23772 PKG_CONFIG!$PKG_CONFIG$ac_delim
23773 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23774 ALSA_LIBS!$ALSA_LIBS$ac_delim
23775 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23776 SET_MAKE!$SET_MAKE$ac_delim
23777 XMKMF!$XMKMF$ac_delim
23778 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23779 GTK_LIBS!$GTK_LIBS$ac_delim
23780 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23781 XFT_LIBS!$XFT_LIBS$ac_delim
23782 ALLOCA!$ALLOCA$ac_delim
23783 liblockfile!$liblockfile$ac_delim
23784 LIBOBJS!$LIBOBJS$ac_delim
23785 NEED_SETGID!$NEED_SETGID$ac_delim
23786 KMEM_GROUP!$KMEM_GROUP$ac_delim
23787 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23788 GETOPT_H!$GETOPT_H$ac_delim
23789 GETOPTOBJS!$GETOPTOBJS$ac_delim
23790 version!$version$ac_delim
23791 configuration!$configuration$ac_delim
23792 canonical!$canonical$ac_delim
23793 srcdir!$srcdir$ac_delim
23794 lispdir!$lispdir$ac_delim
23795 locallisppath!$locallisppath$ac_delim
23796 lisppath!$lisppath$ac_delim
23797 x_default_search_path!$x_default_search_path$ac_delim
23798 etcdir!$etcdir$ac_delim
23799 archlibdir!$archlibdir$ac_delim
23800 bitmapdir!$bitmapdir$ac_delim
23801 gamedir!$gamedir$ac_delim
23802 gameuser!$gameuser$ac_delim
23803 c_switch_system!$c_switch_system$ac_delim
23804 c_switch_machine!$c_switch_machine$ac_delim
23805 _ACEOF
23807 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23808 break
23809 elif $ac_last_try; then
23810 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23811 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23812 { (exit 1); exit 1; }; }
23813 else
23814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23816 done
23818 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23819 if test -n "$ac_eof"; then
23820 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23821 ac_eof=`expr $ac_eof + 1`
23824 cat >>$CONFIG_STATUS <<_ACEOF
23825 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23827 _ACEOF
23828 sed '
23829 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23830 s/^/s,@/; s/!/@,|#_!!_#|/
23833 s/'"$ac_delim"'$/,g/; t
23834 s/$/\\/; p
23835 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23836 ' >>$CONFIG_STATUS <conf$$subs.sed
23837 rm -f conf$$subs.sed
23838 cat >>$CONFIG_STATUS <<_ACEOF
23839 CEOF$ac_eof
23840 _ACEOF
23843 ac_delim='%!_!# '
23844 for ac_last_try in false false false false false :; do
23845 cat >conf$$subs.sed <<_ACEOF
23846 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23847 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23848 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23849 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23850 machfile!$machfile$ac_delim
23851 opsysfile!$opsysfile$ac_delim
23852 carbon_appdir!$carbon_appdir$ac_delim
23853 LTLIBOBJS!$LTLIBOBJS$ac_delim
23854 _ACEOF
23856 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23857 break
23858 elif $ac_last_try; then
23859 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23860 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23861 { (exit 1); exit 1; }; }
23862 else
23863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23865 done
23867 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23868 if test -n "$ac_eof"; then
23869 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23870 ac_eof=`expr $ac_eof + 1`
23873 cat >>$CONFIG_STATUS <<_ACEOF
23874 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23876 _ACEOF
23877 sed '
23878 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23879 s/^/s,@/; s/!/@,|#_!!_#|/
23882 s/'"$ac_delim"'$/,g/; t
23883 s/$/\\/; p
23884 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23885 ' >>$CONFIG_STATUS <conf$$subs.sed
23886 rm -f conf$$subs.sed
23887 cat >>$CONFIG_STATUS <<_ACEOF
23888 :end
23889 s/|#_!!_#|//g
23890 CEOF$ac_eof
23891 _ACEOF
23894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23896 # trailing colons and then remove the whole line if VPATH becomes empty
23897 # (actually we leave an empty line to preserve line numbers).
23898 if test "x$srcdir" = x.; then
23899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23900 s/:*\$(srcdir):*/:/
23901 s/:*\${srcdir}:*/:/
23902 s/:*@srcdir@:*/:/
23903 s/^\([^=]*=[ ]*\):*/\1/
23904 s/:*$//
23905 s/^[^=]*=[ ]*$//
23909 cat >>$CONFIG_STATUS <<\_ACEOF
23910 fi # test -n "$CONFIG_FILES"
23913 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23915 case $ac_tag in
23916 :[FHLC]) ac_mode=$ac_tag; continue;;
23917 esac
23918 case $ac_mode$ac_tag in
23919 :[FHL]*:*);;
23920 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23921 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23922 { (exit 1); exit 1; }; };;
23923 :[FH]-) ac_tag=-:-;;
23924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23925 esac
23926 ac_save_IFS=$IFS
23927 IFS=:
23928 set x $ac_tag
23929 IFS=$ac_save_IFS
23930 shift
23931 ac_file=$1
23932 shift
23934 case $ac_mode in
23935 :L) ac_source=$1;;
23936 :[FH])
23937 ac_file_inputs=
23938 for ac_f
23940 case $ac_f in
23941 -) ac_f="$tmp/stdin";;
23942 *) # Look for the file first in the build tree, then in the source tree
23943 # (if the path is not absolute). The absolute path cannot be DOS-style,
23944 # because $ac_f cannot contain `:'.
23945 test -f "$ac_f" ||
23946 case $ac_f in
23947 [\\/$]*) false;;
23948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23949 esac ||
23950 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23951 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23952 { (exit 1); exit 1; }; };;
23953 esac
23954 ac_file_inputs="$ac_file_inputs $ac_f"
23955 done
23957 # Let's still pretend it is `configure' which instantiates (i.e., don't
23958 # use $as_me), people would be surprised to read:
23959 # /* config.h. Generated by config.status. */
23960 configure_input="Generated from "`IFS=:
23961 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23962 if test x"$ac_file" != x-; then
23963 configure_input="$ac_file. $configure_input"
23964 { echo "$as_me:$LINENO: creating $ac_file" >&5
23965 echo "$as_me: creating $ac_file" >&6;}
23968 case $ac_tag in
23969 *:-:* | *:-) cat >"$tmp/stdin";;
23970 esac
23972 esac
23974 ac_dir=`$as_dirname -- "$ac_file" ||
23975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23976 X"$ac_file" : 'X\(//\)[^/]' \| \
23977 X"$ac_file" : 'X\(//\)$' \| \
23978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23979 echo X"$ac_file" |
23980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23981 s//\1/
23984 /^X\(\/\/\)[^/].*/{
23985 s//\1/
23988 /^X\(\/\/\)$/{
23989 s//\1/
23992 /^X\(\/\).*/{
23993 s//\1/
23996 s/.*/./; q'`
23997 { as_dir="$ac_dir"
23998 case $as_dir in #(
23999 -*) as_dir=./$as_dir;;
24000 esac
24001 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24002 as_dirs=
24003 while :; do
24004 case $as_dir in #(
24005 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24006 *) as_qdir=$as_dir;;
24007 esac
24008 as_dirs="'$as_qdir' $as_dirs"
24009 as_dir=`$as_dirname -- "$as_dir" ||
24010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24011 X"$as_dir" : 'X\(//\)[^/]' \| \
24012 X"$as_dir" : 'X\(//\)$' \| \
24013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24014 echo X"$as_dir" |
24015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24016 s//\1/
24019 /^X\(\/\/\)[^/].*/{
24020 s//\1/
24023 /^X\(\/\/\)$/{
24024 s//\1/
24027 /^X\(\/\).*/{
24028 s//\1/
24031 s/.*/./; q'`
24032 test -d "$as_dir" && break
24033 done
24034 test -z "$as_dirs" || eval "mkdir $as_dirs"
24035 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24036 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24037 { (exit 1); exit 1; }; }; }
24038 ac_builddir=.
24040 case "$ac_dir" in
24041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24044 # A ".." for each directory in $ac_dir_suffix.
24045 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24046 case $ac_top_builddir_sub in
24047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24049 esac ;;
24050 esac
24051 ac_abs_top_builddir=$ac_pwd
24052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24053 # for backward compatibility:
24054 ac_top_builddir=$ac_top_build_prefix
24056 case $srcdir in
24057 .) # We are building in place.
24058 ac_srcdir=.
24059 ac_top_srcdir=$ac_top_builddir_sub
24060 ac_abs_top_srcdir=$ac_pwd ;;
24061 [\\/]* | ?:[\\/]* ) # Absolute name.
24062 ac_srcdir=$srcdir$ac_dir_suffix;
24063 ac_top_srcdir=$srcdir
24064 ac_abs_top_srcdir=$srcdir ;;
24065 *) # Relative name.
24066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24067 ac_top_srcdir=$ac_top_build_prefix$srcdir
24068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24069 esac
24070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24073 case $ac_mode in
24076 # CONFIG_FILE
24079 case $INSTALL in
24080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24082 esac
24083 _ACEOF
24085 cat >>$CONFIG_STATUS <<\_ACEOF
24086 # If the template does not know about datarootdir, expand it.
24087 # FIXME: This hack should be removed a few years after 2.60.
24088 ac_datarootdir_hack=; ac_datarootdir_seen=
24090 case `sed -n '/datarootdir/ {
24094 /@datadir@/p
24095 /@docdir@/p
24096 /@infodir@/p
24097 /@localedir@/p
24098 /@mandir@/p
24099 ' $ac_file_inputs` in
24100 *datarootdir*) ac_datarootdir_seen=yes;;
24101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24102 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24103 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24104 _ACEOF
24105 cat >>$CONFIG_STATUS <<_ACEOF
24106 ac_datarootdir_hack='
24107 s&@datadir@&$datadir&g
24108 s&@docdir@&$docdir&g
24109 s&@infodir@&$infodir&g
24110 s&@localedir@&$localedir&g
24111 s&@mandir@&$mandir&g
24112 s&\\\${datarootdir}&$datarootdir&g' ;;
24113 esac
24114 _ACEOF
24116 # Neutralize VPATH when `$srcdir' = `.'.
24117 # Shell code in configure.ac might set extrasub.
24118 # FIXME: do we really want to maintain this feature?
24119 cat >>$CONFIG_STATUS <<_ACEOF
24120 sed "$ac_vpsub
24121 $extrasub
24122 _ACEOF
24123 cat >>$CONFIG_STATUS <<\_ACEOF
24125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24126 s&@configure_input@&$configure_input&;t t
24127 s&@top_builddir@&$ac_top_builddir_sub&;t t
24128 s&@srcdir@&$ac_srcdir&;t t
24129 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24130 s&@top_srcdir@&$ac_top_srcdir&;t t
24131 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24132 s&@builddir@&$ac_builddir&;t t
24133 s&@abs_builddir@&$ac_abs_builddir&;t t
24134 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24135 s&@INSTALL@&$ac_INSTALL&;t t
24136 $ac_datarootdir_hack
24137 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24139 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24140 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24142 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24143 which seems to be undefined. Please make sure it is defined." >&5
24144 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24145 which seems to be undefined. Please make sure it is defined." >&2;}
24147 rm -f "$tmp/stdin"
24148 case $ac_file in
24149 -) cat "$tmp/out"; rm -f "$tmp/out";;
24150 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24151 esac
24155 # CONFIG_HEADER
24157 _ACEOF
24159 # Transform confdefs.h into a sed script `conftest.defines', that
24160 # substitutes the proper values into config.h.in to produce config.h.
24161 rm -f conftest.defines conftest.tail
24162 # First, append a space to every undef/define line, to ease matching.
24163 echo 's/$/ /' >conftest.defines
24164 # Then, protect against being on the right side of a sed subst, or in
24165 # an unquoted here document, in config.status. If some macros were
24166 # called several times there might be several #defines for the same
24167 # symbol, which is useless. But do not sort them, since the last
24168 # AC_DEFINE must be honored.
24169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24170 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24171 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24172 # PARAMS is the parameter list in the macro definition--in most cases, it's
24173 # just an empty string.
24174 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24175 ac_dB='\\)[ (].*,\\1define\\2'
24176 ac_dC=' '
24177 ac_dD=' ,'
24179 uniq confdefs.h |
24180 sed -n '
24181 t rset
24182 :rset
24183 s/^[ ]*#[ ]*define[ ][ ]*//
24184 t ok
24187 s/[\\&,]/\\&/g
24188 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24189 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24190 ' >>conftest.defines
24192 # Remove the space that was appended to ease matching.
24193 # Then replace #undef with comments. This is necessary, for
24194 # example, in the case of _POSIX_SOURCE, which is predefined and required
24195 # on some systems where configure will not decide to define it.
24196 # (The regexp can be short, since the line contains either #define or #undef.)
24197 echo 's/ $//
24198 s,^[ #]*u.*,/* & */,' >>conftest.defines
24200 # Break up conftest.defines:
24201 ac_max_sed_lines=50
24203 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24204 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24205 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24206 # et cetera.
24207 ac_in='$ac_file_inputs'
24208 ac_out='"$tmp/out1"'
24209 ac_nxt='"$tmp/out2"'
24211 while :
24213 # Write a here document:
24214 cat >>$CONFIG_STATUS <<_ACEOF
24215 # First, check the format of the line:
24216 cat >"\$tmp/defines.sed" <<\\CEOF
24217 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24218 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24220 :def
24221 _ACEOF
24222 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24223 echo 'CEOF
24224 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24225 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24226 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24227 grep . conftest.tail >/dev/null || break
24228 rm -f conftest.defines
24229 mv conftest.tail conftest.defines
24230 done
24231 rm -f conftest.defines conftest.tail
24233 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24234 cat >>$CONFIG_STATUS <<\_ACEOF
24235 if test x"$ac_file" != x-; then
24236 echo "/* $configure_input */" >"$tmp/config.h"
24237 cat "$ac_result" >>"$tmp/config.h"
24238 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24239 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24240 echo "$as_me: $ac_file is unchanged" >&6;}
24241 else
24242 rm -f $ac_file
24243 mv "$tmp/config.h" $ac_file
24245 else
24246 echo "/* $configure_input */"
24247 cat "$ac_result"
24249 rm -f "$tmp/out12"
24252 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24253 echo "$as_me: executing $ac_file commands" >&6;}
24255 esac
24258 case $ac_file$ac_mode in
24259 "default":C)
24261 ### Make the necessary directories, if they don't exist.
24262 for dir in etc lisp ; do
24263 test -d ${dir} || mkdir ${dir}
24264 done
24266 # Build src/Makefile from ${srcdir}/src/Makefile.c
24267 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24268 # This must be done after src/config.h is built, since we rely on that file.
24270 # Now get this: Some word that is part of the ${srcdir} directory name
24271 # or the ${configuration} value might, just might, happen to be an
24272 # identifier like `sun4' or `i386' or something, and be predefined by
24273 # the C preprocessor to some helpful value like 1, or maybe the empty
24274 # string. Needless to say consequent macro substitutions are less
24275 # than conducive to the makefile finding the correct directory.
24276 undefs="`echo $top_srcdir $configuration $canonical |
24277 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24278 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24281 echo creating src/epaths.h
24282 ${MAKE-make} epaths-force
24284 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24285 # `..' to `. .' unless invoked with -traditional
24287 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24288 CPPFLAGS="$CPPFLAGS -traditional"
24291 echo creating lib-src/Makefile
24292 ( cd lib-src
24293 rm -f junk.c junk1.c junk2.c
24294 sed -e '/start of cpp stuff/q' \
24295 < Makefile.c > junk1.c
24296 sed -e '1,/start of cpp stuff/d'\
24297 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24298 < Makefile.c > junk.c
24299 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24300 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24301 cat junk1.c junk2.c > Makefile.new
24302 rm -f junk.c junk1.c junk2.c
24303 chmod 444 Makefile.new
24304 mv -f Makefile.new Makefile
24307 echo creating src/Makefile
24308 ( cd src
24309 rm -f junk.c junk1.c junk2.c
24310 sed -e '/start of cpp stuff/q' \
24311 < Makefile.c > junk1.c
24312 sed -e '1,/start of cpp stuff/d'\
24313 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24314 < Makefile.c > junk.c
24315 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24316 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24317 cat junk1.c junk2.c > Makefile.new
24318 rm -f junk.c junk1.c junk2.c
24319 chmod 444 Makefile.new
24320 mv -f Makefile.new Makefile
24323 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24324 echo creating src/.gdbinit
24325 echo source $srcdir/src/.gdbinit > src/.gdbinit
24328 # This is how we know whether to re-run configure in certain cases.
24329 touch src/config.stamp
24333 esac
24334 done # for ac_tag
24337 { (exit 0); exit 0; }
24338 _ACEOF
24339 chmod +x $CONFIG_STATUS
24340 ac_clean_files=$ac_clean_files_save
24343 # configure is writing to config.log, and then calls config.status.
24344 # config.status does its own redirection, appending to config.log.
24345 # Unfortunately, on DOS this fails, as config.log is still kept open
24346 # by configure, so config.status won't be able to write to it; its
24347 # output is simply discarded. So we exec the FD to /dev/null,
24348 # effectively closing config.log, so it can be properly (re)opened and
24349 # appended to by config.status. When coming back to configure, we
24350 # need to make the FD available again.
24351 if test "$no_create" != yes; then
24352 ac_cs_success=:
24353 ac_config_status_args=
24354 test "$silent" = yes &&
24355 ac_config_status_args="$ac_config_status_args --quiet"
24356 exec 5>/dev/null
24357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24358 exec 5>>config.log
24359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24360 # would make configure fail if this is the last instruction.
24361 $ac_cs_success || { (exit 1); exit 1; }