(NUM_RECENT_KEYS): Bump up to 300.
[emacs.git] / configure
bloba7cd8416a7b16004e16f4aedf2466ca641aaa339
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; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define KERBEROS 1
1845 _ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1856 with_kerberos=yes
1857 cat >>confdefs.h <<\_ACEOF
1858 #define KERBEROS 1
1859 _ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1864 #define KERBEROS5 1
1865 _ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define HESIOD 1
1877 _ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1895 n | no ) val=no ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1902 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1903 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1905 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1906 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1909 esac
1910 with_x_toolkit=$val
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1917 withval=$with_xpm;
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1923 withval=$with_jpeg;
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1929 withval=$with_tiff;
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1935 withval=$with_gif;
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1941 withval=$with_png;
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1947 withval=$with_gtk;
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1965 withval=$with_xim;
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1983 else
1984 USE_XASSERTS=no
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1991 else
1992 USE_MAINTAINER_MODE=no
1995 if test $USE_MAINTAINER_MODE = yes; then
1996 MAINT=
1997 else
1998 MAINT=#
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005 locallisppath=
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2012 #### Make srcdir absolute, if it isn't already. It's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2017 unset CDPATH
2018 case "${srcdir}" in
2019 /* ) ;;
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2027 then
2028 srcdir="$PWD"
2029 else
2030 srcdir="`(cd ${srcdir}; pwd)`"
2033 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2034 esac
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2056 ### Canonicalize the configuration name.
2058 ac_aux_dir=
2059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if 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/install.sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 break
2068 elif test -f "$ac_dir/shtool"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 break
2073 done
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 ac_build_alias=$build_alias
2101 test "x$ac_build_alias" = x &&
2102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x &&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2120 esac
2121 build=$ac_cv_build
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_build
2124 shift
2125 build_cpu=$1
2126 build_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 build_os=$*
2131 IFS=$ac_save_IFS
2132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test "x$host_alias" = x; then
2141 ac_cv_host=$ac_cv_build
2142 else
2143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2152 case $ac_cv_host in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2157 esac
2158 host=$ac_cv_host
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_host
2161 shift
2162 host_cpu=$1
2163 host_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 host_os=$*
2168 IFS=$ac_save_IFS
2169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172 canonical=$host
2173 configuration=${host_alias-$host}
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2200 machine='' opsys='' unported=no
2201 case "${canonical}" in
2203 ## FreeBSD ports
2204 *-*-freebsd* )
2205 opsys=freebsd
2206 case "${canonical}" in
2207 alpha*-*-freebsd*) machine=alpha ;;
2208 ia64-*-freebsd*) machine=ia64 ;;
2209 sparc64-*-freebsd*) machine=sparc ;;
2210 powerpc-*-freebsd*) machine=macppc ;;
2211 i[3456]86-*-freebsd*) machine=intel386 ;;
2212 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2213 esac
2216 ## NetBSD ports
2217 *-*-netbsd* )
2218 opsys=netbsd
2219 if test -f /usr/lib/crti.o; then
2221 cat >>confdefs.h <<\_ACEOF
2222 #define HAVE_CRTIN
2223 _ACEOF
2227 case "${canonical}" in
2228 alpha*-*-netbsd*) machine=alpha ;;
2229 i[3456]86-*-netbsd*) machine=intel386 ;;
2230 m68k-*-netbsd*)
2231 # This is somewhat bogus.
2232 machine=hp9000s300 ;;
2233 mips-*-netbsd*) machine=pmax ;;
2234 mipsel-*-netbsd*) machine=pmax ;;
2235 mipseb-*-netbsd*) machine=pmax ;;
2236 ns32k-*-netbsd*) machine=ns32000 ;;
2237 powerpc-*-netbsd*) machine=macppc ;;
2238 sparc*-*-netbsd*) machine=sparc ;;
2239 vax-*-netbsd*) machine=vax ;;
2240 arm-*-netbsd*) machine=arm ;;
2241 x86_64-*-netbsd*) machine=amdx86-64 ;;
2242 hppa-*-netbsd*) machine=hp800 ;;
2243 shle-*-netbsd*) machine=sh3el ;;
2244 esac
2247 ## OpenBSD ports
2248 *-*-openbsd* )
2249 opsys=openbsd
2250 case "${canonical}" in
2251 alpha*-*-openbsd*) machine=alpha ;;
2252 i386-*-openbsd*) machine=intel386 ;;
2253 x86_64-*-openbsd*) machine=amdx86-64 ;;
2254 m68k-*-openbsd*) machine=hp9000s300 ;;
2255 mipsel-*-openbsd*) machine=pmax ;;
2256 ns32k-*-openbsd*) machine=ns32000 ;;
2257 sparc-*-openbsd*) machine=sparc ;;
2258 vax-*-openbsd*) machine=vax ;;
2259 esac
2262 ## LynxOS ports
2263 *-*-lynxos* )
2264 opsys=lynxos
2265 case "${canonical}" in
2266 i[3456]86-*-lynxos*) machine=intel386 ;;
2267 powerpc-*-lynxos*) machine=powerpc ;;
2268 esac
2271 ## Acorn RISCiX:
2272 arm-acorn-riscix1.1* )
2273 machine=acorn opsys=riscix1-1
2275 arm-acorn-riscix1.2* | arm-acorn-riscix )
2276 ## This name is riscix12 instead of riscix1.2
2277 ## to avoid a file name conflict on MSDOS.
2278 machine=acorn opsys=riscix12
2281 ## BSDI ports
2282 *-*-bsdi* )
2283 opsys=bsdi
2284 case "${canonical}" in
2285 i[345]86-*-bsdi*) machine=intel386 ;;
2286 sparc-*-bsdi*) machine=sparc ;;
2287 powerpc-*-bsdi*) machine=macppc ;;
2288 esac
2289 case "${canonical}" in
2290 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2291 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2292 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2293 *-*-bsdi3* ) opsys=bsdos3 ;;
2294 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2295 esac
2298 ## Alliant machines
2299 ## Strictly speaking, we need the version of the alliant operating
2300 ## system to choose the right machine file, but currently the
2301 ## configuration name doesn't tell us enough to choose the right
2302 ## one; we need to give alliants their own operating system name to
2303 ## do this right. When someone cares, they can help us.
2304 fx80-alliant-* )
2305 machine=alliant4 opsys=bsd4-2
2307 i860-alliant-* )
2308 machine=alliant-2800 opsys=bsd4-3
2311 ## Alpha (DEC) machines.
2312 alpha*-dec-osf* )
2313 machine=alpha opsys=osf1
2314 # This is needed to find X11R6.1 libraries for certain tests.
2315 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2316 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2317 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2318 # due to non-traditional preprocessing with the current compiler
2319 # defaults. OSF 4 can also have that compiler version, and there
2320 # seems always to have been a usable /usr/bin/cpp.
2321 NON_GNU_CPP=/usr/bin/cpp
2322 case "${canonical}" in
2323 alpha*-dec-osf[5-9]*)
2324 opsys=osf5-0 ;;
2325 esac
2328 alpha*-*-linux-gnu* )
2329 machine=alpha opsys=gnu-linux
2332 arm*-*-linux-gnu* )
2333 machine=arm opsys=gnu-linux
2336 ## Altos 3068
2337 m68*-altos-sysv* )
2338 machine=altos opsys=usg5-2
2341 ## Amdahl UTS
2342 580-amdahl-sysv* )
2343 machine=amdahl opsys=usg5-2-2
2346 ## Apollo, Domain/OS
2347 m68*-apollo-* )
2348 machine=apollo opsys=bsd4-3
2351 ## Apple Darwin / Mac OS X
2352 *-apple-darwin* )
2353 case "${canonical}" in
2354 i[3456]86-* ) machine=intel386 ;;
2355 powerpc-* ) machine=powermac ;;
2356 * ) unported=yes ;;
2357 esac
2358 opsys=darwin
2359 # Define CPP as follows to make autoconf work correctly.
2360 CPP="${CC-cc} -E -no-cpp-precomp"
2361 # Use fink packages if available.
2362 if test -d /sw/include && test -d /sw/lib; then
2363 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2364 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2365 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2369 ## AT&T 3b2, 3b5, 3b15, 3b20
2370 we32k-att-sysv* )
2371 machine=att3b opsys=usg5-2-2
2374 ## AT&T 3b1 - The Mighty Unix PC!
2375 m68*-att-sysv* )
2376 machine=7300 opsys=usg5-2-2
2379 ## Bull dpx20
2380 rs6000-bull-bosx* )
2381 machine=ibmrs6000 opsys=aix3-2
2384 ## Bull dpx2
2385 m68*-bull-sysv3* )
2386 machine=dpx2 opsys=usg5-3
2389 ## Bull sps7
2390 m68*-bull-sysv2* )
2391 machine=sps7 opsys=usg5-2
2394 ## CCI 5/32, 6/32 -- see "Tahoe".
2396 ## Celerity
2397 ## I don't know what configuration name to use for this; config.sub
2398 ## doesn't seem to know anything about it. Hey, Celerity users, get
2399 ## in touch with us!
2400 celerity-celerity-bsd* )
2401 machine=celerity opsys=bsd4-2
2404 ## Clipper
2405 ## What operating systems does this chip run that Emacs has been
2406 ## tested on?
2407 clipper-* )
2408 machine=clipper
2409 ## We'll use the catch-all code at the bottom to guess the
2410 ## operating system.
2413 ## Compaq Nonstop
2414 mips-compaq-nonstopux* )
2415 machine=nonstopux opsys=nonstopux
2418 ## Convex
2419 *-convex-bsd* | *-convex-convexos* )
2420 machine=convex opsys=bsd4-3
2421 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2422 NON_GNU_CPP="cc -E -P"
2425 ## Cubix QBx/386
2426 i[3456]86-cubix-sysv* )
2427 machine=intel386 opsys=usg5-3
2430 ## Cydra 5
2431 cydra*-cydrome-sysv* )
2432 machine=cydra5 opsys=usg5-3
2435 ## Data General AViiON Machines
2436 ## DG changed naming conventions with the release of 5.4.4.10, they
2437 ## dropped the initial 5.4 but left the intervening R. Because of the
2438 ## R this shouldn't conflict with older versions of the OS (which I
2439 ## think were named like dgux4.*). In addition, DG new AViiONs series
2440 ## uses either Motorola M88k or Intel Pentium CPUs.
2441 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2442 machine=aviion opsys=dgux4
2444 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2445 ## This name is dgux5-4-3 instead of dgux5-4r3
2446 ## to avoid a file name conflict on MSDOS.
2447 machine=aviion opsys=dgux5-4-3
2449 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2450 machine=aviion opsys=dgux5-4r2
2452 m88k-dg-dgux* )
2453 machine=aviion opsys=dgux
2456 ## Data General AViiON Intel (x86) Machines
2457 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2458 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2459 i[345]86-dg-dguxR4* )
2460 machine=aviion-intel opsys=dgux4
2463 ## DECstations
2464 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2465 machine=pmax opsys=bsd4-2
2467 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2468 machine=pmax opsys=bsd4-3
2470 mips-dec-ultrix* )
2471 machine=pmax opsys=ultrix4-3
2473 mips-dec-osf* )
2474 machine=pmax opsys=osf1
2476 mips-dec-mach_bsd4.3* )
2477 machine=pmax opsys=mach-bsd4-3
2480 ## Motorola Delta machines
2481 m68k-motorola-sysv* | m68000-motorola-sysv* )
2482 machine=delta opsys=usg5-3
2483 if test -z "`type gnucc | grep 'not found'`"
2484 then
2485 if test -s /etc/167config
2486 then CC="gnucc -m68040"
2487 else CC="gnucc -m68881"
2489 else
2490 if test -z "`type gcc | grep 'not found'`"
2491 then CC=gcc
2492 else CC=cc
2496 m88k-motorola-sysv4* )
2497 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2498 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2499 # I hope there are not other 4.0 versions for this machine
2500 # which really need usg5-4 instead.
2501 machine=delta88k opsys=usg5-4-2
2503 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2504 machine=delta88k opsys=usg5-3
2507 ## Dual machines
2508 m68*-dual-sysv* )
2509 machine=dual opsys=usg5-2
2511 m68*-dual-uniplus* )
2512 machine=dual opsys=unipl5-2
2515 ## Elxsi 6400
2516 elxsi-elxsi-sysv* )
2517 machine=elxsi opsys=usg5-2
2520 ## Encore machines
2521 ns16k-encore-bsd* )
2522 machine=ns16000 opsys=umax
2525 ## The GEC 63 - apparently, this port isn't really finished yet.
2526 # I'm sure we finished off the last of the machines, though. -- fx
2528 ## Gould Power Node and NP1
2529 pn-gould-bsd4.2* )
2530 machine=gould opsys=bsd4-2
2532 pn-gould-bsd4.3* )
2533 machine=gould opsys=bsd4-3
2535 np1-gould-bsd* )
2536 machine=gould-np1 opsys=bsd4-3
2539 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2540 ## as far as Emacs is concerned).
2541 m88k-harris-cxux* )
2542 # Build needs to be different on 7.0 and later releases
2543 case "`uname -r`" in
2544 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2545 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2546 esac
2547 NON_GNU_CPP="/lib/cpp"
2549 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2550 m68k-harris-cxux* )
2551 machine=nh3000 opsys=cxux
2553 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2554 powerpc-harris-powerunix )
2555 machine=nh6000 opsys=powerunix
2556 NON_GNU_CPP="cc -Xo -E -P"
2558 ## Honeywell XPS100
2559 xps*-honeywell-sysv* )
2560 machine=xps100 opsys=usg5-2
2563 ## HP 9000 series 200 or 300
2564 m68*-hp-bsd* )
2565 machine=hp9000s300 opsys=bsd4-3
2567 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2568 m68*-hp-hpux* )
2569 case "`uname -r`" in
2570 ## Someone's system reports A.B8.05 for this.
2571 ## I wonder what other possibilities there are.
2572 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2573 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2574 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2575 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2576 *) machine=hp9000s300 opsys=hpux ;;
2577 esac
2580 hppa*-*-linux-gnu* )
2581 machine=hp800 opsys=gnu-linux
2584 hppa*-*-nextstep* )
2585 machine=hp800 opsys=nextstep
2588 ## Orion machines
2589 orion-orion-bsd* )
2590 machine=orion opsys=bsd4-2
2592 clipper-orion-bsd* )
2593 machine=orion105 opsys=bsd4-2
2596 ## IBM machines
2597 i[3456]86-ibm-aix1.1* )
2598 machine=ibmps2-aix opsys=usg5-2-2
2600 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2601 machine=ibmps2-aix opsys=usg5-3
2603 i370-ibm-aix*)
2604 machine=ibm370aix opsys=usg5-3
2606 s390-*-linux-gnu* )
2607 machine=ibms390 opsys=gnu-linux
2609 s390x-*-linux-gnu* )
2610 machine=ibms390x opsys=gnu-linux
2612 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2613 machine=ibmrs6000 opsys=aix3-1
2615 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2616 machine=ibmrs6000 opsys=aix3-2-5
2618 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2619 machine=ibmrs6000 opsys=aix4-1
2621 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2622 machine=ibmrs6000 opsys=aix4-2
2624 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2625 machine=ibmrs6000 opsys=aix4-2
2627 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2628 machine=ibmrs6000 opsys=aix4
2630 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2631 machine=ibmrs6000 opsys=aix4-1
2633 rs6000-ibm-aix* | powerpc-ibm-aix* )
2634 machine=ibmrs6000 opsys=aix3-2
2636 romp-ibm-bsd4.3* )
2637 machine=ibmrt opsys=bsd4-3
2639 romp-ibm-bsd4.2* )
2640 machine=ibmrt opsys=bsd4-2
2642 romp-ibm-aos4.3* )
2643 machine=ibmrt opsys=bsd4-3
2645 romp-ibm-aos4.2* )
2646 machine=ibmrt opsys=bsd4-2
2648 romp-ibm-aos* )
2649 machine=ibmrt opsys=bsd4-3
2651 romp-ibm-bsd* )
2652 machine=ibmrt opsys=bsd4-3
2654 romp-ibm-aix* )
2655 machine=ibmrt-aix opsys=usg5-2-2
2658 ## Integrated Solutions `Optimum V'
2659 m68*-isi-bsd4.2* )
2660 machine=isi-ov opsys=bsd4-2
2662 m68*-isi-bsd4.3* )
2663 machine=isi-ov opsys=bsd4-3
2666 ## Intel 386 machines where we do care about the manufacturer
2667 i[3456]86-intsys-sysv* )
2668 machine=is386 opsys=usg5-2-2
2671 ## Prime EXL
2672 i[3456]86-prime-sysv* )
2673 machine=i386 opsys=usg5-3
2676 ## Sequent Symmetry running Dynix
2677 i[3456]86-sequent-bsd* )
2678 machine=symmetry opsys=bsd4-3
2681 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2682 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2683 machine=sequent-ptx opsys=ptx4
2684 NON_GNU_CPP=/lib/cpp
2687 ## Sequent Symmetry running DYNIX/ptx
2688 ## Use the old cpp rather than the newer ANSI one.
2689 i[3456]86-sequent-ptx* )
2690 machine=sequent-ptx opsys=ptx
2691 NON_GNU_CPP="/lib/cpp"
2694 ## ncr machine running svr4.3.
2695 i[3456]86-ncr-sysv4.3 )
2696 machine=ncr386 opsys=usg5-4-3
2699 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2700 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2701 i[3456]86-ncr-sysv* )
2702 machine=ncr386 opsys=usg5-4-2
2705 ## Intel Paragon OSF/1
2706 i860-intel-osf1* )
2707 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2710 ## Intel 860
2711 i860-*-sysv4* )
2712 machine=i860 opsys=usg5-4
2713 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2714 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2717 ## Macintosh PowerPC
2718 powerpc*-*-linux-gnu* )
2719 machine=macppc opsys=gnu-linux
2722 ## Masscomp machines
2723 m68*-masscomp-rtu* )
2724 machine=masscomp opsys=rtu
2727 ## Megatest machines
2728 m68*-megatest-bsd* )
2729 machine=mega68 opsys=bsd4-2
2732 ## Workstations sold by MIPS
2733 ## This is not necessarily all workstations using the MIPS processor -
2734 ## Irises are produced by SGI, and DECstations by DEC.
2736 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2737 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2738 ## it gives for choosing between the alternatives seems to be "Use
2739 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2740 ## the BSD world." I'll assume that these are instructions for
2741 ## handling two odd situations, and that every other situation
2742 ## should use mips.h and usg5-2-2, they being listed first.
2743 mips-mips-usg* )
2744 machine=mips4
2745 ## Fall through to the general code at the bottom to decide on the OS.
2747 mips-mips-riscos4* )
2748 machine=mips4 opsys=bsd4-3
2749 NON_GNU_CC="cc -systype bsd43"
2750 NON_GNU_CPP="cc -systype bsd43 -E"
2752 mips-mips-riscos5* )
2753 machine=mips4 opsys=riscos5
2754 NON_GNU_CC="cc -systype bsd43"
2755 NON_GNU_CPP="cc -systype bsd43 -E"
2757 mips-mips-bsd* )
2758 machine=mips opsys=bsd4-3
2760 mips-mips-* )
2761 machine=mips opsys=usg5-2-2
2764 ## NeXT
2765 m68*-next-* | m68k-*-nextstep* )
2766 machine=m68k opsys=nextstep
2769 ## The complete machine from National Semiconductor
2770 ns32k-ns-genix* )
2771 machine=ns32000 opsys=usg5-2
2774 ## NCR machines
2775 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2776 machine=tower32 opsys=usg5-2-2
2778 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2779 machine=tower32v3 opsys=usg5-3
2782 ## NEC EWS4800
2783 mips-nec-sysv4*)
2784 machine=ews4800 opsys=ux4800
2787 ## Nixdorf Targon 31
2788 m68*-nixdorf-sysv* )
2789 machine=targon31 opsys=usg5-2-2
2792 ## Nu (TI or LMI)
2793 m68*-nu-sysv* )
2794 machine=nu opsys=usg5-2
2797 ## Plexus
2798 m68*-plexus-sysv* )
2799 machine=plexus opsys=usg5-2
2802 ## Pyramid machines
2803 ## I don't really have any idea what sort of processor the Pyramid has,
2804 ## so I'm assuming it is its own architecture.
2805 pyramid-pyramid-bsd* )
2806 machine=pyramid opsys=bsd4-2
2809 ## Sequent Balance
2810 ns32k-sequent-bsd4.2* )
2811 machine=sequent opsys=bsd4-2
2813 ns32k-sequent-bsd4.3* )
2814 machine=sequent opsys=bsd4-3
2817 ## Siemens Nixdorf
2818 mips-siemens-sysv* | mips-sni-sysv*)
2819 machine=mips-siemens opsys=usg5-4
2820 NON_GNU_CC=/usr/ccs/bin/cc
2821 NON_GNU_CPP=/usr/ccs/lib/cpp
2824 ## Silicon Graphics machines
2825 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2826 m68*-sgi-iris3.5* )
2827 machine=irist opsys=iris3-5
2829 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2830 machine=irist opsys=iris3-6
2832 ## Iris 4D
2833 mips-sgi-irix3* )
2834 machine=iris4d opsys=irix3-3
2836 mips-sgi-irix4* )
2837 machine=iris4d opsys=irix4-0
2839 mips-sgi-irix6.5 )
2840 machine=iris4d opsys=irix6-5
2841 # Without defining _LANGUAGE_C, things get masked out in the headers
2842 # so that, for instance, grepping for `free' in stdlib.h fails and
2843 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2844 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2845 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2847 mips-sgi-irix6* )
2848 machine=iris4d opsys=irix6-0
2849 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2850 # but presumably it does no harm.
2851 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2852 # -32 probably isn't necessary in later v.6s -- anyone know which?
2853 NON_GCC_TEST_OPTIONS=-32
2855 mips-sgi-irix5.[01]* )
2856 machine=iris4d opsys=irix5-0
2858 mips-sgi-irix5* | mips-sgi-irix* )
2859 machine=iris4d opsys=irix5-2
2862 ## SONY machines
2863 m68*-sony-bsd4.2* )
2864 machine=news opsys=bsd4-2
2866 m68*-sony-bsd4.3* )
2867 machine=news opsys=bsd4-3
2869 m68*-sony-newsos3* | m68*-sony-news3*)
2870 machine=news opsys=bsd4-3
2872 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2873 machine=news-risc opsys=bsd4-3
2875 mips-sony-newsos6* )
2876 machine=news-r6 opsys=newsos6
2878 mips-sony-news* )
2879 machine=news-risc opsys=newsos5
2882 ## Stride
2883 m68*-stride-sysv* )
2884 machine=stride opsys=usg5-2
2887 ## Suns
2888 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2889 machine=sparc opsys=gnu-linux
2892 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2893 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2894 | rs6000-*-solaris2*)
2895 case "${canonical}" in
2896 m68*-sunos1* ) machine=sun1 ;;
2897 m68*-sunos2* ) machine=sun2 ;;
2898 m68* ) machine=sun3 ;;
2899 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2900 i[3456]86-*-* ) machine=intel386 ;;
2901 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2902 powerpcle* ) machine=powerpcle ;;
2903 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2904 sparc* ) machine=sparc ;;
2905 * ) unported=yes ;;
2906 esac
2907 case "${canonical}" in
2908 ## The Sun386 didn't get past 4.0.
2909 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2910 *-sunos4.0* ) opsys=sunos4-0 ;;
2911 *-sunos4.1.[3-9]*noshare )
2912 ## This name is sunos413 instead of sunos4-1-3
2913 ## to avoid a file name conflict on MSDOS.
2914 opsys=sunos413
2915 NON_GNU_CPP=/usr/lib/cpp
2916 NON_GCC_TEST_OPTIONS=-Bstatic
2917 GCC_TEST_OPTIONS=-static
2919 *-sunos4.1.[3-9]* | *-sunos4shr*)
2920 opsys=sunos4shr
2921 NON_GNU_CPP=/usr/lib/cpp
2923 *-sunos4* | *-sunos )
2924 opsys=sunos4-1
2925 NON_GCC_TEST_OPTIONS=-Bstatic
2926 GCC_TEST_OPTIONS=-static
2928 *-sunos5.3* | *-solaris2.3* )
2929 opsys=sol2-3
2930 NON_GNU_CPP=/usr/ccs/lib/cpp
2932 *-sunos5.4* | *-solaris2.4* )
2933 opsys=sol2-4
2934 NON_GNU_CPP=/usr/ccs/lib/cpp
2935 RANLIB="ar -ts"
2937 *-sunos5.5* | *-solaris2.5* )
2938 opsys=sol2-5
2939 NON_GNU_CPP=/usr/ccs/lib/cpp
2940 RANLIB="ar -ts"
2942 *-sunos5.6* | *-solaris2.6* )
2943 opsys=sol2-6
2944 NON_GNU_CPP=/usr/ccs/lib/cpp
2945 RANLIB="ar -ts"
2947 *-sunos5* | *-solaris* )
2948 opsys=sol2-6
2949 NON_GNU_CPP=/usr/ccs/lib/cpp
2951 * ) opsys=bsd4-2 ;;
2952 esac
2953 ## Watch out for a compiler that we know will not work.
2954 case "${canonical}" in
2955 *-solaris* | *-sunos5* )
2956 if [ "x$CC" = x/usr/ucb/cc ]; then
2957 ## /usr/ucb/cc doesn't work;
2958 ## we should find some other compiler that does work.
2959 unset CC
2962 *) ;;
2963 esac
2965 sparc-*-nextstep* )
2966 machine=sparc opsys=nextstep
2969 ## Tadpole 68k
2970 m68*-tadpole-sysv* )
2971 machine=tad68k opsys=usg5-3
2974 ## Tahoe machines
2975 tahoe-tahoe-bsd4.2* )
2976 machine=tahoe opsys=bsd4-2
2978 tahoe-tahoe-bsd4.3* )
2979 machine=tahoe opsys=bsd4-3
2982 ## Tandem Integrity S2
2983 mips-tandem-sysv* )
2984 machine=tandem-s2 opsys=usg5-3
2987 ## Tektronix XD88
2988 m88k-tektronix-sysv3* )
2989 machine=tekxd88 opsys=usg5-3
2992 ## Tektronix 16000 box (6130?)
2993 ns16k-tektronix-bsd* )
2994 machine=ns16000 opsys=bsd4-2
2996 ## Tektronix 4300
2997 ## src/m/tek4300.h hints that this is a m68k machine.
2998 m68*-tektronix-bsd* )
2999 machine=tek4300 opsys=bsd4-3
3002 ## Titan P2 or P3
3003 ## We seem to have lost the machine-description file titan.h!
3004 titan-titan-sysv* )
3005 machine=titan opsys=usg5-3
3008 ## Ustation E30 (SS5E)
3009 m68*-unisys-uniplus* )
3010 machine=ustation opsystem=unipl5-2
3013 ## Vaxen.
3014 vax-dec-* )
3015 machine=vax
3016 case "${canonical}" in
3017 *-bsd4.1* ) opsys=bsd4-1 ;;
3018 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3019 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3020 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3021 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3022 *-vms* ) opsys=vms ;;
3023 * ) unported=yes
3024 esac
3027 ## Whitechapel MG1
3028 ns16k-whitechapel-* )
3029 machine=mg1
3030 ## We don't know what sort of OS runs on these; we'll let the
3031 ## operating system guessing code below try.
3034 ## Wicat
3035 m68*-wicat-sysv* )
3036 machine=wicat opsys=usg5-2
3039 ## IA-64
3040 ia64*-*-linux* )
3041 machine=ia64 opsys=gnu-linux
3044 ## Intel 386 machines where we don't care about the manufacturer
3045 i[3456]86-*-* )
3046 machine=intel386
3047 case "${canonical}" in
3048 *-cygwin ) opsys=cygwin ;;
3049 *-darwin* ) opsys=darwin
3050 CPP="${CC-cc} -E -no-cpp-precomp"
3052 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3053 *-isc2.2* ) opsys=isc2-2 ;;
3054 *-isc4.0* ) opsys=isc4-0 ;;
3055 *-isc4.* ) opsys=isc4-1
3056 GCC_TEST_OPTIONS=-posix
3057 NON_GCC_TEST_OPTIONS=-Xp
3059 *-isc* ) opsys=isc3-0 ;;
3060 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3061 *-esix* ) opsys=esix ;;
3062 *-xenix* ) opsys=xenix ;;
3063 *-linux-gnu* ) opsys=gnu-linux ;;
3064 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3065 *-sco3.2v5* ) opsys=sco5
3066 NON_GNU_CPP=/lib/cpp
3067 # Prevent -belf from being passed to $CPP.
3068 # /lib/cpp does not accept it.
3069 OVERRIDE_CPPFLAGS=" "
3071 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3072 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3073 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3074 *-386bsd* ) opsys=386bsd ;;
3075 *-nextstep* ) opsys=nextstep ;;
3076 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3077 esac
3080 ## m68k Linux-based GNU system
3081 m68k-*-linux-gnu* )
3082 machine=m68k opsys=gnu-linux
3085 ## Mips Linux-based GNU system
3086 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3087 machine=mips opsys=gnu-linux
3090 ## UXP/DS
3091 sparc-fujitsu-sysv4* )
3092 machine=sparc opsys=uxpds
3093 NON_GNU_CPP=/usr/ccs/lib/cpp
3094 RANLIB="ar -ts"
3097 ## UXP/V
3098 f301-fujitsu-uxpv4.1)
3099 machine=f301 opsys=uxpv
3102 ## AMD x86-64 Linux-based GNU system
3103 x86_64-*-linux-gnu* )
3104 machine=amdx86-64 opsys=gnu-linux
3107 ## Tensilica Xtensa Linux-based GNU system
3108 xtensa-*-linux-gnu* )
3109 machine=xtensa opsys=gnu-linux
3113 unported=yes
3115 esac
3117 ### If the code above didn't choose an operating system, just choose
3118 ### an operating system based on the configuration name. You really
3119 ### only want to use this when you have no idea what the right
3120 ### operating system is; if you know what operating systems a machine
3121 ### runs, it's cleaner to make it explicit in the case statement
3122 ### above.
3123 if test x"${opsys}" = x; then
3124 case "${canonical}" in
3125 *-gnu* ) opsys=gnu ;;
3126 *-bsd4.[01] ) opsys=bsd4-1 ;;
3127 *-bsd4.2 ) opsys=bsd4-2 ;;
3128 *-bsd4.3 ) opsys=bsd4-3 ;;
3129 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3130 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3131 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3132 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3133 *-sysv4.2uw* ) opsys=unixware ;;
3134 *-sysv5uw* ) opsys=unixware ;;
3135 *-sysv5OpenUNIX* ) opsys=unixware ;;
3136 *-sysv4.1* | *-sysvr4.1* )
3137 NON_GNU_CPP=/usr/lib/cpp
3138 opsys=usg5-4 ;;
3139 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3140 if [ x$NON_GNU_CPP = x ]; then
3141 if [ -f /usr/ccs/lib/cpp ]; then
3142 NON_GNU_CPP=/usr/ccs/lib/cpp
3143 else
3144 NON_GNU_CPP=/lib/cpp
3147 opsys=usg5-4-2 ;;
3148 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3150 unported=yes
3152 esac
3157 if test $unported = yes; then
3158 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3159 Check \`etc/MACHINES' for recognized configuration names." >&5
3160 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3161 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3162 { (exit 1); exit 1; }; }
3165 machfile="m/${machine}.h"
3166 opsysfile="s/${opsys}.h"
3169 #### Choose a compiler.
3170 test -n "$CC" && cc_specified=yes
3172 # Save the value of CFLAGS that the user specified.
3173 SPECIFIED_CFLAGS="$CFLAGS"
3175 case ${with_gcc} in
3176 "yes" ) CC="gcc" GCC=yes ;;
3177 "no" ) : ${CC=cc} ;;
3179 esac
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3209 IFS=$as_save_IFS
3213 CC=$ac_cv_prog_CC
3214 if test -n "$CC"; then
3215 { echo "$as_me:$LINENO: result: $CC" >&5
3216 echo "${ECHO_T}$CC" >&6; }
3217 else
3218 { echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6; }
3224 if test -z "$ac_cv_prog_CC"; then
3225 ac_ct_CC=$CC
3226 # Extract the first word of "gcc", so it can be a program name with args.
3227 set dummy gcc; ac_word=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 if test -n "$ac_ct_CC"; then
3234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_ac_ct_CC="gcc"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3256 echo "${ECHO_T}$ac_ct_CC" >&6; }
3257 else
3258 { echo "$as_me:$LINENO: result: no" >&5
3259 echo "${ECHO_T}no" >&6; }
3262 if test "x$ac_ct_CC" = x; then
3263 CC=""
3264 else
3265 case $cross_compiling:$ac_tool_warned in
3266 yes:)
3267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3268 whose name does not start with the host triplet. If you think this
3269 configuration is useful to you, please write to autoconf@gnu.org." >&5
3270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3271 whose name does not start with the host triplet. If you think this
3272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275 CC=$ac_ct_CC
3277 else
3278 CC="$ac_cv_prog_CC"
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3304 done
3305 done
3306 IFS=$as_save_IFS
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { echo "$as_me:$LINENO: result: $CC" >&5
3313 echo "${ECHO_T}$CC" >&6; }
3314 else
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3322 if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333 ac_prog_rejected=no
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3343 continue
3345 ac_cv_prog_CC="cc"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3351 IFS=$as_save_IFS
3353 if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3356 shift
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3361 shift
3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369 { echo "$as_me:$LINENO: result: $CC" >&5
3370 echo "${ECHO_T}$CC" >&6; }
3371 else
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog in cl.exe
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3403 done
3404 done
3405 IFS=$as_save_IFS
3409 CC=$ac_cv_prog_CC
3410 if test -n "$CC"; then
3411 { echo "$as_me:$LINENO: result: $CC" >&5
3412 echo "${ECHO_T}$CC" >&6; }
3413 else
3414 { echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6; }
3419 test -n "$CC" && break
3420 done
3422 if test -z "$CC"; then
3423 ac_ct_CC=$CC
3424 for ac_prog in cl.exe
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_CC="$ac_prog"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3447 done
3448 done
3449 IFS=$as_save_IFS
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3456 echo "${ECHO_T}$ac_ct_CC" >&6; }
3457 else
3458 { echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6; }
3463 test -n "$ac_ct_CC" && break
3464 done
3466 if test "x$ac_ct_CC" = x; then
3467 CC=""
3468 else
3469 case $cross_compiling:$ac_tool_warned in
3470 yes:)
3471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3472 whose name does not start with the host triplet. If you think this
3473 configuration is useful to you, please write to autoconf@gnu.org." >&5
3474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3475 whose name does not start with the host triplet. If you think this
3476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3477 ac_tool_warned=yes ;;
3478 esac
3479 CC=$ac_ct_CC
3486 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3492 # Provide some information about the compiler.
3493 echo "$as_me:$LINENO: checking for C compiler version" >&5
3494 ac_compiler=`set X $ac_compile; echo $2`
3495 { (ac_try="$ac_compiler --version >&5"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compiler --version >&5") 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }
3505 { (ac_try="$ac_compiler -v >&5"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_compiler -v >&5") 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }
3515 { (ac_try="$ac_compiler -V >&5"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compiler -V >&5") 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3534 main ()
3538 return 0;
3540 _ACEOF
3541 ac_clean_files_save=$ac_clean_files
3542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3543 # Try to create an executable without -o first, disregard a.out.
3544 # It will help us diagnose broken compilers, and finding out an intuition
3545 # of exeext.
3546 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3548 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3550 # List of possible output files, starting from the most likely.
3551 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3552 # only as a last resort. b.out is created by i960 compilers.
3553 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3555 # The IRIX 6 linker writes into existing files which may not be
3556 # executable, retaining their permissions. Remove them first so a
3557 # subsequent execution test works.
3558 ac_rmfiles=
3559 for ac_file in $ac_files
3561 case $ac_file in
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3564 esac
3565 done
3566 rm -f $ac_rmfiles
3568 if { (ac_try="$ac_link_default"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_link_default") 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; then
3578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3579 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3580 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3581 # so that the user can short-circuit this test for compilers unknown to
3582 # Autoconf.
3583 for ac_file in $ac_files ''
3585 test -f "$ac_file" || continue
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3589 [ab].out )
3590 # We found the default executable, but exeext='' is most
3591 # certainly right.
3592 break;;
3593 *.* )
3594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3595 then :; else
3596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598 # We set ac_cv_exeext here because the later test for it is not
3599 # safe: cross compilers may not add the suffix if given an `-o'
3600 # argument, so we may need to know it at that point already.
3601 # Even if this section looks crufty: it has the advantage of
3602 # actually working.
3603 break;;
3605 break;;
3606 esac
3607 done
3608 test "$ac_cv_exeext" = no && ac_cv_exeext=
3610 else
3611 ac_file=''
3614 { echo "$as_me:$LINENO: result: $ac_file" >&5
3615 echo "${ECHO_T}$ac_file" >&6; }
3616 if test -z "$ac_file"; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3621 See \`config.log' for more details." >&5
3622 echo "$as_me: error: C compiler cannot create executables
3623 See \`config.log' for more details." >&2;}
3624 { (exit 77); exit 77; }; }
3627 ac_exeext=$ac_cv_exeext
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3632 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3633 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3634 # If not cross compiling, check that we can run a simple program.
3635 if test "$cross_compiling" != yes; then
3636 if { ac_try='./$ac_file'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 cross_compiling=no
3647 else
3648 if test "$cross_compiling" = maybe; then
3649 cross_compiling=yes
3650 else
3651 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3652 If you meant to cross compile, use \`--host'.
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: cannot run C compiled programs.
3655 If you meant to cross compile, use \`--host'.
3656 See \`config.log' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3661 { echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6; }
3664 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3665 ac_clean_files=$ac_clean_files_save
3666 # Check that the compiler produces executables we can run. If not, either
3667 # the compiler is broken, or we cross compile.
3668 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3669 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3670 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3671 echo "${ECHO_T}$cross_compiling" >&6; }
3673 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3674 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3675 if { (ac_try="$ac_link"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_link") 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3686 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3687 # work properly (i.e., refer to `conftest.exe'), while it won't with
3688 # `rm'.
3689 for ac_file in conftest.exe conftest conftest.*; do
3690 test -f "$ac_file" || continue
3691 case $ac_file in
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3694 break;;
3695 * ) break;;
3696 esac
3697 done
3698 else
3699 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3700 See \`config.log' for more details." >&5
3701 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3702 See \`config.log' for more details." >&2;}
3703 { (exit 1); exit 1; }; }
3706 rm -f conftest$ac_cv_exeext
3707 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3708 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3710 rm -f conftest.$ac_ext
3711 EXEEXT=$ac_cv_exeext
3712 ac_exeext=$EXEEXT
3713 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3714 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3715 if test "${ac_cv_objext+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3726 main ()
3730 return 0;
3732 _ACEOF
3733 rm -f conftest.o conftest.obj
3734 if { (ac_try="$ac_compile"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_compile") 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; then
3744 for ac_file in conftest.o conftest.obj conftest.*; do
3745 test -f "$ac_file" || continue;
3746 case $ac_file in
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3748 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3749 break;;
3750 esac
3751 done
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3765 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3766 echo "${ECHO_T}$ac_cv_objext" >&6; }
3767 OBJEXT=$ac_cv_objext
3768 ac_objext=$OBJEXT
3769 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3770 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3771 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3782 main ()
3784 #ifndef __GNUC__
3785 choke me
3786 #endif
3789 return 0;
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3809 ac_compiler_gnu=yes
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 ac_compiler_gnu=no
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3821 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3823 GCC=`test $ac_compiler_gnu = yes && echo yes`
3824 ac_test_CFLAGS=${CFLAGS+set}
3825 ac_save_CFLAGS=$CFLAGS
3826 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3827 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3828 if test "${ac_cv_prog_cc_g+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 ac_save_c_werror_flag=$ac_c_werror_flag
3832 ac_c_werror_flag=yes
3833 ac_cv_prog_cc_g=no
3834 CFLAGS="-g"
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3843 main ()
3847 return 0;
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3867 ac_cv_prog_cc_g=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 CFLAGS=""
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3881 main ()
3885 return 0;
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_compile") 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3904 } && test -s conftest.$ac_objext; then
3906 else
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3911 CFLAGS="-g"
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3920 main ()
3924 return 0;
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 ac_cv_prog_cc_g=yes
3945 else
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_c_werror_flag=$ac_save_c_werror_flag
3961 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3962 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3963 if test "$ac_test_CFLAGS" = set; then
3964 CFLAGS=$ac_save_CFLAGS
3965 elif test $ac_cv_prog_cc_g = yes; then
3966 if test "$GCC" = yes; then
3967 CFLAGS="-g -O2"
3968 else
3969 CFLAGS="-g"
3971 else
3972 if test "$GCC" = yes; then
3973 CFLAGS="-O2"
3974 else
3975 CFLAGS=
3978 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3979 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3980 if test "${ac_cv_prog_cc_c89+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 ac_cv_prog_cc_c89=no
3984 ac_save_CC=$CC
3985 cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h. */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 #include <stdarg.h>
3992 #include <stdio.h>
3993 #include <sys/types.h>
3994 #include <sys/stat.h>
3995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3996 struct buf { int x; };
3997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3998 static char *e (p, i)
3999 char **p;
4000 int i;
4002 return p[i];
4004 static char *f (char * (*g) (char **, int), char **p, ...)
4006 char *s;
4007 va_list v;
4008 va_start (v,p);
4009 s = g (p, va_arg (v,int));
4010 va_end (v);
4011 return s;
4014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4015 function prototypes and stuff, but not '\xHH' hex character constants.
4016 These don't provoke an error unfortunately, instead are silently treated
4017 as 'x'. The following induces an error, until -std is added to get
4018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4019 array size at least. It's necessary to write '\x00'==0 to get something
4020 that's true only with -std. */
4021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4024 inside strings and character constants. */
4025 #define FOO(x) 'x'
4026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4028 int test (int i, double x);
4029 struct s1 {int (*f) (int a);};
4030 struct s2 {int (*f) (double a);};
4031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032 int argc;
4033 char **argv;
4035 main ()
4037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4039 return 0;
4041 _ACEOF
4042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4048 case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } && {
4060 test -z "$ac_c_werror_flag" ||
4061 test ! -s conftest.err
4062 } && test -s conftest.$ac_objext; then
4063 ac_cv_prog_cc_c89=$ac_arg
4064 else
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4071 rm -f core conftest.err conftest.$ac_objext
4072 test "x$ac_cv_prog_cc_c89" != "xno" && break
4073 done
4074 rm -f conftest.$ac_ext
4075 CC=$ac_save_CC
4078 # AC_CACHE_VAL
4079 case "x$ac_cv_prog_cc_c89" in
4081 { echo "$as_me:$LINENO: result: none needed" >&5
4082 echo "${ECHO_T}none needed" >&6; } ;;
4083 xno)
4084 { echo "$as_me:$LINENO: result: unsupported" >&5
4085 echo "${ECHO_T}unsupported" >&6; } ;;
4087 CC="$CC $ac_cv_prog_cc_c89"
4088 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4089 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4090 esac
4093 ac_ext=c
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100 # On Suns, sometimes $CPP names a directory.
4101 if test -n "$CPP" && test -d "$CPP"; then
4102 CPP=
4105 #### Some systems specify a CPP to use unless we are using GCC.
4106 #### Now that we know whether we are using GCC, we can decide whether
4107 #### to use that one.
4108 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4109 then
4110 CPP="$NON_GNU_CPP"
4113 #### Some systems specify a CC to use unless we are using GCC.
4114 #### Now that we know whether we are using GCC, we can decide whether
4115 #### to use that one.
4116 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4117 test x$cc_specified != xyes
4118 then
4119 CC="$NON_GNU_CC"
4122 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4123 then
4124 CC="$CC $GCC_TEST_OPTIONS"
4127 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4128 then
4129 CC="$CC $NON_GCC_TEST_OPTIONS"
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4140 # On Suns, sometimes $CPP names a directory.
4141 if test -n "$CPP" && test -d "$CPP"; then
4142 CPP=
4144 if test -z "$CPP"; then
4145 if test "${ac_cv_prog_CPP+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 # Double quotes because CPP needs to be expanded
4149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4151 ac_preproc_ok=false
4152 for ac_c_preproc_warn_flag in '' yes
4154 # Use a header file that comes with gcc, so configuring glibc
4155 # with a fresh cross-compiler works.
4156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157 # <limits.h> exists even on freestanding compilers.
4158 # On the NeXT, cc -E runs the code through the compiler's parser,
4159 # not just through cpp. "Syntax error" is here to catch this case.
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 #ifdef __STDC__
4167 # include <limits.h>
4168 #else
4169 # include <assert.h>
4170 #endif
4171 Syntax error
4172 _ACEOF
4173 if { (ac_try="$ac_cpp conftest.$ac_ext"
4174 case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } >/dev/null && {
4186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 }; then
4190 else
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 # Broken: fails on valid input.
4195 continue
4198 rm -f conftest.err conftest.$ac_ext
4200 # OK, works on sane cases. Now check whether nonexistent headers
4201 # can be detected and how.
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 #include <ac_nonexistent.h>
4209 _ACEOF
4210 if { (ac_try="$ac_cpp conftest.$ac_ext"
4211 case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214 esac
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } >/dev/null && {
4223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4225 }; then
4226 # Broken: success on invalid input.
4227 continue
4228 else
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 # Passes both tests.
4233 ac_preproc_ok=:
4234 break
4237 rm -f conftest.err conftest.$ac_ext
4239 done
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then
4243 break
4246 done
4247 ac_cv_prog_CPP=$CPP
4250 CPP=$ac_cv_prog_CPP
4251 else
4252 ac_cv_prog_CPP=$CPP
4254 { echo "$as_me:$LINENO: result: $CPP" >&5
4255 echo "${ECHO_T}$CPP" >&6; }
4256 ac_preproc_ok=false
4257 for ac_c_preproc_warn_flag in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 #ifdef __STDC__
4272 # include <limits.h>
4273 #else
4274 # include <assert.h>
4275 #endif
4276 Syntax error
4277 _ACEOF
4278 if { (ac_try="$ac_cpp conftest.$ac_ext"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null && {
4291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4293 }; then
4295 else
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 # Broken: fails on valid input.
4300 continue
4303 rm -f conftest.err conftest.$ac_ext
4305 # OK, works on sane cases. Now check whether nonexistent headers
4306 # can be detected and how.
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <ac_nonexistent.h>
4314 _ACEOF
4315 if { (ac_try="$ac_cpp conftest.$ac_ext"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } >/dev/null && {
4328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4329 test ! -s conftest.err
4330 }; then
4331 # Broken: success on invalid input.
4332 continue
4333 else
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4337 # Passes both tests.
4338 ac_preproc_ok=:
4339 break
4342 rm -f conftest.err conftest.$ac_ext
4344 done
4345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4346 rm -f conftest.err conftest.$ac_ext
4347 if $ac_preproc_ok; then
4349 else
4350 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4351 See \`config.log' for more details." >&5
4352 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4353 See \`config.log' for more details." >&2;}
4354 { (exit 1); exit 1; }; }
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4365 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4366 if test "${ac_cv_path_GREP+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 # Extract the first word of "grep ggrep" to use in msg output
4370 if test -z "$GREP"; then
4371 set dummy grep ggrep; ac_prog_name=$2
4372 if test "${ac_cv_path_GREP+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 ac_path_GREP_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in grep ggrep; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4386 # Check for GNU ac_path_GREP and select it if it is found.
4387 # Check for GNU $ac_path_GREP
4388 case `"$ac_path_GREP" --version 2>&1` in
4389 *GNU*)
4390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4392 ac_count=0
4393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4394 while :
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 echo 'GREP' >> "conftest.nl"
4400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 ac_count=`expr $ac_count + 1`
4403 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_GREP="$ac_path_GREP"
4406 ac_path_GREP_max=$ac_count
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4415 $ac_path_GREP_found && break 3
4416 done
4417 done
4419 done
4420 IFS=$as_save_IFS
4425 GREP="$ac_cv_path_GREP"
4426 if test -z "$GREP"; then
4427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4429 { (exit 1); exit 1; }; }
4432 else
4433 ac_cv_path_GREP=$GREP
4438 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4439 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4440 GREP="$ac_cv_path_GREP"
4443 { echo "$as_me:$LINENO: checking for egrep" >&5
4444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4445 if test "${ac_cv_path_EGREP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4449 then ac_cv_path_EGREP="$GREP -E"
4450 else
4451 # Extract the first word of "egrep" to use in msg output
4452 if test -z "$EGREP"; then
4453 set dummy egrep; ac_prog_name=$2
4454 if test "${ac_cv_path_EGREP+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 ac_path_EGREP_found=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_prog in egrep; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4468 # Check for GNU ac_path_EGREP and select it if it is found.
4469 # Check for GNU $ac_path_EGREP
4470 case `"$ac_path_EGREP" --version 2>&1` in
4471 *GNU*)
4472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4474 ac_count=0
4475 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4476 while :
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 echo 'EGREP' >> "conftest.nl"
4482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484 ac_count=`expr $ac_count + 1`
4485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_EGREP="$ac_path_EGREP"
4488 ac_path_EGREP_max=$ac_count
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4492 done
4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 esac
4497 $ac_path_EGREP_found && break 3
4498 done
4499 done
4501 done
4502 IFS=$as_save_IFS
4507 EGREP="$ac_cv_path_EGREP"
4508 if test -z "$EGREP"; then
4509 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4510 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4511 { (exit 1); exit 1; }; }
4514 else
4515 ac_cv_path_EGREP=$EGREP
4521 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4522 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4523 EGREP="$ac_cv_path_EGREP"
4527 { echo "$as_me:$LINENO: checking for AIX" >&5
4528 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #ifdef _AIX
4537 #endif
4539 _ACEOF
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 $EGREP "yes" >/dev/null 2>&1; then
4542 { echo "$as_me:$LINENO: result: yes" >&5
4543 echo "${ECHO_T}yes" >&6; }
4544 cat >>confdefs.h <<\_ACEOF
4545 #define _ALL_SOURCE 1
4546 _ACEOF
4548 else
4549 { echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6; }
4552 rm -f conftest*
4556 cat >>confdefs.h <<\_ACEOF
4557 #define _GNU_SOURCE 1
4558 _ACEOF
4562 ### Use -Wno-pointer-sign if the compiler supports it
4563 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4564 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4565 SAVE_CFLAGS="$CFLAGS"
4566 CFLAGS="$CFLAGS -Wno-pointer-sign"
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4575 main ()
4579 return 0;
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (ac_try="$ac_compile"
4584 case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_compile") 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
4599 has_option=yes
4600 else
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4604 has_option=no
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 if test $has_option = yes; then
4609 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4611 { echo "$as_me:$LINENO: result: $has_option" >&5
4612 echo "${ECHO_T}$has_option" >&6; }
4613 CFLAGS="$SAVE_CFLAGS"
4614 unset has_option
4615 unset SAVE_CFLAGS
4617 #### Some other nice autoconf tests.
4619 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4620 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4621 LN_S=$as_ln_s
4622 if test "$LN_S" = "ln -s"; then
4623 { echo "$as_me:$LINENO: result: yes" >&5
4624 echo "${ECHO_T}yes" >&6; }
4625 else
4626 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4627 echo "${ECHO_T}no, using $LN_S" >&6; }
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4636 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4637 # On Suns, sometimes $CPP names a directory.
4638 if test -n "$CPP" && test -d "$CPP"; then
4639 CPP=
4641 if test -z "$CPP"; then
4642 if test "${ac_cv_prog_CPP+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 # Double quotes because CPP needs to be expanded
4646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4648 ac_preproc_ok=false
4649 for ac_c_preproc_warn_flag in '' yes
4651 # Use a header file that comes with gcc, so configuring glibc
4652 # with a fresh cross-compiler works.
4653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4654 # <limits.h> exists even on freestanding compilers.
4655 # On the NeXT, cc -E runs the code through the compiler's parser,
4656 # not just through cpp. "Syntax error" is here to catch this case.
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 #ifdef __STDC__
4664 # include <limits.h>
4665 #else
4666 # include <assert.h>
4667 #endif
4668 Syntax error
4669 _ACEOF
4670 if { (ac_try="$ac_cpp conftest.$ac_ext"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } >/dev/null && {
4683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 }; then
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 # Broken: fails on valid input.
4692 continue
4695 rm -f conftest.err conftest.$ac_ext
4697 # OK, works on sane cases. Now check whether nonexistent headers
4698 # can be detected and how.
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 #include <ac_nonexistent.h>
4706 _ACEOF
4707 if { (ac_try="$ac_cpp conftest.$ac_ext"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } >/dev/null && {
4720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 }; then
4723 # Broken: success on invalid input.
4724 continue
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 # Passes both tests.
4730 ac_preproc_ok=:
4731 break
4734 rm -f conftest.err conftest.$ac_ext
4736 done
4737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4738 rm -f conftest.err conftest.$ac_ext
4739 if $ac_preproc_ok; then
4740 break
4743 done
4744 ac_cv_prog_CPP=$CPP
4747 CPP=$ac_cv_prog_CPP
4748 else
4749 ac_cv_prog_CPP=$CPP
4751 { echo "$as_me:$LINENO: result: $CPP" >&5
4752 echo "${ECHO_T}$CPP" >&6; }
4753 ac_preproc_ok=false
4754 for ac_c_preproc_warn_flag in '' yes
4756 # Use a header file that comes with gcc, so configuring glibc
4757 # with a fresh cross-compiler works.
4758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759 # <limits.h> exists even on freestanding compilers.
4760 # On the NeXT, cc -E runs the code through the compiler's parser,
4761 # not just through cpp. "Syntax error" is here to catch this case.
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #ifdef __STDC__
4769 # include <limits.h>
4770 #else
4771 # include <assert.h>
4772 #endif
4773 Syntax error
4774 _ACEOF
4775 if { (ac_try="$ac_cpp conftest.$ac_ext"
4776 case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } >/dev/null && {
4788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 }; then
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 # Broken: fails on valid input.
4797 continue
4800 rm -f conftest.err conftest.$ac_ext
4802 # OK, works on sane cases. Now check whether nonexistent headers
4803 # can be detected and how.
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #include <ac_nonexistent.h>
4811 _ACEOF
4812 if { (ac_try="$ac_cpp conftest.$ac_ext"
4813 case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816 esac
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null && {
4825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 }; then
4828 # Broken: success on invalid input.
4829 continue
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 # Passes both tests.
4835 ac_preproc_ok=:
4836 break
4839 rm -f conftest.err conftest.$ac_ext
4841 done
4842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843 rm -f conftest.err conftest.$ac_ext
4844 if $ac_preproc_ok; then
4846 else
4847 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4848 See \`config.log' for more details." >&5
4849 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4850 See \`config.log' for more details." >&2;}
4851 { (exit 1); exit 1; }; }
4854 ac_ext=c
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860 # Find a good install program. We prefer a C program (faster),
4861 # so one script is as good as another. But avoid the broken or
4862 # incompatible versions:
4863 # SysV /etc/install, /usr/sbin/install
4864 # SunOS /usr/etc/install
4865 # IRIX /sbin/install
4866 # AIX /bin/install
4867 # AmigaOS /C/install, which installs bootblocks on floppy discs
4868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4871 # OS/2's system install, which has a completely different semantic
4872 # ./install, which can be erroneously created by make from ./install.sh.
4873 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4874 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4875 if test -z "$INSTALL"; then
4876 if test "${ac_cv_path_install+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 # Account for people who put trailing slashes in PATH elements.
4885 case $as_dir/ in
4886 ./ | .// | /cC/* | \
4887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4888 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4889 /usr/ucb/* ) ;;
4891 # OSF1 and SCO ODT 3.0 have their own names for install.
4892 # Don't use installbsd from OSF since it installs stuff as root
4893 # by default.
4894 for ac_prog in ginstall scoinst install; do
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4897 if test $ac_prog = install &&
4898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4899 # AIX install. It has an incompatible calling convention.
4901 elif test $ac_prog = install &&
4902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4903 # program-specific install script used by HP pwplus--don't use.
4905 else
4906 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4907 break 3
4910 done
4911 done
4913 esac
4914 done
4915 IFS=$as_save_IFS
4919 if test "${ac_cv_path_install+set}" = set; then
4920 INSTALL=$ac_cv_path_install
4921 else
4922 # As a last resort, use the slow shell script. Don't cache a
4923 # value for INSTALL within a source directory, because that will
4924 # break other packages using the cache if that directory is
4925 # removed, or if the value is a relative name.
4926 INSTALL=$ac_install_sh
4929 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4930 echo "${ECHO_T}$INSTALL" >&6; }
4932 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4933 # It thinks the first close brace ends the variable substitution.
4934 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4936 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4938 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4940 if test "x$RANLIB" = x; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_prog_RANLIB+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if test -n "$RANLIB"; then
4950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4965 IFS=$as_save_IFS
4969 RANLIB=$ac_cv_prog_RANLIB
4970 if test -n "$RANLIB"; then
4971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4972 echo "${ECHO_T}$RANLIB" >&6; }
4973 else
4974 { echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6; }
4980 if test -z "$ac_cv_prog_RANLIB"; then
4981 ac_ct_RANLIB=$RANLIB
4982 # Extract the first word of "ranlib", so it can be a program name with args.
4983 set dummy ranlib; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test -n "$ac_ct_RANLIB"; then
4990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_ac_ct_RANLIB="ranlib"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5010 if test -n "$ac_ct_RANLIB"; then
5011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5013 else
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5018 if test "x$ac_ct_RANLIB" = x; then
5019 RANLIB=":"
5020 else
5021 case $cross_compiling:$ac_tool_warned in
5022 yes:)
5023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5024 whose name does not start with the host triplet. If you think this
5025 configuration is useful to you, please write to autoconf@gnu.org." >&5
5026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5027 whose name does not start with the host triplet. If you think this
5028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5029 ac_tool_warned=yes ;;
5030 esac
5031 RANLIB=$ac_ct_RANLIB
5033 else
5034 RANLIB="$ac_cv_prog_RANLIB"
5038 # Extract the first word of "install-info", so it can be a program name with args.
5039 set dummy install-info; ac_word=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 case $INSTALL_INFO in
5046 [\\/]* | ?:[\\/]*)
5047 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5066 esac
5068 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5069 if test -n "$INSTALL_INFO"; then
5070 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5071 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5072 else
5073 { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5078 # Extract the first word of "install-info", so it can be a program name with args.
5079 set dummy install-info; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 case $INSTALL_INFO in
5086 [\\/]* | ?:[\\/]*)
5087 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in /usr/sbin
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5106 esac
5108 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5109 if test -n "$INSTALL_INFO"; then
5110 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5111 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5112 else
5113 { echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6; }
5118 # Extract the first word of "install-info", so it can be a program name with args.
5119 set dummy install-info; ac_word=$2
5120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 case $INSTALL_INFO in
5126 [\\/]* | ?:[\\/]*)
5127 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in /sbin
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5145 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5147 esac
5149 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5150 if test -n "$INSTALL_INFO"; then
5151 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5152 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5153 else
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5159 # Extract the first word of "gzip", so it can be a program name with args.
5160 set dummy gzip; ac_word=$2
5161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 case $GZIP_PROG in
5167 [\\/]* | ?:[\\/]*)
5168 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5187 esac
5189 GZIP_PROG=$ac_cv_path_GZIP_PROG
5190 if test -n "$GZIP_PROG"; then
5191 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5192 echo "${ECHO_T}$GZIP_PROG" >&6; }
5193 else
5194 { echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6; }
5201 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5202 then
5203 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5206 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5207 then
5208 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5212 late_LDFLAGS=$LDFLAGS
5213 if test "$GCC" = yes; then
5214 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5215 else
5216 LDFLAGS="$LDFLAGS -znocombreloc"
5219 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5220 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5221 cat >conftest.$ac_ext <<_ACEOF
5222 main(){return 0;}
5223 _ACEOF
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (ac_try="$ac_link"
5226 case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_link") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest$ac_exeext &&
5241 $as_test_x conftest$ac_exeext; then
5242 { echo "$as_me:$LINENO: result: yes" >&5
5243 echo "${ECHO_T}yes" >&6; }
5244 else
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 LDFLAGS=$late_LDFLAGS
5249 { echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6; }
5253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5254 conftest$ac_exeext conftest.$ac_ext
5256 #### Extract some information from the operating system and machine files.
5258 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5259 - which libraries the lib-src programs will want, and
5260 - whether the GNU malloc routines are usable..." >&5
5261 echo "$as_me: checking the machine- and system-dependent files to find out
5262 - which libraries the lib-src programs will want, and
5263 - whether the GNU malloc routines are usable..." >&6;}
5265 ### First figure out CFLAGS (which we use for running the compiler here)
5266 ### and REAL_CFLAGS (which we use for real compilation).
5267 ### The two are the same except on a few systems, where they are made
5268 ### different to work around various lossages. For example,
5269 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5270 ### as implying static linking.
5272 ### If the CFLAGS env var is specified, we use that value
5273 ### instead of the default.
5275 ### It's not important that this name contain the PID; you can't run
5276 ### two configures in the same directory and have anything work
5277 ### anyway.
5278 tempcname="conftest.c"
5280 echo '
5281 #include "'${srcdir}'/src/'${opsysfile}'"
5282 #include "'${srcdir}'/src/'${machfile}'"
5283 #ifndef LIBS_MACHINE
5284 #define LIBS_MACHINE
5285 #endif
5286 #ifndef LIBS_SYSTEM
5287 #define LIBS_SYSTEM
5288 #endif
5289 #ifndef C_SWITCH_SYSTEM
5290 #define C_SWITCH_SYSTEM
5291 #endif
5292 #ifndef C_SWITCH_MACHINE
5293 #define C_SWITCH_MACHINE
5294 #endif
5295 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5296 configure___ c_switch_system=C_SWITCH_SYSTEM
5297 configure___ c_switch_machine=C_SWITCH_MACHINE
5299 #ifndef LIB_X11_LIB
5300 #define LIB_X11_LIB -lX11
5301 #endif
5303 #ifndef LIBX11_MACHINE
5304 #define LIBX11_MACHINE
5305 #endif
5307 #ifndef LIBX11_SYSTEM
5308 #define LIBX11_SYSTEM
5309 #endif
5310 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5312 #ifdef UNEXEC
5313 configure___ unexec=UNEXEC
5314 #else
5315 configure___ unexec=unexec.o
5316 #endif
5318 #ifdef SYSTEM_MALLOC
5319 configure___ system_malloc=yes
5320 #else
5321 configure___ system_malloc=no
5322 #endif
5324 #ifdef USE_MMAP_FOR_BUFFERS
5325 configure___ use_mmap_for_buffers=yes
5326 #else
5327 configure___ use_mmap_for_buffers=no
5328 #endif
5330 #ifndef C_DEBUG_SWITCH
5331 #define C_DEBUG_SWITCH -g
5332 #endif
5334 #ifndef C_OPTIMIZE_SWITCH
5335 #ifdef __GNUC__
5336 #define C_OPTIMIZE_SWITCH -O2
5337 #else
5338 #define C_OPTIMIZE_SWITCH -O
5339 #endif
5340 #endif
5342 #ifndef C_WARNINGS_SWITCH
5343 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5344 #endif
5346 #ifndef LD_SWITCH_MACHINE
5347 #define LD_SWITCH_MACHINE
5348 #endif
5350 #ifndef LD_SWITCH_SYSTEM
5351 #define LD_SWITCH_SYSTEM
5352 #endif
5354 #ifndef LD_SWITCH_X_SITE_AUX
5355 #define LD_SWITCH_X_SITE_AUX
5356 #endif
5358 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5359 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5361 #ifdef THIS_IS_CONFIGURE
5363 /* Get the CFLAGS for tests in configure. */
5364 #ifdef __GNUC__
5365 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5366 #else
5367 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5368 #endif
5370 #else /* not THIS_IS_CONFIGURE */
5372 /* Get the CFLAGS for real compilation. */
5373 #ifdef __GNUC__
5374 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5375 #else
5376 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5377 #endif
5379 #endif /* not THIS_IS_CONFIGURE */
5380 ' > ${tempcname}
5382 # The value of CPP is a quoted variable reference, so we need to do this
5383 # to get its actual value...
5384 CPP=`eval "echo $CPP"`
5385 eval `${CPP} -Isrc ${tempcname} \
5386 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5387 if test "x$SPECIFIED_CFLAGS" = x; then
5388 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5389 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5390 else
5391 REAL_CFLAGS="$CFLAGS"
5393 rm ${tempcname}
5395 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5397 ### Make sure subsequent tests use flags consistent with the build flags.
5399 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5400 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5401 else
5402 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5407 # Check whether --enable-largefile was given.
5408 if test "${enable_largefile+set}" = set; then
5409 enableval=$enable_largefile;
5412 if test "$enable_largefile" != no; then
5414 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5415 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5416 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 ac_cv_sys_largefile_CC=no
5420 if test "$GCC" != yes; then
5421 ac_save_CC=$CC
5422 while :; do
5423 # IRIX 6.2 and later do not support large files by default,
5424 # so use the C compiler's -n32 option if that helps.
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 /* Check that off_t can represent 2**63 - 1 correctly.
5433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5434 since some C++ compilers masquerading as C compilers
5435 incorrectly reject 9223372036854775807. */
5436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5438 && LARGE_OFF_T % 2147483647 == 1)
5439 ? 1 : -1];
5441 main ()
5445 return 0;
5447 _ACEOF
5448 rm -f conftest.$ac_objext
5449 if { (ac_try="$ac_compile"
5450 case "(($ac_try" in
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5453 esac
5454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455 (eval "$ac_compile") 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && {
5462 test -z "$ac_c_werror_flag" ||
5463 test ! -s conftest.err
5464 } && test -s conftest.$ac_objext; then
5465 break
5466 else
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5473 rm -f core conftest.err conftest.$ac_objext
5474 CC="$CC -n32"
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 ac_cv_sys_largefile_CC=' -n32'; break
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5500 rm -f core conftest.err conftest.$ac_objext
5501 break
5502 done
5503 CC=$ac_save_CC
5504 rm -f conftest.$ac_ext
5507 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5508 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5509 if test "$ac_cv_sys_largefile_CC" != no; then
5510 CC=$CC$ac_cv_sys_largefile_CC
5513 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5514 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 while :; do
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <sys/types.h>
5526 /* Check that off_t can represent 2**63 - 1 correctly.
5527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5528 since some C++ compilers masquerading as C compilers
5529 incorrectly reject 9223372036854775807. */
5530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5532 && LARGE_OFF_T % 2147483647 == 1)
5533 ? 1 : -1];
5535 main ()
5539 return 0;
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_sys_file_offset_bits=no; break
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #define _FILE_OFFSET_BITS 64
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5583 ? 1 : -1];
5585 main ()
5589 return 0;
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5594 case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_cv_sys_file_offset_bits=64; break
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 ac_cv_sys_file_offset_bits=unknown
5619 break
5620 done
5622 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5623 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5624 case $ac_cv_sys_file_offset_bits in #(
5625 no | unknown) ;;
5627 cat >>confdefs.h <<_ACEOF
5628 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5629 _ACEOF
5631 esac
5632 rm -f conftest*
5633 if test $ac_cv_sys_file_offset_bits = unknown; then
5634 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5635 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5636 if test "${ac_cv_sys_large_files+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 while :; do
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 #include <sys/types.h>
5647 /* Check that off_t can represent 2**63 - 1 correctly.
5648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5649 since some C++ compilers masquerading as C compilers
5650 incorrectly reject 9223372036854775807. */
5651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5653 && LARGE_OFF_T % 2147483647 == 1)
5654 ? 1 : -1];
5656 main ()
5660 return 0;
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5665 case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.$ac_objext; then
5680 ac_cv_sys_large_files=no; break
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #define _LARGE_FILES 1
5696 #include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5704 ? 1 : -1];
5706 main ()
5710 return 0;
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_c_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 ac_cv_sys_large_files=1; break
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 ac_cv_sys_large_files=unknown
5740 break
5741 done
5743 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5744 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5745 case $ac_cv_sys_large_files in #(
5746 no | unknown) ;;
5748 cat >>confdefs.h <<_ACEOF
5749 #define _LARGE_FILES $ac_cv_sys_large_files
5750 _ACEOF
5752 esac
5753 rm -f conftest*
5759 ### The standard library on x86-64 GNU/Linux distributions can
5760 ### be located in either /usr/lib64 or /usr/lib.
5761 case "${canonical}" in
5762 x86_64-*-linux-gnu* )
5763 if test -d /usr/lib64; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAVE_X86_64_LIB64_DIR 1
5767 _ACEOF
5770 esac
5775 if test "${with_sound}" != "no"; then
5776 # Sound support for GNU/Linux and the free BSDs.
5777 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5779 if test "${ac_cv_header_stdc+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <stdlib.h>
5789 #include <stdarg.h>
5790 #include <string.h>
5791 #include <float.h>
5794 main ()
5798 return 0;
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5803 case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 ac_cv_header_stdc=yes
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 ac_cv_header_stdc=no
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 if test $ac_cv_header_stdc = yes; then
5829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #include <string.h>
5838 _ACEOF
5839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5840 $EGREP "memchr" >/dev/null 2>&1; then
5842 else
5843 ac_cv_header_stdc=no
5845 rm -f conftest*
5849 if test $ac_cv_header_stdc = yes; then
5850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <stdlib.h>
5859 _ACEOF
5860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5861 $EGREP "free" >/dev/null 2>&1; then
5863 else
5864 ac_cv_header_stdc=no
5866 rm -f conftest*
5870 if test $ac_cv_header_stdc = yes; then
5871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5872 if test "$cross_compiling" = yes; then
5874 else
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <ctype.h>
5882 #include <stdlib.h>
5883 #if ((' ' & 0x0FF) == 0x020)
5884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5886 #else
5887 # define ISLOWER(c) \
5888 (('a' <= (c) && (c) <= 'i') \
5889 || ('j' <= (c) && (c) <= 'r') \
5890 || ('s' <= (c) && (c) <= 'z'))
5891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5892 #endif
5894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5896 main ()
5898 int i;
5899 for (i = 0; i < 256; i++)
5900 if (XOR (islower (i), ISLOWER (i))
5901 || toupper (i) != TOUPPER (i))
5902 return 2;
5903 return 0;
5905 _ACEOF
5906 rm -f conftest$ac_exeext
5907 if { (ac_try="$ac_link"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_link") 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5917 { (case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_try") 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5927 else
5928 echo "$as_me: program exited with status $ac_status" >&5
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 ( exit $ac_status )
5933 ac_cv_header_stdc=no
5935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5941 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5942 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5943 if test $ac_cv_header_stdc = yes; then
5945 cat >>confdefs.h <<\_ACEOF
5946 #define STDC_HEADERS 1
5947 _ACEOF
5951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962 inttypes.h stdint.h unistd.h
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5978 #include <$ac_header>
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5997 eval "$as_ac_Header=yes"
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 eval "$as_ac_Header=no"
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 ac_res=`eval echo '${'$as_ac_Header'}'`
6008 { echo "$as_me:$LINENO: result: $ac_res" >&5
6009 echo "${ECHO_T}$ac_res" >&6; }
6010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6011 cat >>confdefs.h <<_ACEOF
6012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6013 _ACEOF
6017 done
6023 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_res=`eval echo '${'$as_ac_Header'}'`
6033 { echo "$as_me:$LINENO: result: $ac_res" >&5
6034 echo "${ECHO_T}$ac_res" >&6; }
6035 else
6036 # Is the header compilable?
6037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6046 #include <$ac_header>
6047 _ACEOF
6048 rm -f conftest.$ac_objext
6049 if { (ac_try="$ac_compile"
6050 case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_compile") 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
6064 } && test -s conftest.$ac_objext; then
6065 ac_header_compiler=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_header_compiler=no
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6; }
6077 # Is the header present?
6078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <$ac_header>
6087 _ACEOF
6088 if { (ac_try="$ac_cpp conftest.$ac_ext"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null && {
6101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 }; then
6104 ac_header_preproc=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_header_preproc=no
6112 rm -f conftest.err conftest.$ac_ext
6113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114 echo "${ECHO_T}$ac_header_preproc" >&6; }
6116 # So? What about this header?
6117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6118 yes:no: )
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6123 ac_header_preproc=yes
6125 no:yes:* )
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6140 esac
6141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 eval "$as_ac_Header=\$ac_header_preproc"
6148 ac_res=`eval echo '${'$as_ac_Header'}'`
6149 { echo "$as_me:$LINENO: result: $ac_res" >&5
6150 echo "${ECHO_T}$ac_res" >&6; }
6153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6154 cat >>confdefs.h <<_ACEOF
6155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6156 _ACEOF
6160 done
6162 # Emulation library used on NetBSD.
6163 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6164 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6165 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 ac_check_lib_save_LIBS=$LIBS
6169 LIBS="-lossaudio $LIBS"
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6177 /* Override any GCC internal prototype to avoid an error.
6178 Use char because int might match the return type of a GCC
6179 builtin and then its argument prototype would still apply. */
6180 #ifdef __cplusplus
6181 extern "C"
6182 #endif
6183 char _oss_ioctl ();
6185 main ()
6187 return _oss_ioctl ();
6189 return 0;
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (ac_try="$ac_link"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_link") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest$ac_exeext &&
6209 $as_test_x conftest$ac_exeext; then
6210 ac_cv_lib_ossaudio__oss_ioctl=yes
6211 else
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 ac_cv_lib_ossaudio__oss_ioctl=no
6218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6219 conftest$ac_exeext conftest.$ac_ext
6220 LIBS=$ac_check_lib_save_LIBS
6222 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6223 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6224 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6225 LIBSOUND=-lossaudio
6226 else
6227 LIBSOUND=
6232 ALSA_REQUIRED=1.0.0
6233 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6234 if test "X${with_pkg_config_prog}" != X; then
6235 PKG_CONFIG="${with_pkg_config_prog}"
6238 succeeded=no
6240 if test -z "$PKG_CONFIG"; then
6241 # Extract the first word of "pkg-config", so it can be a program name with args.
6242 set dummy pkg-config; ac_word=$2
6243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6245 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 case $PKG_CONFIG in
6249 [\\/]* | ?:[\\/]*)
6250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6264 done
6265 done
6266 IFS=$as_save_IFS
6268 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6270 esac
6272 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6273 if test -n "$PKG_CONFIG"; then
6274 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6275 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6276 else
6277 { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6284 if test "$PKG_CONFIG" = "no" ; then
6285 HAVE_ALSA=no
6286 else
6287 PKG_CONFIG_MIN_VERSION=0.9.0
6288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6289 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6290 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6292 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6293 { echo "$as_me:$LINENO: result: yes" >&5
6294 echo "${ECHO_T}yes" >&6; }
6295 succeeded=yes
6297 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6298 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6299 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6300 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6301 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6303 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6304 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6305 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6306 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6307 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6308 else
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 ALSA_CFLAGS=""
6312 ALSA_LIBS=""
6313 ## If we have a custom action on failure, don't print errors, but
6314 ## do set a variable so people can do so.
6315 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6321 else
6322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6327 if test $succeeded = yes; then
6328 HAVE_ALSA=yes
6329 else
6330 HAVE_ALSA=no
6333 if test $HAVE_ALSA = yes; then
6334 SAVE_CFLAGS="$CFLAGS"
6335 SAVE_LDFLAGS="$LDFLAGS"
6336 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6337 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <asoundlib.h>
6346 main ()
6348 snd_lib_error_set_handler (0);
6350 return 0;
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (ac_try="$ac_compile"
6355 case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6370 emacs_alsa_normal=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 emacs_alsa_normal=no
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 if test "$emacs_alsa_normal" != yes; then
6380 cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h. */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 #include <alsa/asoundlib.h>
6388 main ()
6390 snd_lib_error_set_handler (0);
6392 return 0;
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (ac_try="$ac_compile"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6412 emacs_alsa_subdir=yes
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 emacs_alsa_subdir=no
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 if test "$emacs_alsa_subdir" != yes; then
6422 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6423 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6424 { (exit 1); exit 1; }; }
6426 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6429 CFLAGS="$SAVE_CFLAGS"
6430 LDFLAGS="$SAVE_LDFLAGS"
6431 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6432 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6434 cat >>confdefs.h <<\_ACEOF
6435 #define HAVE_ALSA 1
6436 _ACEOF
6468 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6469 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6470 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6471 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6472 sys/utsname.h pwd.h
6474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 ac_res=`eval echo '${'$as_ac_Header'}'`
6482 { echo "$as_me:$LINENO: result: $ac_res" >&5
6483 echo "${ECHO_T}$ac_res" >&6; }
6484 else
6485 # Is the header compilable?
6486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h. */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6495 #include <$ac_header>
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (ac_try="$ac_compile"
6499 case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_compile") 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest.$ac_objext; then
6514 ac_header_compiler=yes
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_header_compiler=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6524 echo "${ECHO_T}$ac_header_compiler" >&6; }
6526 # Is the header present?
6527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 #include <$ac_header>
6536 _ACEOF
6537 if { (ac_try="$ac_cpp conftest.$ac_ext"
6538 case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6541 esac
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } >/dev/null && {
6550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 }; then
6553 ac_header_preproc=yes
6554 else
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_header_preproc=no
6561 rm -f conftest.err conftest.$ac_ext
6562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6563 echo "${ECHO_T}$ac_header_preproc" >&6; }
6565 # So? What about this header?
6566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6567 yes:no: )
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6572 ac_header_preproc=yes
6574 no:yes:* )
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6589 esac
6590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595 eval "$as_ac_Header=\$ac_header_preproc"
6597 ac_res=`eval echo '${'$as_ac_Header'}'`
6598 { echo "$as_me:$LINENO: result: $ac_res" >&5
6599 echo "${ECHO_T}$ac_res" >&6; }
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6605 _ACEOF
6609 done
6612 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6613 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <sys/personality.h>
6622 main ()
6624 personality (PER_LINUX32)
6626 return 0;
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (ac_try="$ac_compile"
6631 case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634 esac
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_compile") 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } && {
6643 test -z "$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6645 } && test -s conftest.$ac_objext; then
6646 emacs_cv_personality_linux32=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 emacs_cv_personality_linux32=no
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6656 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6658 if test $emacs_cv_personality_linux32 = yes; then
6660 cat >>confdefs.h <<\_ACEOF
6661 #define HAVE_PERSONALITY_LINUX32 1
6662 _ACEOF
6667 for ac_header in term.h
6669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <$ac_header>
6682 _ACEOF
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6684 case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev/null && {
6696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 }; then
6699 eval "$as_ac_Header=yes"
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 eval "$as_ac_Header=no"
6707 rm -f conftest.err conftest.$ac_ext
6709 ac_res=`eval echo '${'$as_ac_Header'}'`
6710 { echo "$as_me:$LINENO: result: $ac_res" >&5
6711 echo "${ECHO_T}$ac_res" >&6; }
6712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6713 cat >>confdefs.h <<_ACEOF
6714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715 _ACEOF
6719 done
6721 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6723 if test "${ac_cv_header_stdc+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 #include <stdlib.h>
6733 #include <stdarg.h>
6734 #include <string.h>
6735 #include <float.h>
6738 main ()
6742 return 0;
6744 _ACEOF
6745 rm -f conftest.$ac_objext
6746 if { (ac_try="$ac_compile"
6747 case "(($ac_try" in
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6750 esac
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_compile") 2>conftest.er1
6753 ac_status=$?
6754 grep -v '^ *+' conftest.er1 >conftest.err
6755 rm -f conftest.er1
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && {
6759 test -z "$ac_c_werror_flag" ||
6760 test ! -s conftest.err
6761 } && test -s conftest.$ac_objext; then
6762 ac_cv_header_stdc=yes
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_header_stdc=no
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 if test $ac_cv_header_stdc = yes; then
6773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <string.h>
6782 _ACEOF
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 $EGREP "memchr" >/dev/null 2>&1; then
6786 else
6787 ac_cv_header_stdc=no
6789 rm -f conftest*
6793 if test $ac_cv_header_stdc = yes; then
6794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <stdlib.h>
6803 _ACEOF
6804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805 $EGREP "free" >/dev/null 2>&1; then
6807 else
6808 ac_cv_header_stdc=no
6810 rm -f conftest*
6814 if test $ac_cv_header_stdc = yes; then
6815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6816 if test "$cross_compiling" = yes; then
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <ctype.h>
6826 #include <stdlib.h>
6827 #if ((' ' & 0x0FF) == 0x020)
6828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6830 #else
6831 # define ISLOWER(c) \
6832 (('a' <= (c) && (c) <= 'i') \
6833 || ('j' <= (c) && (c) <= 'r') \
6834 || ('s' <= (c) && (c) <= 'z'))
6835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6836 #endif
6838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6840 main ()
6842 int i;
6843 for (i = 0; i < 256; i++)
6844 if (XOR (islower (i), ISLOWER (i))
6845 || toupper (i) != TOUPPER (i))
6846 return 2;
6847 return 0;
6849 _ACEOF
6850 rm -f conftest$ac_exeext
6851 if { (ac_try="$ac_link"
6852 case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6855 esac
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_link") 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6861 { (case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864 esac
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_try") 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6871 else
6872 echo "$as_me: program exited with status $ac_status" >&5
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 ( exit $ac_status )
6877 ac_cv_header_stdc=no
6879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6887 if test $ac_cv_header_stdc = yes; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define STDC_HEADERS 1
6891 _ACEOF
6895 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6896 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6897 if test "${ac_cv_header_time+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <sys/types.h>
6907 #include <sys/time.h>
6908 #include <time.h>
6911 main ()
6913 if ((struct tm *) 0)
6914 return 0;
6916 return 0;
6918 _ACEOF
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6921 case "(($ac_try" in
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6924 esac
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_compile") 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest.$ac_objext; then
6936 ac_cv_header_time=yes
6937 else
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_cv_header_time=no
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6947 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6948 if test $ac_cv_header_time = yes; then
6950 cat >>confdefs.h <<\_ACEOF
6951 #define TIME_WITH_SYS_TIME 1
6952 _ACEOF
6956 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6957 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6958 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 $ac_includes_default
6969 main ()
6971 #ifndef sys_siglist
6972 (void) sys_siglist;
6973 #endif
6976 return 0;
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_have_decl_sys_siglist=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_have_decl_sys_siglist=no
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7007 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7008 if test $ac_cv_have_decl_sys_siglist = yes; then
7010 cat >>confdefs.h <<_ACEOF
7011 #define HAVE_DECL_SYS_SIGLIST 1
7012 _ACEOF
7015 else
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_DECL_SYS_SIGLIST 0
7018 _ACEOF
7024 if test $ac_cv_have_decl_sys_siglist != yes; then
7025 # For Tru64, at least:
7026 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7027 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7028 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7039 main ()
7041 #ifndef __sys_siglist
7042 (void) __sys_siglist;
7043 #endif
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7066 ac_cv_have_decl___sys_siglist=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 ac_cv_have_decl___sys_siglist=no
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7077 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7078 if test $ac_cv_have_decl___sys_siglist = yes; then
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_DECL___SYS_SIGLIST 1
7082 _ACEOF
7085 else
7086 cat >>confdefs.h <<_ACEOF
7087 #define HAVE_DECL___SYS_SIGLIST 0
7088 _ACEOF
7094 if test $ac_cv_have_decl___sys_siglist = yes; then
7096 cat >>confdefs.h <<\_ACEOF
7097 #define sys_siglist __sys_siglist
7098 _ACEOF
7102 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7103 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7104 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <sys/types.h>
7114 #include <sys/wait.h>
7115 #ifndef WEXITSTATUS
7116 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7117 #endif
7118 #ifndef WIFEXITED
7119 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7120 #endif
7123 main ()
7125 int s;
7126 wait (&s);
7127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7129 return 0;
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (ac_try="$ac_compile"
7134 case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137 esac
7138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_c_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 ac_cv_header_sys_wait_h=yes
7150 else
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_cv_header_sys_wait_h=no
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7161 if test $ac_cv_header_sys_wait_h = yes; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_SYS_WAIT_H 1
7165 _ACEOF
7170 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7171 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7172 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #ifdef TIME_WITH_SYS_TIME
7182 #include <sys/time.h>
7183 #include <time.h>
7184 #else
7185 #ifdef HAVE_SYS_TIME_H
7186 #include <sys/time.h>
7187 #else
7188 #include <time.h>
7189 #endif
7190 #endif
7191 #ifdef HAVE_UTIME_H
7192 #include <utime.h>
7193 #endif
7195 main ()
7197 static struct utimbuf x; x.actime = x.modtime;
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207 esac
7208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_compile") 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && {
7216 test -z "$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 } && test -s conftest.$ac_objext; then
7219 emacs_cv_struct_utimbuf=yes
7220 else
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 emacs_cv_struct_utimbuf=no
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7230 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7231 if test $emacs_cv_struct_utimbuf = yes; then
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE_STRUCT_UTIMBUF 1
7235 _ACEOF
7239 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7240 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7241 if test "${ac_cv_type_signal+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #include <sys/types.h>
7251 #include <signal.h>
7254 main ()
7256 return *(signal (0, 0)) (0) == 1;
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 ac_cv_type_signal=int
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_cv_type_signal=void
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7289 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7291 cat >>confdefs.h <<_ACEOF
7292 #define RETSIGTYPE $ac_cv_type_signal
7293 _ACEOF
7297 { echo "$as_me:$LINENO: checking for speed_t" >&5
7298 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7299 if test "${emacs_cv_speed_t+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 #include <termios.h>
7310 main ()
7312 speed_t x = 1;
7314 return 0;
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7319 case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 emacs_cv_speed_t=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 emacs_cv_speed_t=no
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7345 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7346 if test $emacs_cv_speed_t = yes; then
7348 cat >>confdefs.h <<\_ACEOF
7349 #define HAVE_SPEED_T 1
7350 _ACEOF
7354 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7355 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7356 if test "${emacs_cv_struct_timeval+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #ifdef TIME_WITH_SYS_TIME
7366 #include <sys/time.h>
7367 #include <time.h>
7368 #else
7369 #ifdef HAVE_SYS_TIME_H
7370 #include <sys/time.h>
7371 #else
7372 #include <time.h>
7373 #endif
7374 #endif
7376 main ()
7378 static struct timeval x; x.tv_sec = x.tv_usec;
7380 return 0;
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 emacs_cv_struct_timeval=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 emacs_cv_struct_timeval=no
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7411 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7412 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7413 if test $emacs_cv_struct_timeval = yes; then
7415 cat >>confdefs.h <<\_ACEOF
7416 #define HAVE_TIMEVAL 1
7417 _ACEOF
7421 { echo "$as_me:$LINENO: checking for struct exception" >&5
7422 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7423 if test "${emacs_cv_struct_exception+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 #include <math.h>
7434 main ()
7436 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7438 return 0;
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (ac_try="$ac_compile"
7443 case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446 esac
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448 (eval "$ac_compile") 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } && {
7455 test -z "$ac_c_werror_flag" ||
7456 test ! -s conftest.err
7457 } && test -s conftest.$ac_objext; then
7458 emacs_cv_struct_exception=yes
7459 else
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 emacs_cv_struct_exception=no
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7469 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7470 HAVE_EXCEPTION=$emacs_cv_struct_exception
7471 if test $emacs_cv_struct_exception != yes; then
7473 cat >>confdefs.h <<\_ACEOF
7474 #define NO_MATHERR 1
7475 _ACEOF
7480 for ac_header in sys/socket.h
7482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_res=`eval echo '${'$as_ac_Header'}'`
7490 { echo "$as_me:$LINENO: result: $ac_res" >&5
7491 echo "${ECHO_T}$ac_res" >&6; }
7492 else
7493 # Is the header compilable?
7494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7496 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 $ac_includes_default
7503 #include <$ac_header>
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (ac_try="$ac_compile"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 ac_header_compiler=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_header_compiler=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7532 echo "${ECHO_T}$ac_header_compiler" >&6; }
7534 # Is the header present?
7535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 #include <$ac_header>
7544 _ACEOF
7545 if { (ac_try="$ac_cpp conftest.$ac_ext"
7546 case "(($ac_try" in
7547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548 *) ac_try_echo=$ac_try;;
7549 esac
7550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } >/dev/null && {
7558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7560 }; then
7561 ac_header_preproc=yes
7562 else
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_header_preproc=no
7569 rm -f conftest.err conftest.$ac_ext
7570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7571 echo "${ECHO_T}$ac_header_preproc" >&6; }
7573 # So? What about this header?
7574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7575 yes:no: )
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7580 ac_header_preproc=yes
7582 no:yes:* )
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7597 esac
7598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 eval "$as_ac_Header=\$ac_header_preproc"
7605 ac_res=`eval echo '${'$as_ac_Header'}'`
7606 { echo "$as_me:$LINENO: result: $ac_res" >&5
7607 echo "${ECHO_T}$ac_res" >&6; }
7610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7611 cat >>confdefs.h <<_ACEOF
7612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7613 _ACEOF
7617 done
7620 for ac_header in net/if.h
7622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 #if HAVE_SYS_SOCKET_H
7636 #include <sys/socket.h>
7637 #endif
7639 #include <$ac_header>
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 eval "$as_ac_Header=yes"
7659 else
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 eval "$as_ac_Header=no"
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 ac_res=`eval echo '${'$as_ac_Header'}'`
7669 { echo "$as_me:$LINENO: result: $ac_res" >&5
7670 echo "${ECHO_T}$ac_res" >&6; }
7671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7674 _ACEOF
7678 done
7681 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7682 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7683 if test "${ac_cv_struct_tm+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 #include <sys/types.h>
7693 #include <time.h>
7696 main ()
7698 struct tm tm;
7699 int *p = &tm.tm_sec;
7700 return !p;
7702 return 0;
7704 _ACEOF
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7707 case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 ac_cv_struct_tm=time.h
7723 else
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 ac_cv_struct_tm=sys/time.h
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7733 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7734 if test $ac_cv_struct_tm = sys/time.h; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define TM_IN_SYS_TIME 1
7738 _ACEOF
7742 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7743 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7744 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747 cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h. */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 #include <sys/types.h>
7754 #include <$ac_cv_struct_tm>
7758 main ()
7760 static struct tm ac_aggr;
7761 if (ac_aggr.tm_zone)
7762 return 0;
7764 return 0;
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (ac_try="$ac_compile"
7769 case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_member_struct_tm_tm_zone=yes
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 #include <sys/types.h>
7796 #include <$ac_cv_struct_tm>
7800 main ()
7802 static struct tm ac_aggr;
7803 if (sizeof ac_aggr.tm_zone)
7804 return 0;
7806 return 0;
7808 _ACEOF
7809 rm -f conftest.$ac_objext
7810 if { (ac_try="$ac_compile"
7811 case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_compile") 2>conftest.er1
7817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest.$ac_objext; then
7826 ac_cv_member_struct_tm_tm_zone=yes
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_cv_member_struct_tm_tm_zone=no
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7840 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7841 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7843 cat >>confdefs.h <<_ACEOF
7844 #define HAVE_STRUCT_TM_TM_ZONE 1
7845 _ACEOF
7850 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_TM_ZONE 1
7854 _ACEOF
7856 else
7857 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7858 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7859 if test "${ac_cv_have_decl_tzname+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 #include <time.h>
7871 main ()
7873 #ifndef tzname
7874 (void) tzname;
7875 #endif
7878 return 0;
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (ac_try="$ac_compile"
7883 case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_compile") 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && {
7895 test -z "$ac_c_werror_flag" ||
7896 test ! -s conftest.err
7897 } && test -s conftest.$ac_objext; then
7898 ac_cv_have_decl_tzname=yes
7899 else
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 ac_cv_have_decl_tzname=no
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7909 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7910 if test $ac_cv_have_decl_tzname = yes; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_DECL_TZNAME 1
7914 _ACEOF
7917 else
7918 cat >>confdefs.h <<_ACEOF
7919 #define HAVE_DECL_TZNAME 0
7920 _ACEOF
7926 { echo "$as_me:$LINENO: checking for tzname" >&5
7927 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7928 if test "${ac_cv_var_tzname+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <time.h>
7938 #if !HAVE_DECL_TZNAME
7939 extern char *tzname[];
7940 #endif
7943 main ()
7945 return tzname[0][0];
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7952 case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_link") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest$ac_exeext &&
7967 $as_test_x conftest$ac_exeext; then
7968 ac_cv_var_tzname=yes
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_var_tzname=no
7976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7977 conftest$ac_exeext conftest.$ac_ext
7979 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7980 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7981 if test $ac_cv_var_tzname = yes; then
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_TZNAME 1
7985 _ACEOF
7990 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7991 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7992 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h. */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 #include <time.h>
8004 main ()
8006 static struct tm ac_aggr;
8007 if (ac_aggr.tm_gmtoff)
8008 return 0;
8010 return 0;
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8015 case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_compile") 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && {
8027 test -z "$ac_c_werror_flag" ||
8028 test ! -s conftest.err
8029 } && test -s conftest.$ac_objext; then
8030 ac_cv_member_struct_tm_tm_gmtoff=yes
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 #include <time.h>
8044 main ()
8046 static struct tm ac_aggr;
8047 if (sizeof ac_aggr.tm_gmtoff)
8048 return 0;
8050 return 0;
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8055 case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_cv_member_struct_tm_tm_gmtoff=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_cv_member_struct_tm_tm_gmtoff=no
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8085 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8087 cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_TM_GMTOFF 1
8089 _ACEOF
8093 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8094 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8095 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 $ac_includes_default
8105 #if HAVE_SYS_SOCKET_H
8106 #include <sys/socket.h>
8107 #endif
8108 #if HAVE_NET_IF_H
8109 #include <net/if.h>
8110 #endif
8113 main ()
8115 static struct ifreq ac_aggr;
8116 if (ac_aggr.ifr_flags)
8117 return 0;
8119 return 0;
8121 _ACEOF
8122 rm -f conftest.$ac_objext
8123 if { (ac_try="$ac_compile"
8124 case "(($ac_try" in
8125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8127 esac
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.$ac_objext; then
8139 ac_cv_member_struct_ifreq_ifr_flags=yes
8140 else
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8151 #if HAVE_SYS_SOCKET_H
8152 #include <sys/socket.h>
8153 #endif
8154 #if HAVE_NET_IF_H
8155 #include <net/if.h>
8156 #endif
8159 main ()
8161 static struct ifreq ac_aggr;
8162 if (sizeof ac_aggr.ifr_flags)
8163 return 0;
8165 return 0;
8167 _ACEOF
8168 rm -f conftest.$ac_objext
8169 if { (ac_try="$ac_compile"
8170 case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_compile") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest.$ac_objext; then
8185 ac_cv_member_struct_ifreq_ifr_flags=yes
8186 else
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 ac_cv_member_struct_ifreq_ifr_flags=no
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8199 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8200 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8204 _ACEOF
8208 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8209 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8210 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213 cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h. */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 $ac_includes_default
8220 #if HAVE_SYS_SOCKET_H
8221 #include <sys/socket.h>
8222 #endif
8223 #if HAVE_NET_IF_H
8224 #include <net/if.h>
8225 #endif
8228 main ()
8230 static struct ifreq ac_aggr;
8231 if (ac_aggr.ifr_hwaddr)
8232 return 0;
8234 return 0;
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (ac_try="$ac_compile"
8239 case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.$ac_objext; then
8254 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8255 else
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 #if HAVE_SYS_SOCKET_H
8267 #include <sys/socket.h>
8268 #endif
8269 #if HAVE_NET_IF_H
8270 #include <net/if.h>
8271 #endif
8274 main ()
8276 static struct ifreq ac_aggr;
8277 if (sizeof ac_aggr.ifr_hwaddr)
8278 return 0;
8280 return 0;
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8285 case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8291 ac_status=$?
8292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest.$ac_objext; then
8300 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8314 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8315 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8317 cat >>confdefs.h <<_ACEOF
8318 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8319 _ACEOF
8323 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8324 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8325 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 #if HAVE_SYS_SOCKET_H
8336 #include <sys/socket.h>
8337 #endif
8338 #if HAVE_NET_IF_H
8339 #include <net/if.h>
8340 #endif
8343 main ()
8345 static struct ifreq ac_aggr;
8346 if (ac_aggr.ifr_netmask)
8347 return 0;
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (ac_try="$ac_compile"
8354 case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && {
8366 test -z "$ac_c_werror_flag" ||
8367 test ! -s conftest.err
8368 } && test -s conftest.$ac_objext; then
8369 ac_cv_member_struct_ifreq_ifr_netmask=yes
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 #if HAVE_SYS_SOCKET_H
8382 #include <sys/socket.h>
8383 #endif
8384 #if HAVE_NET_IF_H
8385 #include <net/if.h>
8386 #endif
8389 main ()
8391 static struct ifreq ac_aggr;
8392 if (sizeof ac_aggr.ifr_netmask)
8393 return 0;
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8400 case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest.$ac_objext; then
8415 ac_cv_member_struct_ifreq_ifr_netmask=yes
8416 else
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_member_struct_ifreq_ifr_netmask=no
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8429 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8430 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8432 cat >>confdefs.h <<_ACEOF
8433 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8434 _ACEOF
8438 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8439 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8440 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #if HAVE_SYS_SOCKET_H
8451 #include <sys/socket.h>
8452 #endif
8453 #if HAVE_NET_IF_H
8454 #include <net/if.h>
8455 #endif
8458 main ()
8460 static struct ifreq ac_aggr;
8461 if (ac_aggr.ifr_broadaddr)
8462 return 0;
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 #if HAVE_SYS_SOCKET_H
8497 #include <sys/socket.h>
8498 #endif
8499 #if HAVE_NET_IF_H
8500 #include <net/if.h>
8501 #endif
8504 main ()
8506 static struct ifreq ac_aggr;
8507 if (sizeof ac_aggr.ifr_broadaddr)
8508 return 0;
8510 return 0;
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8530 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8544 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8545 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8547 cat >>confdefs.h <<_ACEOF
8548 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8549 _ACEOF
8553 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8554 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8555 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 #if HAVE_SYS_SOCKET_H
8566 #include <sys/socket.h>
8567 #endif
8568 #if HAVE_NET_IF_H
8569 #include <net/if.h>
8570 #endif
8573 main ()
8575 static struct ifreq ac_aggr;
8576 if (ac_aggr.ifr_addr)
8577 return 0;
8579 return 0;
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8584 case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8599 ac_cv_member_struct_ifreq_ifr_addr=yes
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 #if HAVE_SYS_SOCKET_H
8612 #include <sys/socket.h>
8613 #endif
8614 #if HAVE_NET_IF_H
8615 #include <net/if.h>
8616 #endif
8619 main ()
8621 static struct ifreq ac_aggr;
8622 if (sizeof ac_aggr.ifr_addr)
8623 return 0;
8625 return 0;
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (ac_try="$ac_compile"
8630 case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_compile") 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } && {
8642 test -z "$ac_c_werror_flag" ||
8643 test ! -s conftest.err
8644 } && test -s conftest.$ac_objext; then
8645 ac_cv_member_struct_ifreq_ifr_addr=yes
8646 else
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_cv_member_struct_ifreq_ifr_addr=no
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8659 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8660 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8662 cat >>confdefs.h <<_ACEOF
8663 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8664 _ACEOF
8671 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8672 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8673 if test "$ac_cv_prog_cc_c89" != no; then
8674 { echo "$as_me:$LINENO: result: yes" >&5
8675 echo "${ECHO_T}yes" >&6; }
8677 cat >>confdefs.h <<\_ACEOF
8678 #define PROTOTYPES 1
8679 _ACEOF
8682 cat >>confdefs.h <<\_ACEOF
8683 #define __PROTOTYPES 1
8684 _ACEOF
8686 else
8687 { echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6; }
8691 { echo "$as_me:$LINENO: checking for working volatile" >&5
8692 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8693 if test "${ac_cv_c_volatile+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8704 main ()
8707 volatile int x;
8708 int * volatile y = (int *) 0;
8709 return !x && !y;
8711 return 0;
8713 _ACEOF
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8716 case "(($ac_try" in
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8719 esac
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_cv_c_volatile=yes
8732 else
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_cv_c_volatile=no
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8742 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8743 if test $ac_cv_c_volatile = no; then
8745 cat >>confdefs.h <<\_ACEOF
8746 #define volatile
8747 _ACEOF
8751 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8752 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8753 if test "${ac_cv_c_const+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8764 main ()
8766 /* FIXME: Include the comments suggested by Paul. */
8767 #ifndef __cplusplus
8768 /* Ultrix mips cc rejects this. */
8769 typedef int charset[2];
8770 const charset cs;
8771 /* SunOS 4.1.1 cc rejects this. */
8772 char const *const *pcpcc;
8773 char **ppc;
8774 /* NEC SVR4.0.2 mips cc rejects this. */
8775 struct point {int x, y;};
8776 static struct point const zero = {0,0};
8777 /* AIX XL C 1.02.0.0 rejects this.
8778 It does not let you subtract one const X* pointer from another in
8779 an arm of an if-expression whose if-part is not a constant
8780 expression */
8781 const char *g = "string";
8782 pcpcc = &g + (g ? g-g : 0);
8783 /* HPUX 7.0 cc rejects these. */
8784 ++pcpcc;
8785 ppc = (char**) pcpcc;
8786 pcpcc = (char const *const *) ppc;
8787 { /* SCO 3.2v4 cc rejects this. */
8788 char *t;
8789 char const *s = 0 ? (char *) 0 : (char const *) 0;
8791 *t++ = 0;
8792 if (s) return 0;
8794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8795 int x[] = {25, 17};
8796 const int *foo = &x[0];
8797 ++foo;
8799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8800 typedef const int *iptr;
8801 iptr p = 0;
8802 ++p;
8804 { /* AIX XL C 1.02.0.0 rejects this saying
8805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8806 struct s { int j; const int *ap[3]; };
8807 struct s *b; b->j = 5;
8809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8810 const int foo = 10;
8811 if (!foo) return 0;
8813 return !cs[0] && !zero.x;
8814 #endif
8817 return 0;
8819 _ACEOF
8820 rm -f conftest.$ac_objext
8821 if { (ac_try="$ac_compile"
8822 case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8837 ac_cv_c_const=yes
8838 else
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_c_const=no
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8848 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8849 if test $ac_cv_c_const = no; then
8851 cat >>confdefs.h <<\_ACEOF
8852 #define const
8853 _ACEOF
8857 { echo "$as_me:$LINENO: checking for void * support" >&5
8858 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8859 if test "${emacs_cv_void_star+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8870 main ()
8872 void * foo;
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8879 case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.$ac_objext; then
8894 emacs_cv_void_star=yes
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 emacs_cv_void_star=no
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8905 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8906 if test $emacs_cv_void_star = yes; then
8907 cat >>confdefs.h <<\_ACEOF
8908 #define POINTER_TYPE void
8909 _ACEOF
8911 else
8912 cat >>confdefs.h <<\_ACEOF
8913 #define POINTER_TYPE char
8914 _ACEOF
8922 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8923 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8924 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8925 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 cat >conftest.make <<\_ACEOF
8929 SHELL = /bin/sh
8930 all:
8931 @echo '@@@%%%=$(MAKE)=@@@%%%'
8932 _ACEOF
8933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8934 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8935 *@@@%%%=?*=@@@%%%*)
8936 eval ac_cv_prog_make_${ac_make}_set=yes;;
8938 eval ac_cv_prog_make_${ac_make}_set=no;;
8939 esac
8940 rm -f conftest.make
8942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8943 { echo "$as_me:$LINENO: result: yes" >&5
8944 echo "${ECHO_T}yes" >&6; }
8945 SET_MAKE=
8946 else
8947 { echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6; }
8949 SET_MAKE="MAKE=${MAKE-make}"
8953 { echo "$as_me:$LINENO: checking for long file names" >&5
8954 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8955 if test "${ac_cv_sys_long_file_names+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958 ac_cv_sys_long_file_names=yes
8959 # Test for long file names in all the places we know might matter:
8960 # . the current directory, where building will happen
8961 # $prefix/lib where we will be installing things
8962 # $exec_prefix/lib likewise
8963 # $TMPDIR if set, where it might want to write temporary files
8964 # /tmp where it might want to write temporary files
8965 # /var/tmp likewise
8966 # /usr/tmp likewise
8967 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8968 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8969 # in the usual case where exec_prefix is '${prefix}'.
8970 case $ac_dir in #(
8971 . | /* | ?:[\\/]*) ;; #(
8972 *) continue;;
8973 esac
8974 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8975 ac_xdir=$ac_dir/cf$$
8976 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8977 ac_tf1=$ac_xdir/conftest9012345
8978 ac_tf2=$ac_xdir/conftest9012346
8979 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8980 ac_cv_sys_long_file_names=no
8981 rm -f -r "$ac_xdir" 2>/dev/null
8982 test $ac_cv_sys_long_file_names = no && break
8983 done
8985 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8986 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8987 if test $ac_cv_sys_long_file_names = yes; then
8989 cat >>confdefs.h <<\_ACEOF
8990 #define HAVE_LONG_FILE_NAMES 1
8991 _ACEOF
8996 #### Choose a window system.
8998 { echo "$as_me:$LINENO: checking for X" >&5
8999 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9002 # Check whether --with-x was given.
9003 if test "${with_x+set}" = set; then
9004 withval=$with_x;
9007 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9008 if test "x$with_x" = xno; then
9009 # The user explicitly disabled X.
9010 have_x=disabled
9011 else
9012 case $x_includes,$x_libraries in #(
9013 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9014 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9015 { (exit 1); exit 1; }; };; #(
9016 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 # One or both of the vars are not set, and there is no cached value.
9020 ac_x_includes=no ac_x_libraries=no
9021 rm -f -r conftest.dir
9022 if mkdir conftest.dir; then
9023 cd conftest.dir
9024 cat >Imakefile <<'_ACEOF'
9025 incroot:
9026 @echo incroot='${INCROOT}'
9027 usrlibdir:
9028 @echo usrlibdir='${USRLIBDIR}'
9029 libdir:
9030 @echo libdir='${LIBDIR}'
9031 _ACEOF
9032 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9033 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9034 for ac_var in incroot usrlibdir libdir; do
9035 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9036 done
9037 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9038 for ac_extension in a so sl; do
9039 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9040 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9041 ac_im_usrlibdir=$ac_im_libdir; break
9043 done
9044 # Screen out bogus values from the imake configuration. They are
9045 # bogus both because they are the default anyway, and because
9046 # using them would break gcc on systems where it needs fixed includes.
9047 case $ac_im_incroot in
9048 /usr/include) ac_x_includes= ;;
9049 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9050 esac
9051 case $ac_im_usrlibdir in
9052 /usr/lib | /lib) ;;
9053 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9054 esac
9056 cd ..
9057 rm -f -r conftest.dir
9060 # Standard set of common directories for X headers.
9061 # Check X11 before X11Rn because it is often a symlink to the current release.
9062 ac_x_header_dirs='
9063 /usr/X11/include
9064 /usr/X11R6/include
9065 /usr/X11R5/include
9066 /usr/X11R4/include
9068 /usr/include/X11
9069 /usr/include/X11R6
9070 /usr/include/X11R5
9071 /usr/include/X11R4
9073 /usr/local/X11/include
9074 /usr/local/X11R6/include
9075 /usr/local/X11R5/include
9076 /usr/local/X11R4/include
9078 /usr/local/include/X11
9079 /usr/local/include/X11R6
9080 /usr/local/include/X11R5
9081 /usr/local/include/X11R4
9083 /usr/X386/include
9084 /usr/x386/include
9085 /usr/XFree86/include/X11
9087 /usr/include
9088 /usr/local/include
9089 /usr/unsupported/include
9090 /usr/athena/include
9091 /usr/local/x11r5/include
9092 /usr/lpp/Xamples/include
9094 /usr/openwin/include
9095 /usr/openwin/share/include'
9097 if test "$ac_x_includes" = no; then
9098 # Guess where to find include files, by looking for Xlib.h.
9099 # First, try using that file with no special directory specified.
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h. */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 #include <X11/Xlib.h>
9107 _ACEOF
9108 if { (ac_try="$ac_cpp conftest.$ac_ext"
9109 case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } >/dev/null && {
9121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9122 test ! -s conftest.err
9123 }; then
9124 # We can compile using X headers with no special include directory.
9125 ac_x_includes=
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 for ac_dir in $ac_x_header_dirs; do
9131 if test -r "$ac_dir/X11/Xlib.h"; then
9132 ac_x_includes=$ac_dir
9133 break
9135 done
9138 rm -f conftest.err conftest.$ac_ext
9139 fi # $ac_x_includes = no
9141 if test "$ac_x_libraries" = no; then
9142 # Check for the libraries.
9143 # See if we find them without any special options.
9144 # Don't add to $LIBS permanently.
9145 ac_save_LIBS=$LIBS
9146 LIBS="-lX11 $LIBS"
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 #include <X11/Xlib.h>
9155 main ()
9157 XrmInitialize ()
9159 return 0;
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (ac_try="$ac_link"
9164 case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_link") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest$ac_exeext &&
9179 $as_test_x conftest$ac_exeext; then
9180 LIBS=$ac_save_LIBS
9181 # We can link X programs with no special library path.
9182 ac_x_libraries=
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 LIBS=$ac_save_LIBS
9188 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9190 # Don't even attempt the hair of trying to link an X program!
9191 for ac_extension in a so sl; do
9192 if test -r "$ac_dir/libX11.$ac_extension"; then
9193 ac_x_libraries=$ac_dir
9194 break 2
9196 done
9197 done
9200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi # $ac_x_libraries = no
9204 case $ac_x_includes,$ac_x_libraries in #(
9205 no,* | *,no | *\'*)
9206 # Didn't find X, or a directory has "'" in its name.
9207 ac_cv_have_x="have_x=no";; #(
9209 # Record where we found X for the cache.
9210 ac_cv_have_x="have_x=yes\
9211 ac_x_includes='$ac_x_includes'\
9212 ac_x_libraries='$ac_x_libraries'"
9213 esac
9215 ;; #(
9216 *) have_x=yes;;
9217 esac
9218 eval "$ac_cv_have_x"
9219 fi # $with_x != no
9221 if test "$have_x" != yes; then
9222 { echo "$as_me:$LINENO: result: $have_x" >&5
9223 echo "${ECHO_T}$have_x" >&6; }
9224 no_x=yes
9225 else
9226 # If each of the values was on the command line, it overrides each guess.
9227 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9228 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9229 # Update the cache value to reflect the command line values.
9230 ac_cv_have_x="have_x=yes\
9231 ac_x_includes='$x_includes'\
9232 ac_x_libraries='$x_libraries'"
9233 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9234 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9237 if test "$no_x" = yes; then
9238 window_system=none
9239 else
9240 window_system=x11
9243 if test "${x_libraries}" != NONE; then
9244 if test -n "${x_libraries}"; then
9245 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9246 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9248 x_default_search_path=""
9249 x_search_path=${x_libraries}
9250 if test -z "${x_search_path}"; then
9251 x_search_path=/usr/lib
9253 for x_library in `echo ${x_search_path}: | \
9254 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9255 x_search_path="\
9256 ${x_library}/X11/%L/%T/%N%C%S:\
9257 ${x_library}/X11/%l/%T/%N%C%S:\
9258 ${x_library}/X11/%T/%N%C%S:\
9259 ${x_library}/X11/%L/%T/%N%S:\
9260 ${x_library}/X11/%l/%T/%N%S:\
9261 ${x_library}/X11/%T/%N%S"
9262 if test x"${x_default_search_path}" = x; then
9263 x_default_search_path=${x_search_path}
9264 else
9265 x_default_search_path="${x_search_path}:${x_default_search_path}"
9267 done
9269 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9270 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9273 if test x"${x_includes}" = x; then
9274 bitmapdir=/usr/include/X11/bitmaps
9275 else
9276 # accumulate include directories that have X11 bitmap subdirectories
9277 bmd_acc="dummyval"
9278 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9279 if test -d "${bmd}/X11/bitmaps"; then
9280 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9282 if test -d "${bmd}/bitmaps"; then
9283 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9285 done
9286 if test ${bmd_acc} != "dummyval"; then
9287 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9291 HAVE_CARBON=no
9292 if test "${with_carbon}" != no; then
9293 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9294 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9295 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9296 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9300 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9301 else
9302 # Is the header compilable?
9303 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9304 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 $ac_includes_default
9312 #include <Carbon/Carbon.h>
9313 _ACEOF
9314 rm -f conftest.$ac_objext
9315 if { (ac_try="$ac_compile"
9316 case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_compile") 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest.$ac_objext; then
9331 ac_header_compiler=yes
9332 else
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_header_compiler=no
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9341 echo "${ECHO_T}$ac_header_compiler" >&6; }
9343 # Is the header present?
9344 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9345 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 #include <Carbon/Carbon.h>
9353 _ACEOF
9354 if { (ac_try="$ac_cpp conftest.$ac_ext"
9355 case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } >/dev/null && {
9367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 }; then
9370 ac_header_preproc=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_header_preproc=no
9378 rm -f conftest.err conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6; }
9382 # So? What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9384 yes:no: )
9385 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9389 ac_header_preproc=yes
9391 no:yes:* )
9392 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9406 esac
9407 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9408 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9409 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9414 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9415 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9418 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9419 HAVE_CARBON=yes
9424 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9425 if test "${with_carbon+set}" != set \
9426 && test "${carbon_appdir_x+set}" != set; then
9427 for var in with_x with_x_toolkit with_gtk with_xim \
9428 with_xpm with_jpeg with_tiff with_gif with_png; do
9429 if eval test \"\${$var+set}\" = set; then
9430 HAVE_CARBON=no
9431 break
9433 done
9436 if test "${HAVE_CARBON}" = yes; then
9437 window_system=mac
9440 case "${window_system}" in
9441 x11 )
9442 HAVE_X_WINDOWS=yes
9443 HAVE_X11=yes
9444 case "${with_x_toolkit}" in
9445 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9446 motif ) USE_X_TOOLKIT=MOTIF ;;
9447 gtk ) with_gtk=yes
9448 USE_X_TOOLKIT=none ;;
9449 no ) USE_X_TOOLKIT=none ;;
9450 * ) USE_X_TOOLKIT=maybe ;;
9451 esac
9453 mac | none )
9454 HAVE_X_WINDOWS=no
9455 HAVE_X11=no
9456 USE_X_TOOLKIT=none
9458 esac
9460 ### If we're using X11, we should use the X menu package.
9461 HAVE_MENUS=no
9462 case ${HAVE_X11} in
9463 yes ) HAVE_MENUS=yes ;;
9464 esac
9466 if test "${opsys}" = "hpux9"; then
9467 case "${x_libraries}" in
9468 *X11R4* )
9469 opsysfile="s/hpux9-x11r4.h"
9471 esac
9474 if test "${opsys}" = "hpux9shr"; then
9475 case "${x_libraries}" in
9476 *X11R4* )
9477 opsysfile="s/hpux9shxr4.h"
9479 esac
9482 ### Compute the unexec source name from the object name.
9483 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9485 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9486 # Assume not, until told otherwise.
9487 GNU_MALLOC=yes
9488 doug_lea_malloc=yes
9489 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9490 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9491 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h. */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9502 #define malloc_get_state innocuous_malloc_get_state
9504 /* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char malloc_get_state (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9509 #ifdef __STDC__
9510 # include <limits.h>
9511 #else
9512 # include <assert.h>
9513 #endif
9515 #undef malloc_get_state
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char malloc_get_state ();
9524 /* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
9527 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9528 choke me
9529 #endif
9532 main ()
9534 return malloc_get_state ();
9536 return 0;
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_link") 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest$ac_exeext &&
9556 $as_test_x conftest$ac_exeext; then
9557 ac_cv_func_malloc_get_state=yes
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_func_malloc_get_state=no
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9568 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9569 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9570 if test $ac_cv_func_malloc_get_state = yes; then
9572 else
9573 doug_lea_malloc=no
9576 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9577 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_set_state innocuous_malloc_set_state
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_set_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9596 #ifdef __STDC__
9597 # include <limits.h>
9598 #else
9599 # include <assert.h>
9600 #endif
9602 #undef malloc_set_state
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char malloc_set_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9615 choke me
9616 #endif
9619 main ()
9621 return malloc_set_state ();
9623 return 0;
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9628 case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_func_malloc_set_state=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_func_malloc_set_state=no
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9657 if test $ac_cv_func_malloc_set_state = yes; then
9659 else
9660 doug_lea_malloc=no
9663 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9664 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9665 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 extern void (* __after_morecore_hook)();
9676 main ()
9678 __after_morecore_hook = 0
9680 return 0;
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest$ac_exeext &&
9700 $as_test_x conftest$ac_exeext; then
9701 emacs_cv_var___after_morecore_hook=yes
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 emacs_cv_var___after_morecore_hook=no
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9712 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9713 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9714 if test $emacs_cv_var___after_morecore_hook = no; then
9715 doug_lea_malloc=no
9717 if test "${system_malloc}" = "yes"; then
9718 GNU_MALLOC=no
9719 GNU_MALLOC_reason="
9720 (The GNU allocators don't work with this system configuration.)"
9722 if test "$doug_lea_malloc" = "yes" ; then
9723 if test "$GNU_MALLOC" = yes ; then
9724 GNU_MALLOC_reason="
9725 (Using Doug Lea's new malloc from the GNU C Library.)"
9728 cat >>confdefs.h <<\_ACEOF
9729 #define DOUG_LEA_MALLOC 1
9730 _ACEOF
9734 if test x"${REL_ALLOC}" = x; then
9735 REL_ALLOC=${GNU_MALLOC}
9741 for ac_header in stdlib.h unistd.h
9743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 ac_res=`eval echo '${'$as_ac_Header'}'`
9751 { echo "$as_me:$LINENO: result: $ac_res" >&5
9752 echo "${ECHO_T}$ac_res" >&6; }
9753 else
9754 # Is the header compilable?
9755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 #include <$ac_header>
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (ac_try="$ac_compile"
9768 case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_compile") 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest.$ac_objext; then
9783 ac_header_compiler=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 ac_header_compiler=no
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9793 echo "${ECHO_T}$ac_header_compiler" >&6; }
9795 # Is the header present?
9796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include <$ac_header>
9805 _ACEOF
9806 if { (ac_try="$ac_cpp conftest.$ac_ext"
9807 case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } >/dev/null && {
9819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 }; then
9822 ac_header_preproc=yes
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_header_preproc=no
9830 rm -f conftest.err conftest.$ac_ext
9831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 echo "${ECHO_T}$ac_header_preproc" >&6; }
9834 # So? What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9836 yes:no: )
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841 ac_header_preproc=yes
9843 no:yes:* )
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9858 esac
9859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 eval "$as_ac_Header=\$ac_header_preproc"
9866 ac_res=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9874 _ACEOF
9878 done
9881 for ac_func in getpagesize
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define $ac_func innocuous_$ac_func
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9904 #ifdef __STDC__
9905 # include <limits.h>
9906 #else
9907 # include <assert.h>
9908 #endif
9910 #undef $ac_func
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char $ac_func ();
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_$ac_func || defined __stub___$ac_func
9923 choke me
9924 #endif
9927 main ()
9929 return $ac_func ();
9931 return 0;
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9936 case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
9952 eval "$as_ac_var=yes"
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 eval "$as_ac_var=no"
9960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9961 conftest$ac_exeext conftest.$ac_ext
9963 ac_res=`eval echo '${'$as_ac_var'}'`
9964 { echo "$as_me:$LINENO: result: $ac_res" >&5
9965 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_var'}'` = yes; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9969 _ACEOF
9972 done
9974 { echo "$as_me:$LINENO: checking for working mmap" >&5
9975 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9976 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 if test "$cross_compiling" = yes; then
9980 ac_cv_func_mmap_fixed_mapped=no
9981 else
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 $ac_includes_default
9989 /* malloc might have been renamed as rpl_malloc. */
9990 #undef malloc
9992 /* Thanks to Mike Haertel and Jim Avera for this test.
9993 Here is a matrix of mmap possibilities:
9994 mmap private not fixed
9995 mmap private fixed at somewhere currently unmapped
9996 mmap private fixed at somewhere already mapped
9997 mmap shared not fixed
9998 mmap shared fixed at somewhere currently unmapped
9999 mmap shared fixed at somewhere already mapped
10000 For private mappings, we should verify that changes cannot be read()
10001 back from the file, nor mmap's back from the file at a different
10002 address. (There have been systems where private was not correctly
10003 implemented like the infamous i386 svr4.0, and systems where the
10004 VM page cache was not coherent with the file system buffer cache
10005 like early versions of FreeBSD and possibly contemporary NetBSD.)
10006 For shared mappings, we should conversely verify that changes get
10007 propagated back to all the places they're supposed to be.
10009 Grep wants private fixed already mapped.
10010 The main things grep needs to know about mmap are:
10011 * does it exist and is it safe to write into the mmap'd area
10012 * how to use it (BSD variants) */
10014 #include <fcntl.h>
10015 #include <sys/mman.h>
10017 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10018 char *malloc ();
10019 #endif
10021 /* This mess was copied from the GNU getpagesize.h. */
10022 #ifndef HAVE_GETPAGESIZE
10023 /* Assume that all systems that can run configure have sys/param.h. */
10024 # ifndef HAVE_SYS_PARAM_H
10025 # define HAVE_SYS_PARAM_H 1
10026 # endif
10028 # ifdef _SC_PAGESIZE
10029 # define getpagesize() sysconf(_SC_PAGESIZE)
10030 # else /* no _SC_PAGESIZE */
10031 # ifdef HAVE_SYS_PARAM_H
10032 # include <sys/param.h>
10033 # ifdef EXEC_PAGESIZE
10034 # define getpagesize() EXEC_PAGESIZE
10035 # else /* no EXEC_PAGESIZE */
10036 # ifdef NBPG
10037 # define getpagesize() NBPG * CLSIZE
10038 # ifndef CLSIZE
10039 # define CLSIZE 1
10040 # endif /* no CLSIZE */
10041 # else /* no NBPG */
10042 # ifdef NBPC
10043 # define getpagesize() NBPC
10044 # else /* no NBPC */
10045 # ifdef PAGESIZE
10046 # define getpagesize() PAGESIZE
10047 # endif /* PAGESIZE */
10048 # endif /* no NBPC */
10049 # endif /* no NBPG */
10050 # endif /* no EXEC_PAGESIZE */
10051 # else /* no HAVE_SYS_PARAM_H */
10052 # define getpagesize() 8192 /* punt totally */
10053 # endif /* no HAVE_SYS_PARAM_H */
10054 # endif /* no _SC_PAGESIZE */
10056 #endif /* no HAVE_GETPAGESIZE */
10059 main ()
10061 char *data, *data2, *data3;
10062 int i, pagesize;
10063 int fd;
10065 pagesize = getpagesize ();
10067 /* First, make a file with some known garbage in it. */
10068 data = (char *) malloc (pagesize);
10069 if (!data)
10070 return 1;
10071 for (i = 0; i < pagesize; ++i)
10072 *(data + i) = rand ();
10073 umask (0);
10074 fd = creat ("conftest.mmap", 0600);
10075 if (fd < 0)
10076 return 1;
10077 if (write (fd, data, pagesize) != pagesize)
10078 return 1;
10079 close (fd);
10081 /* Next, try to mmap the file at a fixed address which already has
10082 something else allocated at it. If we can, also make sure that
10083 we see the same garbage. */
10084 fd = open ("conftest.mmap", O_RDWR);
10085 if (fd < 0)
10086 return 1;
10087 data2 = (char *) malloc (2 * pagesize);
10088 if (!data2)
10089 return 1;
10090 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10091 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10092 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10093 return 1;
10094 for (i = 0; i < pagesize; ++i)
10095 if (*(data + i) != *(data2 + i))
10096 return 1;
10098 /* Finally, make sure that changes to the mapped area do not
10099 percolate back to the file as seen by read(). (This is a bug on
10100 some variants of i386 svr4.0.) */
10101 for (i = 0; i < pagesize; ++i)
10102 *(data2 + i) = *(data2 + i) + 1;
10103 data3 = (char *) malloc (pagesize);
10104 if (!data3)
10105 return 1;
10106 if (read (fd, data3, pagesize) != pagesize)
10107 return 1;
10108 for (i = 0; i < pagesize; ++i)
10109 if (*(data + i) != *(data3 + i))
10110 return 1;
10111 close (fd);
10112 return 0;
10114 _ACEOF
10115 rm -f conftest$ac_exeext
10116 if { (ac_try="$ac_link"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_link") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10126 { (case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_try") 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_func_mmap_fixed_mapped=yes
10136 else
10137 echo "$as_me: program exited with status $ac_status" >&5
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ( exit $ac_status )
10142 ac_cv_func_mmap_fixed_mapped=no
10144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10150 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10151 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10153 cat >>confdefs.h <<\_ACEOF
10154 #define HAVE_MMAP 1
10155 _ACEOF
10158 rm -f conftest.mmap
10160 if test $use_mmap_for_buffers = yes; then
10161 REL_ALLOC=no
10164 LIBS="$libsrc_libs $LIBS"
10167 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10168 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172 ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-ldnet $LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char dnet_ntoa ();
10189 main ()
10191 return dnet_ntoa ();
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext &&
10213 $as_test_x conftest$ac_exeext; then
10214 ac_cv_lib_dnet_dnet_ntoa=yes
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_lib_dnet_dnet_ntoa=no
10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10228 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10229 cat >>confdefs.h <<_ACEOF
10230 #define HAVE_LIBDNET 1
10231 _ACEOF
10233 LIBS="-ldnet $LIBS"
10238 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10239 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10240 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-lXbsd $LIBS"
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10254 main ()
10256 return main ();
10258 return 0;
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_link") 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext &&
10278 $as_test_x conftest$ac_exeext; then
10279 ac_cv_lib_Xbsd_main=yes
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_cv_lib_Xbsd_main=no
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10292 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10293 if test $ac_cv_lib_Xbsd_main = yes; then
10294 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10299 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10300 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10301 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 ac_check_lib_save_LIBS=$LIBS
10305 LIBS="-lpthreads $LIBS"
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char cma_open ();
10321 main ()
10323 return cma_open ();
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest$ac_exeext &&
10345 $as_test_x conftest$ac_exeext; then
10346 ac_cv_lib_pthreads_cma_open=yes
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_cv_lib_pthreads_cma_open=no
10354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10359 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10360 if test $ac_cv_lib_pthreads_cma_open = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE_LIBPTHREADS 1
10363 _ACEOF
10365 LIBS="-lpthreads $LIBS"
10370 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10371 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10372 if test -d /usr/X386/include; then
10373 HAVE_XFREE386=yes
10374 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10375 else
10376 HAVE_XFREE386=no
10378 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10379 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10382 case ${host_os} in
10383 aix*)
10384 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10385 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10386 if test "${gdb_cv_bigtoc+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10390 case $GCC in
10391 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10392 *) gdb_cv_bigtoc=-bbigtoc ;;
10393 esac
10395 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10404 main ()
10406 int i;
10408 return 0;
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest$ac_exeext &&
10428 $as_test_x conftest$ac_exeext; then
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 gdb_cv_bigtoc=
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10438 conftest$ac_exeext conftest.$ac_ext
10441 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10442 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10444 esac
10446 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10447 # used for the tests that follow. We set them back to REAL_CFLAGS and
10448 # REAL_CPPFLAGS later on.
10450 REAL_CPPFLAGS="$CPPFLAGS"
10452 if test "${HAVE_X11}" = "yes"; then
10453 DEFS="$C_SWITCH_X_SITE $DEFS"
10454 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10455 LIBS="$LIBX $LIBS"
10456 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10457 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10459 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10460 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10461 # but it's more convenient here to set LD_RUN_PATH
10462 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10463 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10464 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10465 export LD_RUN_PATH
10468 if test "${opsys}" = "gnu-linux"; then
10469 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10470 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10479 main ()
10481 XOpenDisplay ("foo");
10483 return 0;
10485 _ACEOF
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (ac_try="$ac_link"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_link") 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && {
10500 test -z "$ac_c_werror_flag" ||
10501 test ! -s conftest.err
10502 } && test -s conftest$ac_exeext &&
10503 $as_test_x conftest$ac_exeext; then
10504 xlinux_first_failure=no
10505 else
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 xlinux_first_failure=yes
10512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10513 conftest$ac_exeext conftest.$ac_ext
10514 if test "${xlinux_first_failure}" = "yes"; then
10515 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10516 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10517 OLD_CPPFLAGS="$CPPFLAGS"
10518 OLD_LIBS="$LIBS"
10519 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10520 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10521 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10522 LIBS="$LIBS -b i486-linuxaout"
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10531 main ()
10533 XOpenDisplay ("foo");
10535 return 0;
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_link") 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest$ac_exeext &&
10555 $as_test_x conftest$ac_exeext; then
10556 xlinux_second_failure=no
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 xlinux_second_failure=yes
10564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10565 conftest$ac_exeext conftest.$ac_ext
10566 if test "${xlinux_second_failure}" = "yes"; then
10567 # If we get the same failure with -b, there is no use adding -b.
10568 # So take it out. This plays safe.
10569 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10570 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10571 CPPFLAGS="$OLD_CPPFLAGS"
10572 LIBS="$OLD_LIBS"
10573 { echo "$as_me:$LINENO: result: no" >&5
10574 echo "${ECHO_T}no" >&6; }
10575 else
10576 { echo "$as_me:$LINENO: result: yes" >&5
10577 echo "${ECHO_T}yes" >&6; }
10579 else
10580 { echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6; }
10585 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10586 # header files included from there.
10587 { echo "$as_me:$LINENO: checking for Xkb" >&5
10588 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 #include <X11/Xlib.h>
10596 #include <X11/XKBlib.h>
10598 main ()
10600 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10602 return 0;
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_link") 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest$ac_exeext &&
10622 $as_test_x conftest$ac_exeext; then
10623 emacs_xkb=yes
10624 else
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 emacs_xkb=no
10631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10632 conftest$ac_exeext conftest.$ac_ext
10633 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10634 echo "${ECHO_T}$emacs_xkb" >&6; }
10635 if test $emacs_xkb = yes; then
10637 cat >>confdefs.h <<\_ACEOF
10638 #define HAVE_XKBGETKEYBOARD 1
10639 _ACEOF
10647 for ac_func in XrmSetDatabase XScreenResourceString \
10648 XScreenNumberOfScreen XSetWMProtocols
10650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10664 #define $ac_func innocuous_$ac_func
10666 /* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func (); below.
10668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669 <limits.h> exists even on freestanding compilers. */
10671 #ifdef __STDC__
10672 # include <limits.h>
10673 #else
10674 # include <assert.h>
10675 #endif
10677 #undef $ac_func
10679 /* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
10682 #ifdef __cplusplus
10683 extern "C"
10684 #endif
10685 char $ac_func ();
10686 /* The GNU C library defines this for functions which it implements
10687 to always fail with ENOSYS. Some functions are actually named
10688 something starting with __ and the normal name is an alias. */
10689 #if defined __stub_$ac_func || defined __stub___$ac_func
10690 choke me
10691 #endif
10694 main ()
10696 return $ac_func ();
10698 return 0;
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_link") 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && {
10715 test -z "$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 } && test -s conftest$ac_exeext &&
10718 $as_test_x conftest$ac_exeext; then
10719 eval "$as_ac_var=yes"
10720 else
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 eval "$as_ac_var=no"
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728 conftest$ac_exeext conftest.$ac_ext
10730 ac_res=`eval echo '${'$as_ac_var'}'`
10731 { echo "$as_me:$LINENO: result: $ac_res" >&5
10732 echo "${ECHO_T}$ac_res" >&6; }
10733 if test `eval echo '${'$as_ac_var'}'` = yes; then
10734 cat >>confdefs.h <<_ACEOF
10735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10736 _ACEOF
10739 done
10743 if test "${window_system}" = "x11"; then
10744 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10745 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10746 if test "${emacs_cv_x11_version_6+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h. */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 #include <X11/Xlib.h>
10757 main ()
10759 #if XlibSpecificationRelease < 6
10760 fail;
10761 #endif
10764 return 0;
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772 esac
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_link") 2>conftest.er1
10775 ac_status=$?
10776 grep -v '^ *+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest$ac_exeext &&
10784 $as_test_x conftest$ac_exeext; then
10785 emacs_cv_x11_version_6=yes
10786 else
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 emacs_cv_x11_version_6=no
10793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794 conftest$ac_exeext conftest.$ac_ext
10797 if test $emacs_cv_x11_version_6 = yes; then
10798 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10799 echo "${ECHO_T}6 or newer" >&6; }
10801 cat >>confdefs.h <<\_ACEOF
10802 #define HAVE_X11R6 1
10803 _ACEOF
10805 else
10806 { echo "$as_me:$LINENO: result: before 6" >&5
10807 echo "${ECHO_T}before 6" >&6; }
10811 if test "${window_system}" = "x11"; then
10812 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10813 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10814 if test "${emacs_cv_x11_version_5+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <X11/Xlib.h>
10825 main ()
10827 #if XlibSpecificationRelease < 5
10828 fail;
10829 #endif
10832 return 0;
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (ac_try="$ac_link"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_link") 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest$ac_exeext &&
10852 $as_test_x conftest$ac_exeext; then
10853 emacs_cv_x11_version_5=yes
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 emacs_cv_x11_version_5=no
10861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10862 conftest$ac_exeext conftest.$ac_ext
10865 if test $emacs_cv_x11_version_5 = yes; then
10866 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10867 echo "${ECHO_T}5 or newer" >&6; }
10868 HAVE_X11R5=yes
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_X11R5 1
10872 _ACEOF
10874 else
10875 HAVE_X11R5=no
10876 { echo "$as_me:$LINENO: result: before 5" >&5
10877 echo "${ECHO_T}before 5" >&6; }
10881 HAVE_GTK=no
10882 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10883 USE_X_TOOLKIT=none
10885 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10886 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10887 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10888 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10889 { (exit 1); exit 1; }; };
10891 GLIB_REQUIRED=2.4
10892 GTK_REQUIRED=2.4
10893 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10895 if test "X${with_pkg_config_prog}" != X; then
10896 PKG_CONFIG="${with_pkg_config_prog}"
10899 succeeded=no
10901 if test -z "$PKG_CONFIG"; then
10902 # Extract the first word of "pkg-config", so it can be a program name with args.
10903 set dummy pkg-config; ac_word=$2
10904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 case $PKG_CONFIG in
10910 [\\/]* | ?:[\\/]*)
10911 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10921 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 break 2
10925 done
10926 done
10927 IFS=$as_save_IFS
10929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10931 esac
10933 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10934 if test -n "$PKG_CONFIG"; then
10935 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10936 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10937 else
10938 { echo "$as_me:$LINENO: result: no" >&5
10939 echo "${ECHO_T}no" >&6; }
10945 if test "$PKG_CONFIG" = "no" ; then
10946 { { echo "$as_me:$LINENO: error:
10947 *** 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
10948 echo "$as_me: error:
10949 *** 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;}
10950 { (exit 1); exit 1; }; }
10951 else
10952 PKG_CONFIG_MIN_VERSION=0.9.0
10953 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10954 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10955 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10957 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10958 { echo "$as_me:$LINENO: result: yes" >&5
10959 echo "${ECHO_T}yes" >&6; }
10960 succeeded=yes
10962 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10963 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10964 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10965 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10966 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10968 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10969 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10970 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10971 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10972 echo "${ECHO_T}$GTK_LIBS" >&6; }
10973 else
10974 { echo "$as_me:$LINENO: result: no" >&5
10975 echo "${ECHO_T}no" >&6; }
10976 GTK_CFLAGS=""
10977 GTK_LIBS=""
10978 ## If we have a custom action on failure, don't print errors, but
10979 ## do set a variable so people can do so.
10980 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10981 echo $GTK_PKG_ERRORS
10986 else
10987 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10988 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10992 if test $succeeded = yes; then
10994 else
10995 { { 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
10996 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;}
10997 { (exit 1); exit 1; }; }
11002 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11003 CFLAGS="$CFLAGS $GTK_CFLAGS"
11004 LIBS="$GTK_LIBS $LIBS"
11005 GTK_COMPILES=no
11007 for ac_func in gtk_main
11009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define $ac_func innocuous_$ac_func
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char $ac_func (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11030 #ifdef __STDC__
11031 # include <limits.h>
11032 #else
11033 # include <assert.h>
11034 #endif
11036 #undef $ac_func
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char $ac_func ();
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub_$ac_func || defined __stub___$ac_func
11049 choke me
11050 #endif
11053 main ()
11055 return $ac_func ();
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest$ac_exeext &&
11077 $as_test_x conftest$ac_exeext; then
11078 eval "$as_ac_var=yes"
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 eval "$as_ac_var=no"
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext conftest.$ac_ext
11089 ac_res=`eval echo '${'$as_ac_var'}'`
11090 { echo "$as_me:$LINENO: result: $ac_res" >&5
11091 echo "${ECHO_T}$ac_res" >&6; }
11092 if test `eval echo '${'$as_ac_var'}'` = yes; then
11093 cat >>confdefs.h <<_ACEOF
11094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 _ACEOF
11096 GTK_COMPILES=yes
11098 done
11100 if test "${GTK_COMPILES}" != "yes"; then
11101 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11102 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11103 { (exit 1); exit 1; }; };
11106 HAVE_GTK=yes
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_GTK 1
11110 _ACEOF
11112 USE_X_TOOLKIT=none
11114 if test "$with_toolkit_scroll_bars" != no; then
11115 with_toolkit_scroll_bars=yes
11118 HAVE_GTK_MULTIDISPLAY=no
11120 for ac_func in gdk_display_open
11122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128 cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h. */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11136 #define $ac_func innocuous_$ac_func
11138 /* System header to define __stub macros and hopefully few prototypes,
11139 which can conflict with char $ac_func (); below.
11140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11141 <limits.h> exists even on freestanding compilers. */
11143 #ifdef __STDC__
11144 # include <limits.h>
11145 #else
11146 # include <assert.h>
11147 #endif
11149 #undef $ac_func
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char $ac_func ();
11158 /* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161 #if defined __stub_$ac_func || defined __stub___$ac_func
11162 choke me
11163 #endif
11166 main ()
11168 return $ac_func ();
11170 return 0;
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (ac_try="$ac_link"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_link") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest$ac_exeext &&
11190 $as_test_x conftest$ac_exeext; then
11191 eval "$as_ac_var=yes"
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 eval "$as_ac_var=no"
11199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11200 conftest$ac_exeext conftest.$ac_ext
11202 ac_res=`eval echo '${'$as_ac_var'}'`
11203 { echo "$as_me:$LINENO: result: $ac_res" >&5
11204 echo "${ECHO_T}$ac_res" >&6; }
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11208 _ACEOF
11209 HAVE_GTK_MULTIDISPLAY=yes
11211 done
11213 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_GTK_MULTIDISPLAY 1
11217 _ACEOF
11220 HAVE_GTK_FILE_SELECTION=no
11222 for ac_func in gtk_file_selection_new
11224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h. */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11238 #define $ac_func innocuous_$ac_func
11240 /* System header to define __stub macros and hopefully few prototypes,
11241 which can conflict with char $ac_func (); below.
11242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11243 <limits.h> exists even on freestanding compilers. */
11245 #ifdef __STDC__
11246 # include <limits.h>
11247 #else
11248 # include <assert.h>
11249 #endif
11251 #undef $ac_func
11253 /* Override any GCC internal prototype to avoid an error.
11254 Use char because int might match the return type of a GCC
11255 builtin and then its argument prototype would still apply. */
11256 #ifdef __cplusplus
11257 extern "C"
11258 #endif
11259 char $ac_func ();
11260 /* The GNU C library defines this for functions which it implements
11261 to always fail with ENOSYS. Some functions are actually named
11262 something starting with __ and the normal name is an alias. */
11263 #if defined __stub_$ac_func || defined __stub___$ac_func
11264 choke me
11265 #endif
11268 main ()
11270 return $ac_func ();
11272 return 0;
11274 _ACEOF
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (ac_try="$ac_link"
11277 case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_link") 2>conftest.er1
11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && {
11289 test -z "$ac_c_werror_flag" ||
11290 test ! -s conftest.err
11291 } && test -s conftest$ac_exeext &&
11292 $as_test_x conftest$ac_exeext; then
11293 eval "$as_ac_var=yes"
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 eval "$as_ac_var=no"
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11304 ac_res=`eval echo '${'$as_ac_var'}'`
11305 { echo "$as_me:$LINENO: result: $ac_res" >&5
11306 echo "${ECHO_T}$ac_res" >&6; }
11307 if test `eval echo '${'$as_ac_var'}'` = yes; then
11308 cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 _ACEOF
11311 HAVE_GTK_FILE_SELECTION=yes
11313 done
11316 HAVE_GTK_FILE_CHOOSER=no
11318 for ac_func in gtk_file_chooser_dialog_new
11320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h. */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11334 #define $ac_func innocuous_$ac_func
11336 /* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char $ac_func (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11341 #ifdef __STDC__
11342 # include <limits.h>
11343 #else
11344 # include <assert.h>
11345 #endif
11347 #undef $ac_func
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char $ac_func ();
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11360 choke me
11361 #endif
11364 main ()
11366 return $ac_func ();
11368 return 0;
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_link") 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } && {
11385 test -z "$ac_c_werror_flag" ||
11386 test ! -s conftest.err
11387 } && test -s conftest$ac_exeext &&
11388 $as_test_x conftest$ac_exeext; then
11389 eval "$as_ac_var=yes"
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 eval "$as_ac_var=no"
11397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11398 conftest$ac_exeext conftest.$ac_ext
11400 ac_res=`eval echo '${'$as_ac_var'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11403 if test `eval echo '${'$as_ac_var'}'` = yes; then
11404 cat >>confdefs.h <<_ACEOF
11405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11406 _ACEOF
11407 HAVE_GTK_FILE_CHOOSER=yes
11409 done
11412 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11413 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_GTK_FILE_BOTH 1
11417 _ACEOF
11421 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11422 HAVE_GTK_AND_PTHREAD=no
11424 for ac_header in pthread.h
11426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11436 else
11437 # Is the header compilable?
11438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 $ac_includes_default
11447 #include <$ac_header>
11448 _ACEOF
11449 rm -f conftest.$ac_objext
11450 if { (ac_try="$ac_compile"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_compile") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest.$ac_objext; then
11466 ac_header_compiler=yes
11467 else
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_header_compiler=no
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476 echo "${ECHO_T}$ac_header_compiler" >&6; }
11478 # Is the header present?
11479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 #include <$ac_header>
11488 _ACEOF
11489 if { (ac_try="$ac_cpp conftest.$ac_ext"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } >/dev/null && {
11502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11503 test ! -s conftest.err
11504 }; then
11505 ac_header_preproc=yes
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_header_preproc=no
11513 rm -f conftest.err conftest.$ac_ext
11514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515 echo "${ECHO_T}$ac_header_preproc" >&6; }
11517 # So? What about this header?
11518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519 yes:no: )
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524 ac_header_preproc=yes
11526 no:yes:* )
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11541 esac
11542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547 eval "$as_ac_Header=\$ac_header_preproc"
11549 ac_res=`eval echo '${'$as_ac_Header'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551 echo "${ECHO_T}$ac_res" >&6; }
11554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11555 cat >>confdefs.h <<_ACEOF
11556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11557 _ACEOF
11561 done
11563 if test "$ac_cv_header_pthread_h"; then
11564 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11565 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11566 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lpthread $LIBS"
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char pthread_self ();
11586 main ()
11588 return pthread_self ();
11590 return 0;
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest$ac_exeext &&
11610 $as_test_x conftest$ac_exeext; then
11611 ac_cv_lib_pthread_pthread_self=yes
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_cv_lib_pthread_pthread_self=no
11619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11623 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11624 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11625 if test $ac_cv_lib_pthread_pthread_self = yes; then
11626 HAVE_GTK_AND_PTHREAD=yes
11630 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11631 GTK_LIBS="$GTK_LIBS -lpthread"
11633 cat >>confdefs.h <<\_ACEOF
11634 #define HAVE_GTK_AND_PTHREAD 1
11635 _ACEOF
11641 ### Link with -lXft if available to work around a bug.
11642 HAVE_XFT=maybe
11643 if test "${HAVE_GTK}" = "yes"; then
11644 if test "X${with_pkg_config_prog}" != X; then
11645 PKG_CONFIG="${with_pkg_config_prog}"
11649 succeeded=no
11651 if test -z "$PKG_CONFIG"; then
11652 # Extract the first word of "pkg-config", so it can be a program name with args.
11653 set dummy pkg-config; ac_word=$2
11654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 case $PKG_CONFIG in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11681 esac
11683 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11684 if test -n "$PKG_CONFIG"; then
11685 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11686 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11687 else
11688 { echo "$as_me:$LINENO: result: no" >&5
11689 echo "${ECHO_T}no" >&6; }
11695 if test "$PKG_CONFIG" = "no" ; then
11696 HAVE_XFT=no
11697 else
11698 PKG_CONFIG_MIN_VERSION=0.9.0
11699 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11700 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11701 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11703 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11704 { echo "$as_me:$LINENO: result: yes" >&5
11705 echo "${ECHO_T}yes" >&6; }
11706 succeeded=yes
11708 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11709 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11710 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11711 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11712 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11714 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11715 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11716 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11717 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11718 echo "${ECHO_T}$XFT_LIBS" >&6; }
11719 else
11720 { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11722 XFT_CFLAGS=""
11723 XFT_LIBS=""
11724 ## If we have a custom action on failure, don't print errors, but
11725 ## do set a variable so people can do so.
11726 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11732 else
11733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11738 if test $succeeded = yes; then
11740 else
11741 HAVE_XFT=no
11744 if test "$HAVE_XFT" != no; then
11745 OLD_CFLAGS="$CPPFLAGS"
11746 OLD_CPPFLAGS="$CFLAGS"
11747 OLD_LIBS="$LIBS"
11748 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11749 CFLAGS="$CFLAGS $XFT_CFLAGS"
11750 LIBS="$XFT_LIBS $LIBS"
11751 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11752 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11753 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11754 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11758 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11759 else
11760 # Is the header compilable?
11761 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11762 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11763 cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h. */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 #include <X11/Xft/Xft.h>
11771 _ACEOF
11772 rm -f conftest.$ac_objext
11773 if { (ac_try="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_header_compiler=yes
11790 else
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_header_compiler=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 echo "${ECHO_T}$ac_header_compiler" >&6; }
11801 # Is the header present?
11802 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11803 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h. */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <X11/Xft/Xft.h>
11811 _ACEOF
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev/null && {
11825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 }; then
11828 ac_header_preproc=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_header_preproc=no
11836 rm -f conftest.err conftest.$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838 echo "${ECHO_T}$ac_header_preproc" >&6; }
11840 # So? What about this header?
11841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11842 yes:no: )
11843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11844 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11846 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11847 ac_header_preproc=yes
11849 no:yes:* )
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11853 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11855 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11857 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11859 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11861 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11864 esac
11865 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11866 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11867 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11872 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11873 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11876 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11877 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11878 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11879 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-lXft $XFT_LIBS $LIBS"
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 char XftFontOpen ();
11899 main ()
11901 return XftFontOpen ();
11903 return 0;
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (ac_try="$ac_link"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_link") 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest$ac_exeext &&
11923 $as_test_x conftest$ac_exeext; then
11924 ac_cv_lib_Xft_XftFontOpen=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_Xft_XftFontOpen=no
11932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11936 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11937 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11938 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11939 HAVE_XFT=yes
11946 if test "${HAVE_XFT}" = "yes"; then
11948 cat >>confdefs.h <<\_ACEOF
11949 #define HAVE_XFT 1
11950 _ACEOF
11953 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11954 else
11955 CFLAGS="$OLD_CPPFLAGS"
11956 CFLAGS="$OLD_CFLAGS"
11957 LIBS="$OLD_LIBS"
11962 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11963 if test x"${HAVE_X11R5}" = xyes; then
11964 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11965 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11966 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11976 #include <X11/Intrinsic.h>
11977 #include <X11/Xaw/Simple.h>
11979 main ()
11983 return 0;
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_link") 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest$ac_exeext &&
12003 $as_test_x conftest$ac_exeext; then
12004 emacs_cv_x11_version_5_with_xaw=yes
12005 else
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 emacs_cv_x11_version_5_with_xaw=no
12012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12013 conftest$ac_exeext conftest.$ac_ext
12016 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12017 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12018 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12019 USE_X_TOOLKIT=LUCID
12020 else
12021 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12022 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12023 USE_X_TOOLKIT=none
12025 else
12026 USE_X_TOOLKIT=none
12030 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12032 if test "${USE_X_TOOLKIT}" != "none"; then
12033 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12034 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12035 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h. */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 #include <X11/Intrinsic.h>
12046 main ()
12048 #if XtSpecificationRelease < 6
12049 fail;
12050 #endif
12053 return 0;
12055 _ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (ac_try="$ac_link"
12058 case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_link") 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } && {
12070 test -z "$ac_c_werror_flag" ||
12071 test ! -s conftest.err
12072 } && test -s conftest$ac_exeext &&
12073 $as_test_x conftest$ac_exeext; then
12074 emacs_cv_x11_toolkit_version_6=yes
12075 else
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 emacs_cv_x11_toolkit_version_6=no
12082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12083 conftest$ac_exeext conftest.$ac_ext
12086 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12087 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12088 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12089 echo "${ECHO_T}6 or newer" >&6; }
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_X11XTR6 1
12093 _ACEOF
12095 else
12096 { echo "$as_me:$LINENO: result: before 6" >&5
12097 echo "${ECHO_T}before 6" >&6; }
12100 OLDLIBS="$LIBS"
12101 if test x$HAVE_X11XTR6 = xyes; then
12102 LIBS="-lXt -lSM -lICE $LIBS"
12103 else
12104 LIBS="-lXt $LIBS"
12107 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12108 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12109 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112 ac_check_lib_save_LIBS=$LIBS
12113 LIBS="-lXmu $LIBS"
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 char XmuConvertStandardSelection ();
12129 main ()
12131 return XmuConvertStandardSelection ();
12133 return 0;
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163 conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12166 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12167 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12168 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define HAVE_LIBXMU 1
12171 _ACEOF
12173 LIBS="-lXmu $LIBS"
12177 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12180 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12181 if test "${HAVE_X11}" = "yes"; then
12182 if test "${USE_X_TOOLKIT}" != "none"; then
12184 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12185 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12186 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189 ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-lXext $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char XShapeQueryExtension ();
12206 main ()
12208 return XShapeQueryExtension ();
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_link") 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest$ac_exeext &&
12230 $as_test_x conftest$ac_exeext; then
12231 ac_cv_lib_Xext_XShapeQueryExtension=yes
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_cv_lib_Xext_XShapeQueryExtension=no
12239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12243 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12244 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12245 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12246 cat >>confdefs.h <<_ACEOF
12247 #define HAVE_LIBXEXT 1
12248 _ACEOF
12250 LIBS="-lXext $LIBS"
12257 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12258 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12259 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12260 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h. */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12269 #include <Xm/Xm.h>
12271 main ()
12273 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12274 int x = 5;
12275 #else
12276 Motif version prior to 2.1.
12277 #endif
12279 return 0;
12281 _ACEOF
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.$ac_objext; then
12299 emacs_cv_motif_version_2_1=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 emacs_cv_motif_version_2_1=no
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12310 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12311 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12312 if test $emacs_cv_motif_version_2_1 = yes; then
12313 HAVE_LIBXP=no
12315 cat >>confdefs.h <<\_ACEOF
12316 #define HAVE_MOTIF_2_1 1
12317 _ACEOF
12319 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12320 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12321 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324 ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-lXp $LIBS"
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12336 #ifdef __cplusplus
12337 extern "C"
12338 #endif
12339 char XpCreateContext ();
12341 main ()
12343 return XpCreateContext ();
12345 return 0;
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (ac_try="$ac_link"
12350 case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353 esac
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_link") 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && {
12362 test -z "$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12364 } && test -s conftest$ac_exeext &&
12365 $as_test_x conftest$ac_exeext; then
12366 ac_cv_lib_Xp_XpCreateContext=yes
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12371 ac_cv_lib_Xp_XpCreateContext=no
12374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12378 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12379 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12380 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12381 HAVE_LIBXP=yes
12384 if test ${HAVE_LIBXP} = yes; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_LIBXP 1
12388 _ACEOF
12391 else
12392 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12393 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12394 if test "${emacs_cv_lesstif+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397 # We put this in CFLAGS temporarily to precede other -I options
12398 # that might be in CFLAGS temporarily.
12399 # We put this in CPPFLAGS where it precedes the other -I options.
12400 OLD_CPPFLAGS=$CPPFLAGS
12401 OLD_CFLAGS=$CFLAGS
12402 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12403 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12412 main ()
12414 int x = 5;
12416 return 0;
12418 _ACEOF
12419 rm -f conftest.$ac_objext
12420 if { (ac_try="$ac_compile"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_compile") 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest.$ac_objext; then
12436 emacs_cv_lesstif=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 emacs_cv_lesstif=no
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12447 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12448 if test $emacs_cv_lesstif = yes; then
12449 # Make sure this -I option remains in CPPFLAGS after it is set
12450 # back to REAL_CPPFLAGS.
12451 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12452 # have those other -I options anyway. Ultimately, having this
12453 # directory ultimately in CPPFLAGS will be enough.
12454 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12455 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12456 else
12457 CFLAGS=$OLD_CFLAGS
12458 CPPFLAGS=$OLD_CPPFLAGS
12463 ### Is -lXaw3d available?
12464 HAVE_XAW3D=no
12465 if test "${HAVE_X11}" = "yes"; then
12466 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12467 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12468 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12469 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 #include <X11/Xaw3d/Scrollbar.h>
12479 _ACEOF
12480 if { (ac_try="$ac_cpp conftest.$ac_ext"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } >/dev/null && {
12493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 }; then
12496 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12497 else
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12504 rm -f conftest.err conftest.$ac_ext
12506 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12507 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12508 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12509 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12510 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12511 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-lXaw3d $LIBS"
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char XawScrollbarSetThumb ();
12531 main ()
12533 return XawScrollbarSetThumb ();
12535 return 0;
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } && {
12552 test -z "$ac_c_werror_flag" ||
12553 test ! -s conftest.err
12554 } && test -s conftest$ac_exeext &&
12555 $as_test_x conftest$ac_exeext; then
12556 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12568 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12569 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12570 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12571 HAVE_XAW3D=yes
12577 if test "${HAVE_XAW3D}" = "yes"; then
12579 cat >>confdefs.h <<\_ACEOF
12580 #define HAVE_XAW3D 1
12581 _ACEOF
12589 USE_TOOLKIT_SCROLL_BARS=no
12590 if test "${with_toolkit_scroll_bars}" != "no"; then
12591 if test "${USE_X_TOOLKIT}" != "none"; then
12592 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12593 cat >>confdefs.h <<\_ACEOF
12594 #define USE_TOOLKIT_SCROLL_BARS 1
12595 _ACEOF
12597 HAVE_XAW3D=no
12598 USE_TOOLKIT_SCROLL_BARS=yes
12599 elif test "${HAVE_XAW3D}" = "yes"; then
12600 cat >>confdefs.h <<\_ACEOF
12601 #define USE_TOOLKIT_SCROLL_BARS 1
12602 _ACEOF
12604 USE_TOOLKIT_SCROLL_BARS=yes
12606 elif test "${HAVE_GTK}" = "yes"; then
12607 cat >>confdefs.h <<\_ACEOF
12608 #define USE_TOOLKIT_SCROLL_BARS 1
12609 _ACEOF
12611 USE_TOOLKIT_SCROLL_BARS=yes
12612 elif test "${HAVE_CARBON}" = "yes"; then
12613 cat >>confdefs.h <<\_ACEOF
12614 #define USE_TOOLKIT_SCROLL_BARS 1
12615 _ACEOF
12617 USE_TOOLKIT_SCROLL_BARS=yes
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12628 #include <X11/Xlib.h>
12629 #include <X11/Xresource.h>
12631 main ()
12633 XIMProc callback;
12635 return 0;
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (ac_try="$ac_compile"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_compile") 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } && {
12652 test -z "$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12654 } && test -s conftest.$ac_objext; then
12655 HAVE_XIM=yes
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_XIM 1
12659 _ACEOF
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 HAVE_XIM=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 if test "${with_xim}" != "no"; then
12673 cat >>confdefs.h <<\_ACEOF
12674 #define USE_XIM 1
12675 _ACEOF
12680 if test "${HAVE_XIM}" != "no"; then
12681 late_CFLAGS=$CFLAGS
12682 if test "$GCC" = yes; then
12683 CFLAGS="$CFLAGS --pedantic-errors"
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 #include <X11/Xlib.h>
12693 #include <X11/Xresource.h>
12695 main ()
12697 Display *display;
12698 XrmDatabase db;
12699 char *res_name;
12700 char *res_class;
12701 XIMProc callback;
12702 XPointer *client_data;
12703 #ifndef __GNUC__
12704 /* If we're not using GCC, it's probably not XFree86, and this is
12705 probably right, but we can't use something like --pedantic-errors. */
12706 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12707 char*, XIMProc, XPointer*);
12708 #endif
12709 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12710 client_data);
12712 return 0;
12714 _ACEOF
12715 rm -f conftest.$ac_objext
12716 if { (ac_try="$ac_compile"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_compile") 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } && {
12729 test -z "$ac_c_werror_flag" ||
12730 test ! -s conftest.err
12731 } && test -s conftest.$ac_objext; then
12732 emacs_cv_arg6_star=yes
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12742 if test "$emacs_cv_arg6_star" = yes; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12745 _ACEOF
12747 else
12748 cat >>confdefs.h <<\_ACEOF
12749 #define XRegisterIMInstantiateCallback_arg6 XPointer
12750 _ACEOF
12753 CFLAGS=$late_CFLAGS
12756 ### Use -lXpm if available, unless `--with-xpm=no'.
12757 HAVE_XPM=no
12758 if test "${HAVE_X11}" = "yes"; then
12759 if test "${with_xpm}" != "no"; then
12760 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12761 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12762 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12763 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12767 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12768 else
12769 # Is the header compilable?
12770 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12771 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 $ac_includes_default
12779 #include <X11/xpm.h>
12780 _ACEOF
12781 rm -f conftest.$ac_objext
12782 if { (ac_try="$ac_compile"
12783 case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_compile") 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && {
12795 test -z "$ac_c_werror_flag" ||
12796 test ! -s conftest.err
12797 } && test -s conftest.$ac_objext; then
12798 ac_header_compiler=yes
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 ac_header_compiler=no
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12808 echo "${ECHO_T}$ac_header_compiler" >&6; }
12810 # Is the header present?
12811 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12812 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12813 cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 #include <X11/xpm.h>
12820 _ACEOF
12821 if { (ac_try="$ac_cpp conftest.$ac_ext"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825 esac
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12828 ac_status=$?
12829 grep -v '^ *+' conftest.er1 >conftest.err
12830 rm -f conftest.er1
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } >/dev/null && {
12834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12835 test ! -s conftest.err
12836 }; then
12837 ac_header_preproc=yes
12838 else
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 ac_header_preproc=no
12845 rm -f conftest.err conftest.$ac_ext
12846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12847 echo "${ECHO_T}$ac_header_preproc" >&6; }
12849 # So? What about this header?
12850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12851 yes:no: )
12852 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12853 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12855 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12856 ac_header_preproc=yes
12858 no:yes:* )
12859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12860 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12862 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12864 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12866 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12868 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12870 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12873 esac
12874 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12875 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12876 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879 ac_cv_header_X11_xpm_h=$ac_header_preproc
12881 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12882 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12885 if test $ac_cv_header_X11_xpm_h = yes; then
12886 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12887 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12888 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 ac_check_lib_save_LIBS=$LIBS
12892 LIBS="-lXpm -lX11 $LIBS"
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char XpmReadFileToPixmap ();
12908 main ()
12910 return XpmReadFileToPixmap ();
12912 return 0;
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (ac_try="$ac_link"
12917 case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920 esac
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_link") 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest$ac_exeext &&
12932 $as_test_x conftest$ac_exeext; then
12933 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12934 else
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12946 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12947 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12948 HAVE_XPM=yes
12954 if test "${HAVE_XPM}" = "yes"; then
12955 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12956 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include "X11/xpm.h"
12964 #ifndef XpmReturnAllocPixels
12965 no_return_alloc_pixels
12966 #endif
12968 _ACEOF
12969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12970 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12971 HAVE_XPM=no
12972 else
12973 HAVE_XPM=yes
12975 rm -f conftest*
12978 if test "${HAVE_XPM}" = "yes"; then
12979 { echo "$as_me:$LINENO: result: yes" >&5
12980 echo "${ECHO_T}yes" >&6; }
12981 else
12982 { echo "$as_me:$LINENO: result: no" >&5
12983 echo "${ECHO_T}no" >&6; }
12988 if test "${HAVE_XPM}" = "yes"; then
12990 cat >>confdefs.h <<\_ACEOF
12991 #define HAVE_XPM 1
12992 _ACEOF
12997 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12998 HAVE_JPEG=no
12999 if test "${HAVE_X11}" = "yes"; then
13000 if test "${with_jpeg}" != "no"; then
13001 if test "${ac_cv_header_jerror_h+set}" = set; then
13002 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13003 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13004 if test "${ac_cv_header_jerror_h+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13008 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13009 else
13010 # Is the header compilable?
13011 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13012 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h. */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13020 #include <jerror.h>
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && {
13036 test -z "$ac_c_werror_flag" ||
13037 test ! -s conftest.err
13038 } && test -s conftest.$ac_objext; then
13039 ac_header_compiler=yes
13040 else
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ac_header_compiler=no
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13049 echo "${ECHO_T}$ac_header_compiler" >&6; }
13051 # Is the header present?
13052 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13053 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 #include <jerror.h>
13061 _ACEOF
13062 if { (ac_try="$ac_cpp conftest.$ac_ext"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066 esac
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } >/dev/null && {
13075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 }; then
13078 ac_header_preproc=yes
13079 else
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ac_header_preproc=no
13086 rm -f conftest.err conftest.$ac_ext
13087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13088 echo "${ECHO_T}$ac_header_preproc" >&6; }
13090 # So? What about this header?
13091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13092 yes:no: )
13093 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13094 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13096 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13097 ac_header_preproc=yes
13099 no:yes:* )
13100 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13101 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13103 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13105 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13107 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13111 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13114 esac
13115 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13116 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13117 if test "${ac_cv_header_jerror_h+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120 ac_cv_header_jerror_h=$ac_header_preproc
13122 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13123 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13126 if test $ac_cv_header_jerror_h = yes; then
13127 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13128 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13129 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-ljpeg $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 char jpeg_destroy_compress ();
13149 main ()
13151 return jpeg_destroy_compress ();
13153 return 0;
13155 _ACEOF
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (ac_try="$ac_link"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_link") 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest$ac_exeext &&
13173 $as_test_x conftest$ac_exeext; then
13174 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
13184 LIBS=$ac_check_lib_save_LIBS
13186 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13187 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13188 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13189 HAVE_JPEG=yes
13198 if test "${HAVE_JPEG}" = "yes"; then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_JPEG 1
13201 _ACEOF
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <jpeglib.h>
13210 version=JPEG_LIB_VERSION
13212 _ACEOF
13213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13214 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_JPEG 1
13217 _ACEOF
13219 else
13220 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13221 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13222 HAVE_JPEG=no
13224 rm -f conftest*
13229 ### Use -lpng if available, unless `--with-png=no'.
13230 HAVE_PNG=no
13231 if test "${HAVE_X11}" = "yes"; then
13232 if test "${with_png}" != "no"; then
13233 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13234 # in /usr/include/libpng.
13237 for ac_header in png.h libpng/png.h
13239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 ac_res=`eval echo '${'$as_ac_Header'}'`
13247 { echo "$as_me:$LINENO: result: $ac_res" >&5
13248 echo "${ECHO_T}$ac_res" >&6; }
13249 else
13250 # Is the header compilable?
13251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h. */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 $ac_includes_default
13260 #include <$ac_header>
13261 _ACEOF
13262 rm -f conftest.$ac_objext
13263 if { (ac_try="$ac_compile"
13264 case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_compile") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } && {
13276 test -z "$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13278 } && test -s conftest.$ac_objext; then
13279 ac_header_compiler=yes
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_header_compiler=no
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13289 echo "${ECHO_T}$ac_header_compiler" >&6; }
13291 # Is the header present?
13292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h. */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <$ac_header>
13301 _ACEOF
13302 if { (ac_try="$ac_cpp conftest.$ac_ext"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } >/dev/null && {
13315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13316 test ! -s conftest.err
13317 }; then
13318 ac_header_preproc=yes
13319 else
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_header_preproc=no
13326 rm -f conftest.err conftest.$ac_ext
13327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328 echo "${ECHO_T}$ac_header_preproc" >&6; }
13330 # So? What about this header?
13331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13332 yes:no: )
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13337 ac_header_preproc=yes
13339 no:yes:* )
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13354 esac
13355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360 eval "$as_ac_Header=\$ac_header_preproc"
13362 ac_res=`eval echo '${'$as_ac_Header'}'`
13363 { echo "$as_me:$LINENO: result: $ac_res" >&5
13364 echo "${ECHO_T}$ac_res" >&6; }
13367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13368 cat >>confdefs.h <<_ACEOF
13369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13370 _ACEOF
13374 done
13376 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13377 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13378 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13379 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382 ac_check_lib_save_LIBS=$LIBS
13383 LIBS="-lpng -lz -lm $LIBS"
13384 cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h. */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 char png_get_channels ();
13399 main ()
13401 return png_get_channels ();
13403 return 0;
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (ac_try="$ac_link"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_link") 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest$ac_exeext &&
13423 $as_test_x conftest$ac_exeext; then
13424 ac_cv_lib_png_png_get_channels=yes
13425 else
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_cv_lib_png_png_get_channels=no
13432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13433 conftest$ac_exeext conftest.$ac_ext
13434 LIBS=$ac_check_lib_save_LIBS
13436 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13437 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13438 if test $ac_cv_lib_png_png_get_channels = yes; then
13439 HAVE_PNG=yes
13445 if test "${HAVE_PNG}" = "yes"; then
13447 cat >>confdefs.h <<\_ACEOF
13448 #define HAVE_PNG 1
13449 _ACEOF
13454 ### Use -ltiff if available, unless `--with-tiff=no'.
13455 HAVE_TIFF=no
13456 if test "${HAVE_X11}" = "yes"; then
13457 if test "${with_tiff}" != "no"; then
13458 if test "${ac_cv_header_tiffio_h+set}" = set; then
13459 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13460 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13461 if test "${ac_cv_header_tiffio_h+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13465 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13466 else
13467 # Is the header compilable?
13468 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13469 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h. */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 $ac_includes_default
13477 #include <tiffio.h>
13478 _ACEOF
13479 rm -f conftest.$ac_objext
13480 if { (ac_try="$ac_compile"
13481 case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484 esac
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_compile") 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && {
13493 test -z "$ac_c_werror_flag" ||
13494 test ! -s conftest.err
13495 } && test -s conftest.$ac_objext; then
13496 ac_header_compiler=yes
13497 else
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 ac_header_compiler=no
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13506 echo "${ECHO_T}$ac_header_compiler" >&6; }
13508 # Is the header present?
13509 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13510 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h. */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 #include <tiffio.h>
13518 _ACEOF
13519 if { (ac_try="$ac_cpp conftest.$ac_ext"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13523 esac
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } >/dev/null && {
13532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 }; then
13535 ac_header_preproc=yes
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ac_header_preproc=no
13543 rm -f conftest.err conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 echo "${ECHO_T}$ac_header_preproc" >&6; }
13547 # So? What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549 yes:no: )
13550 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13551 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13553 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13554 ac_header_preproc=yes
13556 no:yes:* )
13557 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13558 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13560 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13562 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13564 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13566 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13568 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13571 esac
13572 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13573 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13574 if test "${ac_cv_header_tiffio_h+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577 ac_cv_header_tiffio_h=$ac_header_preproc
13579 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13580 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13583 if test $ac_cv_header_tiffio_h = yes; then
13584 tifflibs="-lz -lm"
13585 # At least one tiff package requires the jpeg library.
13586 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13587 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13588 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13589 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592 ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-ltiff $tifflibs $LIBS"
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 char TIFFGetVersion ();
13609 main ()
13611 return TIFFGetVersion ();
13613 return 0;
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_link") 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest$ac_exeext &&
13633 $as_test_x conftest$ac_exeext; then
13634 ac_cv_lib_tiff_TIFFGetVersion=yes
13635 else
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_cv_lib_tiff_TIFFGetVersion=no
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13647 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13648 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13649 HAVE_TIFF=yes
13657 if test "${HAVE_TIFF}" = "yes"; then
13659 cat >>confdefs.h <<\_ACEOF
13660 #define HAVE_TIFF 1
13661 _ACEOF
13666 ### Use -lgif if available, unless `--with-gif=no'.
13667 HAVE_GIF=no
13668 if test "${HAVE_X11}" = "yes"; then
13669 if test "${with_gif}" != "no"; then
13670 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13671 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13672 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13673 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13677 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13678 else
13679 # Is the header compilable?
13680 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13681 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13689 #include <gif_lib.h>
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (ac_try="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_header_compiler=yes
13709 else
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_header_compiler=no
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13718 echo "${ECHO_T}$ac_header_compiler" >&6; }
13720 # Is the header present?
13721 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13722 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h. */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 #include <gif_lib.h>
13730 _ACEOF
13731 if { (ac_try="$ac_cpp conftest.$ac_ext"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } >/dev/null && {
13744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 }; then
13747 ac_header_preproc=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_header_preproc=no
13755 rm -f conftest.err conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13757 echo "${ECHO_T}$ac_header_preproc" >&6; }
13759 # So? What about this header?
13760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13761 yes:no: )
13762 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13763 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13765 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13766 ac_header_preproc=yes
13768 no:yes:* )
13769 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13770 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13772 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13774 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13776 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13778 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13780 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13783 esac
13784 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13785 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13786 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789 ac_cv_header_gif_lib_h=$ac_header_preproc
13791 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13792 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13795 if test $ac_cv_header_gif_lib_h = yes; then
13796 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13797 # Earlier versions can crash Emacs.
13798 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13799 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13800 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 else
13803 ac_check_lib_save_LIBS=$LIBS
13804 LIBS="-lungif $LIBS"
13805 cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h. */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13815 #ifdef __cplusplus
13816 extern "C"
13817 #endif
13818 char EGifPutExtensionLast ();
13820 main ()
13822 return EGifPutExtensionLast ();
13824 return 0;
13826 _ACEOF
13827 rm -f conftest.$ac_objext conftest$ac_exeext
13828 if { (ac_try="$ac_link"
13829 case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_link") 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && {
13841 test -z "$ac_c_werror_flag" ||
13842 test ! -s conftest.err
13843 } && test -s conftest$ac_exeext &&
13844 $as_test_x conftest$ac_exeext; then
13845 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_cv_lib_ungif_EGifPutExtensionLast=no
13853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13854 conftest$ac_exeext conftest.$ac_ext
13855 LIBS=$ac_check_lib_save_LIBS
13857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13858 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13859 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13860 HAVE_GIF=yes
13868 if test "${HAVE_GIF}" = "yes"; then
13870 cat >>confdefs.h <<\_ACEOF
13871 #define HAVE_GIF 1
13872 _ACEOF
13877 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13878 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13879 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13880 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13885 else
13886 # Is the header compilable?
13887 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13888 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 $ac_includes_default
13896 #include <malloc/malloc.h>
13897 _ACEOF
13898 rm -f conftest.$ac_objext
13899 if { (ac_try="$ac_compile"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_compile") 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest.$ac_objext; then
13915 ac_header_compiler=yes
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_header_compiler=no
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13925 echo "${ECHO_T}$ac_header_compiler" >&6; }
13927 # Is the header present?
13928 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13929 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h. */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 #include <malloc/malloc.h>
13937 _ACEOF
13938 if { (ac_try="$ac_cpp conftest.$ac_ext"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } >/dev/null && {
13951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 }; then
13954 ac_header_preproc=yes
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_header_preproc=no
13962 rm -f conftest.err conftest.$ac_ext
13963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13964 echo "${ECHO_T}$ac_header_preproc" >&6; }
13966 # So? What about this header?
13967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13968 yes:no: )
13969 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13970 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13972 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13973 ac_header_preproc=yes
13975 no:yes:* )
13976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13977 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13979 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13981 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13983 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13984 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13985 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13986 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13987 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13990 esac
13991 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13992 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13993 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13998 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13999 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14002 if test $ac_cv_header_malloc_malloc_h = yes; then
14004 cat >>confdefs.h <<\_ACEOF
14005 #define HAVE_MALLOC_MALLOC_H 1
14006 _ACEOF
14012 ### Use Mac OS X Carbon API to implement GUI.
14013 if test "${HAVE_CARBON}" = "yes"; then
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_CARBON 1
14017 _ACEOF
14019 ## Specify the install directory
14020 carbon_appdir=
14021 if test "${carbon_appdir_x}" != ""; then
14022 case ${carbon_appdir_x} in
14023 y | ye | yes) carbon_appdir=/Applications ;;
14024 * ) carbon_appdir=${carbon_appdir_x} ;;
14025 esac
14027 # We also have mouse menus.
14028 HAVE_MENUS=yes
14031 ### Use session management (-lSM -lICE) if available
14032 HAVE_X_SM=no
14033 if test "${HAVE_X11}" = "yes"; then
14034 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14035 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14036 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14041 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14042 else
14043 # Is the header compilable?
14044 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14045 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 $ac_includes_default
14053 #include <X11/SM/SMlib.h>
14054 _ACEOF
14055 rm -f conftest.$ac_objext
14056 if { (ac_try="$ac_compile"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_compile") 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest.$ac_objext; then
14072 ac_header_compiler=yes
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_header_compiler=no
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14082 echo "${ECHO_T}$ac_header_compiler" >&6; }
14084 # Is the header present?
14085 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14086 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14087 cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h. */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 #include <X11/SM/SMlib.h>
14094 _ACEOF
14095 if { (ac_try="$ac_cpp conftest.$ac_ext"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } >/dev/null && {
14108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 }; then
14111 ac_header_preproc=yes
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_header_preproc=no
14119 rm -f conftest.err conftest.$ac_ext
14120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14121 echo "${ECHO_T}$ac_header_preproc" >&6; }
14123 # So? What about this header?
14124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14125 yes:no: )
14126 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14127 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14129 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14130 ac_header_preproc=yes
14132 no:yes:* )
14133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14134 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14136 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14138 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14140 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14142 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14144 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14147 esac
14148 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14149 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14155 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14156 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14159 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14160 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14161 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14162 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-lSM -lICE $LIBS"
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h. */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14174 /* Override any GCC internal prototype to avoid an error.
14175 Use char because int might match the return type of a GCC
14176 builtin and then its argument prototype would still apply. */
14177 #ifdef __cplusplus
14178 extern "C"
14179 #endif
14180 char SmcOpenConnection ();
14182 main ()
14184 return SmcOpenConnection ();
14186 return 0;
14188 _ACEOF
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && {
14203 test -z "$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 } && test -s conftest$ac_exeext &&
14206 $as_test_x conftest$ac_exeext; then
14207 ac_cv_lib_SM_SmcOpenConnection=yes
14208 else
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_cv_lib_SM_SmcOpenConnection=no
14215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14216 conftest$ac_exeext conftest.$ac_ext
14217 LIBS=$ac_check_lib_save_LIBS
14219 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14220 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14221 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14222 HAVE_X_SM=yes
14229 if test "${HAVE_X_SM}" = "yes"; then
14231 cat >>confdefs.h <<\_ACEOF
14232 #define HAVE_X_SM 1
14233 _ACEOF
14235 case "$LIBS" in
14236 *-lSM*) ;;
14237 *) LIBS="-lSM -lICE $LIBS" ;;
14238 esac
14242 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14243 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14244 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14245 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h. */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 #include <netdb.h>
14256 main ()
14258 return h_errno;
14260 return 0;
14262 _ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (ac_try="$ac_link"
14265 case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268 esac
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_link") 2>conftest.er1
14271 ac_status=$?
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_c_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest$ac_exeext &&
14280 $as_test_x conftest$ac_exeext; then
14281 emacs_cv_netdb_declares_h_errno=yes
14282 else
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 emacs_cv_netdb_declares_h_errno=no
14289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14290 conftest$ac_exeext conftest.$ac_ext
14292 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14293 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14294 if test $emacs_cv_netdb_declares_h_errno = yes; then
14296 cat >>confdefs.h <<\_ACEOF
14297 #define HAVE_H_ERRNO 1
14298 _ACEOF
14302 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14303 # for constant arguments. Useless!
14304 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14305 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14306 if test "${ac_cv_working_alloca_h+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309 cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h. */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 #include <alloca.h>
14317 main ()
14319 char *p = (char *) alloca (2 * sizeof (int));
14320 if (p) return 0;
14322 return 0;
14324 _ACEOF
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_link") 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest$ac_exeext &&
14342 $as_test_x conftest$ac_exeext; then
14343 ac_cv_working_alloca_h=yes
14344 else
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_cv_working_alloca_h=no
14351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14352 conftest$ac_exeext conftest.$ac_ext
14354 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14355 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14356 if test $ac_cv_working_alloca_h = yes; then
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_ALLOCA_H 1
14360 _ACEOF
14364 { echo "$as_me:$LINENO: checking for alloca" >&5
14365 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14366 if test "${ac_cv_func_alloca_works+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369 cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h. */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14375 #ifdef __GNUC__
14376 # define alloca __builtin_alloca
14377 #else
14378 # ifdef _MSC_VER
14379 # include <malloc.h>
14380 # define alloca _alloca
14381 # else
14382 # ifdef HAVE_ALLOCA_H
14383 # include <alloca.h>
14384 # else
14385 # ifdef _AIX
14386 #pragma alloca
14387 # else
14388 # ifndef alloca /* predefined by HP cc +Olibcalls */
14389 char *alloca ();
14390 # endif
14391 # endif
14392 # endif
14393 # endif
14394 #endif
14397 main ()
14399 char *p = (char *) alloca (1);
14400 if (p) return 0;
14402 return 0;
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext &&
14422 $as_test_x conftest$ac_exeext; then
14423 ac_cv_func_alloca_works=yes
14424 else
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_cv_func_alloca_works=no
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432 conftest$ac_exeext conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14435 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14437 if test $ac_cv_func_alloca_works = yes; then
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_ALLOCA 1
14441 _ACEOF
14443 else
14444 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14445 # that cause trouble. Some versions do not even contain alloca or
14446 # contain a buggy version. If you still want to use their alloca,
14447 # use ar to extract alloca.o from them instead of compiling alloca.c.
14449 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14451 cat >>confdefs.h <<\_ACEOF
14452 #define C_ALLOCA 1
14453 _ACEOF
14456 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14457 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14458 if test "${ac_cv_os_cray+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #if defined CRAY && ! defined CRAY2
14468 webecray
14469 #else
14470 wenotbecray
14471 #endif
14473 _ACEOF
14474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14475 $EGREP "webecray" >/dev/null 2>&1; then
14476 ac_cv_os_cray=yes
14477 else
14478 ac_cv_os_cray=no
14480 rm -f conftest*
14483 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14484 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14485 if test $ac_cv_os_cray = yes; then
14486 for ac_func in _getb67 GETB67 getb67; do
14487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14501 #define $ac_func innocuous_$ac_func
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below.
14505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14506 <limits.h> exists even on freestanding compilers. */
14508 #ifdef __STDC__
14509 # include <limits.h>
14510 #else
14511 # include <assert.h>
14512 #endif
14514 #undef $ac_func
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14519 #ifdef __cplusplus
14520 extern "C"
14521 #endif
14522 char $ac_func ();
14523 /* The GNU C library defines this for functions which it implements
14524 to always fail with ENOSYS. Some functions are actually named
14525 something starting with __ and the normal name is an alias. */
14526 #if defined __stub_$ac_func || defined __stub___$ac_func
14527 choke me
14528 #endif
14531 main ()
14533 return $ac_func ();
14535 return 0;
14537 _ACEOF
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (ac_try="$ac_link"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_link") 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest$ac_exeext &&
14555 $as_test_x conftest$ac_exeext; then
14556 eval "$as_ac_var=yes"
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 eval "$as_ac_var=no"
14564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14565 conftest$ac_exeext conftest.$ac_ext
14567 ac_res=`eval echo '${'$as_ac_var'}'`
14568 { echo "$as_me:$LINENO: result: $ac_res" >&5
14569 echo "${ECHO_T}$ac_res" >&6; }
14570 if test `eval echo '${'$as_ac_var'}'` = yes; then
14572 cat >>confdefs.h <<_ACEOF
14573 #define CRAY_STACKSEG_END $ac_func
14574 _ACEOF
14576 break
14579 done
14582 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14583 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14584 if test "${ac_cv_c_stack_direction+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587 if test "$cross_compiling" = yes; then
14588 ac_cv_c_stack_direction=0
14589 else
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h. */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14598 find_stack_direction ()
14600 static char *addr = 0;
14601 auto char dummy;
14602 if (addr == 0)
14604 addr = &dummy;
14605 return find_stack_direction ();
14607 else
14608 return (&dummy > addr) ? 1 : -1;
14612 main ()
14614 return find_stack_direction () < 0;
14616 _ACEOF
14617 rm -f conftest$ac_exeext
14618 if { (ac_try="$ac_link"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_link") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_cv_c_stack_direction=1
14638 else
14639 echo "$as_me: program exited with status $ac_status" >&5
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ( exit $ac_status )
14644 ac_cv_c_stack_direction=-1
14646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14652 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14654 cat >>confdefs.h <<_ACEOF
14655 #define STACK_DIRECTION $ac_cv_c_stack_direction
14656 _ACEOF
14662 # fmod, logb, and frexp are found in -lm on most systems.
14663 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14665 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14666 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14667 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670 ac_check_lib_save_LIBS=$LIBS
14671 LIBS="-lm $LIBS"
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h. */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 char sqrt ();
14687 main ()
14689 return sqrt ();
14691 return 0;
14693 _ACEOF
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
14712 ac_cv_lib_m_sqrt=yes
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_cv_lib_m_sqrt=no
14720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721 conftest$ac_exeext conftest.$ac_ext
14722 LIBS=$ac_check_lib_save_LIBS
14724 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14725 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14726 if test $ac_cv_lib_m_sqrt = yes; then
14727 cat >>confdefs.h <<_ACEOF
14728 #define HAVE_LIBM 1
14729 _ACEOF
14731 LIBS="-lm $LIBS"
14736 # Check for mail-locking functions in a "mail" library. Probably this should
14737 # have the same check as for liblockfile below.
14739 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14740 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14741 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744 ac_check_lib_save_LIBS=$LIBS
14745 LIBS="-lmail $LIBS"
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14756 #ifdef __cplusplus
14757 extern "C"
14758 #endif
14759 char maillock ();
14761 main ()
14763 return maillock ();
14765 return 0;
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (ac_try="$ac_link"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_link") 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest$ac_exeext &&
14785 $as_test_x conftest$ac_exeext; then
14786 ac_cv_lib_mail_maillock=yes
14787 else
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_lib_mail_maillock=no
14794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14795 conftest$ac_exeext conftest.$ac_ext
14796 LIBS=$ac_check_lib_save_LIBS
14798 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14799 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14800 if test $ac_cv_lib_mail_maillock = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_LIBMAIL 1
14803 _ACEOF
14805 LIBS="-lmail $LIBS"
14810 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14811 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14812 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815 ac_check_lib_save_LIBS=$LIBS
14816 LIBS="-llockfile $LIBS"
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply. */
14827 #ifdef __cplusplus
14828 extern "C"
14829 #endif
14830 char maillock ();
14832 main ()
14834 return maillock ();
14836 return 0;
14838 _ACEOF
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (ac_try="$ac_link"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_link") 2>conftest.er1
14847 ac_status=$?
14848 grep -v '^ *+' conftest.er1 >conftest.err
14849 rm -f conftest.er1
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } && {
14853 test -z "$ac_c_werror_flag" ||
14854 test ! -s conftest.err
14855 } && test -s conftest$ac_exeext &&
14856 $as_test_x conftest$ac_exeext; then
14857 ac_cv_lib_lockfile_maillock=yes
14858 else
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 ac_cv_lib_lockfile_maillock=no
14865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14866 conftest$ac_exeext conftest.$ac_ext
14867 LIBS=$ac_check_lib_save_LIBS
14869 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14870 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14871 if test $ac_cv_lib_lockfile_maillock = yes; then
14872 cat >>confdefs.h <<_ACEOF
14873 #define HAVE_LIBLOCKFILE 1
14874 _ACEOF
14876 LIBS="-llockfile $LIBS"
14880 # If we have the shared liblockfile, assume we must use it for mail
14881 # locking (e.g. Debian). If we couldn't link against liblockfile
14882 # (no liblockfile.a installed), ensure that we don't need to.
14883 if test "$ac_cv_lib_lockfile_maillock" = no; then
14884 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14885 set dummy liblockfile.so; ac_word=$2
14886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14888 if test "${ac_cv_prog_liblockfile+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891 if test -n "$liblockfile"; then
14892 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14893 else
14894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14895 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14896 for as_dir in $as_dummy
14898 IFS=$as_save_IFS
14899 test -z "$as_dir" && as_dir=.
14900 for ac_exec_ext in '' $ac_executable_extensions; do
14901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14902 ac_cv_prog_liblockfile="yes"
14903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14904 break 2
14906 done
14907 done
14908 IFS=$as_save_IFS
14910 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14913 liblockfile=$ac_cv_prog_liblockfile
14914 if test -n "$liblockfile"; then
14915 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14916 echo "${ECHO_T}$liblockfile" >&6; }
14917 else
14918 { echo "$as_me:$LINENO: result: no" >&5
14919 echo "${ECHO_T}no" >&6; }
14923 if test $ac_cv_prog_liblockfile = yes; then
14924 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14925 This probably means that movemail could lose mail.
14926 There may be a \`development' package to install containing liblockfile." >&5
14927 echo "$as_me: error: Shared liblockfile found but can't link against it.
14928 This probably means that movemail could lose mail.
14929 There may be a \`development' package to install containing liblockfile." >&2;}
14930 { (exit 1); exit 1; }; }
14931 else :
14935 for ac_func in touchlock
14937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h. */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14951 #define $ac_func innocuous_$ac_func
14953 /* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char $ac_func (); below.
14955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14956 <limits.h> exists even on freestanding compilers. */
14958 #ifdef __STDC__
14959 # include <limits.h>
14960 #else
14961 # include <assert.h>
14962 #endif
14964 #undef $ac_func
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14969 #ifdef __cplusplus
14970 extern "C"
14971 #endif
14972 char $ac_func ();
14973 /* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976 #if defined __stub_$ac_func || defined __stub___$ac_func
14977 choke me
14978 #endif
14981 main ()
14983 return $ac_func ();
14985 return 0;
14987 _ACEOF
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (ac_try="$ac_link"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_link") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest$ac_exeext &&
15005 $as_test_x conftest$ac_exeext; then
15006 eval "$as_ac_var=yes"
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 eval "$as_ac_var=no"
15014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015 conftest$ac_exeext conftest.$ac_ext
15017 ac_res=`eval echo '${'$as_ac_var'}'`
15018 { echo "$as_me:$LINENO: result: $ac_res" >&5
15019 echo "${ECHO_T}$ac_res" >&6; }
15020 if test `eval echo '${'$as_ac_var'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15023 _ACEOF
15026 done
15029 for ac_header in maillock.h
15031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_res=`eval echo '${'$as_ac_Header'}'`
15039 { echo "$as_me:$LINENO: result: $ac_res" >&5
15040 echo "${ECHO_T}$ac_res" >&6; }
15041 else
15042 # Is the header compilable?
15043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 $ac_includes_default
15052 #include <$ac_header>
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } && {
15068 test -z "$ac_c_werror_flag" ||
15069 test ! -s conftest.err
15070 } && test -s conftest.$ac_objext; then
15071 ac_header_compiler=yes
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_header_compiler=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15081 echo "${ECHO_T}$ac_header_compiler" >&6; }
15083 # Is the header present?
15084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <$ac_header>
15093 _ACEOF
15094 if { (ac_try="$ac_cpp conftest.$ac_ext"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null && {
15107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 }; then
15110 ac_header_preproc=yes
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_header_preproc=no
15118 rm -f conftest.err conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15120 echo "${ECHO_T}$ac_header_preproc" >&6; }
15122 # So? What about this header?
15123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15124 yes:no: )
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15129 ac_header_preproc=yes
15131 no:yes:* )
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15146 esac
15147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152 eval "$as_ac_Header=\$ac_header_preproc"
15154 ac_res=`eval echo '${'$as_ac_Header'}'`
15155 { echo "$as_me:$LINENO: result: $ac_res" >&5
15156 echo "${ECHO_T}$ac_res" >&6; }
15159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15160 cat >>confdefs.h <<_ACEOF
15161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15162 _ACEOF
15166 done
15238 for ac_func in gethostname getdomainname dup2 \
15239 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15240 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15241 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15242 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15243 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15244 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15245 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15246 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15262 #define $ac_func innocuous_$ac_func
15264 /* System header to define __stub macros and hopefully few prototypes,
15265 which can conflict with char $ac_func (); below.
15266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15267 <limits.h> exists even on freestanding compilers. */
15269 #ifdef __STDC__
15270 # include <limits.h>
15271 #else
15272 # include <assert.h>
15273 #endif
15275 #undef $ac_func
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15280 #ifdef __cplusplus
15281 extern "C"
15282 #endif
15283 char $ac_func ();
15284 /* The GNU C library defines this for functions which it implements
15285 to always fail with ENOSYS. Some functions are actually named
15286 something starting with __ and the normal name is an alias. */
15287 #if defined __stub_$ac_func || defined __stub___$ac_func
15288 choke me
15289 #endif
15292 main ()
15294 return $ac_func ();
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_c_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15317 eval "$as_ac_var=yes"
15318 else
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 eval "$as_ac_var=no"
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15328 ac_res=`eval echo '${'$as_ac_var'}'`
15329 { echo "$as_me:$LINENO: result: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15331 if test `eval echo '${'$as_ac_var'}'` = yes; then
15332 cat >>confdefs.h <<_ACEOF
15333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15334 _ACEOF
15337 done
15341 for ac_header in sys/un.h
15343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 ac_res=`eval echo '${'$as_ac_Header'}'`
15351 { echo "$as_me:$LINENO: result: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15353 else
15354 # Is the header compilable?
15355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15357 cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h. */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 $ac_includes_default
15364 #include <$ac_header>
15365 _ACEOF
15366 rm -f conftest.$ac_objext
15367 if { (ac_try="$ac_compile"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_compile") 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 } && test -s conftest.$ac_objext; then
15383 ac_header_compiler=yes
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ac_header_compiler=no
15391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15393 echo "${ECHO_T}$ac_header_compiler" >&6; }
15395 # Is the header present?
15396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h. */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 #include <$ac_header>
15405 _ACEOF
15406 if { (ac_try="$ac_cpp conftest.$ac_ext"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } >/dev/null && {
15419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15420 test ! -s conftest.err
15421 }; then
15422 ac_header_preproc=yes
15423 else
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15427 ac_header_preproc=no
15430 rm -f conftest.err conftest.$ac_ext
15431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15432 echo "${ECHO_T}$ac_header_preproc" >&6; }
15434 # So? What about this header?
15435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15436 yes:no: )
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15441 ac_header_preproc=yes
15443 no:yes:* )
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15458 esac
15459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464 eval "$as_ac_Header=\$ac_header_preproc"
15466 ac_res=`eval echo '${'$as_ac_Header'}'`
15467 { echo "$as_me:$LINENO: result: $ac_res" >&5
15468 echo "${ECHO_T}$ac_res" >&6; }
15471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15472 cat >>confdefs.h <<_ACEOF
15473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15474 _ACEOF
15478 done
15485 for ac_header in $ac_header_list
15487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 ac_res=`eval echo '${'$as_ac_Header'}'`
15495 { echo "$as_me:$LINENO: result: $ac_res" >&5
15496 echo "${ECHO_T}$ac_res" >&6; }
15497 else
15498 # Is the header compilable?
15499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h. */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 $ac_includes_default
15508 #include <$ac_header>
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (ac_try="$ac_compile"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_compile") 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest.$ac_objext; then
15527 ac_header_compiler=yes
15528 else
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_compiler=no
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6; }
15539 # Is the header present?
15540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h. */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 #include <$ac_header>
15549 _ACEOF
15550 if { (ac_try="$ac_cpp conftest.$ac_ext"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } >/dev/null && {
15563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15565 }; then
15566 ac_header_preproc=yes
15567 else
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ac_header_preproc=no
15574 rm -f conftest.err conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6; }
15578 # So? What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580 yes:no: )
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585 ac_header_preproc=yes
15587 no:yes:* )
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602 esac
15603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 eval "$as_ac_Header=\$ac_header_preproc"
15610 ac_res=`eval echo '${'$as_ac_Header'}'`
15611 { echo "$as_me:$LINENO: result: $ac_res" >&5
15612 echo "${ECHO_T}$ac_res" >&6; }
15615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15616 cat >>confdefs.h <<_ACEOF
15617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15618 _ACEOF
15622 done
15632 for ac_func in $ac_func_list
15634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15648 #define $ac_func innocuous_$ac_func
15650 /* System header to define __stub macros and hopefully few prototypes,
15651 which can conflict with char $ac_func (); below.
15652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653 <limits.h> exists even on freestanding compilers. */
15655 #ifdef __STDC__
15656 # include <limits.h>
15657 #else
15658 # include <assert.h>
15659 #endif
15661 #undef $ac_func
15663 /* Override any GCC internal prototype to avoid an error.
15664 Use char because int might match the return type of a GCC
15665 builtin and then its argument prototype would still apply. */
15666 #ifdef __cplusplus
15667 extern "C"
15668 #endif
15669 char $ac_func ();
15670 /* The GNU C library defines this for functions which it implements
15671 to always fail with ENOSYS. Some functions are actually named
15672 something starting with __ and the normal name is an alias. */
15673 #if defined __stub_$ac_func || defined __stub___$ac_func
15674 choke me
15675 #endif
15678 main ()
15680 return $ac_func ();
15682 return 0;
15684 _ACEOF
15685 rm -f conftest.$ac_objext conftest$ac_exeext
15686 if { (ac_try="$ac_link"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15690 esac
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_link") 2>conftest.er1
15693 ac_status=$?
15694 grep -v '^ *+' conftest.er1 >conftest.err
15695 rm -f conftest.er1
15696 cat conftest.err >&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } && {
15699 test -z "$ac_c_werror_flag" ||
15700 test ! -s conftest.err
15701 } && test -s conftest$ac_exeext &&
15702 $as_test_x conftest$ac_exeext; then
15703 eval "$as_ac_var=yes"
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 eval "$as_ac_var=no"
15711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15712 conftest$ac_exeext conftest.$ac_ext
15714 ac_res=`eval echo '${'$as_ac_var'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15717 if test `eval echo '${'$as_ac_var'}'` = yes; then
15718 cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15720 _ACEOF
15723 done
15741 { echo "$as_me:$LINENO: checking for working mktime" >&5
15742 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15743 if test "${ac_cv_func_working_mktime+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 if test "$cross_compiling" = yes; then
15747 ac_cv_func_working_mktime=no
15748 else
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h. */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 /* Test program from Paul Eggert and Tony Leneis. */
15756 #ifdef TIME_WITH_SYS_TIME
15757 # include <sys/time.h>
15758 # include <time.h>
15759 #else
15760 # ifdef HAVE_SYS_TIME_H
15761 # include <sys/time.h>
15762 # else
15763 # include <time.h>
15764 # endif
15765 #endif
15767 #include <stdlib.h>
15769 #ifdef HAVE_UNISTD_H
15770 # include <unistd.h>
15771 #endif
15773 #ifndef HAVE_ALARM
15774 # define alarm(X) /* empty */
15775 #endif
15777 /* Work around redefinition to rpl_putenv by other config tests. */
15778 #undef putenv
15780 static time_t time_t_max;
15781 static time_t time_t_min;
15783 /* Values we'll use to set the TZ environment variable. */
15784 static char *tz_strings[] = {
15785 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15786 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15788 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15790 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15791 Based on a problem report from Andreas Jaeger. */
15792 static int
15793 spring_forward_gap ()
15795 /* glibc (up to about 1998-10-07) failed this test. */
15796 struct tm tm;
15798 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15799 instead of "TZ=America/Vancouver" in order to detect the bug even
15800 on systems that don't support the Olson extension, or don't have the
15801 full zoneinfo tables installed. */
15802 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15804 tm.tm_year = 98;
15805 tm.tm_mon = 3;
15806 tm.tm_mday = 5;
15807 tm.tm_hour = 2;
15808 tm.tm_min = 0;
15809 tm.tm_sec = 0;
15810 tm.tm_isdst = -1;
15811 return mktime (&tm) != (time_t) -1;
15814 static int
15815 mktime_test1 (now)
15816 time_t now;
15818 struct tm *lt;
15819 return ! (lt = localtime (&now)) || mktime (lt) == now;
15822 static int
15823 mktime_test (now)
15824 time_t now;
15826 return (mktime_test1 (now)
15827 && mktime_test1 ((time_t) (time_t_max - now))
15828 && mktime_test1 ((time_t) (time_t_min + now)));
15831 static int
15832 irix_6_4_bug ()
15834 /* Based on code from Ariel Faigon. */
15835 struct tm tm;
15836 tm.tm_year = 96;
15837 tm.tm_mon = 3;
15838 tm.tm_mday = 0;
15839 tm.tm_hour = 0;
15840 tm.tm_min = 0;
15841 tm.tm_sec = 0;
15842 tm.tm_isdst = -1;
15843 mktime (&tm);
15844 return tm.tm_mon == 2 && tm.tm_mday == 31;
15847 static int
15848 bigtime_test (j)
15849 int j;
15851 struct tm tm;
15852 time_t now;
15853 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15854 now = mktime (&tm);
15855 if (now != (time_t) -1)
15857 struct tm *lt = localtime (&now);
15858 if (! (lt
15859 && lt->tm_year == tm.tm_year
15860 && lt->tm_mon == tm.tm_mon
15861 && lt->tm_mday == tm.tm_mday
15862 && lt->tm_hour == tm.tm_hour
15863 && lt->tm_min == tm.tm_min
15864 && lt->tm_sec == tm.tm_sec
15865 && lt->tm_yday == tm.tm_yday
15866 && lt->tm_wday == tm.tm_wday
15867 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15868 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15869 return 0;
15871 return 1;
15874 static int
15875 year_2050_test ()
15877 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15878 ignoring leap seconds. */
15879 unsigned long int answer = 2527315200UL;
15881 struct tm tm;
15882 time_t t;
15883 tm.tm_year = 2050 - 1900;
15884 tm.tm_mon = 2 - 1;
15885 tm.tm_mday = 1;
15886 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15887 tm.tm_isdst = -1;
15889 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15890 instead of "TZ=America/Vancouver" in order to detect the bug even
15891 on systems that don't support the Olson extension, or don't have the
15892 full zoneinfo tables installed. */
15893 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15895 t = mktime (&tm);
15897 /* Check that the result is either a failure, or close enough
15898 to the correct answer that we can assume the discrepancy is
15899 due to leap seconds. */
15900 return (t == (time_t) -1
15901 || (0 < t && answer - 120 <= t && t <= answer + 120));
15905 main ()
15907 time_t t, delta;
15908 int i, j;
15910 /* This test makes some buggy mktime implementations loop.
15911 Give up after 60 seconds; a mktime slower than that
15912 isn't worth using anyway. */
15913 alarm (60);
15915 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15916 continue;
15917 time_t_max--;
15918 if ((time_t) -1 < 0)
15919 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15920 continue;
15921 delta = time_t_max / 997; /* a suitable prime number */
15922 for (i = 0; i < N_STRINGS; i++)
15924 if (tz_strings[i])
15925 putenv (tz_strings[i]);
15927 for (t = 0; t <= time_t_max - delta; t += delta)
15928 if (! mktime_test (t))
15929 return 1;
15930 if (! (mktime_test ((time_t) 1)
15931 && mktime_test ((time_t) (60 * 60))
15932 && mktime_test ((time_t) (60 * 60 * 24))))
15933 return 1;
15935 for (j = 1; 0 < j; j *= 2)
15936 if (! bigtime_test (j))
15937 return 1;
15938 if (! bigtime_test (j - 1))
15939 return 1;
15941 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15943 _ACEOF
15944 rm -f conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_cv_func_working_mktime=yes
15965 else
15966 echo "$as_me: program exited with status $ac_status" >&5
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ( exit $ac_status )
15971 ac_cv_func_working_mktime=no
15973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15979 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15980 if test $ac_cv_func_working_mktime = no; then
15981 case " $LIBOBJS " in
15982 *" mktime.$ac_objext "* ) ;;
15983 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15985 esac
15989 if test "$ac_cv_func_working_mktime" = no; then
15991 cat >>confdefs.h <<\_ACEOF
15992 #define BROKEN_MKTIME 1
15993 _ACEOF
15997 ac_have_func=no # yes means we've found a way to get the load average.
15999 # Make sure getloadavg.c is where it belongs, at configure-time.
16000 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16001 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16002 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16003 { (exit 1); exit 1; }; }
16005 ac_save_LIBS=$LIBS
16007 # Check for getloadavg, but be sure not to touch the cache variable.
16008 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16009 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16010 if test "${ac_cv_func_getloadavg+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h. */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021 #define getloadavg innocuous_getloadavg
16023 /* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char getloadavg (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16028 #ifdef __STDC__
16029 # include <limits.h>
16030 #else
16031 # include <assert.h>
16032 #endif
16034 #undef getloadavg
16036 /* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16039 #ifdef __cplusplus
16040 extern "C"
16041 #endif
16042 char getloadavg ();
16043 /* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
16046 #if defined __stub_getloadavg || defined __stub___getloadavg
16047 choke me
16048 #endif
16051 main ()
16053 return getloadavg ();
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (ac_try="$ac_link"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest$ac_exeext &&
16075 $as_test_x conftest$ac_exeext; then
16076 ac_cv_func_getloadavg=yes
16077 else
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_cv_func_getloadavg=no
16084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16085 conftest$ac_exeext conftest.$ac_ext
16087 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16088 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16089 if test $ac_cv_func_getloadavg = yes; then
16090 exit 0
16091 else
16092 exit 1
16094 ) && ac_have_func=yes
16096 # On HPUX9, an unprivileged user can get load averages through this function.
16098 for ac_func in pstat_getdynamic
16100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16114 #define $ac_func innocuous_$ac_func
16116 /* System header to define __stub macros and hopefully few prototypes,
16117 which can conflict with char $ac_func (); below.
16118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16119 <limits.h> exists even on freestanding compilers. */
16121 #ifdef __STDC__
16122 # include <limits.h>
16123 #else
16124 # include <assert.h>
16125 #endif
16127 #undef $ac_func
16129 /* Override any GCC internal prototype to avoid an error.
16130 Use char because int might match the return type of a GCC
16131 builtin and then its argument prototype would still apply. */
16132 #ifdef __cplusplus
16133 extern "C"
16134 #endif
16135 char $ac_func ();
16136 /* The GNU C library defines this for functions which it implements
16137 to always fail with ENOSYS. Some functions are actually named
16138 something starting with __ and the normal name is an alias. */
16139 #if defined __stub_$ac_func || defined __stub___$ac_func
16140 choke me
16141 #endif
16144 main ()
16146 return $ac_func ();
16148 return 0;
16150 _ACEOF
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_link") 2>conftest.er1
16159 ac_status=$?
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } && {
16165 test -z "$ac_c_werror_flag" ||
16166 test ! -s conftest.err
16167 } && test -s conftest$ac_exeext &&
16168 $as_test_x conftest$ac_exeext; then
16169 eval "$as_ac_var=yes"
16170 else
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16174 eval "$as_ac_var=no"
16177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16178 conftest$ac_exeext conftest.$ac_ext
16180 ac_res=`eval echo '${'$as_ac_var'}'`
16181 { echo "$as_me:$LINENO: result: $ac_res" >&5
16182 echo "${ECHO_T}$ac_res" >&6; }
16183 if test `eval echo '${'$as_ac_var'}'` = yes; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 _ACEOF
16189 done
16192 # Solaris has libkstat which does not require root.
16194 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16195 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16196 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199 ac_check_lib_save_LIBS=$LIBS
16200 LIBS="-lkstat $LIBS"
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16208 /* Override any GCC internal prototype to avoid an error.
16209 Use char because int might match the return type of a GCC
16210 builtin and then its argument prototype would still apply. */
16211 #ifdef __cplusplus
16212 extern "C"
16213 #endif
16214 char kstat_open ();
16216 main ()
16218 return kstat_open ();
16220 return 0;
16222 _ACEOF
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (ac_try="$ac_link"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_link") 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } && {
16237 test -z "$ac_c_werror_flag" ||
16238 test ! -s conftest.err
16239 } && test -s conftest$ac_exeext &&
16240 $as_test_x conftest$ac_exeext; then
16241 ac_cv_lib_kstat_kstat_open=yes
16242 else
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_cv_lib_kstat_kstat_open=no
16249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16250 conftest$ac_exeext conftest.$ac_ext
16251 LIBS=$ac_check_lib_save_LIBS
16253 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16254 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16255 if test $ac_cv_lib_kstat_kstat_open = yes; then
16256 cat >>confdefs.h <<_ACEOF
16257 #define HAVE_LIBKSTAT 1
16258 _ACEOF
16260 LIBS="-lkstat $LIBS"
16264 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16266 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16267 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16268 # to get the right answer into the cache.
16269 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16270 if test $ac_have_func = no; then
16271 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16272 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16273 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276 ac_check_lib_save_LIBS=$LIBS
16277 LIBS="-lelf $LIBS"
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16288 #ifdef __cplusplus
16289 extern "C"
16290 #endif
16291 char elf_begin ();
16293 main ()
16295 return elf_begin ();
16297 return 0;
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
16318 ac_cv_lib_elf_elf_begin=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_lib_elf_elf_begin=no
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16331 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16332 if test $ac_cv_lib_elf_elf_begin = yes; then
16333 LIBS="-lelf $LIBS"
16337 if test $ac_have_func = no; then
16338 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16339 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16340 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 else
16343 ac_check_lib_save_LIBS=$LIBS
16344 LIBS="-lkvm $LIBS"
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16352 /* Override any GCC internal prototype to avoid an error.
16353 Use char because int might match the return type of a GCC
16354 builtin and then its argument prototype would still apply. */
16355 #ifdef __cplusplus
16356 extern "C"
16357 #endif
16358 char kvm_open ();
16360 main ()
16362 return kvm_open ();
16364 return 0;
16366 _ACEOF
16367 rm -f conftest.$ac_objext conftest$ac_exeext
16368 if { (ac_try="$ac_link"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_link") 2>conftest.er1
16375 ac_status=$?
16376 grep -v '^ *+' conftest.er1 >conftest.err
16377 rm -f conftest.er1
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest$ac_exeext &&
16384 $as_test_x conftest$ac_exeext; then
16385 ac_cv_lib_kvm_kvm_open=yes
16386 else
16387 echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 ac_cv_lib_kvm_kvm_open=no
16393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394 conftest$ac_exeext conftest.$ac_ext
16395 LIBS=$ac_check_lib_save_LIBS
16397 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16398 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16399 if test $ac_cv_lib_kvm_kvm_open = yes; then
16400 LIBS="-lkvm $LIBS"
16403 # Check for the 4.4BSD definition of getloadavg.
16404 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16405 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16406 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409 ac_check_lib_save_LIBS=$LIBS
16410 LIBS="-lutil $LIBS"
16411 cat >conftest.$ac_ext <<_ACEOF
16412 /* confdefs.h. */
16413 _ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16418 /* Override any GCC internal prototype to avoid an error.
16419 Use char because int might match the return type of a GCC
16420 builtin and then its argument prototype would still apply. */
16421 #ifdef __cplusplus
16422 extern "C"
16423 #endif
16424 char getloadavg ();
16426 main ()
16428 return getloadavg ();
16430 return 0;
16432 _ACEOF
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } && {
16447 test -z "$ac_c_werror_flag" ||
16448 test ! -s conftest.err
16449 } && test -s conftest$ac_exeext &&
16450 $as_test_x conftest$ac_exeext; then
16451 ac_cv_lib_util_getloadavg=yes
16452 else
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_cv_lib_util_getloadavg=no
16459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16460 conftest$ac_exeext conftest.$ac_ext
16461 LIBS=$ac_check_lib_save_LIBS
16463 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16464 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16465 if test $ac_cv_lib_util_getloadavg = yes; then
16466 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16471 if test $ac_have_func = no; then
16472 # There is a commonly available library for RS/6000 AIX.
16473 # Since it is not a standard part of AIX, it might be installed locally.
16474 ac_getloadavg_LIBS=$LIBS
16475 LIBS="-L/usr/local/lib $LIBS"
16476 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16477 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16478 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481 ac_check_lib_save_LIBS=$LIBS
16482 LIBS="-lgetloadavg $LIBS"
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16493 #ifdef __cplusplus
16494 extern "C"
16495 #endif
16496 char getloadavg ();
16498 main ()
16500 return getloadavg ();
16502 return 0;
16504 _ACEOF
16505 rm -f conftest.$ac_objext conftest$ac_exeext
16506 if { (ac_try="$ac_link"
16507 case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_link") 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } && {
16519 test -z "$ac_c_werror_flag" ||
16520 test ! -s conftest.err
16521 } && test -s conftest$ac_exeext &&
16522 $as_test_x conftest$ac_exeext; then
16523 ac_cv_lib_getloadavg_getloadavg=yes
16524 else
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528 ac_cv_lib_getloadavg_getloadavg=no
16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532 conftest$ac_exeext conftest.$ac_ext
16533 LIBS=$ac_check_lib_save_LIBS
16535 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16536 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16537 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16538 LIBS="-lgetloadavg $LIBS"
16539 else
16540 LIBS=$ac_getloadavg_LIBS
16545 # Make sure it is really in the library, if we think we found it,
16546 # otherwise set up the replacement function.
16548 for ac_func in getloadavg
16550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16551 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16553 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16564 #define $ac_func innocuous_$ac_func
16566 /* System header to define __stub macros and hopefully few prototypes,
16567 which can conflict with char $ac_func (); below.
16568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569 <limits.h> exists even on freestanding compilers. */
16571 #ifdef __STDC__
16572 # include <limits.h>
16573 #else
16574 # include <assert.h>
16575 #endif
16577 #undef $ac_func
16579 /* Override any GCC internal prototype to avoid an error.
16580 Use char because int might match the return type of a GCC
16581 builtin and then its argument prototype would still apply. */
16582 #ifdef __cplusplus
16583 extern "C"
16584 #endif
16585 char $ac_func ();
16586 /* The GNU C library defines this for functions which it implements
16587 to always fail with ENOSYS. Some functions are actually named
16588 something starting with __ and the normal name is an alias. */
16589 #if defined __stub_$ac_func || defined __stub___$ac_func
16590 choke me
16591 #endif
16594 main ()
16596 return $ac_func ();
16598 return 0;
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (ac_try="$ac_link"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_link") 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } && {
16615 test -z "$ac_c_werror_flag" ||
16616 test ! -s conftest.err
16617 } && test -s conftest$ac_exeext &&
16618 $as_test_x conftest$ac_exeext; then
16619 eval "$as_ac_var=yes"
16620 else
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 eval "$as_ac_var=no"
16627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16628 conftest$ac_exeext conftest.$ac_ext
16630 ac_res=`eval echo '${'$as_ac_var'}'`
16631 { echo "$as_me:$LINENO: result: $ac_res" >&5
16632 echo "${ECHO_T}$ac_res" >&6; }
16633 if test `eval echo '${'$as_ac_var'}'` = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16636 _ACEOF
16638 else
16639 case " $LIBOBJS " in
16640 *" getloadavg.$ac_objext "* ) ;;
16641 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16643 esac
16646 cat >>confdefs.h <<\_ACEOF
16647 #define C_GETLOADAVG 1
16648 _ACEOF
16650 # Figure out what our getloadavg.c needs.
16651 ac_have_func=no
16652 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16653 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16654 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16655 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16659 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16660 else
16661 # Is the header compilable?
16662 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16663 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 #include <sys/dg_sys_info.h>
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest.$ac_objext; then
16690 ac_header_compiler=yes
16691 else
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_header_compiler=no
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16700 echo "${ECHO_T}$ac_header_compiler" >&6; }
16702 # Is the header present?
16703 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16704 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h. */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 #include <sys/dg_sys_info.h>
16712 _ACEOF
16713 if { (ac_try="$ac_cpp conftest.$ac_ext"
16714 case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } >/dev/null && {
16726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16727 test ! -s conftest.err
16728 }; then
16729 ac_header_preproc=yes
16730 else
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_header_preproc=no
16737 rm -f conftest.err conftest.$ac_ext
16738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16739 echo "${ECHO_T}$ac_header_preproc" >&6; }
16741 # So? What about this header?
16742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16743 yes:no: )
16744 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16745 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16747 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16748 ac_header_preproc=yes
16750 no:yes:* )
16751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16752 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16754 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16756 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16758 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16760 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16762 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16765 esac
16766 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16767 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16768 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16773 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16774 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16777 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16778 ac_have_func=yes
16780 cat >>confdefs.h <<\_ACEOF
16781 #define DGUX 1
16782 _ACEOF
16785 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16786 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16787 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790 ac_check_lib_save_LIBS=$LIBS
16791 LIBS="-ldgc $LIBS"
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16802 #ifdef __cplusplus
16803 extern "C"
16804 #endif
16805 char dg_sys_info ();
16807 main ()
16809 return dg_sys_info ();
16811 return 0;
16813 _ACEOF
16814 rm -f conftest.$ac_objext conftest$ac_exeext
16815 if { (ac_try="$ac_link"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_link") 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest$ac_exeext &&
16831 $as_test_x conftest$ac_exeext; then
16832 ac_cv_lib_dgc_dg_sys_info=yes
16833 else
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 ac_cv_lib_dgc_dg_sys_info=no
16840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16841 conftest$ac_exeext conftest.$ac_ext
16842 LIBS=$ac_check_lib_save_LIBS
16844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16845 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16846 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define HAVE_LIBDGC 1
16849 _ACEOF
16851 LIBS="-ldgc $LIBS"
16859 if test "${ac_cv_header_locale_h+set}" = set; then
16860 { echo "$as_me:$LINENO: checking for locale.h" >&5
16861 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16862 if test "${ac_cv_header_locale_h+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16866 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16867 else
16868 # Is the header compilable?
16869 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16870 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $ac_includes_default
16878 #include <locale.h>
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_compile") 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest.$ac_objext; then
16897 ac_header_compiler=yes
16898 else
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ac_header_compiler=no
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16907 echo "${ECHO_T}$ac_header_compiler" >&6; }
16909 # Is the header present?
16910 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16911 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16912 cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h. */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 #include <locale.h>
16919 _ACEOF
16920 if { (ac_try="$ac_cpp conftest.$ac_ext"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } >/dev/null && {
16933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16934 test ! -s conftest.err
16935 }; then
16936 ac_header_preproc=yes
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 ac_header_preproc=no
16944 rm -f conftest.err conftest.$ac_ext
16945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16946 echo "${ECHO_T}$ac_header_preproc" >&6; }
16948 # So? What about this header?
16949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16950 yes:no: )
16951 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16952 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16953 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16954 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16955 ac_header_preproc=yes
16957 no:yes:* )
16958 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16959 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16961 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16963 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16965 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16967 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16969 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16972 esac
16973 { echo "$as_me:$LINENO: checking for locale.h" >&5
16974 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16975 if test "${ac_cv_header_locale_h+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978 ac_cv_header_locale_h=$ac_header_preproc
16980 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16981 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16987 for ac_func in setlocale
16989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17003 #define $ac_func innocuous_$ac_func
17005 /* System header to define __stub macros and hopefully few prototypes,
17006 which can conflict with char $ac_func (); below.
17007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17008 <limits.h> exists even on freestanding compilers. */
17010 #ifdef __STDC__
17011 # include <limits.h>
17012 #else
17013 # include <assert.h>
17014 #endif
17016 #undef $ac_func
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17021 #ifdef __cplusplus
17022 extern "C"
17023 #endif
17024 char $ac_func ();
17025 /* The GNU C library defines this for functions which it implements
17026 to always fail with ENOSYS. Some functions are actually named
17027 something starting with __ and the normal name is an alias. */
17028 #if defined __stub_$ac_func || defined __stub___$ac_func
17029 choke me
17030 #endif
17033 main ()
17035 return $ac_func ();
17037 return 0;
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } && {
17054 test -z "$ac_c_werror_flag" ||
17055 test ! -s conftest.err
17056 } && test -s conftest$ac_exeext &&
17057 $as_test_x conftest$ac_exeext; then
17058 eval "$as_ac_var=yes"
17059 else
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17063 eval "$as_ac_var=no"
17066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17067 conftest$ac_exeext conftest.$ac_ext
17069 ac_res=`eval echo '${'$as_ac_var'}'`
17070 { echo "$as_me:$LINENO: result: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17072 if test `eval echo '${'$as_ac_var'}'` = yes; then
17073 cat >>confdefs.h <<_ACEOF
17074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17075 _ACEOF
17078 done
17081 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17082 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17083 # Irix 4.0.5F has the header but not the library.
17084 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17085 ac_have_func=yes
17087 cat >>confdefs.h <<\_ACEOF
17088 #define SVR4 1
17089 _ACEOF
17093 if test $ac_have_func = no; then
17094 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17095 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17096 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17097 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17101 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17102 else
17103 # Is the header compilable?
17104 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17105 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h. */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 $ac_includes_default
17113 #include <inq_stats/cpustats.h>
17114 _ACEOF
17115 rm -f conftest.$ac_objext
17116 if { (ac_try="$ac_compile"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_compile") 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } && {
17129 test -z "$ac_c_werror_flag" ||
17130 test ! -s conftest.err
17131 } && test -s conftest.$ac_objext; then
17132 ac_header_compiler=yes
17133 else
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ac_header_compiler=no
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17142 echo "${ECHO_T}$ac_header_compiler" >&6; }
17144 # Is the header present?
17145 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17146 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17147 cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h. */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 #include <inq_stats/cpustats.h>
17154 _ACEOF
17155 if { (ac_try="$ac_cpp conftest.$ac_ext"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } >/dev/null && {
17168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17169 test ! -s conftest.err
17170 }; then
17171 ac_header_preproc=yes
17172 else
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17176 ac_header_preproc=no
17179 rm -f conftest.err conftest.$ac_ext
17180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17181 echo "${ECHO_T}$ac_header_preproc" >&6; }
17183 # So? What about this header?
17184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17185 yes:no: )
17186 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17187 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17189 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17190 ac_header_preproc=yes
17192 no:yes:* )
17193 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17194 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17196 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17197 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17198 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17199 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17200 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17201 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17202 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17203 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17204 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17207 esac
17208 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17209 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17210 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17215 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17216 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17219 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17220 ac_have_func=yes
17222 cat >>confdefs.h <<\_ACEOF
17223 #define UMAX 1
17224 _ACEOF
17227 cat >>confdefs.h <<\_ACEOF
17228 #define UMAX4_3 1
17229 _ACEOF
17236 if test $ac_have_func = no; then
17237 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17238 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17239 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17240 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17244 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17245 else
17246 # Is the header compilable?
17247 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17248 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 $ac_includes_default
17256 #include <sys/cpustats.h>
17257 _ACEOF
17258 rm -f conftest.$ac_objext
17259 if { (ac_try="$ac_compile"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_compile") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } && {
17272 test -z "$ac_c_werror_flag" ||
17273 test ! -s conftest.err
17274 } && test -s conftest.$ac_objext; then
17275 ac_header_compiler=yes
17276 else
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_header_compiler=no
17283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6; }
17287 # Is the header present?
17288 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17289 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h. */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 #include <sys/cpustats.h>
17297 _ACEOF
17298 if { (ac_try="$ac_cpp conftest.$ac_ext"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } >/dev/null && {
17311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 }; then
17314 ac_header_preproc=yes
17315 else
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_header_preproc=no
17322 rm -f conftest.err conftest.$ac_ext
17323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17324 echo "${ECHO_T}$ac_header_preproc" >&6; }
17326 # So? What about this header?
17327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17328 yes:no: )
17329 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17330 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17332 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17333 ac_header_preproc=yes
17335 no:yes:* )
17336 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17337 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17339 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17340 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17341 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17342 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17343 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17344 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17345 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17346 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17347 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17350 esac
17351 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17352 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17353 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17358 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17359 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17362 if test $ac_cv_header_sys_cpustats_h = yes; then
17363 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17364 #define UMAX 1
17365 _ACEOF
17372 if test $ac_have_func = no; then
17374 for ac_header in mach/mach.h
17376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 ac_res=`eval echo '${'$as_ac_Header'}'`
17384 { echo "$as_me:$LINENO: result: $ac_res" >&5
17385 echo "${ECHO_T}$ac_res" >&6; }
17386 else
17387 # Is the header compilable?
17388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h. */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 $ac_includes_default
17397 #include <$ac_header>
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (ac_try="$ac_compile"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_compile") 2>conftest.er1
17407 ac_status=$?
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } && {
17413 test -z "$ac_c_werror_flag" ||
17414 test ! -s conftest.err
17415 } && test -s conftest.$ac_objext; then
17416 ac_header_compiler=yes
17417 else
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_header_compiler=no
17424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17426 echo "${ECHO_T}$ac_header_compiler" >&6; }
17428 # Is the header present?
17429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 #include <$ac_header>
17438 _ACEOF
17439 if { (ac_try="$ac_cpp conftest.$ac_ext"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } >/dev/null && {
17452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 }; then
17455 ac_header_preproc=yes
17456 else
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_header_preproc=no
17463 rm -f conftest.err conftest.$ac_ext
17464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17465 echo "${ECHO_T}$ac_header_preproc" >&6; }
17467 # So? What about this header?
17468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17469 yes:no: )
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17474 ac_header_preproc=yes
17476 no:yes:* )
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17491 esac
17492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497 eval "$as_ac_Header=\$ac_header_preproc"
17499 ac_res=`eval echo '${'$as_ac_Header'}'`
17500 { echo "$as_me:$LINENO: result: $ac_res" >&5
17501 echo "${ECHO_T}$ac_res" >&6; }
17504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17507 _ACEOF
17511 done
17516 for ac_header in nlist.h
17518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 ac_res=`eval echo '${'$as_ac_Header'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 else
17529 # Is the header compilable?
17530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h. */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 $ac_includes_default
17539 #include <$ac_header>
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } && {
17555 test -z "$ac_c_werror_flag" ||
17556 test ! -s conftest.err
17557 } && test -s conftest.$ac_objext; then
17558 ac_header_compiler=yes
17559 else
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_header_compiler=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17568 echo "${ECHO_T}$ac_header_compiler" >&6; }
17570 # Is the header present?
17571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 #include <$ac_header>
17580 _ACEOF
17581 if { (ac_try="$ac_cpp conftest.$ac_ext"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17588 ac_status=$?
17589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } >/dev/null && {
17594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17595 test ! -s conftest.err
17596 }; then
17597 ac_header_preproc=yes
17598 else
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 ac_header_preproc=no
17605 rm -f conftest.err conftest.$ac_ext
17606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17607 echo "${ECHO_T}$ac_header_preproc" >&6; }
17609 # So? What about this header?
17610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17611 yes:no: )
17612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17616 ac_header_preproc=yes
17618 no:yes:* )
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17633 esac
17634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639 eval "$as_ac_Header=\$ac_header_preproc"
17641 ac_res=`eval echo '${'$as_ac_Header'}'`
17642 { echo "$as_me:$LINENO: result: $ac_res" >&5
17643 echo "${ECHO_T}$ac_res" >&6; }
17646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17647 cat >>confdefs.h <<_ACEOF
17648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17649 _ACEOF
17650 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17651 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17652 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h. */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <nlist.h>
17664 main ()
17666 static struct nlist ac_aggr;
17667 if (ac_aggr.n_un.n_name)
17668 return 0;
17670 return 0;
17672 _ACEOF
17673 rm -f conftest.$ac_objext
17674 if { (ac_try="$ac_compile"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } && {
17687 test -z "$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17689 } && test -s conftest.$ac_objext; then
17690 ac_cv_member_struct_nlist_n_un_n_name=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 #include <nlist.h>
17704 main ()
17706 static struct nlist ac_aggr;
17707 if (sizeof ac_aggr.n_un.n_name)
17708 return 0;
17710 return 0;
17712 _ACEOF
17713 rm -f conftest.$ac_objext
17714 if { (ac_try="$ac_compile"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_compile") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest.$ac_objext; then
17730 ac_cv_member_struct_nlist_n_un_n_name=yes
17731 else
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_member_struct_nlist_n_un_n_name=no
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17744 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17745 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17749 _ACEOF
17752 cat >>confdefs.h <<\_ACEOF
17753 #define NLIST_NAME_UNION 1
17754 _ACEOF
17761 done
17764 done
17767 # Some definitions of getloadavg require that the program be installed setgid.
17768 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17769 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17770 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17771 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 else
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17780 #ifdef LDAV_PRIVILEGED
17781 Yowza Am I SETGID yet
17782 #endif
17783 _ACEOF
17784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17785 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17786 ac_cv_func_getloadavg_setgid=yes
17787 else
17788 ac_cv_func_getloadavg_setgid=no
17790 rm -f conftest*
17793 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17794 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17795 if test $ac_cv_func_getloadavg_setgid = yes; then
17796 NEED_SETGID=true
17798 cat >>confdefs.h <<\_ACEOF
17799 #define GETLOADAVG_PRIVILEGED 1
17800 _ACEOF
17802 else
17803 NEED_SETGID=false
17806 if test $ac_cv_func_getloadavg_setgid = yes; then
17807 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17808 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17809 if test "${ac_cv_group_kmem+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17812 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17813 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17814 # If we got an error (system does not support symlinks), try without -L.
17815 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17816 ac_cv_group_kmem=`echo $ac_ls_output \
17817 | sed -ne 's/[ ][ ]*/ /g;
17818 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17819 / /s/.* //;p;'`
17822 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17823 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17824 KMEM_GROUP=$ac_cv_group_kmem
17826 if test "x$ac_save_LIBS" = x; then
17827 GETLOADAVG_LIBS=$LIBS
17828 else
17829 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17831 LIBS=$ac_save_LIBS
17835 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17836 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17837 if test "${ac_cv_sys_largefile_source+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840 while :; do
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h. */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 #include <stdio.h>
17849 main ()
17851 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17853 return 0;
17855 _ACEOF
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest$ac_exeext &&
17873 $as_test_x conftest$ac_exeext; then
17874 ac_cv_sys_largefile_source=no; break
17875 else
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17883 conftest$ac_exeext conftest.$ac_ext
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #define _LARGEFILE_SOURCE 1
17891 #include <stdio.h>
17893 main ()
17895 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17897 return 0;
17899 _ACEOF
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (ac_try="$ac_link"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_link") 2>conftest.er1
17908 ac_status=$?
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } && {
17914 test -z "$ac_c_werror_flag" ||
17915 test ! -s conftest.err
17916 } && test -s conftest$ac_exeext &&
17917 $as_test_x conftest$ac_exeext; then
17918 ac_cv_sys_largefile_source=1; break
17919 else
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17927 conftest$ac_exeext conftest.$ac_ext
17928 ac_cv_sys_largefile_source=unknown
17929 break
17930 done
17932 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17933 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17934 case $ac_cv_sys_largefile_source in #(
17935 no | unknown) ;;
17937 cat >>confdefs.h <<_ACEOF
17938 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17939 _ACEOF
17941 esac
17942 rm -f conftest*
17944 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17945 # in glibc 2.1.3, but that breaks too many other things.
17946 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17947 if test $ac_cv_sys_largefile_source != unknown; then
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_FSEEKO 1
17951 _ACEOF
17956 # Configure getopt.
17957 # getopt.m4 serial 10
17959 # The getopt module assume you want GNU getopt, with getopt_long etc,
17960 # rather than vanilla POSIX getopt. This means your your code should
17961 # always include <getopt.h> for the getopt prototypes.
17973 # Prerequisites of lib/getopt*.
17978 GETOPT_H=
17980 for ac_header in getopt.h
17982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 ac_res=`eval echo '${'$as_ac_Header'}'`
17990 { echo "$as_me:$LINENO: result: $ac_res" >&5
17991 echo "${ECHO_T}$ac_res" >&6; }
17992 else
17993 # Is the header compilable?
17994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17996 cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h. */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 $ac_includes_default
18003 #include <$ac_header>
18004 _ACEOF
18005 rm -f conftest.$ac_objext
18006 if { (ac_try="$ac_compile"
18007 case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_compile") 2>conftest.er1
18013 ac_status=$?
18014 grep -v '^ *+' conftest.er1 >conftest.err
18015 rm -f conftest.er1
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } && {
18019 test -z "$ac_c_werror_flag" ||
18020 test ! -s conftest.err
18021 } && test -s conftest.$ac_objext; then
18022 ac_header_compiler=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_header_compiler=no
18030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18032 echo "${ECHO_T}$ac_header_compiler" >&6; }
18034 # Is the header present?
18035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h. */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 #include <$ac_header>
18044 _ACEOF
18045 if { (ac_try="$ac_cpp conftest.$ac_ext"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } >/dev/null && {
18058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18060 }; then
18061 ac_header_preproc=yes
18062 else
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_header_preproc=no
18069 rm -f conftest.err conftest.$ac_ext
18070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18071 echo "${ECHO_T}$ac_header_preproc" >&6; }
18073 # So? What about this header?
18074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18075 yes:no: )
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18080 ac_header_preproc=yes
18082 no:yes:* )
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18097 esac
18098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 else
18103 eval "$as_ac_Header=\$ac_header_preproc"
18105 ac_res=`eval echo '${'$as_ac_Header'}'`
18106 { echo "$as_me:$LINENO: result: $ac_res" >&5
18107 echo "${ECHO_T}$ac_res" >&6; }
18110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18111 cat >>confdefs.h <<_ACEOF
18112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18113 _ACEOF
18115 else
18116 GETOPT_H=getopt.h
18119 done
18121 if test -z "$GETOPT_H"; then
18123 for ac_func in getopt_long_only
18125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131 cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h. */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18139 #define $ac_func innocuous_$ac_func
18141 /* System header to define __stub macros and hopefully few prototypes,
18142 which can conflict with char $ac_func (); below.
18143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18144 <limits.h> exists even on freestanding compilers. */
18146 #ifdef __STDC__
18147 # include <limits.h>
18148 #else
18149 # include <assert.h>
18150 #endif
18152 #undef $ac_func
18154 /* Override any GCC internal prototype to avoid an error.
18155 Use char because int might match the return type of a GCC
18156 builtin and then its argument prototype would still apply. */
18157 #ifdef __cplusplus
18158 extern "C"
18159 #endif
18160 char $ac_func ();
18161 /* The GNU C library defines this for functions which it implements
18162 to always fail with ENOSYS. Some functions are actually named
18163 something starting with __ and the normal name is an alias. */
18164 #if defined __stub_$ac_func || defined __stub___$ac_func
18165 choke me
18166 #endif
18169 main ()
18171 return $ac_func ();
18173 return 0;
18175 _ACEOF
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && {
18190 test -z "$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18192 } && test -s conftest$ac_exeext &&
18193 $as_test_x conftest$ac_exeext; then
18194 eval "$as_ac_var=yes"
18195 else
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 eval "$as_ac_var=no"
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203 conftest$ac_exeext conftest.$ac_ext
18205 ac_res=`eval echo '${'$as_ac_var'}'`
18206 { echo "$as_me:$LINENO: result: $ac_res" >&5
18207 echo "${ECHO_T}$ac_res" >&6; }
18208 if test `eval echo '${'$as_ac_var'}'` = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18211 _ACEOF
18213 else
18214 GETOPT_H=getopt.h
18216 done
18220 if test -z "$GETOPT_H"; then
18221 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18222 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18223 if test "${ac_cv_have_decl_optreset+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 #include <getopt.h>
18235 main ()
18237 #ifndef optreset
18238 (void) optreset;
18239 #endif
18242 return 0;
18244 _ACEOF
18245 rm -f conftest.$ac_objext
18246 if { (ac_try="$ac_compile"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest.$ac_objext; then
18262 ac_cv_have_decl_optreset=yes
18263 else
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_cv_have_decl_optreset=no
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18272 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18273 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18274 if test $ac_cv_have_decl_optreset = yes; then
18275 GETOPT_H=getopt.h
18280 if test -z "$GETOPT_H"; then
18281 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18282 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18283 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286 if test "$cross_compiling" = yes; then
18287 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18288 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18289 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292 cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h. */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18298 #include <getopt.h>
18301 main ()
18303 #ifndef getopt_clip
18304 (void) getopt_clip;
18305 #endif
18308 return 0;
18310 _ACEOF
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
18328 ac_cv_have_decl_getopt_clip=yes
18329 else
18330 echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ac_cv_have_decl_getopt_clip=no
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18339 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18340 if test $ac_cv_have_decl_getopt_clip = yes; then
18341 gl_cv_func_gnu_getopt=no
18342 else
18343 gl_cv_func_gnu_getopt=yes
18346 else
18347 cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h. */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 #include <getopt.h>
18355 main ()
18358 char *myargv[3];
18359 myargv[0] = "conftest";
18360 myargv[1] = "-+";
18361 myargv[2] = 0;
18362 return getopt (2, myargv, "+a") != '?';
18365 return 0;
18367 _ACEOF
18368 rm -f conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_link") 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 gl_cv_func_gnu_getopt=yes
18389 else
18390 echo "$as_me: program exited with status $ac_status" >&5
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ( exit $ac_status )
18395 gl_cv_func_gnu_getopt=no
18397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18402 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18403 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18404 if test "$gl_cv_func_gnu_getopt" = "no"; then
18405 GETOPT_H=getopt.h
18411 if test -n "$GETOPT_H"; then
18414 GETOPT_H=getopt.h
18416 cat >>confdefs.h <<\_ACEOF
18417 #define __GETOPT_PREFIX rpl_
18418 _ACEOF
18423 GETOPTOBJS='getopt.o getopt1.o'
18430 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18431 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18432 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 else
18435 # Use it with a single arg.
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 $ac_includes_default
18444 main ()
18446 getpgrp (0);
18448 return 0;
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (ac_try="$ac_compile"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_compile") 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } && {
18465 test -z "$ac_c_werror_flag" ||
18466 test ! -s conftest.err
18467 } && test -s conftest.$ac_objext; then
18468 ac_cv_func_getpgrp_void=no
18469 else
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_func_getpgrp_void=yes
18476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18480 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18481 if test $ac_cv_func_getpgrp_void = yes; then
18483 cat >>confdefs.h <<\_ACEOF
18484 #define GETPGRP_VOID 1
18485 _ACEOF
18491 for ac_func in strftime
18493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499 cat >conftest.$ac_ext <<_ACEOF
18500 /* confdefs.h. */
18501 _ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h. */
18505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18507 #define $ac_func innocuous_$ac_func
18509 /* System header to define __stub macros and hopefully few prototypes,
18510 which can conflict with char $ac_func (); below.
18511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18512 <limits.h> exists even on freestanding compilers. */
18514 #ifdef __STDC__
18515 # include <limits.h>
18516 #else
18517 # include <assert.h>
18518 #endif
18520 #undef $ac_func
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18525 #ifdef __cplusplus
18526 extern "C"
18527 #endif
18528 char $ac_func ();
18529 /* The GNU C library defines this for functions which it implements
18530 to always fail with ENOSYS. Some functions are actually named
18531 something starting with __ and the normal name is an alias. */
18532 #if defined __stub_$ac_func || defined __stub___$ac_func
18533 choke me
18534 #endif
18537 main ()
18539 return $ac_func ();
18541 return 0;
18543 _ACEOF
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (ac_try="$ac_link"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_link") 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } && {
18558 test -z "$ac_c_werror_flag" ||
18559 test ! -s conftest.err
18560 } && test -s conftest$ac_exeext &&
18561 $as_test_x conftest$ac_exeext; then
18562 eval "$as_ac_var=yes"
18563 else
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 eval "$as_ac_var=no"
18570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18571 conftest$ac_exeext conftest.$ac_ext
18573 ac_res=`eval echo '${'$as_ac_var'}'`
18574 { echo "$as_me:$LINENO: result: $ac_res" >&5
18575 echo "${ECHO_T}$ac_res" >&6; }
18576 if test `eval echo '${'$as_ac_var'}'` = yes; then
18577 cat >>confdefs.h <<_ACEOF
18578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18579 _ACEOF
18581 else
18582 # strftime is in -lintl on SCO UNIX.
18583 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18584 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18585 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588 ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lintl $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18600 #ifdef __cplusplus
18601 extern "C"
18602 #endif
18603 char strftime ();
18605 main ()
18607 return strftime ();
18609 return 0;
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest$ac_exeext &&
18629 $as_test_x conftest$ac_exeext; then
18630 ac_cv_lib_intl_strftime=yes
18631 else
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_intl_strftime=no
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18643 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18644 if test $ac_cv_lib_intl_strftime = yes; then
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_STRFTIME 1
18647 _ACEOF
18649 LIBS="-lintl $LIBS"
18653 done
18656 # UNIX98 PTYs.
18658 for ac_func in grantpt
18660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18674 #define $ac_func innocuous_$ac_func
18676 /* System header to define __stub macros and hopefully few prototypes,
18677 which can conflict with char $ac_func (); below.
18678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18679 <limits.h> exists even on freestanding compilers. */
18681 #ifdef __STDC__
18682 # include <limits.h>
18683 #else
18684 # include <assert.h>
18685 #endif
18687 #undef $ac_func
18689 /* Override any GCC internal prototype to avoid an error.
18690 Use char because int might match the return type of a GCC
18691 builtin and then its argument prototype would still apply. */
18692 #ifdef __cplusplus
18693 extern "C"
18694 #endif
18695 char $ac_func ();
18696 /* The GNU C library defines this for functions which it implements
18697 to always fail with ENOSYS. Some functions are actually named
18698 something starting with __ and the normal name is an alias. */
18699 #if defined __stub_$ac_func || defined __stub___$ac_func
18700 choke me
18701 #endif
18704 main ()
18706 return $ac_func ();
18708 return 0;
18710 _ACEOF
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (ac_try="$ac_link"
18713 case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18716 esac
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_link") 2>conftest.er1
18719 ac_status=$?
18720 grep -v '^ *+' conftest.er1 >conftest.err
18721 rm -f conftest.er1
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } && {
18725 test -z "$ac_c_werror_flag" ||
18726 test ! -s conftest.err
18727 } && test -s conftest$ac_exeext &&
18728 $as_test_x conftest$ac_exeext; then
18729 eval "$as_ac_var=yes"
18730 else
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 eval "$as_ac_var=no"
18737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18738 conftest$ac_exeext conftest.$ac_ext
18740 ac_res=`eval echo '${'$as_ac_var'}'`
18741 { echo "$as_me:$LINENO: result: $ac_res" >&5
18742 echo "${ECHO_T}$ac_res" >&6; }
18743 if test `eval echo '${'$as_ac_var'}'` = yes; then
18744 cat >>confdefs.h <<_ACEOF
18745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18746 _ACEOF
18749 done
18752 # PTY-related GNU extensions.
18754 for ac_func in getpt
18756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18770 #define $ac_func innocuous_$ac_func
18772 /* System header to define __stub macros and hopefully few prototypes,
18773 which can conflict with char $ac_func (); below.
18774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18775 <limits.h> exists even on freestanding compilers. */
18777 #ifdef __STDC__
18778 # include <limits.h>
18779 #else
18780 # include <assert.h>
18781 #endif
18783 #undef $ac_func
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18788 #ifdef __cplusplus
18789 extern "C"
18790 #endif
18791 char $ac_func ();
18792 /* The GNU C library defines this for functions which it implements
18793 to always fail with ENOSYS. Some functions are actually named
18794 something starting with __ and the normal name is an alias. */
18795 #if defined __stub_$ac_func || defined __stub___$ac_func
18796 choke me
18797 #endif
18800 main ()
18802 return $ac_func ();
18804 return 0;
18806 _ACEOF
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } && {
18821 test -z "$ac_c_werror_flag" ||
18822 test ! -s conftest.err
18823 } && test -s conftest$ac_exeext &&
18824 $as_test_x conftest$ac_exeext; then
18825 eval "$as_ac_var=yes"
18826 else
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 eval "$as_ac_var=no"
18833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18834 conftest$ac_exeext conftest.$ac_ext
18836 ac_res=`eval echo '${'$as_ac_var'}'`
18837 { echo "$as_me:$LINENO: result: $ac_res" >&5
18838 echo "${ECHO_T}$ac_res" >&6; }
18839 if test `eval echo '${'$as_ac_var'}'` = yes; then
18840 cat >>confdefs.h <<_ACEOF
18841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18842 _ACEOF
18845 done
18848 # Check this now, so that we will NOT find the above functions in ncurses.
18849 # That is because we have not set up to link ncurses in lib-src.
18850 # It's better to believe a function is not available
18851 # than to expect to find it in ncurses.
18853 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18854 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18855 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858 ac_check_lib_save_LIBS=$LIBS
18859 LIBS="-lncurses $LIBS"
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char tparm ();
18875 main ()
18877 return tparm ();
18879 return 0;
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (ac_try="$ac_link"
18884 case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18887 esac
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_link") 2>conftest.er1
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } && {
18896 test -z "$ac_c_werror_flag" ||
18897 test ! -s conftest.err
18898 } && test -s conftest$ac_exeext &&
18899 $as_test_x conftest$ac_exeext; then
18900 ac_cv_lib_ncurses_tparm=yes
18901 else
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_cv_lib_ncurses_tparm=no
18908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18909 conftest$ac_exeext conftest.$ac_ext
18910 LIBS=$ac_check_lib_save_LIBS
18912 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18913 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18914 if test $ac_cv_lib_ncurses_tparm = yes; then
18915 cat >>confdefs.h <<_ACEOF
18916 #define HAVE_LIBNCURSES 1
18917 _ACEOF
18919 LIBS="-lncurses $LIBS"
18924 # Do we need the Hesiod library to provide the support routines?
18925 if test "$with_hesiod" = yes ; then
18926 # Don't set $LIBS here -- see comments above.
18927 resolv=no
18928 { echo "$as_me:$LINENO: checking for res_send" >&5
18929 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18930 if test "${ac_cv_func_res_send+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h. */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18941 #define res_send innocuous_res_send
18943 /* System header to define __stub macros and hopefully few prototypes,
18944 which can conflict with char res_send (); below.
18945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18946 <limits.h> exists even on freestanding compilers. */
18948 #ifdef __STDC__
18949 # include <limits.h>
18950 #else
18951 # include <assert.h>
18952 #endif
18954 #undef res_send
18956 /* Override any GCC internal prototype to avoid an error.
18957 Use char because int might match the return type of a GCC
18958 builtin and then its argument prototype would still apply. */
18959 #ifdef __cplusplus
18960 extern "C"
18961 #endif
18962 char res_send ();
18963 /* The GNU C library defines this for functions which it implements
18964 to always fail with ENOSYS. Some functions are actually named
18965 something starting with __ and the normal name is an alias. */
18966 #if defined __stub_res_send || defined __stub___res_send
18967 choke me
18968 #endif
18971 main ()
18973 return res_send ();
18975 return 0;
18977 _ACEOF
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (ac_try="$ac_link"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_link") 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } && {
18992 test -z "$ac_c_werror_flag" ||
18993 test ! -s conftest.err
18994 } && test -s conftest$ac_exeext &&
18995 $as_test_x conftest$ac_exeext; then
18996 ac_cv_func_res_send=yes
18997 else
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 ac_cv_func_res_send=no
19004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19005 conftest$ac_exeext conftest.$ac_ext
19007 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19008 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19009 if test $ac_cv_func_res_send = yes; then
19011 else
19012 { echo "$as_me:$LINENO: checking for __res_send" >&5
19013 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19014 if test "${ac_cv_func___res_send+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19025 #define __res_send innocuous___res_send
19027 /* System header to define __stub macros and hopefully few prototypes,
19028 which can conflict with char __res_send (); below.
19029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030 <limits.h> exists even on freestanding compilers. */
19032 #ifdef __STDC__
19033 # include <limits.h>
19034 #else
19035 # include <assert.h>
19036 #endif
19038 #undef __res_send
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char __res_send ();
19047 /* The GNU C library defines this for functions which it implements
19048 to always fail with ENOSYS. Some functions are actually named
19049 something starting with __ and the normal name is an alias. */
19050 #if defined __stub___res_send || defined __stub_____res_send
19051 choke me
19052 #endif
19055 main ()
19057 return __res_send ();
19059 return 0;
19061 _ACEOF
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_link") 2>conftest.er1
19070 ac_status=$?
19071 grep -v '^ *+' conftest.er1 >conftest.err
19072 rm -f conftest.er1
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } && {
19076 test -z "$ac_c_werror_flag" ||
19077 test ! -s conftest.err
19078 } && test -s conftest$ac_exeext &&
19079 $as_test_x conftest$ac_exeext; then
19080 ac_cv_func___res_send=yes
19081 else
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 ac_cv_func___res_send=no
19088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19089 conftest$ac_exeext conftest.$ac_ext
19091 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19092 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19093 if test $ac_cv_func___res_send = yes; then
19095 else
19096 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19097 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19098 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101 ac_check_lib_save_LIBS=$LIBS
19102 LIBS="-lresolv $LIBS"
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19113 #ifdef __cplusplus
19114 extern "C"
19115 #endif
19116 char res_send ();
19118 main ()
19120 return res_send ();
19122 return 0;
19124 _ACEOF
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19130 esac
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_link") 2>conftest.er1
19133 ac_status=$?
19134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } && {
19139 test -z "$ac_c_werror_flag" ||
19140 test ! -s conftest.err
19141 } && test -s conftest$ac_exeext &&
19142 $as_test_x conftest$ac_exeext; then
19143 ac_cv_lib_resolv_res_send=yes
19144 else
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_cv_lib_resolv_res_send=no
19151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19152 conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19155 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19156 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19157 if test $ac_cv_lib_resolv_res_send = yes; then
19158 resolv=yes
19159 else
19160 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19161 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19162 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165 ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-lresolv $LIBS"
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19174 /* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 char __res_send ();
19182 main ()
19184 return __res_send ();
19186 return 0;
19188 _ACEOF
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
19207 ac_cv_lib_resolv___res_send=yes
19208 else
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_lib_resolv___res_send=no
19215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19216 conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19219 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19220 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19221 if test $ac_cv_lib_resolv___res_send = yes; then
19222 resolv=yes
19231 if test "$resolv" = yes ; then
19232 RESOLVLIB=-lresolv
19234 cat >>confdefs.h <<\_ACEOF
19235 #define HAVE_LIBRESOLV 1
19236 _ACEOF
19238 else
19239 RESOLVLIB=
19241 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19242 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19243 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 else
19246 cat >conftest.$ac_ext <<_ACEOF
19247 /* confdefs.h. */
19248 _ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19254 #define hes_getmailhost innocuous_hes_getmailhost
19256 /* System header to define __stub macros and hopefully few prototypes,
19257 which can conflict with char hes_getmailhost (); below.
19258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19259 <limits.h> exists even on freestanding compilers. */
19261 #ifdef __STDC__
19262 # include <limits.h>
19263 #else
19264 # include <assert.h>
19265 #endif
19267 #undef hes_getmailhost
19269 /* Override any GCC internal prototype to avoid an error.
19270 Use char because int might match the return type of a GCC
19271 builtin and then its argument prototype would still apply. */
19272 #ifdef __cplusplus
19273 extern "C"
19274 #endif
19275 char hes_getmailhost ();
19276 /* The GNU C library defines this for functions which it implements
19277 to always fail with ENOSYS. Some functions are actually named
19278 something starting with __ and the normal name is an alias. */
19279 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19280 choke me
19281 #endif
19284 main ()
19286 return hes_getmailhost ();
19288 return 0;
19290 _ACEOF
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (ac_try="$ac_link"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_link") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest$ac_exeext &&
19308 $as_test_x conftest$ac_exeext; then
19309 ac_cv_func_hes_getmailhost=yes
19310 else
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_func_hes_getmailhost=no
19317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19318 conftest$ac_exeext conftest.$ac_ext
19320 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19321 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19322 if test $ac_cv_func_hes_getmailhost = yes; then
19324 else
19325 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19326 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19327 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330 ac_check_lib_save_LIBS=$LIBS
19331 LIBS="-lhesiod $RESOLVLIB $LIBS"
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h. */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char hes_getmailhost ();
19347 main ()
19349 return hes_getmailhost ();
19351 return 0;
19353 _ACEOF
19354 rm -f conftest.$ac_objext conftest$ac_exeext
19355 if { (ac_try="$ac_link"
19356 case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_link") 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest$ac_exeext &&
19371 $as_test_x conftest$ac_exeext; then
19372 ac_cv_lib_hesiod_hes_getmailhost=yes
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_lib_hesiod_hes_getmailhost=no
19380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19381 conftest$ac_exeext conftest.$ac_ext
19382 LIBS=$ac_check_lib_save_LIBS
19384 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19385 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19386 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19388 cat >>confdefs.h <<\_ACEOF
19389 #define HAVE_LIBHESIOD 1
19390 _ACEOF
19392 else
19400 # These tell us which Kerberos-related libraries to use.
19401 if test "${with_kerberos+set}" = set; then
19403 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19404 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19405 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408 ac_check_lib_save_LIBS=$LIBS
19409 LIBS="-lcom_err $LIBS"
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char com_err ();
19425 main ()
19427 return com_err ();
19429 return 0;
19431 _ACEOF
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19450 ac_cv_lib_com_err_com_err=yes
19451 else
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_cv_lib_com_err_com_err=no
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19462 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19463 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19464 if test $ac_cv_lib_com_err_com_err = yes; then
19465 cat >>confdefs.h <<_ACEOF
19466 #define HAVE_LIBCOM_ERR 1
19467 _ACEOF
19469 LIBS="-lcom_err $LIBS"
19474 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19475 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19476 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479 ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-lk5crypto $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19491 #ifdef __cplusplus
19492 extern "C"
19493 #endif
19494 char mit_des_cbc_encrypt ();
19496 main ()
19498 return mit_des_cbc_encrypt ();
19500 return 0;
19502 _ACEOF
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19522 else
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19533 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19534 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19535 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19536 cat >>confdefs.h <<_ACEOF
19537 #define HAVE_LIBK5CRYPTO 1
19538 _ACEOF
19540 LIBS="-lk5crypto $LIBS"
19545 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19546 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19547 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lcrypto $LIBS"
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19562 #ifdef __cplusplus
19563 extern "C"
19564 #endif
19565 char mit_des_cbc_encrypt ();
19567 main ()
19569 return mit_des_cbc_encrypt ();
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (ac_try="$ac_link"
19576 case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19579 esac
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_link") 2>conftest.er1
19582 ac_status=$?
19583 grep -v '^ *+' conftest.er1 >conftest.err
19584 rm -f conftest.er1
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } && {
19588 test -z "$ac_c_werror_flag" ||
19589 test ! -s conftest.err
19590 } && test -s conftest$ac_exeext &&
19591 $as_test_x conftest$ac_exeext; then
19592 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19593 else
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19601 conftest$ac_exeext conftest.$ac_ext
19602 LIBS=$ac_check_lib_save_LIBS
19604 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19605 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19606 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19607 cat >>confdefs.h <<_ACEOF
19608 #define HAVE_LIBCRYPTO 1
19609 _ACEOF
19611 LIBS="-lcrypto $LIBS"
19616 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19617 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19618 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621 ac_check_lib_save_LIBS=$LIBS
19622 LIBS="-lkrb5 $LIBS"
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h. */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19630 /* Override any GCC internal prototype to avoid an error.
19631 Use char because int might match the return type of a GCC
19632 builtin and then its argument prototype would still apply. */
19633 #ifdef __cplusplus
19634 extern "C"
19635 #endif
19636 char krb5_init_context ();
19638 main ()
19640 return krb5_init_context ();
19642 return 0;
19644 _ACEOF
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (ac_try="$ac_link"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_link") 2>conftest.er1
19653 ac_status=$?
19654 grep -v '^ *+' conftest.er1 >conftest.err
19655 rm -f conftest.er1
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext &&
19662 $as_test_x conftest$ac_exeext; then
19663 ac_cv_lib_krb5_krb5_init_context=yes
19664 else
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_cv_lib_krb5_krb5_init_context=no
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672 conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19675 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19676 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19677 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_LIBKRB5 1
19680 _ACEOF
19682 LIBS="-lkrb5 $LIBS"
19686 if test "${with_kerberos5+set}" != set; then
19688 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19689 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19690 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693 ac_check_lib_save_LIBS=$LIBS
19694 LIBS="-ldes425 $LIBS"
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19705 #ifdef __cplusplus
19706 extern "C"
19707 #endif
19708 char des_cbc_encrypt ();
19710 main ()
19712 return des_cbc_encrypt ();
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 ac_cv_lib_des425_des_cbc_encrypt=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_lib_des425_des_cbc_encrypt=no
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19748 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19749 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19750 cat >>confdefs.h <<_ACEOF
19751 #define HAVE_LIBDES425 1
19752 _ACEOF
19754 LIBS="-ldes425 $LIBS"
19756 else
19758 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19759 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19760 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 ac_check_lib_save_LIBS=$LIBS
19764 LIBS="-ldes $LIBS"
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h. */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 char des_cbc_encrypt ();
19780 main ()
19782 return des_cbc_encrypt ();
19784 return 0;
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19795 ac_status=$?
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && {
19801 test -z "$ac_c_werror_flag" ||
19802 test ! -s conftest.err
19803 } && test -s conftest$ac_exeext &&
19804 $as_test_x conftest$ac_exeext; then
19805 ac_cv_lib_des_des_cbc_encrypt=yes
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_cv_lib_des_des_cbc_encrypt=no
19813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19817 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19818 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19819 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19820 cat >>confdefs.h <<_ACEOF
19821 #define HAVE_LIBDES 1
19822 _ACEOF
19824 LIBS="-ldes $LIBS"
19831 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19832 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19833 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836 ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-lkrb4 $LIBS"
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 /* Override any GCC internal prototype to avoid an error.
19846 Use char because int might match the return type of a GCC
19847 builtin and then its argument prototype would still apply. */
19848 #ifdef __cplusplus
19849 extern "C"
19850 #endif
19851 char krb_get_cred ();
19853 main ()
19855 return krb_get_cred ();
19857 return 0;
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19868 ac_status=$?
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest$ac_exeext &&
19877 $as_test_x conftest$ac_exeext; then
19878 ac_cv_lib_krb4_krb_get_cred=yes
19879 else
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_cv_lib_krb4_krb_get_cred=no
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19890 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19891 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19892 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define HAVE_LIBKRB4 1
19895 _ACEOF
19897 LIBS="-lkrb4 $LIBS"
19899 else
19901 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19902 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19903 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 else
19906 ac_check_lib_save_LIBS=$LIBS
19907 LIBS="-lkrb $LIBS"
19908 cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h. */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19915 /* Override any GCC internal prototype to avoid an error.
19916 Use char because int might match the return type of a GCC
19917 builtin and then its argument prototype would still apply. */
19918 #ifdef __cplusplus
19919 extern "C"
19920 #endif
19921 char krb_get_cred ();
19923 main ()
19925 return krb_get_cred ();
19927 return 0;
19929 _ACEOF
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_link") 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest$ac_exeext &&
19947 $as_test_x conftest$ac_exeext; then
19948 ac_cv_lib_krb_krb_get_cred=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_cv_lib_krb_krb_get_cred=no
19956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19957 conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19960 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19961 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19962 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19963 cat >>confdefs.h <<_ACEOF
19964 #define HAVE_LIBKRB 1
19965 _ACEOF
19967 LIBS="-lkrb $LIBS"
19975 if test "${with_kerberos5+set}" = set; then
19977 for ac_header in krb5.h
19979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 ac_res=`eval echo '${'$as_ac_Header'}'`
19987 { echo "$as_me:$LINENO: result: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19989 else
19990 # Is the header compilable?
19991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h. */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 $ac_includes_default
20000 #include <$ac_header>
20001 _ACEOF
20002 rm -f conftest.$ac_objext
20003 if { (ac_try="$ac_compile"
20004 case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_compile") 2>conftest.er1
20010 ac_status=$?
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest.$ac_objext; then
20019 ac_header_compiler=yes
20020 else
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_compiler=no
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20029 echo "${ECHO_T}$ac_header_compiler" >&6; }
20031 # Is the header present?
20032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <$ac_header>
20041 _ACEOF
20042 if { (ac_try="$ac_cpp conftest.$ac_ext"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } >/dev/null && {
20055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 }; then
20058 ac_header_preproc=yes
20059 else
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_header_preproc=no
20066 rm -f conftest.err conftest.$ac_ext
20067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068 echo "${ECHO_T}$ac_header_preproc" >&6; }
20070 # So? What about this header?
20071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072 yes:no: )
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20077 ac_header_preproc=yes
20079 no:yes:* )
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20094 esac
20095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100 eval "$as_ac_Header=\$ac_header_preproc"
20102 ac_res=`eval echo '${'$as_ac_Header'}'`
20103 { echo "$as_me:$LINENO: result: $ac_res" >&5
20104 echo "${ECHO_T}$ac_res" >&6; }
20107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20108 cat >>confdefs.h <<_ACEOF
20109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20110 _ACEOF
20114 done
20116 else
20118 for ac_header in des.h
20120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 ac_res=`eval echo '${'$as_ac_Header'}'`
20128 { echo "$as_me:$LINENO: result: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20130 else
20131 # Is the header compilable?
20132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h. */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20141 #include <$ac_header>
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20151 ac_status=$?
20152 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest.$ac_objext; then
20160 ac_header_compiler=yes
20161 else
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_header_compiler=no
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6; }
20172 # Is the header present?
20173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h. */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 #include <$ac_header>
20182 _ACEOF
20183 if { (ac_try="$ac_cpp conftest.$ac_ext"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } >/dev/null && {
20196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 }; then
20199 ac_header_preproc=yes
20200 else
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_header_preproc=no
20207 rm -f conftest.err conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20209 echo "${ECHO_T}$ac_header_preproc" >&6; }
20211 # So? What about this header?
20212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20213 yes:no: )
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20218 ac_header_preproc=yes
20220 no:yes:* )
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20235 esac
20236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241 eval "$as_ac_Header=\$ac_header_preproc"
20243 ac_res=`eval echo '${'$as_ac_Header'}'`
20244 { echo "$as_me:$LINENO: result: $ac_res" >&5
20245 echo "${ECHO_T}$ac_res" >&6; }
20248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20249 cat >>confdefs.h <<_ACEOF
20250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20251 _ACEOF
20253 else
20255 for ac_header in kerberosIV/des.h
20257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 ac_res=`eval echo '${'$as_ac_Header'}'`
20265 { echo "$as_me:$LINENO: result: $ac_res" >&5
20266 echo "${ECHO_T}$ac_res" >&6; }
20267 else
20268 # Is the header compilable?
20269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h. */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 $ac_includes_default
20278 #include <$ac_header>
20279 _ACEOF
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest.$ac_objext; then
20297 ac_header_compiler=yes
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_header_compiler=no
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20307 echo "${ECHO_T}$ac_header_compiler" >&6; }
20309 # Is the header present?
20310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h. */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 #include <$ac_header>
20319 _ACEOF
20320 if { (ac_try="$ac_cpp conftest.$ac_ext"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20327 ac_status=$?
20328 grep -v '^ *+' conftest.er1 >conftest.err
20329 rm -f conftest.er1
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } >/dev/null && {
20333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20335 }; then
20336 ac_header_preproc=yes
20337 else
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_header_preproc=no
20344 rm -f conftest.err conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20346 echo "${ECHO_T}$ac_header_preproc" >&6; }
20348 # So? What about this header?
20349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20350 yes:no: )
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20355 ac_header_preproc=yes
20357 no:yes:* )
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20372 esac
20373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 eval "$as_ac_Header=\$ac_header_preproc"
20380 ac_res=`eval echo '${'$as_ac_Header'}'`
20381 { echo "$as_me:$LINENO: result: $ac_res" >&5
20382 echo "${ECHO_T}$ac_res" >&6; }
20385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20386 cat >>confdefs.h <<_ACEOF
20387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20388 _ACEOF
20390 else
20392 for ac_header in kerberos/des.h
20394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402 { echo "$as_me:$LINENO: result: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20404 else
20405 # Is the header compilable?
20406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20415 #include <$ac_header>
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20425 ac_status=$?
20426 grep -v '^ *+' conftest.er1 >conftest.err
20427 rm -f conftest.er1
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest.$ac_objext; then
20434 ac_header_compiler=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_header_compiler=no
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20444 echo "${ECHO_T}$ac_header_compiler" >&6; }
20446 # Is the header present?
20447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include <$ac_header>
20456 _ACEOF
20457 if { (ac_try="$ac_cpp conftest.$ac_ext"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } >/dev/null && {
20470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 }; then
20473 ac_header_preproc=yes
20474 else
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_header_preproc=no
20481 rm -f conftest.err conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20483 echo "${ECHO_T}$ac_header_preproc" >&6; }
20485 # So? What about this header?
20486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20487 yes:no: )
20488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20492 ac_header_preproc=yes
20494 no:yes:* )
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20509 esac
20510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515 eval "$as_ac_Header=\$ac_header_preproc"
20517 ac_res=`eval echo '${'$as_ac_Header'}'`
20518 { echo "$as_me:$LINENO: result: $ac_res" >&5
20519 echo "${ECHO_T}$ac_res" >&6; }
20522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20525 _ACEOF
20529 done
20533 done
20537 done
20540 for ac_header in krb.h
20542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 ac_res=`eval echo '${'$as_ac_Header'}'`
20550 { echo "$as_me:$LINENO: result: $ac_res" >&5
20551 echo "${ECHO_T}$ac_res" >&6; }
20552 else
20553 # Is the header compilable?
20554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 $ac_includes_default
20563 #include <$ac_header>
20564 _ACEOF
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570 esac
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_compile") 2>conftest.er1
20573 ac_status=$?
20574 grep -v '^ *+' conftest.er1 >conftest.err
20575 rm -f conftest.er1
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } && {
20579 test -z "$ac_c_werror_flag" ||
20580 test ! -s conftest.err
20581 } && test -s conftest.$ac_objext; then
20582 ac_header_compiler=yes
20583 else
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20587 ac_header_compiler=no
20590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20592 echo "${ECHO_T}$ac_header_compiler" >&6; }
20594 # Is the header present?
20595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20597 cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h. */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 #include <$ac_header>
20604 _ACEOF
20605 if { (ac_try="$ac_cpp conftest.$ac_ext"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } >/dev/null && {
20618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20619 test ! -s conftest.err
20620 }; then
20621 ac_header_preproc=yes
20622 else
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ac_header_preproc=no
20629 rm -f conftest.err conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20631 echo "${ECHO_T}$ac_header_preproc" >&6; }
20633 # So? What about this header?
20634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20635 yes:no: )
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20640 ac_header_preproc=yes
20642 no:yes:* )
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20657 esac
20658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663 eval "$as_ac_Header=\$ac_header_preproc"
20665 ac_res=`eval echo '${'$as_ac_Header'}'`
20666 { echo "$as_me:$LINENO: result: $ac_res" >&5
20667 echo "${ECHO_T}$ac_res" >&6; }
20670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20671 cat >>confdefs.h <<_ACEOF
20672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20673 _ACEOF
20675 else
20677 for ac_header in kerberosIV/krb.h
20679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20686 ac_res=`eval echo '${'$as_ac_Header'}'`
20687 { echo "$as_me:$LINENO: result: $ac_res" >&5
20688 echo "${ECHO_T}$ac_res" >&6; }
20689 else
20690 # Is the header compilable?
20691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h. */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 $ac_includes_default
20700 #include <$ac_header>
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.$ac_objext; then
20719 ac_header_compiler=yes
20720 else
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_header_compiler=no
20727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20729 echo "${ECHO_T}$ac_header_compiler" >&6; }
20731 # Is the header present?
20732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <$ac_header>
20741 _ACEOF
20742 if { (ac_try="$ac_cpp conftest.$ac_ext"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } >/dev/null && {
20755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 }; then
20758 ac_header_preproc=yes
20759 else
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_header_preproc=no
20766 rm -f conftest.err conftest.$ac_ext
20767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20768 echo "${ECHO_T}$ac_header_preproc" >&6; }
20770 # So? What about this header?
20771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20772 yes:no: )
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20777 ac_header_preproc=yes
20779 no:yes:* )
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20794 esac
20795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800 eval "$as_ac_Header=\$ac_header_preproc"
20802 ac_res=`eval echo '${'$as_ac_Header'}'`
20803 { echo "$as_me:$LINENO: result: $ac_res" >&5
20804 echo "${ECHO_T}$ac_res" >&6; }
20807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20808 cat >>confdefs.h <<_ACEOF
20809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20810 _ACEOF
20812 else
20814 for ac_header in kerberos/krb.h
20816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20826 else
20827 # Is the header compilable?
20828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h. */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 $ac_includes_default
20837 #include <$ac_header>
20838 _ACEOF
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest.$ac_objext; then
20856 ac_header_compiler=yes
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_header_compiler=no
20864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20866 echo "${ECHO_T}$ac_header_compiler" >&6; }
20868 # Is the header present?
20869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 #include <$ac_header>
20878 _ACEOF
20879 if { (ac_try="$ac_cpp conftest.$ac_ext"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20886 ac_status=$?
20887 grep -v '^ *+' conftest.er1 >conftest.err
20888 rm -f conftest.er1
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } >/dev/null && {
20892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 }; then
20895 ac_header_preproc=yes
20896 else
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_header_preproc=no
20903 rm -f conftest.err conftest.$ac_ext
20904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20905 echo "${ECHO_T}$ac_header_preproc" >&6; }
20907 # So? What about this header?
20908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20909 yes:no: )
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20914 ac_header_preproc=yes
20916 no:yes:* )
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20931 esac
20932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937 eval "$as_ac_Header=\$ac_header_preproc"
20939 ac_res=`eval echo '${'$as_ac_Header'}'`
20940 { echo "$as_me:$LINENO: result: $ac_res" >&5
20941 echo "${ECHO_T}$ac_res" >&6; }
20944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20947 _ACEOF
20951 done
20955 done
20959 done
20963 for ac_header in com_err.h
20965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 ac_res=`eval echo '${'$as_ac_Header'}'`
20973 { echo "$as_me:$LINENO: result: $ac_res" >&5
20974 echo "${ECHO_T}$ac_res" >&6; }
20975 else
20976 # Is the header compilable?
20977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20979 cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h. */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 $ac_includes_default
20986 #include <$ac_header>
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_header_compiler=yes
21006 else
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_header_compiler=no
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21015 echo "${ECHO_T}$ac_header_compiler" >&6; }
21017 # Is the header present?
21018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21020 cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h. */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 #include <$ac_header>
21027 _ACEOF
21028 if { (ac_try="$ac_cpp conftest.$ac_ext"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21035 ac_status=$?
21036 grep -v '^ *+' conftest.er1 >conftest.err
21037 rm -f conftest.er1
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } >/dev/null && {
21041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 }; then
21044 ac_header_preproc=yes
21045 else
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_header_preproc=no
21052 rm -f conftest.err conftest.$ac_ext
21053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21054 echo "${ECHO_T}$ac_header_preproc" >&6; }
21056 # So? What about this header?
21057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21058 yes:no: )
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21063 ac_header_preproc=yes
21065 no:yes:* )
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21080 esac
21081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086 eval "$as_ac_Header=\$ac_header_preproc"
21088 ac_res=`eval echo '${'$as_ac_Header'}'`
21089 { echo "$as_me:$LINENO: result: $ac_res" >&5
21090 echo "${ECHO_T}$ac_res" >&6; }
21093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21094 cat >>confdefs.h <<_ACEOF
21095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21096 _ACEOF
21100 done
21104 # Solaris requires -lintl if you want strerror (which calls dgettext)
21105 # to return localized messages.
21107 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21108 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21109 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112 ac_check_lib_save_LIBS=$LIBS
21113 LIBS="-lintl $LIBS"
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 /* Override any GCC internal prototype to avoid an error.
21122 Use char because int might match the return type of a GCC
21123 builtin and then its argument prototype would still apply. */
21124 #ifdef __cplusplus
21125 extern "C"
21126 #endif
21127 char dgettext ();
21129 main ()
21131 return dgettext ();
21133 return 0;
21135 _ACEOF
21136 rm -f conftest.$ac_objext conftest$ac_exeext
21137 if { (ac_try="$ac_link"
21138 case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21141 esac
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_link") 2>conftest.er1
21144 ac_status=$?
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest$ac_exeext &&
21153 $as_test_x conftest$ac_exeext; then
21154 ac_cv_lib_intl_dgettext=yes
21155 else
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_cv_lib_intl_dgettext=no
21162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21163 conftest$ac_exeext conftest.$ac_ext
21164 LIBS=$ac_check_lib_save_LIBS
21166 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21167 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21168 if test $ac_cv_lib_intl_dgettext = yes; then
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_LIBINTL 1
21171 _ACEOF
21173 LIBS="-lintl $LIBS"
21178 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21179 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21180 if test "${emacs_cv_localtime_cache+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183 if test x$ac_cv_func_tzset = xyes; then
21184 if test "$cross_compiling" = yes; then
21185 # If we have tzset, assume the worst when cross-compiling.
21186 emacs_cv_localtime_cache=yes
21187 else
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 #include <time.h>
21195 extern char **environ;
21196 unset_TZ ()
21198 char **from, **to;
21199 for (to = from = environ; (*to = *from); from++)
21200 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21201 to++;
21203 char TZ_GMT0[] = "TZ=GMT0";
21204 char TZ_PST8[] = "TZ=PST8";
21205 main()
21207 time_t now = time ((time_t *) 0);
21208 int hour_GMT0, hour_unset;
21209 if (putenv (TZ_GMT0) != 0)
21210 exit (1);
21211 hour_GMT0 = localtime (&now)->tm_hour;
21212 unset_TZ ();
21213 hour_unset = localtime (&now)->tm_hour;
21214 if (putenv (TZ_PST8) != 0)
21215 exit (1);
21216 if (localtime (&now)->tm_hour == hour_GMT0)
21217 exit (1);
21218 unset_TZ ();
21219 if (localtime (&now)->tm_hour != hour_unset)
21220 exit (1);
21221 exit (0);
21223 _ACEOF
21224 rm -f conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_link") 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 emacs_cv_localtime_cache=no
21245 else
21246 echo "$as_me: program exited with status $ac_status" >&5
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ( exit $ac_status )
21251 emacs_cv_localtime_cache=yes
21253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21257 else
21258 # If we lack tzset, report that localtime does not cache TZ,
21259 # since we can't invalidate the cache if we don't have tzset.
21260 emacs_cv_localtime_cache=no
21263 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21264 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21265 if test $emacs_cv_localtime_cache = yes; then
21267 cat >>confdefs.h <<\_ACEOF
21268 #define LOCALTIME_CACHE 1
21269 _ACEOF
21273 if test "x$HAVE_TIMEVAL" = xyes; then
21275 for ac_func in gettimeofday
21277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define $ac_func innocuous_$ac_func
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char $ac_func (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21298 #ifdef __STDC__
21299 # include <limits.h>
21300 #else
21301 # include <assert.h>
21302 #endif
21304 #undef $ac_func
21306 /* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
21309 #ifdef __cplusplus
21310 extern "C"
21311 #endif
21312 char $ac_func ();
21313 /* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
21316 #if defined __stub_$ac_func || defined __stub___$ac_func
21317 choke me
21318 #endif
21321 main ()
21323 return $ac_func ();
21325 return 0;
21327 _ACEOF
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>conftest.er1
21336 ac_status=$?
21337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } && {
21342 test -z "$ac_c_werror_flag" ||
21343 test ! -s conftest.err
21344 } && test -s conftest$ac_exeext &&
21345 $as_test_x conftest$ac_exeext; then
21346 eval "$as_ac_var=yes"
21347 else
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 eval "$as_ac_var=no"
21354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21355 conftest$ac_exeext conftest.$ac_ext
21357 ac_res=`eval echo '${'$as_ac_var'}'`
21358 { echo "$as_me:$LINENO: result: $ac_res" >&5
21359 echo "${ECHO_T}$ac_res" >&6; }
21360 if test `eval echo '${'$as_ac_var'}'` = yes; then
21361 cat >>confdefs.h <<_ACEOF
21362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21363 _ACEOF
21366 done
21368 if test $ac_cv_func_gettimeofday = yes; then
21369 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21370 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21371 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374 cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h. */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21381 #ifdef TIME_WITH_SYS_TIME
21382 #include <sys/time.h>
21383 #include <time.h>
21384 #else
21385 #ifdef HAVE_SYS_TIME_H
21386 #include <sys/time.h>
21387 #else
21388 #include <time.h>
21389 #endif
21390 #endif
21392 main ()
21394 struct timeval time;
21395 gettimeofday (&time, 0);
21397 return 0;
21399 _ACEOF
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_compile") 2>conftest.er1
21408 ac_status=$?
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest.$ac_objext; then
21417 emacs_cv_gettimeofday_two_arguments=yes
21418 else
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 emacs_cv_gettimeofday_two_arguments=no
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21428 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21429 if test $emacs_cv_gettimeofday_two_arguments = no; then
21431 cat >>confdefs.h <<\_ACEOF
21432 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21433 _ACEOF
21439 ok_so_far=yes
21440 { echo "$as_me:$LINENO: checking for socket" >&5
21441 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21442 if test "${ac_cv_func_socket+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 else
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h. */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21453 #define socket innocuous_socket
21455 /* System header to define __stub macros and hopefully few prototypes,
21456 which can conflict with char socket (); below.
21457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21458 <limits.h> exists even on freestanding compilers. */
21460 #ifdef __STDC__
21461 # include <limits.h>
21462 #else
21463 # include <assert.h>
21464 #endif
21466 #undef socket
21468 /* Override any GCC internal prototype to avoid an error.
21469 Use char because int might match the return type of a GCC
21470 builtin and then its argument prototype would still apply. */
21471 #ifdef __cplusplus
21472 extern "C"
21473 #endif
21474 char socket ();
21475 /* The GNU C library defines this for functions which it implements
21476 to always fail with ENOSYS. Some functions are actually named
21477 something starting with __ and the normal name is an alias. */
21478 #if defined __stub_socket || defined __stub___socket
21479 choke me
21480 #endif
21483 main ()
21485 return socket ();
21487 return 0;
21489 _ACEOF
21490 rm -f conftest.$ac_objext conftest$ac_exeext
21491 if { (ac_try="$ac_link"
21492 case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21495 esac
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_link") 2>conftest.er1
21498 ac_status=$?
21499 grep -v '^ *+' conftest.er1 >conftest.err
21500 rm -f conftest.er1
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } && {
21504 test -z "$ac_c_werror_flag" ||
21505 test ! -s conftest.err
21506 } && test -s conftest$ac_exeext &&
21507 $as_test_x conftest$ac_exeext; then
21508 ac_cv_func_socket=yes
21509 else
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 ac_cv_func_socket=no
21516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21517 conftest$ac_exeext conftest.$ac_ext
21519 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21520 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21521 if test $ac_cv_func_socket = yes; then
21523 else
21524 ok_so_far=no
21527 if test $ok_so_far = yes; then
21528 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21529 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21530 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21531 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21535 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21536 else
21537 # Is the header compilable?
21538 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21539 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21540 cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h. */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 $ac_includes_default
21547 #include <netinet/in.h>
21548 _ACEOF
21549 rm -f conftest.$ac_objext
21550 if { (ac_try="$ac_compile"
21551 case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21554 esac
21555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_compile") 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } && {
21563 test -z "$ac_c_werror_flag" ||
21564 test ! -s conftest.err
21565 } && test -s conftest.$ac_objext; then
21566 ac_header_compiler=yes
21567 else
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21571 ac_header_compiler=no
21574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6; }
21578 # Is the header present?
21579 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21580 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h. */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <netinet/in.h>
21588 _ACEOF
21589 if { (ac_try="$ac_cpp conftest.$ac_ext"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21596 ac_status=$?
21597 grep -v '^ *+' conftest.er1 >conftest.err
21598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } >/dev/null && {
21602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 }; then
21605 ac_header_preproc=yes
21606 else
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_header_preproc=no
21613 rm -f conftest.err conftest.$ac_ext
21614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21615 echo "${ECHO_T}$ac_header_preproc" >&6; }
21617 # So? What about this header?
21618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21619 yes:no: )
21620 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21621 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21623 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21624 ac_header_preproc=yes
21626 no:yes:* )
21627 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21628 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21630 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21632 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21634 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21636 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21638 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21641 esac
21642 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21643 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21644 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647 ac_cv_header_netinet_in_h=$ac_header_preproc
21649 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21650 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21653 if test $ac_cv_header_netinet_in_h = yes; then
21655 else
21656 ok_so_far=no
21661 if test $ok_so_far = yes; then
21662 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21663 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21664 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21665 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21669 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21670 else
21671 # Is the header compilable?
21672 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21673 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21674 cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h. */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 #include <arpa/inet.h>
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest.$ac_objext; then
21700 ac_header_compiler=yes
21701 else
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_header_compiler=no
21708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21710 echo "${ECHO_T}$ac_header_compiler" >&6; }
21712 # Is the header present?
21713 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21714 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <arpa/inet.h>
21722 _ACEOF
21723 if { (ac_try="$ac_cpp conftest.$ac_ext"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } >/dev/null && {
21736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21738 }; then
21739 ac_header_preproc=yes
21740 else
21741 echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21744 ac_header_preproc=no
21747 rm -f conftest.err conftest.$ac_ext
21748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21749 echo "${ECHO_T}$ac_header_preproc" >&6; }
21751 # So? What about this header?
21752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21753 yes:no: )
21754 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21755 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21757 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21758 ac_header_preproc=yes
21760 no:yes:* )
21761 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21762 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21764 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21766 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21768 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21770 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21772 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21775 esac
21776 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21777 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21778 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781 ac_cv_header_arpa_inet_h=$ac_header_preproc
21783 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21784 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21787 if test $ac_cv_header_arpa_inet_h = yes; then
21789 else
21790 ok_so_far=no
21795 if test $ok_so_far = yes; then
21797 cat >>confdefs.h <<\_ACEOF
21798 #define HAVE_INET_SOCKETS 1
21799 _ACEOF
21804 for ac_header in sys/ioctl.h
21806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 ac_res=`eval echo '${'$as_ac_Header'}'`
21814 { echo "$as_me:$LINENO: result: $ac_res" >&5
21815 echo "${ECHO_T}$ac_res" >&6; }
21816 else
21817 # Is the header compilable?
21818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21820 cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h. */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 $ac_includes_default
21827 #include <$ac_header>
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (ac_try="$ac_compile"
21831 case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21834 esac
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836 (eval "$ac_compile") 2>conftest.er1
21837 ac_status=$?
21838 grep -v '^ *+' conftest.er1 >conftest.err
21839 rm -f conftest.er1
21840 cat conftest.err >&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && {
21843 test -z "$ac_c_werror_flag" ||
21844 test ! -s conftest.err
21845 } && test -s conftest.$ac_objext; then
21846 ac_header_compiler=yes
21847 else
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 ac_header_compiler=no
21854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21856 echo "${ECHO_T}$ac_header_compiler" >&6; }
21858 # Is the header present?
21859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 #include <$ac_header>
21868 _ACEOF
21869 if { (ac_try="$ac_cpp conftest.$ac_ext"
21870 case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21873 esac
21874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } >/dev/null && {
21882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 }; then
21885 ac_header_preproc=yes
21886 else
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_header_preproc=no
21893 rm -f conftest.err conftest.$ac_ext
21894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21895 echo "${ECHO_T}$ac_header_preproc" >&6; }
21897 # So? What about this header?
21898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21899 yes:no: )
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21904 ac_header_preproc=yes
21906 no:yes:* )
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21921 esac
21922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927 eval "$as_ac_Header=\$ac_header_preproc"
21929 ac_res=`eval echo '${'$as_ac_Header'}'`
21930 { echo "$as_me:$LINENO: result: $ac_res" >&5
21931 echo "${ECHO_T}$ac_res" >&6; }
21934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21935 cat >>confdefs.h <<_ACEOF
21936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21937 _ACEOF
21941 done
21944 if test -f /usr/lpp/X11/bin/smt.exp; then
21946 cat >>confdefs.h <<\_ACEOF
21947 #define HAVE_AIX_SMT_EXP 1
21948 _ACEOF
21952 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21953 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21954 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21955 { echo "$as_me:$LINENO: result: yes" >&5
21956 echo "${ECHO_T}yes" >&6; }
21958 cat >>confdefs.h <<\_ACEOF
21959 #define HAVE_DEV_PTMX 1
21960 _ACEOF
21962 else
21963 { echo "$as_me:$LINENO: result: no" >&5
21964 echo "${ECHO_T}no" >&6; }
21967 { echo "$as_me:$LINENO: checking for pid_t" >&5
21968 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21969 if test "${ac_cv_type_pid_t+set}" = set; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h. */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 $ac_includes_default
21979 typedef pid_t ac__type_new_;
21981 main ()
21983 if ((ac__type_new_ *) 0)
21984 return 0;
21985 if (sizeof (ac__type_new_))
21986 return 0;
21988 return 0;
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest.$ac_objext; then
22008 ac_cv_type_pid_t=yes
22009 else
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_type_pid_t=no
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22019 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22020 if test $ac_cv_type_pid_t = yes; then
22022 else
22024 cat >>confdefs.h <<_ACEOF
22025 #define pid_t int
22026 _ACEOF
22031 for ac_header in vfork.h
22033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 ac_res=`eval echo '${'$as_ac_Header'}'`
22041 { echo "$as_me:$LINENO: result: $ac_res" >&5
22042 echo "${ECHO_T}$ac_res" >&6; }
22043 else
22044 # Is the header compilable?
22045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22047 cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h. */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 $ac_includes_default
22054 #include <$ac_header>
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_compile") 2>conftest.er1
22064 ac_status=$?
22065 grep -v '^ *+' conftest.er1 >conftest.err
22066 rm -f conftest.er1
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest.$ac_objext; then
22073 ac_header_compiler=yes
22074 else
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_header_compiler=no
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22083 echo "${ECHO_T}$ac_header_compiler" >&6; }
22085 # Is the header present?
22086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 #include <$ac_header>
22095 _ACEOF
22096 if { (ac_try="$ac_cpp conftest.$ac_ext"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22103 ac_status=$?
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } >/dev/null && {
22109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 }; then
22112 ac_header_preproc=yes
22113 else
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_header_preproc=no
22120 rm -f conftest.err conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22122 echo "${ECHO_T}$ac_header_preproc" >&6; }
22124 # So? What about this header?
22125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22126 yes:no: )
22127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22131 ac_header_preproc=yes
22133 no:yes:* )
22134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22148 esac
22149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154 eval "$as_ac_Header=\$ac_header_preproc"
22156 ac_res=`eval echo '${'$as_ac_Header'}'`
22157 { echo "$as_me:$LINENO: result: $ac_res" >&5
22158 echo "${ECHO_T}$ac_res" >&6; }
22161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22162 cat >>confdefs.h <<_ACEOF
22163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22164 _ACEOF
22168 done
22172 for ac_func in fork vfork
22174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180 cat >conftest.$ac_ext <<_ACEOF
22181 /* confdefs.h. */
22182 _ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22188 #define $ac_func innocuous_$ac_func
22190 /* System header to define __stub macros and hopefully few prototypes,
22191 which can conflict with char $ac_func (); below.
22192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22193 <limits.h> exists even on freestanding compilers. */
22195 #ifdef __STDC__
22196 # include <limits.h>
22197 #else
22198 # include <assert.h>
22199 #endif
22201 #undef $ac_func
22203 /* Override any GCC internal prototype to avoid an error.
22204 Use char because int might match the return type of a GCC
22205 builtin and then its argument prototype would still apply. */
22206 #ifdef __cplusplus
22207 extern "C"
22208 #endif
22209 char $ac_func ();
22210 /* The GNU C library defines this for functions which it implements
22211 to always fail with ENOSYS. Some functions are actually named
22212 something starting with __ and the normal name is an alias. */
22213 #if defined __stub_$ac_func || defined __stub___$ac_func
22214 choke me
22215 #endif
22218 main ()
22220 return $ac_func ();
22222 return 0;
22224 _ACEOF
22225 rm -f conftest.$ac_objext conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_link") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext &&
22242 $as_test_x conftest$ac_exeext; then
22243 eval "$as_ac_var=yes"
22244 else
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 eval "$as_ac_var=no"
22251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22252 conftest$ac_exeext conftest.$ac_ext
22254 ac_res=`eval echo '${'$as_ac_var'}'`
22255 { echo "$as_me:$LINENO: result: $ac_res" >&5
22256 echo "${ECHO_T}$ac_res" >&6; }
22257 if test `eval echo '${'$as_ac_var'}'` = yes; then
22258 cat >>confdefs.h <<_ACEOF
22259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22260 _ACEOF
22263 done
22265 if test "x$ac_cv_func_fork" = xyes; then
22266 { echo "$as_me:$LINENO: checking for working fork" >&5
22267 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22268 if test "${ac_cv_func_fork_works+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22270 else
22271 if test "$cross_compiling" = yes; then
22272 ac_cv_func_fork_works=cross
22273 else
22274 cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h. */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 $ac_includes_default
22282 main ()
22285 /* By Ruediger Kuhlmann. */
22286 return fork () < 0;
22289 return 0;
22291 _ACEOF
22292 rm -f conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_link") 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22303 { (case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22306 esac
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ac_cv_func_fork_works=yes
22313 else
22314 echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ( exit $ac_status )
22319 ac_cv_func_fork_works=no
22321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22326 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22327 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22329 else
22330 ac_cv_func_fork_works=$ac_cv_func_fork
22332 if test "x$ac_cv_func_fork_works" = xcross; then
22333 case $host in
22334 *-*-amigaos* | *-*-msdosdjgpp*)
22335 # Override, as these systems have only a dummy fork() stub
22336 ac_cv_func_fork_works=no
22339 ac_cv_func_fork_works=yes
22341 esac
22342 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22343 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22345 ac_cv_func_vfork_works=$ac_cv_func_vfork
22346 if test "x$ac_cv_func_vfork" = xyes; then
22347 { echo "$as_me:$LINENO: checking for working vfork" >&5
22348 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22349 if test "${ac_cv_func_vfork_works+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352 if test "$cross_compiling" = yes; then
22353 ac_cv_func_vfork_works=cross
22354 else
22355 cat >conftest.$ac_ext <<_ACEOF
22356 /* confdefs.h. */
22357 _ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22361 /* Thanks to Paul Eggert for this test. */
22362 $ac_includes_default
22363 #include <sys/wait.h>
22364 #ifdef HAVE_VFORK_H
22365 # include <vfork.h>
22366 #endif
22367 /* On some sparc systems, changes by the child to local and incoming
22368 argument registers are propagated back to the parent. The compiler
22369 is told about this with #include <vfork.h>, but some compilers
22370 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22371 static variable whose address is put into a register that is
22372 clobbered by the vfork. */
22373 static void
22374 #ifdef __cplusplus
22375 sparc_address_test (int arg)
22376 # else
22377 sparc_address_test (arg) int arg;
22378 #endif
22380 static pid_t child;
22381 if (!child) {
22382 child = vfork ();
22383 if (child < 0) {
22384 perror ("vfork");
22385 _exit(2);
22387 if (!child) {
22388 arg = getpid();
22389 write(-1, "", 0);
22390 _exit (arg);
22396 main ()
22398 pid_t parent = getpid ();
22399 pid_t child;
22401 sparc_address_test (0);
22403 child = vfork ();
22405 if (child == 0) {
22406 /* Here is another test for sparc vfork register problems. This
22407 test uses lots of local variables, at least as many local
22408 variables as main has allocated so far including compiler
22409 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22410 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22411 reuse the register of parent for one of the local variables,
22412 since it will think that parent can't possibly be used any more
22413 in this routine. Assigning to the local variable will thus
22414 munge parent in the parent process. */
22415 pid_t
22416 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22417 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22418 /* Convince the compiler that p..p7 are live; otherwise, it might
22419 use the same hardware register for all 8 local variables. */
22420 if (p != p1 || p != p2 || p != p3 || p != p4
22421 || p != p5 || p != p6 || p != p7)
22422 _exit(1);
22424 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22425 from child file descriptors. If the child closes a descriptor
22426 before it execs or exits, this munges the parent's descriptor
22427 as well. Test for this by closing stdout in the child. */
22428 _exit(close(fileno(stdout)) != 0);
22429 } else {
22430 int status;
22431 struct stat st;
22433 while (wait(&status) != child)
22435 return (
22436 /* Was there some problem with vforking? */
22437 child < 0
22439 /* Did the child fail? (This shouldn't happen.) */
22440 || status
22442 /* Did the vfork/compiler bug occur? */
22443 || parent != getpid()
22445 /* Did the file descriptor bug occur? */
22446 || fstat(fileno(stdout), &st) != 0
22450 _ACEOF
22451 rm -f conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22462 { (case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465 esac
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_try") 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 ac_cv_func_vfork_works=yes
22472 else
22473 echo "$as_me: program exited with status $ac_status" >&5
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 ( exit $ac_status )
22478 ac_cv_func_vfork_works=no
22480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22486 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22489 if test "x$ac_cv_func_fork_works" = xcross; then
22490 ac_cv_func_vfork_works=$ac_cv_func_vfork
22491 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22492 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22495 if test "x$ac_cv_func_vfork_works" = xyes; then
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_WORKING_VFORK 1
22499 _ACEOF
22501 else
22503 cat >>confdefs.h <<\_ACEOF
22504 #define vfork fork
22505 _ACEOF
22508 if test "x$ac_cv_func_fork_works" = xyes; then
22510 cat >>confdefs.h <<\_ACEOF
22511 #define HAVE_WORKING_FORK 1
22512 _ACEOF
22517 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22518 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22519 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522 cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h. */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 #include <langinfo.h>
22530 main ()
22532 char* cs = nl_langinfo(CODESET);
22534 return 0;
22536 _ACEOF
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (ac_try="$ac_link"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22542 esac
22543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_link") 2>conftest.er1
22545 ac_status=$?
22546 grep -v '^ *+' conftest.er1 >conftest.err
22547 rm -f conftest.er1
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && {
22551 test -z "$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 } && test -s conftest$ac_exeext &&
22554 $as_test_x conftest$ac_exeext; then
22555 emacs_cv_langinfo_codeset=yes
22556 else
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 emacs_cv_langinfo_codeset=no
22563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22564 conftest$ac_exeext conftest.$ac_ext
22567 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22568 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22569 if test $emacs_cv_langinfo_codeset = yes; then
22571 cat >>confdefs.h <<\_ACEOF
22572 #define HAVE_LANGINFO_CODESET 1
22573 _ACEOF
22577 { echo "$as_me:$LINENO: checking for size_t" >&5
22578 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22579 if test "${ac_cv_type_size_t+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582 cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h. */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 $ac_includes_default
22589 typedef size_t ac__type_new_;
22591 main ()
22593 if ((ac__type_new_ *) 0)
22594 return 0;
22595 if (sizeof (ac__type_new_))
22596 return 0;
22598 return 0;
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_compile") 2>conftest.er1
22609 ac_status=$?
22610 grep -v '^ *+' conftest.er1 >conftest.err
22611 rm -f conftest.er1
22612 cat conftest.err >&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } && {
22615 test -z "$ac_c_werror_flag" ||
22616 test ! -s conftest.err
22617 } && test -s conftest.$ac_objext; then
22618 ac_cv_type_size_t=yes
22619 else
22620 echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22623 ac_cv_type_size_t=no
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22629 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22630 if test $ac_cv_type_size_t = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_SIZE_T 1
22634 _ACEOF
22640 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22641 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22642 if test "${ac_cv_type_mbstate_t+set}" = set; then
22643 echo $ECHO_N "(cached) $ECHO_C" >&6
22644 else
22645 cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h. */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22651 $ac_includes_default
22652 # include <wchar.h>
22654 main ()
22656 mbstate_t x; return sizeof x;
22658 return 0;
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22669 ac_status=$?
22670 grep -v '^ *+' conftest.er1 >conftest.err
22671 rm -f conftest.er1
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22678 ac_cv_type_mbstate_t=yes
22679 else
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_cv_type_mbstate_t=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22689 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22690 if test $ac_cv_type_mbstate_t = yes; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_MBSTATE_T 1
22694 _ACEOF
22696 else
22698 cat >>confdefs.h <<\_ACEOF
22699 #define mbstate_t int
22700 _ACEOF
22704 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22705 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22706 if test "${emacs_cv_c_restrict+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22709 cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h. */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715 void fred (int *restrict x);
22717 main ()
22721 return 0;
22723 _ACEOF
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_compile") 2>conftest.er1
22732 ac_status=$?
22733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest.$ac_objext; then
22741 emacs_cv_c_restrict=yes
22742 else
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h. */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 void fred (int *__restrict x);
22754 main ()
22758 return 0;
22760 _ACEOF
22761 rm -f conftest.$ac_objext
22762 if { (ac_try="$ac_compile"
22763 case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22766 esac
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768 (eval "$ac_compile") 2>conftest.er1
22769 ac_status=$?
22770 grep -v '^ *+' conftest.er1 >conftest.err
22771 rm -f conftest.er1
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } && {
22775 test -z "$ac_c_werror_flag" ||
22776 test ! -s conftest.err
22777 } && test -s conftest.$ac_objext; then
22778 emacs_cv_c_restrict=__restrict
22779 else
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 emacs_cv_c_restrict=no
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22792 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22793 case "$emacs_cv_c_restrict" in
22794 yes) emacs_restrict=restrict;;
22795 no) emacs_restrict="";;
22796 *) emacs_restrict="$emacs_cv_c_restrict";;
22797 esac
22798 if test "$emacs_restrict" != __restrict; then
22800 cat >>confdefs.h <<_ACEOF
22801 #define __restrict $emacs_restrict
22802 _ACEOF
22806 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22807 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22808 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22810 else
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 void fred (int x[__restrict]);
22819 main ()
22823 return 0;
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22831 esac
22832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833 (eval "$ac_compile") 2>conftest.er1
22834 ac_status=$?
22835 grep -v '^ *+' conftest.er1 >conftest.err
22836 rm -f conftest.er1
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } && {
22840 test -z "$ac_c_werror_flag" ||
22841 test ! -s conftest.err
22842 } && test -s conftest.$ac_objext; then
22843 emacs_cv_c_restrict_arr=yes
22844 else
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22848 emacs_cv_c_restrict_arr=no
22851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22854 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22855 if test "$emacs_cv_c_restrict_arr" = yes; then
22857 cat >>confdefs.h <<\_ACEOF
22858 #define __restrict_arr __restrict
22859 _ACEOF
22865 # Set up the CFLAGS for real compilation, so we can substitute it.
22866 CFLAGS="$REAL_CFLAGS"
22867 CPPFLAGS="$REAL_CPPFLAGS"
22869 #### Find out which version of Emacs this is.
22870 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22871 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22872 if test x"${version}" = x; then
22873 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22874 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22875 { (exit 1); exit 1; }; }
22878 ### Specify what sort of things we'll be editing into Makefile and config.h.
22879 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22915 cat >>confdefs.h <<_ACEOF
22916 #define EMACS_CONFIGURATION "${canonical}"
22917 _ACEOF
22920 cat >>confdefs.h <<_ACEOF
22921 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22922 _ACEOF
22925 cat >>confdefs.h <<_ACEOF
22926 #define config_machfile "${machfile}"
22927 _ACEOF
22930 cat >>confdefs.h <<_ACEOF
22931 #define config_opsysfile "${opsysfile}"
22932 _ACEOF
22935 cat >>confdefs.h <<_ACEOF
22936 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22937 _ACEOF
22940 cat >>confdefs.h <<_ACEOF
22941 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22942 _ACEOF
22945 cat >>confdefs.h <<_ACEOF
22946 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22947 _ACEOF
22950 cat >>confdefs.h <<_ACEOF
22951 #define UNEXEC_SRC ${UNEXEC_SRC}
22952 _ACEOF
22955 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22957 cat >>confdefs.h <<\_ACEOF
22958 #define HAVE_X_WINDOWS 1
22959 _ACEOF
22962 if test "${USE_X_TOOLKIT}" != "none" ; then
22964 cat >>confdefs.h <<\_ACEOF
22965 #define USE_X_TOOLKIT 1
22966 _ACEOF
22969 if test "${HAVE_X11}" = "yes" ; then
22971 cat >>confdefs.h <<\_ACEOF
22972 #define HAVE_X11 1
22973 _ACEOF
22976 if test "${HAVE_XFREE386}" = "yes" ; then
22978 cat >>confdefs.h <<\_ACEOF
22979 #define HAVE_XFREE386 1
22980 _ACEOF
22983 if test "${HAVE_MENUS}" = "yes" ; then
22985 cat >>confdefs.h <<\_ACEOF
22986 #define HAVE_MENUS 1
22987 _ACEOF
22990 if test "${GNU_MALLOC}" = "yes" ; then
22992 cat >>confdefs.h <<\_ACEOF
22993 #define GNU_MALLOC 1
22994 _ACEOF
22997 if test "${REL_ALLOC}" = "yes" ; then
22999 cat >>confdefs.h <<\_ACEOF
23000 #define REL_ALLOC 1
23001 _ACEOF
23009 #### Report on what we decided to do.
23010 #### Report GTK as a toolkit, even if it doesn't use Xt.
23011 #### It makes printing result more understandable as using GTK sets
23012 #### toolkit_scroll_bars to yes by default.
23013 if test "${HAVE_GTK}" = "yes"; then
23014 USE_X_TOOLKIT=GTK
23017 echo "
23018 Configured for \`${canonical}'.
23020 Where should the build process find the source code? ${srcdir}
23021 What operating system and machine description files should Emacs use?
23022 \`${opsysfile}' and \`${machfile}'
23023 What compiler should emacs be built with? ${CC} ${CFLAGS}
23024 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23025 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23026 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23027 What window system should Emacs use? ${window_system}
23028 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23030 if test -n "${x_includes}"; then
23031 echo " Where do we find X Windows header files? ${x_includes}"
23032 else
23033 echo " Where do we find X Windows header files? Standard dirs"
23035 if test -n "${x_libraries}"; then
23036 echo " Where do we find X Windows libraries? ${x_libraries}"
23037 else
23038 echo " Where do we find X Windows libraries? Standard dirs"
23041 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23042 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23043 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23044 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23045 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23046 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23047 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23048 echo
23050 if test $USE_XASSERTS = yes; then
23051 echo " Compiling with asserts turned on."
23052 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23053 echo
23056 if test "$USE_X_TOOLKIT" = GTK; then
23057 case "$canonical" in
23058 *cygwin*)
23059 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23060 will probably get a crash on startup. If this happens, please use another
23061 toolkit for Emacs. See etc/PROBLEMS for more information."
23063 esac
23068 # Remove any trailing slashes in these variables.
23069 test "${prefix}" != NONE &&
23070 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23071 test "${exec_prefix}" != NONE &&
23072 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23074 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23075 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23076 ## from Makefile.c can correctly provide the arg `-traditional' to the
23077 ## C preprocessor.
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 yes..yes
23086 _ACEOF
23087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23088 $EGREP "yes..yes" >/dev/null 2>&1; then
23089 CPP_NEED_TRADITIONAL=no
23090 else
23091 CPP_NEED_TRADITIONAL=yes
23093 rm -f conftest*
23096 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"
23098 ac_config_commands="$ac_config_commands default"
23100 cat >confcache <<\_ACEOF
23101 # This file is a shell script that caches the results of configure
23102 # tests run on this system so they can be shared between configure
23103 # scripts and configure runs, see configure's option --config-cache.
23104 # It is not useful on other systems. If it contains results you don't
23105 # want to keep, you may remove or edit it.
23107 # config.status only pays attention to the cache file if you give it
23108 # the --recheck option to rerun configure.
23110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23112 # following values.
23114 _ACEOF
23116 # The following way of writing the cache mishandles newlines in values,
23117 # but we know of no workaround that is simple, portable, and efficient.
23118 # So, we kill variables containing newlines.
23119 # Ultrix sh set writes to stderr and can't be redirected directly,
23120 # and sets the high bit in the cache file unless we assign to the vars.
23122 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23123 eval ac_val=\$$ac_var
23124 case $ac_val in #(
23125 *${as_nl}*)
23126 case $ac_var in #(
23127 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23128 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23129 esac
23130 case $ac_var in #(
23131 _ | IFS | as_nl) ;; #(
23132 *) $as_unset $ac_var ;;
23133 esac ;;
23134 esac
23135 done
23137 (set) 2>&1 |
23138 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23139 *${as_nl}ac_space=\ *)
23140 # `set' does not quote correctly, so add quotes (double-quote
23141 # substitution turns \\\\ into \\, and sed turns \\ into \).
23142 sed -n \
23143 "s/'/'\\\\''/g;
23144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23145 ;; #(
23147 # `set' quotes correctly as required by POSIX, so do not add quotes.
23148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23150 esac |
23151 sort
23153 sed '
23154 /^ac_cv_env_/b end
23155 t clear
23156 :clear
23157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23158 t end
23159 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23160 :end' >>confcache
23161 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23162 if test -w "$cache_file"; then
23163 test "x$cache_file" != "x/dev/null" &&
23164 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23165 echo "$as_me: updating cache $cache_file" >&6;}
23166 cat confcache >$cache_file
23167 else
23168 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23169 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23172 rm -f confcache
23174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23175 # Let make expand exec_prefix.
23176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23178 DEFS=-DHAVE_CONFIG_H
23180 ac_libobjs=
23181 ac_ltlibobjs=
23182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23183 # 1. Remove the extension, and $U if already installed.
23184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23185 ac_i=`echo "$ac_i" | sed "$ac_script"`
23186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23187 # will be set to the directory where LIBOBJS objects are built.
23188 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23189 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23190 done
23191 LIBOBJS=$ac_libobjs
23193 LTLIBOBJS=$ac_ltlibobjs
23197 : ${CONFIG_STATUS=./config.status}
23198 ac_clean_files_save=$ac_clean_files
23199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23200 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23201 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23202 cat >$CONFIG_STATUS <<_ACEOF
23203 #! $SHELL
23204 # Generated by $as_me.
23205 # Run this file to recreate the current configuration.
23206 # Compiler output produced by configure, useful for debugging
23207 # configure, is in config.log if it exists.
23209 debug=false
23210 ac_cs_recheck=false
23211 ac_cs_silent=false
23212 SHELL=\${CONFIG_SHELL-$SHELL}
23213 _ACEOF
23215 cat >>$CONFIG_STATUS <<\_ACEOF
23216 ## --------------------- ##
23217 ## M4sh Initialization. ##
23218 ## --------------------- ##
23220 # Be more Bourne compatible
23221 DUALCASE=1; export DUALCASE # for MKS sh
23222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23223 emulate sh
23224 NULLCMD=:
23225 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23226 # is contrary to our usage. Disable this feature.
23227 alias -g '${1+"$@"}'='"$@"'
23228 setopt NO_GLOB_SUBST
23229 else
23230 case `(set -o) 2>/dev/null` in
23231 *posix*) set -o posix ;;
23232 esac
23239 # PATH needs CR
23240 # Avoid depending upon Character Ranges.
23241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23244 as_cr_digits='0123456789'
23245 as_cr_alnum=$as_cr_Letters$as_cr_digits
23247 # The user is always right.
23248 if test "${PATH_SEPARATOR+set}" != set; then
23249 echo "#! /bin/sh" >conf$$.sh
23250 echo "exit 0" >>conf$$.sh
23251 chmod +x conf$$.sh
23252 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23253 PATH_SEPARATOR=';'
23254 else
23255 PATH_SEPARATOR=:
23257 rm -f conf$$.sh
23260 # Support unset when possible.
23261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23262 as_unset=unset
23263 else
23264 as_unset=false
23268 # IFS
23269 # We need space, tab and new line, in precisely that order. Quoting is
23270 # there to prevent editors from complaining about space-tab.
23271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23272 # splitting by setting IFS to empty value.)
23273 as_nl='
23275 IFS=" "" $as_nl"
23277 # Find who we are. Look in the path if we contain no directory separator.
23278 case $0 in
23279 *[\\/]* ) as_myself=$0 ;;
23280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23281 for as_dir in $PATH
23283 IFS=$as_save_IFS
23284 test -z "$as_dir" && as_dir=.
23285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23286 done
23287 IFS=$as_save_IFS
23290 esac
23291 # We did not find ourselves, most probably we were run as `sh COMMAND'
23292 # in which case we are not to be found in the path.
23293 if test "x$as_myself" = x; then
23294 as_myself=$0
23296 if test ! -f "$as_myself"; then
23297 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23298 { (exit 1); exit 1; }
23301 # Work around bugs in pre-3.0 UWIN ksh.
23302 for as_var in ENV MAIL MAILPATH
23303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23304 done
23305 PS1='$ '
23306 PS2='> '
23307 PS4='+ '
23309 # NLS nuisances.
23310 for as_var in \
23311 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23312 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23313 LC_TELEPHONE LC_TIME
23315 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23316 eval $as_var=C; export $as_var
23317 else
23318 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23320 done
23322 # Required to use basename.
23323 if expr a : '\(a\)' >/dev/null 2>&1 &&
23324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23325 as_expr=expr
23326 else
23327 as_expr=false
23330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23331 as_basename=basename
23332 else
23333 as_basename=false
23337 # Name of the executable.
23338 as_me=`$as_basename -- "$0" ||
23339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23340 X"$0" : 'X\(//\)$' \| \
23341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23342 echo X/"$0" |
23343 sed '/^.*\/\([^/][^/]*\)\/*$/{
23344 s//\1/
23347 /^X\/\(\/\/\)$/{
23348 s//\1/
23351 /^X\/\(\/\).*/{
23352 s//\1/
23355 s/.*/./; q'`
23357 # CDPATH.
23358 $as_unset CDPATH
23362 as_lineno_1=$LINENO
23363 as_lineno_2=$LINENO
23364 test "x$as_lineno_1" != "x$as_lineno_2" &&
23365 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23368 # uniformly replaced by the line number. The first 'sed' inserts a
23369 # line-number line after each line using $LINENO; the second 'sed'
23370 # does the real work. The second script uses 'N' to pair each
23371 # line-number line with the line containing $LINENO, and appends
23372 # trailing '-' during substitution so that $LINENO is not a special
23373 # case at line end.
23374 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23375 # scripts with optimization help from Paolo Bonzini. Blame Lee
23376 # E. McMahon (1931-1989) for sed's syntax. :-)
23377 sed -n '
23379 /[$]LINENO/=
23380 ' <$as_myself |
23381 sed '
23382 s/[$]LINENO.*/&-/
23383 t lineno
23385 :lineno
23387 :loop
23388 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23389 t loop
23390 s/-\n.*//
23391 ' >$as_me.lineno &&
23392 chmod +x "$as_me.lineno" ||
23393 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23394 { (exit 1); exit 1; }; }
23396 # Don't try to exec as it changes $[0], causing all sort of problems
23397 # (the dirname of $[0] is not the place where we might find the
23398 # original and so on. Autoconf is especially sensitive to this).
23399 . "./$as_me.lineno"
23400 # Exit status is that of the last command.
23401 exit
23405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23406 as_dirname=dirname
23407 else
23408 as_dirname=false
23411 ECHO_C= ECHO_N= ECHO_T=
23412 case `echo -n x` in
23413 -n*)
23414 case `echo 'x\c'` in
23415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23416 *) ECHO_C='\c';;
23417 esac;;
23419 ECHO_N='-n';;
23420 esac
23422 if expr a : '\(a\)' >/dev/null 2>&1 &&
23423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23424 as_expr=expr
23425 else
23426 as_expr=false
23429 rm -f conf$$ conf$$.exe conf$$.file
23430 if test -d conf$$.dir; then
23431 rm -f conf$$.dir/conf$$.file
23432 else
23433 rm -f conf$$.dir
23434 mkdir conf$$.dir
23436 echo >conf$$.file
23437 if ln -s conf$$.file conf$$ 2>/dev/null; then
23438 as_ln_s='ln -s'
23439 # ... but there are two gotchas:
23440 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23441 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23442 # In both cases, we have to default to `cp -p'.
23443 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23444 as_ln_s='cp -p'
23445 elif ln conf$$.file conf$$ 2>/dev/null; then
23446 as_ln_s=ln
23447 else
23448 as_ln_s='cp -p'
23450 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23451 rmdir conf$$.dir 2>/dev/null
23453 if mkdir -p . 2>/dev/null; then
23454 as_mkdir_p=:
23455 else
23456 test -d ./-p && rmdir ./-p
23457 as_mkdir_p=false
23460 if test -x / >/dev/null 2>&1; then
23461 as_test_x='test -x'
23462 else
23463 if ls -dL / >/dev/null 2>&1; then
23464 as_ls_L_option=L
23465 else
23466 as_ls_L_option=
23468 as_test_x='
23469 eval sh -c '\''
23470 if test -d "$1"; then
23471 test -d "$1/.";
23472 else
23473 case $1 in
23474 -*)set "./$1";;
23475 esac;
23476 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23477 ???[sx]*):;;*)false;;esac;fi
23478 '\'' sh
23481 as_executable_p=$as_test_x
23483 # Sed expression to map a string onto a valid CPP name.
23484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23486 # Sed expression to map a string onto a valid variable name.
23487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23490 exec 6>&1
23492 # Save the log message, to keep $[0] and so on meaningful, and to
23493 # report actual input values of CONFIG_FILES etc. instead of their
23494 # values after options handling.
23495 ac_log="
23496 This file was extended by $as_me, which was
23497 generated by GNU Autoconf 2.61. Invocation command line was
23499 CONFIG_FILES = $CONFIG_FILES
23500 CONFIG_HEADERS = $CONFIG_HEADERS
23501 CONFIG_LINKS = $CONFIG_LINKS
23502 CONFIG_COMMANDS = $CONFIG_COMMANDS
23503 $ $0 $@
23505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23508 _ACEOF
23510 cat >>$CONFIG_STATUS <<_ACEOF
23511 # Files that config.status was made for.
23512 config_files="$ac_config_files"
23513 config_headers="$ac_config_headers"
23514 config_commands="$ac_config_commands"
23516 _ACEOF
23518 cat >>$CONFIG_STATUS <<\_ACEOF
23519 ac_cs_usage="\
23520 \`$as_me' instantiates files from templates according to the
23521 current configuration.
23523 Usage: $0 [OPTIONS] [FILE]...
23525 -h, --help print this help, then exit
23526 -V, --version print version number and configuration settings, then exit
23527 -q, --quiet do not print progress messages
23528 -d, --debug don't remove temporary files
23529 --recheck update $as_me by reconfiguring in the same conditions
23530 --file=FILE[:TEMPLATE]
23531 instantiate the configuration file FILE
23532 --header=FILE[:TEMPLATE]
23533 instantiate the configuration header FILE
23535 Configuration files:
23536 $config_files
23538 Configuration headers:
23539 $config_headers
23541 Configuration commands:
23542 $config_commands
23544 Report bugs to <bug-autoconf@gnu.org>."
23546 _ACEOF
23547 cat >>$CONFIG_STATUS <<_ACEOF
23548 ac_cs_version="\\
23549 config.status
23550 configured by $0, generated by GNU Autoconf 2.61,
23551 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23553 Copyright (C) 2006 Free Software Foundation, Inc.
23554 This config.status script is free software; the Free Software Foundation
23555 gives unlimited permission to copy, distribute and modify it."
23557 ac_pwd='$ac_pwd'
23558 srcdir='$srcdir'
23559 INSTALL='$INSTALL'
23560 _ACEOF
23562 cat >>$CONFIG_STATUS <<\_ACEOF
23563 # If no file are specified by the user, then we need to provide default
23564 # value. By we need to know if files were specified by the user.
23565 ac_need_defaults=:
23566 while test $# != 0
23568 case $1 in
23569 --*=*)
23570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23571 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23572 ac_shift=:
23575 ac_option=$1
23576 ac_optarg=$2
23577 ac_shift=shift
23579 esac
23581 case $ac_option in
23582 # Handling of the options.
23583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23584 ac_cs_recheck=: ;;
23585 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23586 echo "$ac_cs_version"; exit ;;
23587 --debug | --debu | --deb | --de | --d | -d )
23588 debug=: ;;
23589 --file | --fil | --fi | --f )
23590 $ac_shift
23591 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23592 ac_need_defaults=false;;
23593 --header | --heade | --head | --hea )
23594 $ac_shift
23595 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23596 ac_need_defaults=false;;
23597 --he | --h)
23598 # Conflict between --help and --header
23599 { echo "$as_me: error: ambiguous option: $1
23600 Try \`$0 --help' for more information." >&2
23601 { (exit 1); exit 1; }; };;
23602 --help | --hel | -h )
23603 echo "$ac_cs_usage"; exit ;;
23604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23606 ac_cs_silent=: ;;
23608 # This is an error.
23609 -*) { echo "$as_me: error: unrecognized option: $1
23610 Try \`$0 --help' for more information." >&2
23611 { (exit 1); exit 1; }; } ;;
23613 *) ac_config_targets="$ac_config_targets $1"
23614 ac_need_defaults=false ;;
23616 esac
23617 shift
23618 done
23620 ac_configure_extra_args=
23622 if $ac_cs_silent; then
23623 exec 6>/dev/null
23624 ac_configure_extra_args="$ac_configure_extra_args --silent"
23627 _ACEOF
23628 cat >>$CONFIG_STATUS <<_ACEOF
23629 if \$ac_cs_recheck; then
23630 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23631 CONFIG_SHELL=$SHELL
23632 export CONFIG_SHELL
23633 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23636 _ACEOF
23637 cat >>$CONFIG_STATUS <<\_ACEOF
23638 exec 5>>config.log
23640 echo
23641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23642 ## Running $as_me. ##
23643 _ASBOX
23644 echo "$ac_log"
23645 } >&5
23647 _ACEOF
23648 cat >>$CONFIG_STATUS <<_ACEOF
23650 # INIT-COMMANDS
23652 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23654 _ACEOF
23656 cat >>$CONFIG_STATUS <<\_ACEOF
23658 # Handling of arguments.
23659 for ac_config_target in $ac_config_targets
23661 case $ac_config_target in
23662 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23663 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23664 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23665 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23666 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23667 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23668 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23669 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23670 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23671 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23672 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23673 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23675 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23676 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23677 { (exit 1); exit 1; }; };;
23678 esac
23679 done
23682 # If the user did not use the arguments to specify the items to instantiate,
23683 # then the envvar interface is used. Set only those that are not.
23684 # We use the long form for the default assignment because of an extremely
23685 # bizarre bug on SunOS 4.1.3.
23686 if $ac_need_defaults; then
23687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23689 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23692 # Have a temporary directory for convenience. Make it in the build tree
23693 # simply because there is no reason against having it here, and in addition,
23694 # creating and moving files from /tmp can sometimes cause problems.
23695 # Hook for its removal unless debugging.
23696 # Note that there is a small window in which the directory will not be cleaned:
23697 # after its creation but before its name has been assigned to `$tmp'.
23698 $debug ||
23700 tmp=
23701 trap 'exit_status=$?
23702 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23704 trap '{ (exit 1); exit 1; }' 1 2 13 15
23706 # Create a (secure) tmp directory for tmp files.
23709 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23710 test -n "$tmp" && test -d "$tmp"
23711 } ||
23713 tmp=./conf$$-$RANDOM
23714 (umask 077 && mkdir "$tmp")
23715 } ||
23717 echo "$me: cannot create a temporary directory in ." >&2
23718 { (exit 1); exit 1; }
23722 # Set up the sed scripts for CONFIG_FILES section.
23725 # No need to generate the scripts if there are no CONFIG_FILES.
23726 # This happens for instance when ./config.status config.h
23727 if test -n "$CONFIG_FILES"; then
23729 _ACEOF
23733 ac_delim='%!_!# '
23734 for ac_last_try in false false false false false :; do
23735 cat >conf$$subs.sed <<_ACEOF
23736 SHELL!$SHELL$ac_delim
23737 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23738 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23739 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23740 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23741 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23742 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23743 exec_prefix!$exec_prefix$ac_delim
23744 prefix!$prefix$ac_delim
23745 program_transform_name!$program_transform_name$ac_delim
23746 bindir!$bindir$ac_delim
23747 sbindir!$sbindir$ac_delim
23748 libexecdir!$libexecdir$ac_delim
23749 datarootdir!$datarootdir$ac_delim
23750 datadir!$datadir$ac_delim
23751 sysconfdir!$sysconfdir$ac_delim
23752 sharedstatedir!$sharedstatedir$ac_delim
23753 localstatedir!$localstatedir$ac_delim
23754 includedir!$includedir$ac_delim
23755 oldincludedir!$oldincludedir$ac_delim
23756 docdir!$docdir$ac_delim
23757 infodir!$infodir$ac_delim
23758 htmldir!$htmldir$ac_delim
23759 dvidir!$dvidir$ac_delim
23760 pdfdir!$pdfdir$ac_delim
23761 psdir!$psdir$ac_delim
23762 libdir!$libdir$ac_delim
23763 localedir!$localedir$ac_delim
23764 mandir!$mandir$ac_delim
23765 DEFS!$DEFS$ac_delim
23766 ECHO_C!$ECHO_C$ac_delim
23767 ECHO_N!$ECHO_N$ac_delim
23768 ECHO_T!$ECHO_T$ac_delim
23769 LIBS!$LIBS$ac_delim
23770 build_alias!$build_alias$ac_delim
23771 host_alias!$host_alias$ac_delim
23772 target_alias!$target_alias$ac_delim
23773 MAINT!$MAINT$ac_delim
23774 build!$build$ac_delim
23775 build_cpu!$build_cpu$ac_delim
23776 build_vendor!$build_vendor$ac_delim
23777 build_os!$build_os$ac_delim
23778 host!$host$ac_delim
23779 host_cpu!$host_cpu$ac_delim
23780 host_vendor!$host_vendor$ac_delim
23781 host_os!$host_os$ac_delim
23782 CC!$CC$ac_delim
23783 CFLAGS!$CFLAGS$ac_delim
23784 LDFLAGS!$LDFLAGS$ac_delim
23785 CPPFLAGS!$CPPFLAGS$ac_delim
23786 ac_ct_CC!$ac_ct_CC$ac_delim
23787 EXEEXT!$EXEEXT$ac_delim
23788 OBJEXT!$OBJEXT$ac_delim
23789 CPP!$CPP$ac_delim
23790 GREP!$GREP$ac_delim
23791 EGREP!$EGREP$ac_delim
23792 LN_S!$LN_S$ac_delim
23793 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23794 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23795 INSTALL_DATA!$INSTALL_DATA$ac_delim
23796 RANLIB!$RANLIB$ac_delim
23797 INSTALL_INFO!$INSTALL_INFO$ac_delim
23798 GZIP_PROG!$GZIP_PROG$ac_delim
23799 LIBSOUND!$LIBSOUND$ac_delim
23800 PKG_CONFIG!$PKG_CONFIG$ac_delim
23801 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23802 ALSA_LIBS!$ALSA_LIBS$ac_delim
23803 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23804 SET_MAKE!$SET_MAKE$ac_delim
23805 XMKMF!$XMKMF$ac_delim
23806 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23807 GTK_LIBS!$GTK_LIBS$ac_delim
23808 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23809 XFT_LIBS!$XFT_LIBS$ac_delim
23810 ALLOCA!$ALLOCA$ac_delim
23811 liblockfile!$liblockfile$ac_delim
23812 LIBOBJS!$LIBOBJS$ac_delim
23813 NEED_SETGID!$NEED_SETGID$ac_delim
23814 KMEM_GROUP!$KMEM_GROUP$ac_delim
23815 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23816 GETOPT_H!$GETOPT_H$ac_delim
23817 GETOPTOBJS!$GETOPTOBJS$ac_delim
23818 version!$version$ac_delim
23819 configuration!$configuration$ac_delim
23820 canonical!$canonical$ac_delim
23821 srcdir!$srcdir$ac_delim
23822 lispdir!$lispdir$ac_delim
23823 locallisppath!$locallisppath$ac_delim
23824 lisppath!$lisppath$ac_delim
23825 x_default_search_path!$x_default_search_path$ac_delim
23826 etcdir!$etcdir$ac_delim
23827 archlibdir!$archlibdir$ac_delim
23828 bitmapdir!$bitmapdir$ac_delim
23829 gamedir!$gamedir$ac_delim
23830 gameuser!$gameuser$ac_delim
23831 c_switch_system!$c_switch_system$ac_delim
23832 c_switch_machine!$c_switch_machine$ac_delim
23833 _ACEOF
23835 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23836 break
23837 elif $ac_last_try; then
23838 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23840 { (exit 1); exit 1; }; }
23841 else
23842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23844 done
23846 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23847 if test -n "$ac_eof"; then
23848 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23849 ac_eof=`expr $ac_eof + 1`
23852 cat >>$CONFIG_STATUS <<_ACEOF
23853 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23855 _ACEOF
23856 sed '
23857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23858 s/^/s,@/; s/!/@,|#_!!_#|/
23861 s/'"$ac_delim"'$/,g/; t
23862 s/$/\\/; p
23863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23864 ' >>$CONFIG_STATUS <conf$$subs.sed
23865 rm -f conf$$subs.sed
23866 cat >>$CONFIG_STATUS <<_ACEOF
23867 CEOF$ac_eof
23868 _ACEOF
23871 ac_delim='%!_!# '
23872 for ac_last_try in false false false false false :; do
23873 cat >conf$$subs.sed <<_ACEOF
23874 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23875 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23876 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23877 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23878 machfile!$machfile$ac_delim
23879 opsysfile!$opsysfile$ac_delim
23880 carbon_appdir!$carbon_appdir$ac_delim
23881 LTLIBOBJS!$LTLIBOBJS$ac_delim
23882 _ACEOF
23884 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23885 break
23886 elif $ac_last_try; then
23887 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23888 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23889 { (exit 1); exit 1; }; }
23890 else
23891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23893 done
23895 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23896 if test -n "$ac_eof"; then
23897 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23898 ac_eof=`expr $ac_eof + 1`
23901 cat >>$CONFIG_STATUS <<_ACEOF
23902 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23904 _ACEOF
23905 sed '
23906 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23907 s/^/s,@/; s/!/@,|#_!!_#|/
23910 s/'"$ac_delim"'$/,g/; t
23911 s/$/\\/; p
23912 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23913 ' >>$CONFIG_STATUS <conf$$subs.sed
23914 rm -f conf$$subs.sed
23915 cat >>$CONFIG_STATUS <<_ACEOF
23916 :end
23917 s/|#_!!_#|//g
23918 CEOF$ac_eof
23919 _ACEOF
23922 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23923 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23924 # trailing colons and then remove the whole line if VPATH becomes empty
23925 # (actually we leave an empty line to preserve line numbers).
23926 if test "x$srcdir" = x.; then
23927 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23928 s/:*\$(srcdir):*/:/
23929 s/:*\${srcdir}:*/:/
23930 s/:*@srcdir@:*/:/
23931 s/^\([^=]*=[ ]*\):*/\1/
23932 s/:*$//
23933 s/^[^=]*=[ ]*$//
23937 cat >>$CONFIG_STATUS <<\_ACEOF
23938 fi # test -n "$CONFIG_FILES"
23941 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23943 case $ac_tag in
23944 :[FHLC]) ac_mode=$ac_tag; continue;;
23945 esac
23946 case $ac_mode$ac_tag in
23947 :[FHL]*:*);;
23948 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23949 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23950 { (exit 1); exit 1; }; };;
23951 :[FH]-) ac_tag=-:-;;
23952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23953 esac
23954 ac_save_IFS=$IFS
23955 IFS=:
23956 set x $ac_tag
23957 IFS=$ac_save_IFS
23958 shift
23959 ac_file=$1
23960 shift
23962 case $ac_mode in
23963 :L) ac_source=$1;;
23964 :[FH])
23965 ac_file_inputs=
23966 for ac_f
23968 case $ac_f in
23969 -) ac_f="$tmp/stdin";;
23970 *) # Look for the file first in the build tree, then in the source tree
23971 # (if the path is not absolute). The absolute path cannot be DOS-style,
23972 # because $ac_f cannot contain `:'.
23973 test -f "$ac_f" ||
23974 case $ac_f in
23975 [\\/$]*) false;;
23976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23977 esac ||
23978 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23979 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23980 { (exit 1); exit 1; }; };;
23981 esac
23982 ac_file_inputs="$ac_file_inputs $ac_f"
23983 done
23985 # Let's still pretend it is `configure' which instantiates (i.e., don't
23986 # use $as_me), people would be surprised to read:
23987 # /* config.h. Generated by config.status. */
23988 configure_input="Generated from "`IFS=:
23989 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23990 if test x"$ac_file" != x-; then
23991 configure_input="$ac_file. $configure_input"
23992 { echo "$as_me:$LINENO: creating $ac_file" >&5
23993 echo "$as_me: creating $ac_file" >&6;}
23996 case $ac_tag in
23997 *:-:* | *:-) cat >"$tmp/stdin";;
23998 esac
24000 esac
24002 ac_dir=`$as_dirname -- "$ac_file" ||
24003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24004 X"$ac_file" : 'X\(//\)[^/]' \| \
24005 X"$ac_file" : 'X\(//\)$' \| \
24006 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24007 echo X"$ac_file" |
24008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24009 s//\1/
24012 /^X\(\/\/\)[^/].*/{
24013 s//\1/
24016 /^X\(\/\/\)$/{
24017 s//\1/
24020 /^X\(\/\).*/{
24021 s//\1/
24024 s/.*/./; q'`
24025 { as_dir="$ac_dir"
24026 case $as_dir in #(
24027 -*) as_dir=./$as_dir;;
24028 esac
24029 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24030 as_dirs=
24031 while :; do
24032 case $as_dir in #(
24033 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24034 *) as_qdir=$as_dir;;
24035 esac
24036 as_dirs="'$as_qdir' $as_dirs"
24037 as_dir=`$as_dirname -- "$as_dir" ||
24038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24039 X"$as_dir" : 'X\(//\)[^/]' \| \
24040 X"$as_dir" : 'X\(//\)$' \| \
24041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24042 echo X"$as_dir" |
24043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24044 s//\1/
24047 /^X\(\/\/\)[^/].*/{
24048 s//\1/
24051 /^X\(\/\/\)$/{
24052 s//\1/
24055 /^X\(\/\).*/{
24056 s//\1/
24059 s/.*/./; q'`
24060 test -d "$as_dir" && break
24061 done
24062 test -z "$as_dirs" || eval "mkdir $as_dirs"
24063 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24064 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24065 { (exit 1); exit 1; }; }; }
24066 ac_builddir=.
24068 case "$ac_dir" in
24069 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24072 # A ".." for each directory in $ac_dir_suffix.
24073 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24074 case $ac_top_builddir_sub in
24075 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24076 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24077 esac ;;
24078 esac
24079 ac_abs_top_builddir=$ac_pwd
24080 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24081 # for backward compatibility:
24082 ac_top_builddir=$ac_top_build_prefix
24084 case $srcdir in
24085 .) # We are building in place.
24086 ac_srcdir=.
24087 ac_top_srcdir=$ac_top_builddir_sub
24088 ac_abs_top_srcdir=$ac_pwd ;;
24089 [\\/]* | ?:[\\/]* ) # Absolute name.
24090 ac_srcdir=$srcdir$ac_dir_suffix;
24091 ac_top_srcdir=$srcdir
24092 ac_abs_top_srcdir=$srcdir ;;
24093 *) # Relative name.
24094 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24095 ac_top_srcdir=$ac_top_build_prefix$srcdir
24096 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24097 esac
24098 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24101 case $ac_mode in
24104 # CONFIG_FILE
24107 case $INSTALL in
24108 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24109 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24110 esac
24111 _ACEOF
24113 cat >>$CONFIG_STATUS <<\_ACEOF
24114 # If the template does not know about datarootdir, expand it.
24115 # FIXME: This hack should be removed a few years after 2.60.
24116 ac_datarootdir_hack=; ac_datarootdir_seen=
24118 case `sed -n '/datarootdir/ {
24122 /@datadir@/p
24123 /@docdir@/p
24124 /@infodir@/p
24125 /@localedir@/p
24126 /@mandir@/p
24127 ' $ac_file_inputs` in
24128 *datarootdir*) ac_datarootdir_seen=yes;;
24129 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24130 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24131 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24132 _ACEOF
24133 cat >>$CONFIG_STATUS <<_ACEOF
24134 ac_datarootdir_hack='
24135 s&@datadir@&$datadir&g
24136 s&@docdir@&$docdir&g
24137 s&@infodir@&$infodir&g
24138 s&@localedir@&$localedir&g
24139 s&@mandir@&$mandir&g
24140 s&\\\${datarootdir}&$datarootdir&g' ;;
24141 esac
24142 _ACEOF
24144 # Neutralize VPATH when `$srcdir' = `.'.
24145 # Shell code in configure.ac might set extrasub.
24146 # FIXME: do we really want to maintain this feature?
24147 cat >>$CONFIG_STATUS <<_ACEOF
24148 sed "$ac_vpsub
24149 $extrasub
24150 _ACEOF
24151 cat >>$CONFIG_STATUS <<\_ACEOF
24153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24154 s&@configure_input@&$configure_input&;t t
24155 s&@top_builddir@&$ac_top_builddir_sub&;t t
24156 s&@srcdir@&$ac_srcdir&;t t
24157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24158 s&@top_srcdir@&$ac_top_srcdir&;t t
24159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24160 s&@builddir@&$ac_builddir&;t t
24161 s&@abs_builddir@&$ac_abs_builddir&;t t
24162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24163 s&@INSTALL@&$ac_INSTALL&;t t
24164 $ac_datarootdir_hack
24165 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24167 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24170 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24171 which seems to be undefined. Please make sure it is defined." >&5
24172 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24173 which seems to be undefined. Please make sure it is defined." >&2;}
24175 rm -f "$tmp/stdin"
24176 case $ac_file in
24177 -) cat "$tmp/out"; rm -f "$tmp/out";;
24178 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24179 esac
24183 # CONFIG_HEADER
24185 _ACEOF
24187 # Transform confdefs.h into a sed script `conftest.defines', that
24188 # substitutes the proper values into config.h.in to produce config.h.
24189 rm -f conftest.defines conftest.tail
24190 # First, append a space to every undef/define line, to ease matching.
24191 echo 's/$/ /' >conftest.defines
24192 # Then, protect against being on the right side of a sed subst, or in
24193 # an unquoted here document, in config.status. If some macros were
24194 # called several times there might be several #defines for the same
24195 # symbol, which is useless. But do not sort them, since the last
24196 # AC_DEFINE must be honored.
24197 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24198 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24199 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24200 # PARAMS is the parameter list in the macro definition--in most cases, it's
24201 # just an empty string.
24202 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24203 ac_dB='\\)[ (].*,\\1define\\2'
24204 ac_dC=' '
24205 ac_dD=' ,'
24207 uniq confdefs.h |
24208 sed -n '
24209 t rset
24210 :rset
24211 s/^[ ]*#[ ]*define[ ][ ]*//
24212 t ok
24215 s/[\\&,]/\\&/g
24216 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24217 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24218 ' >>conftest.defines
24220 # Remove the space that was appended to ease matching.
24221 # Then replace #undef with comments. This is necessary, for
24222 # example, in the case of _POSIX_SOURCE, which is predefined and required
24223 # on some systems where configure will not decide to define it.
24224 # (The regexp can be short, since the line contains either #define or #undef.)
24225 echo 's/ $//
24226 s,^[ #]*u.*,/* & */,' >>conftest.defines
24228 # Break up conftest.defines:
24229 ac_max_sed_lines=50
24231 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24232 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24233 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24234 # et cetera.
24235 ac_in='$ac_file_inputs'
24236 ac_out='"$tmp/out1"'
24237 ac_nxt='"$tmp/out2"'
24239 while :
24241 # Write a here document:
24242 cat >>$CONFIG_STATUS <<_ACEOF
24243 # First, check the format of the line:
24244 cat >"\$tmp/defines.sed" <<\\CEOF
24245 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24246 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24248 :def
24249 _ACEOF
24250 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24251 echo 'CEOF
24252 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24253 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24254 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24255 grep . conftest.tail >/dev/null || break
24256 rm -f conftest.defines
24257 mv conftest.tail conftest.defines
24258 done
24259 rm -f conftest.defines conftest.tail
24261 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24262 cat >>$CONFIG_STATUS <<\_ACEOF
24263 if test x"$ac_file" != x-; then
24264 echo "/* $configure_input */" >"$tmp/config.h"
24265 cat "$ac_result" >>"$tmp/config.h"
24266 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24267 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24268 echo "$as_me: $ac_file is unchanged" >&6;}
24269 else
24270 rm -f $ac_file
24271 mv "$tmp/config.h" $ac_file
24273 else
24274 echo "/* $configure_input */"
24275 cat "$ac_result"
24277 rm -f "$tmp/out12"
24280 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24281 echo "$as_me: executing $ac_file commands" >&6;}
24283 esac
24286 case $ac_file$ac_mode in
24287 "default":C)
24289 ### Make the necessary directories, if they don't exist.
24290 for dir in etc lisp ; do
24291 test -d ${dir} || mkdir ${dir}
24292 done
24294 # Build src/Makefile from ${srcdir}/src/Makefile.c
24295 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24296 # This must be done after src/config.h is built, since we rely on that file.
24298 # Now get this: Some word that is part of the ${srcdir} directory name
24299 # or the ${configuration} value might, just might, happen to be an
24300 # identifier like `sun4' or `i386' or something, and be predefined by
24301 # the C preprocessor to some helpful value like 1, or maybe the empty
24302 # string. Needless to say consequent macro substitutions are less
24303 # than conducive to the makefile finding the correct directory.
24304 undefs="`echo $top_srcdir $configuration $canonical |
24305 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24306 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24309 echo creating src/epaths.h
24310 ${MAKE-make} epaths-force
24312 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24313 # `..' to `. .' unless invoked with -traditional
24315 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24316 CPPFLAGS="$CPPFLAGS -traditional"
24319 echo creating lib-src/Makefile
24320 ( cd lib-src
24321 rm -f junk.c junk1.c junk2.c
24322 sed -e '/start of cpp stuff/q' \
24323 < Makefile.c > junk1.c
24324 sed -e '1,/start of cpp stuff/d'\
24325 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24326 < Makefile.c > junk.c
24327 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24328 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24329 cat junk1.c junk2.c > Makefile.new
24330 rm -f junk.c junk1.c junk2.c
24331 chmod 444 Makefile.new
24332 mv -f Makefile.new Makefile
24335 echo creating src/Makefile
24336 ( cd src
24337 rm -f junk.c junk1.c junk2.c
24338 sed -e '/start of cpp stuff/q' \
24339 < Makefile.c > junk1.c
24340 sed -e '1,/start of cpp stuff/d'\
24341 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24342 < Makefile.c > junk.c
24343 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24344 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24345 cat junk1.c junk2.c > Makefile.new
24346 rm -f junk.c junk1.c junk2.c
24347 chmod 444 Makefile.new
24348 mv -f Makefile.new Makefile
24351 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24352 echo creating src/.gdbinit
24353 echo source $srcdir/src/.gdbinit > src/.gdbinit
24356 # This is how we know whether to re-run configure in certain cases.
24357 touch src/config.stamp
24361 esac
24362 done # for ac_tag
24365 { (exit 0); exit 0; }
24366 _ACEOF
24367 chmod +x $CONFIG_STATUS
24368 ac_clean_files=$ac_clean_files_save
24371 # configure is writing to config.log, and then calls config.status.
24372 # config.status does its own redirection, appending to config.log.
24373 # Unfortunately, on DOS this fails, as config.log is still kept open
24374 # by configure, so config.status won't be able to write to it; its
24375 # output is simply discarded. So we exec the FD to /dev/null,
24376 # effectively closing config.log, so it can be properly (re)opened and
24377 # appended to by config.status. When coming back to configure, we
24378 # need to make the FD available again.
24379 if test "$no_create" != yes; then
24380 ac_cs_success=:
24381 ac_config_status_args=
24382 test "$silent" = yes &&
24383 ac_config_status_args="$ac_config_status_args --quiet"
24384 exec 5>/dev/null
24385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24386 exec 5>>config.log
24387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24388 # would make configure fail if this is the last instruction.
24389 $ac_cs_success || { (exit 1); exit 1; }