(Highlight Interactively): Correct previous change.
[emacs.git] / configure
blob9dd401b4d12ff33d5adf57e58c86438e7b35e1c2
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 arm-*-openbsd*) machine=arm ;;
2253 hppa-*-openbsd*) machine=hp9000s300 ;;
2254 i386-*-openbsd*) machine=intel386 ;;
2255 m68k-*-openbsd*) machine=hp9000s300 ;;
2256 m88k-*-openbsd*) machine=aviion ;;
2257 mips64-*-openbsd*) machine=mips64 ;;
2258 powerpc-*-openbsd*) machine=macppc ;;
2259 sh-*-openbsd*) machine=sh3el ;;
2260 sparc*-*-openbsd*) machine=sparc ;;
2261 vax-*-openbsd*) machine=vax ;;
2262 x86_64-*-openbsd*) machine=amdx86-64 ;;
2263 esac
2266 ## LynxOS ports
2267 *-*-lynxos* )
2268 opsys=lynxos
2269 case "${canonical}" in
2270 i[3456]86-*-lynxos*) machine=intel386 ;;
2271 powerpc-*-lynxos*) machine=powerpc ;;
2272 esac
2275 ## Acorn RISCiX:
2276 arm-acorn-riscix1.1* )
2277 machine=acorn opsys=riscix1-1
2279 arm-acorn-riscix1.2* | arm-acorn-riscix )
2280 ## This name is riscix12 instead of riscix1.2
2281 ## to avoid a file name conflict on MSDOS.
2282 machine=acorn opsys=riscix12
2285 ## BSDI ports
2286 *-*-bsdi* )
2287 opsys=bsdi
2288 case "${canonical}" in
2289 i[345]86-*-bsdi*) machine=intel386 ;;
2290 sparc-*-bsdi*) machine=sparc ;;
2291 powerpc-*-bsdi*) machine=macppc ;;
2292 esac
2293 case "${canonical}" in
2294 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2295 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2296 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2297 *-*-bsdi3* ) opsys=bsdos3 ;;
2298 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2299 esac
2302 ## Alliant machines
2303 ## Strictly speaking, we need the version of the alliant operating
2304 ## system to choose the right machine file, but currently the
2305 ## configuration name doesn't tell us enough to choose the right
2306 ## one; we need to give alliants their own operating system name to
2307 ## do this right. When someone cares, they can help us.
2308 fx80-alliant-* )
2309 machine=alliant4 opsys=bsd4-2
2311 i860-alliant-* )
2312 machine=alliant-2800 opsys=bsd4-3
2315 ## Alpha (DEC) machines.
2316 alpha*-dec-osf* )
2317 machine=alpha opsys=osf1
2318 # This is needed to find X11R6.1 libraries for certain tests.
2319 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2320 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2321 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2322 # due to non-traditional preprocessing with the current compiler
2323 # defaults. OSF 4 can also have that compiler version, and there
2324 # seems always to have been a usable /usr/bin/cpp.
2325 NON_GNU_CPP=/usr/bin/cpp
2326 case "${canonical}" in
2327 alpha*-dec-osf[5-9]*)
2328 opsys=osf5-0 ;;
2329 esac
2332 alpha*-*-linux-gnu* )
2333 machine=alpha opsys=gnu-linux
2336 arm*-*-linux-gnu* )
2337 machine=arm opsys=gnu-linux
2340 ## Altos 3068
2341 m68*-altos-sysv* )
2342 machine=altos opsys=usg5-2
2345 ## Amdahl UTS
2346 580-amdahl-sysv* )
2347 machine=amdahl opsys=usg5-2-2
2350 ## Apollo, Domain/OS
2351 m68*-apollo-* )
2352 machine=apollo opsys=bsd4-3
2355 ## Apple Darwin / Mac OS X
2356 *-apple-darwin* )
2357 case "${canonical}" in
2358 i[3456]86-* ) machine=intel386 ;;
2359 powerpc-* ) machine=powermac ;;
2360 * ) unported=yes ;;
2361 esac
2362 opsys=darwin
2363 # Define CPP as follows to make autoconf work correctly.
2364 CPP="${CC-cc} -E -no-cpp-precomp"
2365 # Use fink packages if available.
2366 if test -d /sw/include && test -d /sw/lib; then
2367 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2368 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2369 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2373 ## AT&T 3b2, 3b5, 3b15, 3b20
2374 we32k-att-sysv* )
2375 machine=att3b opsys=usg5-2-2
2378 ## AT&T 3b1 - The Mighty Unix PC!
2379 m68*-att-sysv* )
2380 machine=7300 opsys=usg5-2-2
2383 ## Bull dpx20
2384 rs6000-bull-bosx* )
2385 machine=ibmrs6000 opsys=aix3-2
2388 ## Bull dpx2
2389 m68*-bull-sysv3* )
2390 machine=dpx2 opsys=usg5-3
2393 ## Bull sps7
2394 m68*-bull-sysv2* )
2395 machine=sps7 opsys=usg5-2
2398 ## CCI 5/32, 6/32 -- see "Tahoe".
2400 ## Celerity
2401 ## I don't know what configuration name to use for this; config.sub
2402 ## doesn't seem to know anything about it. Hey, Celerity users, get
2403 ## in touch with us!
2404 celerity-celerity-bsd* )
2405 machine=celerity opsys=bsd4-2
2408 ## Clipper
2409 ## What operating systems does this chip run that Emacs has been
2410 ## tested on?
2411 clipper-* )
2412 machine=clipper
2413 ## We'll use the catch-all code at the bottom to guess the
2414 ## operating system.
2417 ## Compaq Nonstop
2418 mips-compaq-nonstopux* )
2419 machine=nonstopux opsys=nonstopux
2422 ## Convex
2423 *-convex-bsd* | *-convex-convexos* )
2424 machine=convex opsys=bsd4-3
2425 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2426 NON_GNU_CPP="cc -E -P"
2429 ## Cubix QBx/386
2430 i[3456]86-cubix-sysv* )
2431 machine=intel386 opsys=usg5-3
2434 ## Cydra 5
2435 cydra*-cydrome-sysv* )
2436 machine=cydra5 opsys=usg5-3
2439 ## Data General AViiON Machines
2440 ## DG changed naming conventions with the release of 5.4.4.10, they
2441 ## dropped the initial 5.4 but left the intervening R. Because of the
2442 ## R this shouldn't conflict with older versions of the OS (which I
2443 ## think were named like dgux4.*). In addition, DG new AViiONs series
2444 ## uses either Motorola M88k or Intel Pentium CPUs.
2445 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2446 machine=aviion opsys=dgux4
2448 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2449 ## This name is dgux5-4-3 instead of dgux5-4r3
2450 ## to avoid a file name conflict on MSDOS.
2451 machine=aviion opsys=dgux5-4-3
2453 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2454 machine=aviion opsys=dgux5-4r2
2456 m88k-dg-dgux* )
2457 machine=aviion opsys=dgux
2460 ## Data General AViiON Intel (x86) Machines
2461 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2462 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2463 i[345]86-dg-dguxR4* )
2464 machine=aviion-intel opsys=dgux4
2467 ## DECstations
2468 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2469 machine=pmax opsys=bsd4-2
2471 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2472 machine=pmax opsys=bsd4-3
2474 mips-dec-ultrix* )
2475 machine=pmax opsys=ultrix4-3
2477 mips-dec-osf* )
2478 machine=pmax opsys=osf1
2480 mips-dec-mach_bsd4.3* )
2481 machine=pmax opsys=mach-bsd4-3
2484 ## Motorola Delta machines
2485 m68k-motorola-sysv* | m68000-motorola-sysv* )
2486 machine=delta opsys=usg5-3
2487 if test -z "`type gnucc | grep 'not found'`"
2488 then
2489 if test -s /etc/167config
2490 then CC="gnucc -m68040"
2491 else CC="gnucc -m68881"
2493 else
2494 if test -z "`type gcc | grep 'not found'`"
2495 then CC=gcc
2496 else CC=cc
2500 m88k-motorola-sysv4* )
2501 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2502 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2503 # I hope there are not other 4.0 versions for this machine
2504 # which really need usg5-4 instead.
2505 machine=delta88k opsys=usg5-4-2
2507 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2508 machine=delta88k opsys=usg5-3
2511 ## Dual machines
2512 m68*-dual-sysv* )
2513 machine=dual opsys=usg5-2
2515 m68*-dual-uniplus* )
2516 machine=dual opsys=unipl5-2
2519 ## Elxsi 6400
2520 elxsi-elxsi-sysv* )
2521 machine=elxsi opsys=usg5-2
2524 ## Encore machines
2525 ns16k-encore-bsd* )
2526 machine=ns16000 opsys=umax
2529 ## The GEC 63 - apparently, this port isn't really finished yet.
2530 # I'm sure we finished off the last of the machines, though. -- fx
2532 ## Gould Power Node and NP1
2533 pn-gould-bsd4.2* )
2534 machine=gould opsys=bsd4-2
2536 pn-gould-bsd4.3* )
2537 machine=gould opsys=bsd4-3
2539 np1-gould-bsd* )
2540 machine=gould-np1 opsys=bsd4-3
2543 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2544 ## as far as Emacs is concerned).
2545 m88k-harris-cxux* )
2546 # Build needs to be different on 7.0 and later releases
2547 case "`uname -r`" in
2548 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2549 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2550 esac
2551 NON_GNU_CPP="/lib/cpp"
2553 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2554 m68k-harris-cxux* )
2555 machine=nh3000 opsys=cxux
2557 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2558 powerpc-harris-powerunix )
2559 machine=nh6000 opsys=powerunix
2560 NON_GNU_CPP="cc -Xo -E -P"
2562 ## SR2001/SR2201 running HI-UX/MPP
2563 hppa1.1-hitachi-hiuxmpp* )
2564 machine=sr2k opsys=hiuxmpp
2566 hppa1.1-hitachi-hiuxwe2* )
2567 machine=sr2k opsys=hiuxwe2
2569 ## Honeywell XPS100
2570 xps*-honeywell-sysv* )
2571 machine=xps100 opsys=usg5-2
2574 ## HP 9000 series 200 or 300
2575 m68*-hp-bsd* )
2576 machine=hp9000s300 opsys=bsd4-3
2578 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2579 m68*-hp-hpux* )
2580 case "`uname -r`" in
2581 ## Someone's system reports A.B8.05 for this.
2582 ## I wonder what other possibilities there are.
2583 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2584 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2585 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2586 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2587 *) machine=hp9000s300 opsys=hpux ;;
2588 esac
2591 ## HP 9000 series 700 and 800, running HP/UX
2592 hppa*-hp-hpux7* )
2593 machine=hp800 opsys=hpux
2595 hppa*-hp-hpux8* )
2596 machine=hp800 opsys=hpux8
2598 hppa*-hp-hpux9shr* )
2599 machine=hp800 opsys=hpux9shr
2601 hppa*-hp-hpux9* )
2602 machine=hp800 opsys=hpux9
2604 hppa*-hp-hpux10.2* )
2605 machine=hp800 opsys=hpux10-20
2607 hppa*-hp-hpux10* )
2608 machine=hp800 opsys=hpux10
2610 hppa*-hp-hpux1[1-9]* )
2611 machine=hp800 opsys=hpux11
2612 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2615 hppa*-*-linux-gnu* )
2616 machine=hp800 opsys=gnu-linux
2619 ## HP 9000 series 700 and 800, running HP/UX
2620 hppa*-hp-hpux* )
2621 ## Cross-compilation? Nah!
2622 case "`uname -r`" in
2623 ## Someone's system reports A.B8.05 for this.
2624 ## I wonder what other possibilities there are.
2625 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2626 *.08.* ) machine=hp800 opsys=hpux8 ;;
2627 *.09.* ) machine=hp800 opsys=hpux9 ;;
2628 *) machine=hp800 opsys=hpux10 ;;
2629 esac
2631 hppa*-*-nextstep* )
2632 machine=hp800 opsys=nextstep
2635 ## Orion machines
2636 orion-orion-bsd* )
2637 machine=orion opsys=bsd4-2
2639 clipper-orion-bsd* )
2640 machine=orion105 opsys=bsd4-2
2643 ## IBM machines
2644 i[3456]86-ibm-aix1.1* )
2645 machine=ibmps2-aix opsys=usg5-2-2
2647 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2648 machine=ibmps2-aix opsys=usg5-3
2650 i370-ibm-aix*)
2651 machine=ibm370aix opsys=usg5-3
2653 s390-*-linux-gnu* )
2654 machine=ibms390 opsys=gnu-linux
2656 s390x-*-linux-gnu* )
2657 machine=ibms390x opsys=gnu-linux
2659 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2660 machine=ibmrs6000 opsys=aix3-1
2662 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2663 machine=ibmrs6000 opsys=aix3-2-5
2665 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2666 machine=ibmrs6000 opsys=aix4-1
2668 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2669 machine=ibmrs6000 opsys=aix4-2
2671 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2672 machine=ibmrs6000 opsys=aix4-2
2674 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2675 machine=ibmrs6000 opsys=aix4-2
2677 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2678 machine=ibmrs6000 opsys=aix4
2680 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2681 machine=ibmrs6000 opsys=aix4-1
2683 rs6000-ibm-aix* | powerpc-ibm-aix* )
2684 machine=ibmrs6000 opsys=aix3-2
2686 romp-ibm-bsd4.3* )
2687 machine=ibmrt opsys=bsd4-3
2689 romp-ibm-bsd4.2* )
2690 machine=ibmrt opsys=bsd4-2
2692 romp-ibm-aos4.3* )
2693 machine=ibmrt opsys=bsd4-3
2695 romp-ibm-aos4.2* )
2696 machine=ibmrt opsys=bsd4-2
2698 romp-ibm-aos* )
2699 machine=ibmrt opsys=bsd4-3
2701 romp-ibm-bsd* )
2702 machine=ibmrt opsys=bsd4-3
2704 romp-ibm-aix* )
2705 machine=ibmrt-aix opsys=usg5-2-2
2708 ## Integrated Solutions `Optimum V'
2709 m68*-isi-bsd4.2* )
2710 machine=isi-ov opsys=bsd4-2
2712 m68*-isi-bsd4.3* )
2713 machine=isi-ov opsys=bsd4-3
2716 ## Intel 386 machines where we do care about the manufacturer
2717 i[3456]86-intsys-sysv* )
2718 machine=is386 opsys=usg5-2-2
2721 ## Prime EXL
2722 i[3456]86-prime-sysv* )
2723 machine=i386 opsys=usg5-3
2726 ## Sequent Symmetry running Dynix
2727 i[3456]86-sequent-bsd* )
2728 machine=symmetry opsys=bsd4-3
2731 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2732 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2733 machine=sequent-ptx opsys=ptx4
2734 NON_GNU_CPP=/lib/cpp
2737 ## Sequent Symmetry running DYNIX/ptx
2738 ## Use the old cpp rather than the newer ANSI one.
2739 i[3456]86-sequent-ptx* )
2740 machine=sequent-ptx opsys=ptx
2741 NON_GNU_CPP="/lib/cpp"
2744 ## ncr machine running svr4.3.
2745 i[3456]86-ncr-sysv4.3 )
2746 machine=ncr386 opsys=usg5-4-3
2749 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2750 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2751 i[3456]86-ncr-sysv* )
2752 machine=ncr386 opsys=usg5-4-2
2755 ## Intel Paragon OSF/1
2756 i860-intel-osf1* )
2757 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2760 ## Intel 860
2761 i860-*-sysv4* )
2762 machine=i860 opsys=usg5-4
2763 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2764 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2767 ## Macintosh PowerPC
2768 powerpc*-*-linux-gnu* )
2769 machine=macppc opsys=gnu-linux
2772 ## Masscomp machines
2773 m68*-masscomp-rtu* )
2774 machine=masscomp opsys=rtu
2777 ## Megatest machines
2778 m68*-megatest-bsd* )
2779 machine=mega68 opsys=bsd4-2
2782 ## Workstations sold by MIPS
2783 ## This is not necessarily all workstations using the MIPS processor -
2784 ## Irises are produced by SGI, and DECstations by DEC.
2786 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2787 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2788 ## it gives for choosing between the alternatives seems to be "Use
2789 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2790 ## the BSD world." I'll assume that these are instructions for
2791 ## handling two odd situations, and that every other situation
2792 ## should use mips.h and usg5-2-2, they being listed first.
2793 mips-mips-usg* )
2794 machine=mips4
2795 ## Fall through to the general code at the bottom to decide on the OS.
2797 mips-mips-riscos4* )
2798 machine=mips4 opsys=bsd4-3
2799 NON_GNU_CC="cc -systype bsd43"
2800 NON_GNU_CPP="cc -systype bsd43 -E"
2802 mips-mips-riscos5* )
2803 machine=mips4 opsys=riscos5
2804 NON_GNU_CC="cc -systype bsd43"
2805 NON_GNU_CPP="cc -systype bsd43 -E"
2807 mips-mips-bsd* )
2808 machine=mips opsys=bsd4-3
2810 mips-mips-* )
2811 machine=mips opsys=usg5-2-2
2814 ## NeXT
2815 m68*-next-* | m68k-*-nextstep* )
2816 machine=m68k opsys=nextstep
2819 ## The complete machine from National Semiconductor
2820 ns32k-ns-genix* )
2821 machine=ns32000 opsys=usg5-2
2824 ## NCR machines
2825 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2826 machine=tower32 opsys=usg5-2-2
2828 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2829 machine=tower32v3 opsys=usg5-3
2832 ## NEC EWS4800
2833 mips-nec-sysv4*)
2834 machine=ews4800 opsys=ux4800
2837 ## Nixdorf Targon 31
2838 m68*-nixdorf-sysv* )
2839 machine=targon31 opsys=usg5-2-2
2842 ## Nu (TI or LMI)
2843 m68*-nu-sysv* )
2844 machine=nu opsys=usg5-2
2847 ## Plexus
2848 m68*-plexus-sysv* )
2849 machine=plexus opsys=usg5-2
2852 ## Pyramid machines
2853 ## I don't really have any idea what sort of processor the Pyramid has,
2854 ## so I'm assuming it is its own architecture.
2855 pyramid-pyramid-bsd* )
2856 machine=pyramid opsys=bsd4-2
2859 ## Sequent Balance
2860 ns32k-sequent-bsd4.2* )
2861 machine=sequent opsys=bsd4-2
2863 ns32k-sequent-bsd4.3* )
2864 machine=sequent opsys=bsd4-3
2867 ## Siemens Nixdorf
2868 mips-siemens-sysv* | mips-sni-sysv*)
2869 machine=mips-siemens opsys=usg5-4
2870 NON_GNU_CC=/usr/ccs/bin/cc
2871 NON_GNU_CPP=/usr/ccs/lib/cpp
2874 ## Silicon Graphics machines
2875 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2876 m68*-sgi-iris3.5* )
2877 machine=irist opsys=iris3-5
2879 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2880 machine=irist opsys=iris3-6
2882 ## Iris 4D
2883 mips-sgi-irix3* )
2884 machine=iris4d opsys=irix3-3
2886 mips-sgi-irix4* )
2887 machine=iris4d opsys=irix4-0
2889 mips-sgi-irix6.5 )
2890 machine=iris4d opsys=irix6-5
2891 # Without defining _LANGUAGE_C, things get masked out in the headers
2892 # so that, for instance, grepping for `free' in stdlib.h fails and
2893 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2894 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2895 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2897 mips-sgi-irix6* )
2898 machine=iris4d opsys=irix6-0
2899 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2900 # but presumably it does no harm.
2901 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2902 # -32 probably isn't necessary in later v.6s -- anyone know which?
2903 NON_GCC_TEST_OPTIONS=-32
2905 mips-sgi-irix5.[01]* )
2906 machine=iris4d opsys=irix5-0
2908 mips-sgi-irix5* | mips-sgi-irix* )
2909 machine=iris4d opsys=irix5-2
2912 ## SONY machines
2913 m68*-sony-bsd4.2* )
2914 machine=news opsys=bsd4-2
2916 m68*-sony-bsd4.3* )
2917 machine=news opsys=bsd4-3
2919 m68*-sony-newsos3* | m68*-sony-news3*)
2920 machine=news opsys=bsd4-3
2922 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2923 machine=news-risc opsys=bsd4-3
2925 mips-sony-newsos6* )
2926 machine=news-r6 opsys=newsos6
2928 mips-sony-news* )
2929 machine=news-risc opsys=newsos5
2932 ## Stride
2933 m68*-stride-sysv* )
2934 machine=stride opsys=usg5-2
2937 ## Suns
2938 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2939 machine=sparc opsys=gnu-linux
2942 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2943 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2944 | rs6000-*-solaris2*)
2945 case "${canonical}" in
2946 m68*-sunos1* ) machine=sun1 ;;
2947 m68*-sunos2* ) machine=sun2 ;;
2948 m68* ) machine=sun3 ;;
2949 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2950 i[3456]86-*-* ) machine=intel386 ;;
2951 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2952 powerpcle* ) machine=powerpcle ;;
2953 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2954 sparc* ) machine=sparc ;;
2955 * ) unported=yes ;;
2956 esac
2957 case "${canonical}" in
2958 ## The Sun386 didn't get past 4.0.
2959 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2960 *-sunos4.0* ) opsys=sunos4-0 ;;
2961 *-sunos4.1.[3-9]*noshare )
2962 ## This name is sunos413 instead of sunos4-1-3
2963 ## to avoid a file name conflict on MSDOS.
2964 opsys=sunos413
2965 NON_GNU_CPP=/usr/lib/cpp
2966 NON_GCC_TEST_OPTIONS=-Bstatic
2967 GCC_TEST_OPTIONS=-static
2969 *-sunos4.1.[3-9]* | *-sunos4shr*)
2970 opsys=sunos4shr
2971 NON_GNU_CPP=/usr/lib/cpp
2973 *-sunos4* | *-sunos )
2974 opsys=sunos4-1
2975 NON_GCC_TEST_OPTIONS=-Bstatic
2976 GCC_TEST_OPTIONS=-static
2978 *-sunos5.3* | *-solaris2.3* )
2979 opsys=sol2-3
2980 NON_GNU_CPP=/usr/ccs/lib/cpp
2982 *-sunos5.4* | *-solaris2.4* )
2983 opsys=sol2-4
2984 NON_GNU_CPP=/usr/ccs/lib/cpp
2985 RANLIB="ar -ts"
2987 *-sunos5.5* | *-solaris2.5* )
2988 opsys=sol2-5
2989 NON_GNU_CPP=/usr/ccs/lib/cpp
2990 RANLIB="ar -ts"
2992 *-sunos5.6* | *-solaris2.6* )
2993 opsys=sol2-6
2994 NON_GNU_CPP=/usr/ccs/lib/cpp
2995 RANLIB="ar -ts"
2997 *-sunos5* | *-solaris* )
2998 opsys=sol2-6
2999 ## FIXME: make this into a proper fix that checks the compiler type,
3000 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3001 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3002 ## -Xs prevents spurious whitespace.
3003 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3004 else
3005 NON_GNU_CPP=/usr/ccs/lib/cpp
3008 * ) opsys=bsd4-2 ;;
3009 esac
3010 ## Watch out for a compiler that we know will not work.
3011 case "${canonical}" in
3012 *-solaris* | *-sunos5* )
3013 if [ "x$CC" = x/usr/ucb/cc ]; then
3014 ## /usr/ucb/cc doesn't work;
3015 ## we should find some other compiler that does work.
3016 unset CC
3019 *) ;;
3020 esac
3022 sparc-*-nextstep* )
3023 machine=sparc opsys=nextstep
3026 ## Tadpole 68k
3027 m68*-tadpole-sysv* )
3028 machine=tad68k opsys=usg5-3
3031 ## Tahoe machines
3032 tahoe-tahoe-bsd4.2* )
3033 machine=tahoe opsys=bsd4-2
3035 tahoe-tahoe-bsd4.3* )
3036 machine=tahoe opsys=bsd4-3
3039 ## Tandem Integrity S2
3040 mips-tandem-sysv* )
3041 machine=tandem-s2 opsys=usg5-3
3044 ## Tektronix XD88
3045 m88k-tektronix-sysv3* )
3046 machine=tekxd88 opsys=usg5-3
3049 ## Tektronix 16000 box (6130?)
3050 ns16k-tektronix-bsd* )
3051 machine=ns16000 opsys=bsd4-2
3053 ## Tektronix 4300
3054 ## src/m/tek4300.h hints that this is a m68k machine.
3055 m68*-tektronix-bsd* )
3056 machine=tek4300 opsys=bsd4-3
3059 ## Titan P2 or P3
3060 ## We seem to have lost the machine-description file titan.h!
3061 titan-titan-sysv* )
3062 machine=titan opsys=usg5-3
3065 ## Ustation E30 (SS5E)
3066 m68*-unisys-uniplus* )
3067 machine=ustation opsystem=unipl5-2
3070 ## Vaxen.
3071 vax-dec-* )
3072 machine=vax
3073 case "${canonical}" in
3074 *-bsd4.1* ) opsys=bsd4-1 ;;
3075 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3076 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3077 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3078 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3079 *-vms* ) opsys=vms ;;
3080 * ) unported=yes
3081 esac
3084 ## Whitechapel MG1
3085 ns16k-whitechapel-* )
3086 machine=mg1
3087 ## We don't know what sort of OS runs on these; we'll let the
3088 ## operating system guessing code below try.
3091 ## Wicat
3092 m68*-wicat-sysv* )
3093 machine=wicat opsys=usg5-2
3096 ## IA-64
3097 ia64*-*-linux* )
3098 machine=ia64 opsys=gnu-linux
3101 ## Intel 386 machines where we don't care about the manufacturer
3102 i[3456]86-*-* )
3103 machine=intel386
3104 case "${canonical}" in
3105 *-cygwin ) opsys=cygwin ;;
3106 *-darwin* ) opsys=darwin
3107 CPP="${CC-cc} -E -no-cpp-precomp"
3109 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3110 *-isc2.2* ) opsys=isc2-2 ;;
3111 *-isc4.0* ) opsys=isc4-0 ;;
3112 *-isc4.* ) opsys=isc4-1
3113 GCC_TEST_OPTIONS=-posix
3114 NON_GCC_TEST_OPTIONS=-Xp
3116 *-isc* ) opsys=isc3-0 ;;
3117 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3118 *-esix* ) opsys=esix ;;
3119 *-xenix* ) opsys=xenix ;;
3120 *-linux-gnu* ) opsys=gnu-linux ;;
3121 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3122 *-sco3.2v5* ) opsys=sco5
3123 NON_GNU_CPP=/lib/cpp
3124 # Prevent -belf from being passed to $CPP.
3125 # /lib/cpp does not accept it.
3126 OVERRIDE_CPPFLAGS=" "
3128 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3129 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3130 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3131 *-386bsd* ) opsys=386bsd ;;
3132 *-nextstep* ) opsys=nextstep ;;
3133 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3134 esac
3137 ## m68k Linux-based GNU system
3138 m68k-*-linux-gnu* )
3139 machine=m68k opsys=gnu-linux
3142 ## Mips Linux-based GNU system
3143 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3144 machine=mips opsys=gnu-linux
3147 ## UXP/DS
3148 sparc-fujitsu-sysv4* )
3149 machine=sparc opsys=uxpds
3150 NON_GNU_CPP=/usr/ccs/lib/cpp
3151 RANLIB="ar -ts"
3154 ## UXP/V
3155 f301-fujitsu-uxpv4.1)
3156 machine=f301 opsys=uxpv
3159 ## AMD x86-64 Linux-based GNU system
3160 x86_64-*-linux-gnu* )
3161 machine=amdx86-64 opsys=gnu-linux
3164 ## Tensilica Xtensa Linux-based GNU system
3165 xtensa-*-linux-gnu* )
3166 machine=xtensa opsys=gnu-linux
3170 unported=yes
3172 esac
3174 ### If the code above didn't choose an operating system, just choose
3175 ### an operating system based on the configuration name. You really
3176 ### only want to use this when you have no idea what the right
3177 ### operating system is; if you know what operating systems a machine
3178 ### runs, it's cleaner to make it explicit in the case statement
3179 ### above.
3180 if test x"${opsys}" = x; then
3181 case "${canonical}" in
3182 *-gnu* ) opsys=gnu ;;
3183 *-bsd4.[01] ) opsys=bsd4-1 ;;
3184 *-bsd4.2 ) opsys=bsd4-2 ;;
3185 *-bsd4.3 ) opsys=bsd4-3 ;;
3186 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3187 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3188 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3189 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3190 *-sysv4.2uw* ) opsys=unixware ;;
3191 *-sysv5uw* ) opsys=unixware ;;
3192 *-sysv5OpenUNIX* ) opsys=unixware ;;
3193 *-sysv4.1* | *-sysvr4.1* )
3194 NON_GNU_CPP=/usr/lib/cpp
3195 opsys=usg5-4 ;;
3196 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3197 if [ x$NON_GNU_CPP = x ]; then
3198 if [ -f /usr/ccs/lib/cpp ]; then
3199 NON_GNU_CPP=/usr/ccs/lib/cpp
3200 else
3201 NON_GNU_CPP=/lib/cpp
3204 opsys=usg5-4-2 ;;
3205 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3207 unported=yes
3209 esac
3214 if test $unported = yes; then
3215 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3216 Check \`etc/MACHINES' for recognized configuration names." >&5
3217 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3218 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3219 { (exit 1); exit 1; }; }
3222 machfile="m/${machine}.h"
3223 opsysfile="s/${opsys}.h"
3226 #### Choose a compiler.
3227 test -n "$CC" && cc_specified=yes
3229 # Save the value of CFLAGS that the user specified.
3230 SPECIFIED_CFLAGS="$CFLAGS"
3232 case ${with_gcc} in
3233 "yes" ) CC="gcc" GCC=yes ;;
3234 "no" ) : ${CC=cc} ;;
3236 esac
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3266 IFS=$as_save_IFS
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { echo "$as_me:$LINENO: result: $CC" >&5
3273 echo "${ECHO_T}$CC" >&6; }
3274 else
3275 { echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6; }
3281 if test -z "$ac_cv_prog_CC"; then
3282 ac_ct_CC=$CC
3283 # Extract the first word of "gcc", so it can be a program name with args.
3284 set dummy gcc; 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_ac_ct_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 if test -n "$ac_ct_CC"; then
3291 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3311 if test -n "$ac_ct_CC"; then
3312 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3313 echo "${ECHO_T}$ac_ct_CC" >&6; }
3314 else
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3319 if test "x$ac_ct_CC" = x; then
3320 CC=""
3321 else
3322 case $cross_compiling:$ac_tool_warned in
3323 yes:)
3324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&5
3327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet. If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3330 ac_tool_warned=yes ;;
3331 esac
3332 CC=$ac_ct_CC
3334 else
3335 CC="$ac_cv_prog_CC"
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}cc; ac_word=$2
3342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC="${ac_tool_prefix}cc"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3361 done
3362 done
3363 IFS=$as_save_IFS
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; }
3379 if test -z "$CC"; then
3380 # Extract the first word of "cc", so it can be a program name with args.
3381 set dummy cc; ac_word=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 ac_prog_rejected=no
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3399 ac_prog_rejected=yes
3400 continue
3402 ac_cv_prog_CC="cc"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3406 done
3407 done
3408 IFS=$as_save_IFS
3410 if test $ac_prog_rejected = yes; then
3411 # We found a bogon in the path, so make sure we never use it.
3412 set dummy $ac_cv_prog_CC
3413 shift
3414 if test $# != 0; then
3415 # We chose a different compiler from the bogus one.
3416 # However, it has the same basename, so the bogon will be chosen
3417 # first if we set CC to just the basename; use the full file name.
3418 shift
3419 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { echo "$as_me:$LINENO: result: $CC" >&5
3427 echo "${ECHO_T}$CC" >&6; }
3428 else
3429 { echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6; }
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 for ac_prog in cl.exe
3439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_CC+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3462 IFS=$as_save_IFS
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468 { echo "$as_me:$LINENO: result: $CC" >&5
3469 echo "${ECHO_T}$CC" >&6; }
3470 else
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3476 test -n "$CC" && break
3477 done
3479 if test -z "$CC"; then
3480 ac_ct_CC=$CC
3481 for ac_prog in cl.exe
3483 # Extract the first word of "$ac_prog", so it can be a program name with args.
3484 set dummy $ac_prog; ac_word=$2
3485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 if test -n "$ac_ct_CC"; then
3491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_ac_ct_CC="$ac_prog"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3504 done
3505 done
3506 IFS=$as_save_IFS
3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3513 echo "${ECHO_T}$ac_ct_CC" >&6; }
3514 else
3515 { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3520 test -n "$ac_ct_CC" && break
3521 done
3523 if test "x$ac_ct_CC" = x; then
3524 CC=""
3525 else
3526 case $cross_compiling:$ac_tool_warned in
3527 yes:)
3528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3529 whose name does not start with the host triplet. If you think this
3530 configuration is useful to you, please write to autoconf@gnu.org." >&5
3531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3532 whose name does not start with the host triplet. If you think this
3533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3534 ac_tool_warned=yes ;;
3535 esac
3536 CC=$ac_ct_CC
3543 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3544 See \`config.log' for more details." >&5
3545 echo "$as_me: error: no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }
3549 # Provide some information about the compiler.
3550 echo "$as_me:$LINENO: checking for C compiler version" >&5
3551 ac_compiler=`set X $ac_compile; echo $2`
3552 { (ac_try="$ac_compiler --version >&5"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compiler --version >&5") 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }
3562 { (ac_try="$ac_compiler -v >&5"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compiler -v >&5") 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 { (ac_try="$ac_compiler -V >&5"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compiler -V >&5") 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3591 main ()
3595 return 0;
3597 _ACEOF
3598 ac_clean_files_save=$ac_clean_files
3599 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3600 # Try to create an executable without -o first, disregard a.out.
3601 # It will help us diagnose broken compilers, and finding out an intuition
3602 # of exeext.
3603 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3604 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3605 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3607 # List of possible output files, starting from the most likely.
3608 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3609 # only as a last resort. b.out is created by i960 compilers.
3610 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3612 # The IRIX 6 linker writes into existing files which may not be
3613 # executable, retaining their permissions. Remove them first so a
3614 # subsequent execution test works.
3615 ac_rmfiles=
3616 for ac_file in $ac_files
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3620 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 esac
3622 done
3623 rm -f $ac_rmfiles
3625 if { (ac_try="$ac_link_default"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_link_default") 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; then
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3646 [ab].out )
3647 # We found the default executable, but exeext='' is most
3648 # certainly right.
3649 break;;
3650 *.* )
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652 then :; else
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3659 # actually working.
3660 break;;
3662 break;;
3663 esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667 else
3668 ac_file=''
3671 { echo "$as_me:$LINENO: result: $ac_file" >&5
3672 echo "${ECHO_T}$ac_file" >&6; }
3673 if test -z "$ac_file"; then
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3678 See \`config.log' for more details." >&5
3679 echo "$as_me: error: C compiler cannot create executables
3680 See \`config.log' for more details." >&2;}
3681 { (exit 77); exit 77; }; }
3684 ac_exeext=$ac_cv_exeext
3686 # Check that the compiler produces executables we can run. If not, either
3687 # the compiler is broken, or we cross compile.
3688 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3689 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3690 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3691 # If not cross compiling, check that we can run a simple program.
3692 if test "$cross_compiling" != yes; then
3693 if { ac_try='./$ac_file'
3694 { (case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_try") 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 cross_compiling=no
3704 else
3705 if test "$cross_compiling" = maybe; then
3706 cross_compiling=yes
3707 else
3708 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3709 If you meant to cross compile, use \`--host'.
3710 See \`config.log' for more details." >&5
3711 echo "$as_me: error: cannot run C compiled programs.
3712 If you meant to cross compile, use \`--host'.
3713 See \`config.log' for more details." >&2;}
3714 { (exit 1); exit 1; }; }
3718 { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3721 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3722 ac_clean_files=$ac_clean_files_save
3723 # Check that the compiler produces executables we can run. If not, either
3724 # the compiler is broken, or we cross compile.
3725 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3726 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3727 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3728 echo "${ECHO_T}$cross_compiling" >&6; }
3730 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3731 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3732 if { (ac_try="$ac_link"
3733 case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_link") 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3743 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3744 # work properly (i.e., refer to `conftest.exe'), while it won't with
3745 # `rm'.
3746 for ac_file in conftest.exe conftest conftest.*; do
3747 test -f "$ac_file" || continue
3748 case $ac_file in
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3751 break;;
3752 * ) break;;
3753 esac
3754 done
3755 else
3756 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3763 rm -f conftest$ac_cv_exeext
3764 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3765 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3767 rm -f conftest.$ac_ext
3768 EXEEXT=$ac_cv_exeext
3769 ac_exeext=$EXEEXT
3770 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3771 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3772 if test "${ac_cv_objext+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3783 main ()
3787 return 0;
3789 _ACEOF
3790 rm -f conftest.o conftest.obj
3791 if { (ac_try="$ac_compile"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; then
3801 for ac_file in conftest.o conftest.obj conftest.*; do
3802 test -f "$ac_file" || continue;
3803 case $ac_file in
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3805 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806 break;;
3807 esac
3808 done
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3814 See \`config.log' for more details." >&5
3815 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3816 See \`config.log' for more details." >&2;}
3817 { (exit 1); exit 1; }; }
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3823 echo "${ECHO_T}$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3825 ac_objext=$OBJEXT
3826 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3827 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3828 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3839 main ()
3841 #ifndef __GNUC__
3842 choke me
3843 #endif
3846 return 0;
3848 _ACEOF
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest.$ac_objext; then
3866 ac_compiler_gnu=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_compiler_gnu=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3879 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3880 GCC=`test $ac_compiler_gnu = yes && echo yes`
3881 ac_test_CFLAGS=${CFLAGS+set}
3882 ac_save_CFLAGS=$CFLAGS
3883 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3884 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3885 if test "${ac_cv_prog_cc_g+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 ac_save_c_werror_flag=$ac_c_werror_flag
3889 ac_c_werror_flag=yes
3890 ac_cv_prog_cc_g=no
3891 CFLAGS="-g"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_cv_prog_cc_g=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 CFLAGS=""
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3938 main ()
3942 return 0;
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (ac_try="$ac_compile"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_compile") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } && {
3959 test -z "$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 } && test -s conftest.$ac_objext; then
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3968 CFLAGS="-g"
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3977 main ()
3981 return 0;
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest.$ac_objext; then
4001 ac_cv_prog_cc_g=yes
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4018 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4020 if test "$ac_test_CFLAGS" = set; then
4021 CFLAGS=$ac_save_CFLAGS
4022 elif test $ac_cv_prog_cc_g = yes; then
4023 if test "$GCC" = yes; then
4024 CFLAGS="-g -O2"
4025 else
4026 CFLAGS="-g"
4028 else
4029 if test "$GCC" = yes; then
4030 CFLAGS="-O2"
4031 else
4032 CFLAGS=
4035 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4036 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4037 if test "${ac_cv_prog_cc_c89+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 ac_cv_prog_cc_c89=no
4041 ac_save_CC=$CC
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 #include <stdarg.h>
4049 #include <stdio.h>
4050 #include <sys/types.h>
4051 #include <sys/stat.h>
4052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4053 struct buf { int x; };
4054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055 static char *e (p, i)
4056 char **p;
4057 int i;
4059 return p[i];
4061 static char *f (char * (*g) (char **, int), char **p, ...)
4063 char *s;
4064 va_list v;
4065 va_start (v,p);
4066 s = g (p, va_arg (v,int));
4067 va_end (v);
4068 return s;
4071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4072 function prototypes and stuff, but not '\xHH' hex character constants.
4073 These don't provoke an error unfortunately, instead are silently treated
4074 as 'x'. The following induces an error, until -std is added to get
4075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4076 array size at least. It's necessary to write '\x00'==0 to get something
4077 that's true only with -std. */
4078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081 inside strings and character constants. */
4082 #define FOO(x) 'x'
4083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085 int test (int i, double x);
4086 struct s1 {int (*f) (int a);};
4087 struct s2 {int (*f) (double a);};
4088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4089 int argc;
4090 char **argv;
4092 main ()
4094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 return 0;
4098 _ACEOF
4099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 CC="$ac_save_CC $ac_arg"
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4120 ac_cv_prog_cc_c89=$ac_arg
4121 else
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x$ac_cv_prog_cc_c89" != "xno" && break
4130 done
4131 rm -f conftest.$ac_ext
4132 CC=$ac_save_CC
4135 # AC_CACHE_VAL
4136 case "x$ac_cv_prog_cc_c89" in
4138 { echo "$as_me:$LINENO: result: none needed" >&5
4139 echo "${ECHO_T}none needed" >&6; } ;;
4140 xno)
4141 { echo "$as_me:$LINENO: result: unsupported" >&5
4142 echo "${ECHO_T}unsupported" >&6; } ;;
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4146 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4147 esac
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4159 CPP=
4162 #### Some systems specify a CPP to use unless we are using GCC.
4163 #### Now that we know whether we are using GCC, we can decide whether
4164 #### to use that one.
4165 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4166 then
4167 CPP="$NON_GNU_CPP"
4170 #### Some systems specify a CC to use unless we are using GCC.
4171 #### Now that we know whether we are using GCC, we can decide whether
4172 #### to use that one.
4173 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4174 test x$cc_specified != xyes
4175 then
4176 CC="$NON_GNU_CC"
4179 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4180 then
4181 CC="$CC $GCC_TEST_OPTIONS"
4184 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4185 then
4186 CC="$CC $NON_GCC_TEST_OPTIONS"
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4197 # On Suns, sometimes $CPP names a directory.
4198 if test -n "$CPP" && test -d "$CPP"; then
4199 CPP=
4201 if test -z "$CPP"; then
4202 if test "${ac_cv_prog_CPP+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 # Double quotes because CPP needs to be expanded
4206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4208 ac_preproc_ok=false
4209 for ac_c_preproc_warn_flag in '' yes
4211 # Use a header file that comes with gcc, so configuring glibc
4212 # with a fresh cross-compiler works.
4213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4214 # <limits.h> exists even on freestanding compilers.
4215 # On the NeXT, cc -E runs the code through the compiler's parser,
4216 # not just through cpp. "Syntax error" is here to catch this case.
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #ifdef __STDC__
4224 # include <limits.h>
4225 #else
4226 # include <assert.h>
4227 #endif
4228 Syntax error
4229 _ACEOF
4230 if { (ac_try="$ac_cpp conftest.$ac_ext"
4231 case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev/null && {
4243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4244 test ! -s conftest.err
4245 }; then
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 # Broken: fails on valid input.
4252 continue
4255 rm -f conftest.err conftest.$ac_ext
4257 # OK, works on sane cases. Now check whether nonexistent headers
4258 # can be detected and how.
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <ac_nonexistent.h>
4266 _ACEOF
4267 if { (ac_try="$ac_cpp conftest.$ac_ext"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null && {
4280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4282 }; then
4283 # Broken: success on invalid input.
4284 continue
4285 else
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 # Passes both tests.
4290 ac_preproc_ok=:
4291 break
4294 rm -f conftest.err conftest.$ac_ext
4296 done
4297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298 rm -f conftest.err conftest.$ac_ext
4299 if $ac_preproc_ok; then
4300 break
4303 done
4304 ac_cv_prog_CPP=$CPP
4307 CPP=$ac_cv_prog_CPP
4308 else
4309 ac_cv_prog_CPP=$CPP
4311 { echo "$as_me:$LINENO: result: $CPP" >&5
4312 echo "${ECHO_T}$CPP" >&6; }
4313 ac_preproc_ok=false
4314 for ac_c_preproc_warn_flag in '' yes
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319 # <limits.h> exists even on freestanding compilers.
4320 # On the NeXT, cc -E runs the code through the compiler's parser,
4321 # not just through cpp. "Syntax error" is here to catch this case.
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 #ifdef __STDC__
4329 # include <limits.h>
4330 #else
4331 # include <assert.h>
4332 #endif
4333 Syntax error
4334 _ACEOF
4335 if { (ac_try="$ac_cpp conftest.$ac_ext"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } >/dev/null && {
4348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 }; then
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 # Broken: fails on valid input.
4357 continue
4360 rm -f conftest.err conftest.$ac_ext
4362 # OK, works on sane cases. Now check whether nonexistent headers
4363 # can be detected and how.
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4371 _ACEOF
4372 if { (ac_try="$ac_cpp conftest.$ac_ext"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } >/dev/null && {
4385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 }; then
4388 # Broken: success on invalid input.
4389 continue
4390 else
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 # Passes both tests.
4395 ac_preproc_ok=:
4396 break
4399 rm -f conftest.err conftest.$ac_ext
4401 done
4402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4403 rm -f conftest.err conftest.$ac_ext
4404 if $ac_preproc_ok; then
4406 else
4407 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4408 See \`config.log' for more details." >&5
4409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4410 See \`config.log' for more details." >&2;}
4411 { (exit 1); exit 1; }; }
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4422 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4423 if test "${ac_cv_path_GREP+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426 # Extract the first word of "grep ggrep" to use in msg output
4427 if test -z "$GREP"; then
4428 set dummy grep ggrep; ac_prog_name=$2
4429 if test "${ac_cv_path_GREP+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 ac_path_GREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in grep ggrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4442 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4443 # Check for GNU ac_path_GREP and select it if it is found.
4444 # Check for GNU $ac_path_GREP
4445 case `"$ac_path_GREP" --version 2>&1` in
4446 *GNU*)
4447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4449 ac_count=0
4450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4451 while :
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 echo 'GREP' >> "conftest.nl"
4457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 ac_count=`expr $ac_count + 1`
4460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_GREP="$ac_path_GREP"
4463 ac_path_GREP_max=$ac_count
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4467 done
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469 esac
4472 $ac_path_GREP_found && break 3
4473 done
4474 done
4476 done
4477 IFS=$as_save_IFS
4482 GREP="$ac_cv_path_GREP"
4483 if test -z "$GREP"; then
4484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4486 { (exit 1); exit 1; }; }
4489 else
4490 ac_cv_path_GREP=$GREP
4495 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4496 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4497 GREP="$ac_cv_path_GREP"
4500 { echo "$as_me:$LINENO: checking for egrep" >&5
4501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4502 if test "${ac_cv_path_EGREP+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4506 then ac_cv_path_EGREP="$GREP -E"
4507 else
4508 # Extract the first word of "egrep" to use in msg output
4509 if test -z "$EGREP"; then
4510 set dummy egrep; ac_prog_name=$2
4511 if test "${ac_cv_path_EGREP+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 ac_path_EGREP_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in egrep; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4524 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4525 # Check for GNU ac_path_EGREP and select it if it is found.
4526 # Check for GNU $ac_path_EGREP
4527 case `"$ac_path_EGREP" --version 2>&1` in
4528 *GNU*)
4529 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4531 ac_count=0
4532 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4533 while :
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 echo 'EGREP' >> "conftest.nl"
4539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541 ac_count=`expr $ac_count + 1`
4542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_EGREP="$ac_path_EGREP"
4545 ac_path_EGREP_max=$ac_count
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4549 done
4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 esac
4554 $ac_path_EGREP_found && break 3
4555 done
4556 done
4558 done
4559 IFS=$as_save_IFS
4564 EGREP="$ac_cv_path_EGREP"
4565 if test -z "$EGREP"; then
4566 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4567 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4568 { (exit 1); exit 1; }; }
4571 else
4572 ac_cv_path_EGREP=$EGREP
4578 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4579 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4580 EGREP="$ac_cv_path_EGREP"
4584 { echo "$as_me:$LINENO: checking for AIX" >&5
4585 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #ifdef _AIX
4594 #endif
4596 _ACEOF
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "yes" >/dev/null 2>&1; then
4599 { echo "$as_me:$LINENO: result: yes" >&5
4600 echo "${ECHO_T}yes" >&6; }
4601 cat >>confdefs.h <<\_ACEOF
4602 #define _ALL_SOURCE 1
4603 _ACEOF
4605 else
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4609 rm -f conftest*
4613 cat >>confdefs.h <<\_ACEOF
4614 #define _GNU_SOURCE 1
4615 _ACEOF
4619 ### Use -Wno-pointer-sign if the compiler supports it
4620 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4621 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4622 SAVE_CFLAGS="$CFLAGS"
4623 CFLAGS="$CFLAGS -Wno-pointer-sign"
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4632 main ()
4636 return 0;
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4656 has_option=yes
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 has_option=no
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 if test $has_option = yes; then
4666 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4668 { echo "$as_me:$LINENO: result: $has_option" >&5
4669 echo "${ECHO_T}$has_option" >&6; }
4670 CFLAGS="$SAVE_CFLAGS"
4671 unset has_option
4672 unset SAVE_CFLAGS
4674 #### Some other nice autoconf tests.
4676 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4678 LN_S=$as_ln_s
4679 if test "$LN_S" = "ln -s"; then
4680 { echo "$as_me:$LINENO: result: yes" >&5
4681 echo "${ECHO_T}yes" >&6; }
4682 else
4683 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4684 echo "${ECHO_T}no, using $LN_S" >&6; }
4687 ac_ext=c
4688 ac_cpp='$CPP $CPPFLAGS'
4689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4694 # On Suns, sometimes $CPP names a directory.
4695 if test -n "$CPP" && test -d "$CPP"; then
4696 CPP=
4698 if test -z "$CPP"; then
4699 if test "${ac_cv_prog_CPP+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 # Double quotes because CPP needs to be expanded
4703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 ac_preproc_ok=false
4706 for ac_c_preproc_warn_flag in '' yes
4708 # Use a header file that comes with gcc, so configuring glibc
4709 # with a fresh cross-compiler works.
4710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4711 # <limits.h> exists even on freestanding compilers.
4712 # On the NeXT, cc -E runs the code through the compiler's parser,
4713 # not just through cpp. "Syntax error" is here to catch this case.
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 #ifdef __STDC__
4721 # include <limits.h>
4722 #else
4723 # include <assert.h>
4724 #endif
4725 Syntax error
4726 _ACEOF
4727 if { (ac_try="$ac_cpp conftest.$ac_ext"
4728 case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } >/dev/null && {
4740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 }; then
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 # Broken: fails on valid input.
4749 continue
4752 rm -f conftest.err conftest.$ac_ext
4754 # OK, works on sane cases. Now check whether nonexistent headers
4755 # can be detected and how.
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 #include <ac_nonexistent.h>
4763 _ACEOF
4764 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768 esac
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } >/dev/null && {
4777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4779 }; then
4780 # Broken: success on invalid input.
4781 continue
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 # Passes both tests.
4787 ac_preproc_ok=:
4788 break
4791 rm -f conftest.err conftest.$ac_ext
4793 done
4794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4795 rm -f conftest.err conftest.$ac_ext
4796 if $ac_preproc_ok; then
4797 break
4800 done
4801 ac_cv_prog_CPP=$CPP
4804 CPP=$ac_cv_prog_CPP
4805 else
4806 ac_cv_prog_CPP=$CPP
4808 { echo "$as_me:$LINENO: result: $CPP" >&5
4809 echo "${ECHO_T}$CPP" >&6; }
4810 ac_preproc_ok=false
4811 for ac_c_preproc_warn_flag in '' yes
4813 # Use a header file that comes with gcc, so configuring glibc
4814 # with a fresh cross-compiler works.
4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816 # <limits.h> exists even on freestanding compilers.
4817 # On the NeXT, cc -E runs the code through the compiler's parser,
4818 # not just through cpp. "Syntax error" is here to catch this case.
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #ifdef __STDC__
4826 # include <limits.h>
4827 #else
4828 # include <assert.h>
4829 #endif
4830 Syntax error
4831 _ACEOF
4832 if { (ac_try="$ac_cpp conftest.$ac_ext"
4833 case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836 esac
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } >/dev/null && {
4845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 }; then
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 # Broken: fails on valid input.
4854 continue
4857 rm -f conftest.err conftest.$ac_ext
4859 # OK, works on sane cases. Now check whether nonexistent headers
4860 # can be detected and how.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ac_nonexistent.h>
4868 _ACEOF
4869 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 }; then
4885 # Broken: success on invalid input.
4886 continue
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4896 rm -f conftest.err conftest.$ac_ext
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then
4903 else
4904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4905 See \`config.log' for more details." >&5
4906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4907 See \`config.log' for more details." >&2;}
4908 { (exit 1); exit 1; }; }
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 # Find a good install program. We prefer a C program (faster),
4918 # so one script is as good as another. But avoid the broken or
4919 # incompatible versions:
4920 # SysV /etc/install, /usr/sbin/install
4921 # SunOS /usr/etc/install
4922 # IRIX /sbin/install
4923 # AIX /bin/install
4924 # AmigaOS /C/install, which installs bootblocks on floppy discs
4925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4928 # OS/2's system install, which has a completely different semantic
4929 # ./install, which can be erroneously created by make from ./install.sh.
4930 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4932 if test -z "$INSTALL"; then
4933 if test "${ac_cv_path_install+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 # Account for people who put trailing slashes in PATH elements.
4942 case $as_dir/ in
4943 ./ | .// | /cC/* | \
4944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4946 /usr/ucb/* ) ;;
4948 # OSF1 and SCO ODT 3.0 have their own names for install.
4949 # Don't use installbsd from OSF since it installs stuff as root
4950 # by default.
4951 for ac_prog in ginstall scoinst install; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4954 if test $ac_prog = install &&
4955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4956 # AIX install. It has an incompatible calling convention.
4958 elif test $ac_prog = install &&
4959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4960 # program-specific install script used by HP pwplus--don't use.
4962 else
4963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4964 break 3
4967 done
4968 done
4970 esac
4971 done
4972 IFS=$as_save_IFS
4976 if test "${ac_cv_path_install+set}" = set; then
4977 INSTALL=$ac_cv_path_install
4978 else
4979 # As a last resort, use the slow shell script. Don't cache a
4980 # value for INSTALL within a source directory, because that will
4981 # break other packages using the cache if that directory is
4982 # removed, or if the value is a relative name.
4983 INSTALL=$ac_install_sh
4986 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4987 echo "${ECHO_T}$INSTALL" >&6; }
4989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4990 # It thinks the first close brace ends the variable substitution.
4991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4997 if test "x$RANLIB" = x; then
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_prog_RANLIB+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test -n "$RANLIB"; then
5007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 RANLIB=$ac_cv_prog_RANLIB
5027 if test -n "$RANLIB"; then
5028 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5029 echo "${ECHO_T}$RANLIB" >&6; }
5030 else
5031 { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5037 if test -z "$ac_cv_prog_RANLIB"; then
5038 ac_ct_RANLIB=$RANLIB
5039 # Extract the first word of "ranlib", so it can be a program name with args.
5040 set dummy ranlib; ac_word=$2
5041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 if test -n "$ac_ct_RANLIB"; then
5047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_ac_ct_RANLIB="ranlib"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5067 if test -n "$ac_ct_RANLIB"; then
5068 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5069 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5070 else
5071 { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5075 if test "x$ac_ct_RANLIB" = x; then
5076 RANLIB=":"
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079 yes:)
5080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5081 whose name does not start with the host triplet. If you think this
5082 configuration is useful to you, please write to autoconf@gnu.org." >&5
5083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5084 whose name does not start with the host triplet. If you think this
5085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5086 ac_tool_warned=yes ;;
5087 esac
5088 RANLIB=$ac_ct_RANLIB
5090 else
5091 RANLIB="$ac_cv_prog_RANLIB"
5095 # Extract the first word of "install-info", so it can be a program name with args.
5096 set dummy install-info; ac_word=$2
5097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 case $INSTALL_INFO in
5103 [\\/]* | ?:[\\/]*)
5104 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5123 esac
5125 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5126 if test -n "$INSTALL_INFO"; then
5127 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5128 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5129 else
5130 { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5135 # Extract the first word of "install-info", so it can be a program name with args.
5136 set dummy install-info; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 case $INSTALL_INFO in
5143 [\\/]* | ?:[\\/]*)
5144 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in /usr/sbin
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5158 done
5159 done
5160 IFS=$as_save_IFS
5163 esac
5165 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5166 if test -n "$INSTALL_INFO"; then
5167 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5168 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5169 else
5170 { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5175 # Extract the first word of "install-info", so it can be a program name with args.
5176 set dummy install-info; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 case $INSTALL_INFO in
5183 [\\/]* | ?:[\\/]*)
5184 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in /sbin
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5198 done
5199 done
5200 IFS=$as_save_IFS
5202 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5204 esac
5206 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5207 if test -n "$INSTALL_INFO"; then
5208 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5209 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5210 else
5211 { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5216 # Extract the first word of "gzip", so it can be a program name with args.
5217 set dummy gzip; ac_word=$2
5218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5220 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 case $GZIP_PROG in
5224 [\\/]* | ?:[\\/]*)
5225 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5239 done
5240 done
5241 IFS=$as_save_IFS
5244 esac
5246 GZIP_PROG=$ac_cv_path_GZIP_PROG
5247 if test -n "$GZIP_PROG"; then
5248 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5249 echo "${ECHO_T}$GZIP_PROG" >&6; }
5250 else
5251 { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5258 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5259 then
5260 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5263 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5264 then
5265 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5269 late_LDFLAGS=$LDFLAGS
5270 if test "$GCC" = yes; then
5271 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5272 else
5273 LDFLAGS="$LDFLAGS -znocombreloc"
5276 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5277 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5278 cat >conftest.$ac_ext <<_ACEOF
5279 main(){return 0;}
5280 _ACEOF
5281 rm -f conftest.$ac_objext conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5283 case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_link") 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest$ac_exeext &&
5298 $as_test_x conftest$ac_exeext; then
5299 { echo "$as_me:$LINENO: result: yes" >&5
5300 echo "${ECHO_T}yes" >&6; }
5301 else
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 LDFLAGS=$late_LDFLAGS
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5311 conftest$ac_exeext conftest.$ac_ext
5313 #### Extract some information from the operating system and machine files.
5315 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5316 - which libraries the lib-src programs will want, and
5317 - whether the GNU malloc routines are usable..." >&5
5318 echo "$as_me: checking the machine- and system-dependent files to find out
5319 - which libraries the lib-src programs will want, and
5320 - whether the GNU malloc routines are usable..." >&6;}
5322 ### First figure out CFLAGS (which we use for running the compiler here)
5323 ### and REAL_CFLAGS (which we use for real compilation).
5324 ### The two are the same except on a few systems, where they are made
5325 ### different to work around various lossages. For example,
5326 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5327 ### as implying static linking.
5329 ### If the CFLAGS env var is specified, we use that value
5330 ### instead of the default.
5332 ### It's not important that this name contain the PID; you can't run
5333 ### two configures in the same directory and have anything work
5334 ### anyway.
5335 tempcname="conftest.c"
5337 echo '
5338 #include "'${srcdir}'/src/'${opsysfile}'"
5339 #include "'${srcdir}'/src/'${machfile}'"
5340 #ifndef LIBS_MACHINE
5341 #define LIBS_MACHINE
5342 #endif
5343 #ifndef LIBS_SYSTEM
5344 #define LIBS_SYSTEM
5345 #endif
5346 #ifndef C_SWITCH_SYSTEM
5347 #define C_SWITCH_SYSTEM
5348 #endif
5349 #ifndef C_SWITCH_MACHINE
5350 #define C_SWITCH_MACHINE
5351 #endif
5352 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5353 configure___ c_switch_system=C_SWITCH_SYSTEM
5354 configure___ c_switch_machine=C_SWITCH_MACHINE
5356 #ifndef LIB_X11_LIB
5357 #define LIB_X11_LIB -lX11
5358 #endif
5360 #ifndef LIBX11_MACHINE
5361 #define LIBX11_MACHINE
5362 #endif
5364 #ifndef LIBX11_SYSTEM
5365 #define LIBX11_SYSTEM
5366 #endif
5367 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5369 #ifdef UNEXEC
5370 configure___ unexec=UNEXEC
5371 #else
5372 configure___ unexec=unexec.o
5373 #endif
5375 #ifdef SYSTEM_MALLOC
5376 configure___ system_malloc=yes
5377 #else
5378 configure___ system_malloc=no
5379 #endif
5381 #ifdef USE_MMAP_FOR_BUFFERS
5382 configure___ use_mmap_for_buffers=yes
5383 #else
5384 configure___ use_mmap_for_buffers=no
5385 #endif
5387 #ifndef C_DEBUG_SWITCH
5388 #define C_DEBUG_SWITCH -g
5389 #endif
5391 #ifndef C_OPTIMIZE_SWITCH
5392 #ifdef __GNUC__
5393 #define C_OPTIMIZE_SWITCH -O2
5394 #else
5395 #define C_OPTIMIZE_SWITCH -O
5396 #endif
5397 #endif
5399 #ifndef C_WARNINGS_SWITCH
5400 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5401 #endif
5403 #ifndef LD_SWITCH_MACHINE
5404 #define LD_SWITCH_MACHINE
5405 #endif
5407 #ifndef LD_SWITCH_SYSTEM
5408 #define LD_SWITCH_SYSTEM
5409 #endif
5411 #ifndef LD_SWITCH_X_SITE_AUX
5412 #define LD_SWITCH_X_SITE_AUX
5413 #endif
5415 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5416 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5418 #ifdef THIS_IS_CONFIGURE
5420 /* Get the CFLAGS for tests in configure. */
5421 #ifdef __GNUC__
5422 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5423 #else
5424 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5425 #endif
5427 #else /* not THIS_IS_CONFIGURE */
5429 /* Get the CFLAGS for real compilation. */
5430 #ifdef __GNUC__
5431 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5432 #else
5433 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5434 #endif
5436 #endif /* not THIS_IS_CONFIGURE */
5437 ' > ${tempcname}
5439 # The value of CPP is a quoted variable reference, so we need to do this
5440 # to get its actual value...
5441 CPP=`eval "echo $CPP"`
5442 eval `${CPP} -Isrc ${tempcname} \
5443 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5444 if test "x$SPECIFIED_CFLAGS" = x; then
5445 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5446 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5447 else
5448 REAL_CFLAGS="$CFLAGS"
5450 rm ${tempcname}
5452 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5454 ### Make sure subsequent tests use flags consistent with the build flags.
5456 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5457 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5458 else
5459 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5464 # Check whether --enable-largefile was given.
5465 if test "${enable_largefile+set}" = set; then
5466 enableval=$enable_largefile;
5469 if test "$enable_largefile" != no; then
5471 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5472 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5473 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 ac_cv_sys_largefile_CC=no
5477 if test "$GCC" != yes; then
5478 ac_save_CC=$CC
5479 while :; do
5480 # IRIX 6.2 and later do not support large files by default,
5481 # so use the C compiler's -n32 option if that helps.
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 #include <sys/types.h>
5489 /* Check that off_t can represent 2**63 - 1 correctly.
5490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5491 since some C++ compilers masquerading as C compilers
5492 incorrectly reject 9223372036854775807. */
5493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5495 && LARGE_OFF_T % 2147483647 == 1)
5496 ? 1 : -1];
5498 main ()
5502 return 0;
5504 _ACEOF
5505 rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5507 case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_compile") 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && {
5519 test -z "$ac_c_werror_flag" ||
5520 test ! -s conftest.err
5521 } && test -s conftest.$ac_objext; then
5522 break
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5530 rm -f core conftest.err conftest.$ac_objext
5531 CC="$CC -n32"
5532 rm -f conftest.$ac_objext
5533 if { (ac_try="$ac_compile"
5534 case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537 esac
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 ac_cv_sys_largefile_CC=' -n32'; break
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5557 rm -f core conftest.err conftest.$ac_objext
5558 break
5559 done
5560 CC=$ac_save_CC
5561 rm -f conftest.$ac_ext
5564 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5565 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5566 if test "$ac_cv_sys_largefile_CC" != no; then
5567 CC=$CC$ac_cv_sys_largefile_CC
5570 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5571 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5572 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 while :; do
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #include <sys/types.h>
5583 /* Check that off_t can represent 2**63 - 1 correctly.
5584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5585 since some C++ compilers masquerading as C compilers
5586 incorrectly reject 9223372036854775807. */
5587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5589 && LARGE_OFF_T % 2147483647 == 1)
5590 ? 1 : -1];
5592 main ()
5596 return 0;
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5616 ac_cv_sys_file_offset_bits=no; break
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h. */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #define _FILE_OFFSET_BITS 64
5632 #include <sys/types.h>
5633 /* Check that off_t can represent 2**63 - 1 correctly.
5634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5635 since some C++ compilers masquerading as C compilers
5636 incorrectly reject 9223372036854775807. */
5637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5639 && LARGE_OFF_T % 2147483647 == 1)
5640 ? 1 : -1];
5642 main ()
5646 return 0;
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5651 case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && {
5663 test -z "$ac_c_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.$ac_objext; then
5666 ac_cv_sys_file_offset_bits=64; break
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_cv_sys_file_offset_bits=unknown
5676 break
5677 done
5679 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5680 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5681 case $ac_cv_sys_file_offset_bits in #(
5682 no | unknown) ;;
5684 cat >>confdefs.h <<_ACEOF
5685 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5686 _ACEOF
5688 esac
5689 rm -f conftest*
5690 if test $ac_cv_sys_file_offset_bits = unknown; then
5691 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5692 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5693 if test "${ac_cv_sys_large_files+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 while :; do
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5711 ? 1 : -1];
5713 main ()
5717 return 0;
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 ac_cv_sys_large_files=no; break
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #define _LARGE_FILES 1
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5761 ? 1 : -1];
5763 main ()
5767 return 0;
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (ac_try="$ac_compile"
5772 case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compile") 2>conftest.er1
5778 ac_status=$?
5779 grep -v '^ *+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && {
5784 test -z "$ac_c_werror_flag" ||
5785 test ! -s conftest.err
5786 } && test -s conftest.$ac_objext; then
5787 ac_cv_sys_large_files=1; break
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 ac_cv_sys_large_files=unknown
5797 break
5798 done
5800 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5801 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5802 case $ac_cv_sys_large_files in #(
5803 no | unknown) ;;
5805 cat >>confdefs.h <<_ACEOF
5806 #define _LARGE_FILES $ac_cv_sys_large_files
5807 _ACEOF
5809 esac
5810 rm -f conftest*
5816 ### The standard library on x86-64 GNU/Linux distributions can
5817 ### be located in either /usr/lib64 or /usr/lib.
5818 case "${canonical}" in
5819 x86_64-*-linux-gnu* )
5820 if test -d /usr/lib64; then
5822 cat >>confdefs.h <<\_ACEOF
5823 #define HAVE_X86_64_LIB64_DIR 1
5824 _ACEOF
5827 esac
5832 if test "${with_sound}" != "no"; then
5833 # Sound support for GNU/Linux and the free BSDs.
5834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5836 if test "${ac_cv_header_stdc+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <stdlib.h>
5846 #include <stdarg.h>
5847 #include <string.h>
5848 #include <float.h>
5851 main ()
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.$ac_objext; then
5875 ac_cv_header_stdc=yes
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_cv_header_stdc=no
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 if test $ac_cv_header_stdc = yes; then
5886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <string.h>
5895 _ACEOF
5896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897 $EGREP "memchr" >/dev/null 2>&1; then
5899 else
5900 ac_cv_header_stdc=no
5902 rm -f conftest*
5906 if test $ac_cv_header_stdc = yes; then
5907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <stdlib.h>
5916 _ACEOF
5917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918 $EGREP "free" >/dev/null 2>&1; then
5920 else
5921 ac_cv_header_stdc=no
5923 rm -f conftest*
5927 if test $ac_cv_header_stdc = yes; then
5928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5929 if test "$cross_compiling" = yes; then
5931 else
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 #include <ctype.h>
5939 #include <stdlib.h>
5940 #if ((' ' & 0x0FF) == 0x020)
5941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5943 #else
5944 # define ISLOWER(c) \
5945 (('a' <= (c) && (c) <= 'i') \
5946 || ('j' <= (c) && (c) <= 'r') \
5947 || ('s' <= (c) && (c) <= 'z'))
5948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5949 #endif
5951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5953 main ()
5955 int i;
5956 for (i = 0; i < 256; i++)
5957 if (XOR (islower (i), ISLOWER (i))
5958 || toupper (i) != TOUPPER (i))
5959 return 2;
5960 return 0;
5962 _ACEOF
5963 rm -f conftest$ac_exeext
5964 if { (ac_try="$ac_link"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_link") 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5974 { (case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_try") 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5984 else
5985 echo "$as_me: program exited with status $ac_status" >&5
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ( exit $ac_status )
5990 ac_cv_header_stdc=no
5992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6000 if test $ac_cv_header_stdc = yes; then
6002 cat >>confdefs.h <<\_ACEOF
6003 #define STDC_HEADERS 1
6004 _ACEOF
6008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6019 inttypes.h stdint.h unistd.h
6021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 $ac_includes_default
6035 #include <$ac_header>
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6039 case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 eval "$as_ac_Header=yes"
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 eval "$as_ac_Header=no"
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 ac_res=`eval echo '${'$as_ac_Header'}'`
6065 { echo "$as_me:$LINENO: result: $ac_res" >&5
6066 echo "${ECHO_T}$ac_res" >&6; }
6067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6068 cat >>confdefs.h <<_ACEOF
6069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6070 _ACEOF
6074 done
6080 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 ac_res=`eval echo '${'$as_ac_Header'}'`
6090 { echo "$as_me:$LINENO: result: $ac_res" >&5
6091 echo "${ECHO_T}$ac_res" >&6; }
6092 else
6093 # Is the header compilable?
6094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_includes_default
6103 #include <$ac_header>
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } && {
6119 test -z "$ac_c_werror_flag" ||
6120 test ! -s conftest.err
6121 } && test -s conftest.$ac_objext; then
6122 ac_header_compiler=yes
6123 else
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 ac_header_compiler=no
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6132 echo "${ECHO_T}$ac_header_compiler" >&6; }
6134 # Is the header present?
6135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <$ac_header>
6144 _ACEOF
6145 if { (ac_try="$ac_cpp conftest.$ac_ext"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6152 ac_status=$?
6153 grep -v '^ *+' conftest.er1 >conftest.err
6154 rm -f conftest.er1
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } >/dev/null && {
6158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6159 test ! -s conftest.err
6160 }; then
6161 ac_header_preproc=yes
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_header_preproc=no
6169 rm -f conftest.err conftest.$ac_ext
6170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6171 echo "${ECHO_T}$ac_header_preproc" >&6; }
6173 # So? What about this header?
6174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6175 yes:no: )
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6180 ac_header_preproc=yes
6182 no:yes:* )
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6197 esac
6198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 eval "$as_ac_Header=\$ac_header_preproc"
6205 ac_res=`eval echo '${'$as_ac_Header'}'`
6206 { echo "$as_me:$LINENO: result: $ac_res" >&5
6207 echo "${ECHO_T}$ac_res" >&6; }
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213 _ACEOF
6217 done
6219 # Emulation library used on NetBSD.
6220 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6221 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lossaudio $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6237 #ifdef __cplusplus
6238 extern "C"
6239 #endif
6240 char _oss_ioctl ();
6242 main ()
6244 return _oss_ioctl ();
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest$ac_exeext &&
6266 $as_test_x conftest$ac_exeext; then
6267 ac_cv_lib_ossaudio__oss_ioctl=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_lib_ossaudio__oss_ioctl=no
6275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6279 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6280 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6281 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6282 LIBSOUND=-lossaudio
6283 else
6284 LIBSOUND=
6289 ALSA_REQUIRED=1.0.0
6290 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6291 if test "X${with_pkg_config_prog}" != X; then
6292 PKG_CONFIG="${with_pkg_config_prog}"
6295 succeeded=no
6297 if test -z "$PKG_CONFIG"; then
6298 # Extract the first word of "pkg-config", so it can be a program name with args.
6299 set dummy pkg-config; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 case $PKG_CONFIG in
6306 [\\/]* | ?:[\\/]*)
6307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6321 done
6322 done
6323 IFS=$as_save_IFS
6325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6327 esac
6329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6330 if test -n "$PKG_CONFIG"; then
6331 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6332 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6333 else
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6341 if test "$PKG_CONFIG" = "no" ; then
6342 HAVE_ALSA=no
6343 else
6344 PKG_CONFIG_MIN_VERSION=0.9.0
6345 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6346 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6347 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6349 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6350 { echo "$as_me:$LINENO: result: yes" >&5
6351 echo "${ECHO_T}yes" >&6; }
6352 succeeded=yes
6354 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6355 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6356 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6357 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6358 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6360 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6361 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6362 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6363 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6364 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6365 else
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6368 ALSA_CFLAGS=""
6369 ALSA_LIBS=""
6370 ## If we have a custom action on failure, don't print errors, but
6371 ## do set a variable so people can do so.
6372 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6378 else
6379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6384 if test $succeeded = yes; then
6385 HAVE_ALSA=yes
6386 else
6387 HAVE_ALSA=no
6390 if test $HAVE_ALSA = yes; then
6391 SAVE_CFLAGS="$CFLAGS"
6392 SAVE_LDFLAGS="$LDFLAGS"
6393 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6394 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401 #include <asoundlib.h>
6403 main ()
6405 snd_lib_error_set_handler (0);
6407 return 0;
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (ac_try="$ac_compile"
6412 case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compile") 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest.$ac_objext; then
6427 emacs_alsa_normal=yes
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 emacs_alsa_normal=no
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 if test "$emacs_alsa_normal" != yes; then
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <alsa/asoundlib.h>
6445 main ()
6447 snd_lib_error_set_handler (0);
6449 return 0;
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (ac_try="$ac_compile"
6454 case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_compile") 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest.$ac_objext; then
6469 emacs_alsa_subdir=yes
6470 else
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6474 emacs_alsa_subdir=no
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 if test "$emacs_alsa_subdir" != yes; then
6479 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6480 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6481 { (exit 1); exit 1; }; }
6483 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6486 CFLAGS="$SAVE_CFLAGS"
6487 LDFLAGS="$SAVE_LDFLAGS"
6488 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6489 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_ALSA 1
6493 _ACEOF
6525 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6526 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6527 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6528 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6529 sys/utsname.h pwd.h
6531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 ac_res=`eval echo '${'$as_ac_Header'}'`
6539 { echo "$as_me:$LINENO: result: $ac_res" >&5
6540 echo "${ECHO_T}$ac_res" >&6; }
6541 else
6542 # Is the header compilable?
6543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6552 #include <$ac_header>
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6556 case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559 esac
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_compile") 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
6571 ac_header_compiler=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 ac_header_compiler=no
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6581 echo "${ECHO_T}$ac_header_compiler" >&6; }
6583 # Is the header present?
6584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 #include <$ac_header>
6593 _ACEOF
6594 if { (ac_try="$ac_cpp conftest.$ac_ext"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev/null && {
6607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 }; then
6610 ac_header_preproc=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_header_preproc=no
6618 rm -f conftest.err conftest.$ac_ext
6619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6620 echo "${ECHO_T}$ac_header_preproc" >&6; }
6622 # So? What about this header?
6623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6624 yes:no: )
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6629 ac_header_preproc=yes
6631 no:yes:* )
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646 esac
6647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 eval "$as_ac_Header=\$ac_header_preproc"
6654 ac_res=`eval echo '${'$as_ac_Header'}'`
6655 { echo "$as_me:$LINENO: result: $ac_res" >&5
6656 echo "${ECHO_T}$ac_res" >&6; }
6659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6660 cat >>confdefs.h <<_ACEOF
6661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6662 _ACEOF
6666 done
6669 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6670 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <sys/personality.h>
6679 main ()
6681 personality (PER_LINUX32)
6683 return 0;
6685 _ACEOF
6686 rm -f conftest.$ac_objext
6687 if { (ac_try="$ac_compile"
6688 case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_compile") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest.$ac_objext; then
6703 emacs_cv_personality_linux32=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 emacs_cv_personality_linux32=no
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6713 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6715 if test $emacs_cv_personality_linux32 = yes; then
6717 cat >>confdefs.h <<\_ACEOF
6718 #define HAVE_PERSONALITY_LINUX32 1
6719 _ACEOF
6724 for ac_header in term.h
6726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <$ac_header>
6739 _ACEOF
6740 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744 esac
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 }; then
6756 eval "$as_ac_Header=yes"
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 eval "$as_ac_Header=no"
6764 rm -f conftest.err conftest.$ac_ext
6766 ac_res=`eval echo '${'$as_ac_Header'}'`
6767 { echo "$as_me:$LINENO: result: $ac_res" >&5
6768 echo "${ECHO_T}$ac_res" >&6; }
6769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6770 cat >>confdefs.h <<_ACEOF
6771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6772 _ACEOF
6776 done
6778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6780 if test "${ac_cv_header_stdc+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <stdlib.h>
6790 #include <stdarg.h>
6791 #include <string.h>
6792 #include <float.h>
6795 main ()
6799 return 0;
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (ac_try="$ac_compile"
6804 case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807 esac
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_compile") 2>conftest.er1
6810 ac_status=$?
6811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.$ac_objext; then
6819 ac_cv_header_stdc=yes
6820 else
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_cv_header_stdc=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 if test $ac_cv_header_stdc = yes; then
6830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6831 cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h. */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6837 #include <string.h>
6839 _ACEOF
6840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6841 $EGREP "memchr" >/dev/null 2>&1; then
6843 else
6844 ac_cv_header_stdc=no
6846 rm -f conftest*
6850 if test $ac_cv_header_stdc = yes; then
6851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <stdlib.h>
6860 _ACEOF
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "free" >/dev/null 2>&1; then
6864 else
6865 ac_cv_header_stdc=no
6867 rm -f conftest*
6871 if test $ac_cv_header_stdc = yes; then
6872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6873 if test "$cross_compiling" = yes; then
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <ctype.h>
6883 #include <stdlib.h>
6884 #if ((' ' & 0x0FF) == 0x020)
6885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6887 #else
6888 # define ISLOWER(c) \
6889 (('a' <= (c) && (c) <= 'i') \
6890 || ('j' <= (c) && (c) <= 'r') \
6891 || ('s' <= (c) && (c) <= 'z'))
6892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6893 #endif
6895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6897 main ()
6899 int i;
6900 for (i = 0; i < 256; i++)
6901 if (XOR (islower (i), ISLOWER (i))
6902 || toupper (i) != TOUPPER (i))
6903 return 2;
6904 return 0;
6906 _ACEOF
6907 rm -f conftest$ac_exeext
6908 if { (ac_try="$ac_link"
6909 case "(($ac_try" in
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6912 esac
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_link") 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6918 { (case "(($ac_try" in
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6921 esac
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_try") 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6928 else
6929 echo "$as_me: program exited with status $ac_status" >&5
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ( exit $ac_status )
6934 ac_cv_header_stdc=no
6936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6943 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6944 if test $ac_cv_header_stdc = yes; then
6946 cat >>confdefs.h <<\_ACEOF
6947 #define STDC_HEADERS 1
6948 _ACEOF
6952 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6953 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6954 if test "${ac_cv_header_time+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <sys/types.h>
6964 #include <sys/time.h>
6965 #include <time.h>
6968 main ()
6970 if ((struct tm *) 0)
6971 return 0;
6973 return 0;
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (ac_try="$ac_compile"
6978 case "(($ac_try" in
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6981 esac
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_compile") 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && {
6990 test -z "$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 } && test -s conftest.$ac_objext; then
6993 ac_cv_header_time=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_header_time=no
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7004 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7005 if test $ac_cv_header_time = yes; then
7007 cat >>confdefs.h <<\_ACEOF
7008 #define TIME_WITH_SYS_TIME 1
7009 _ACEOF
7013 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7014 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7015 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7026 main ()
7028 #ifndef sys_siglist
7029 (void) sys_siglist;
7030 #endif
7033 return 0;
7035 _ACEOF
7036 rm -f conftest.$ac_objext
7037 if { (ac_try="$ac_compile"
7038 case "(($ac_try" in
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7041 esac
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_compile") 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest.$ac_objext; then
7053 ac_cv_have_decl_sys_siglist=yes
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_cv_have_decl_sys_siglist=no
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7064 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7065 if test $ac_cv_have_decl_sys_siglist = yes; then
7067 cat >>confdefs.h <<_ACEOF
7068 #define HAVE_DECL_SYS_SIGLIST 1
7069 _ACEOF
7072 else
7073 cat >>confdefs.h <<_ACEOF
7074 #define HAVE_DECL_SYS_SIGLIST 0
7075 _ACEOF
7081 if test $ac_cv_have_decl_sys_siglist != yes; then
7082 # For Tru64, at least:
7083 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7084 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7085 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7096 main ()
7098 #ifndef __sys_siglist
7099 (void) __sys_siglist;
7100 #endif
7103 return 0;
7105 _ACEOF
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7108 case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 (eval "$ac_compile") 2>conftest.er1
7114 ac_status=$?
7115 grep -v '^ *+' conftest.er1 >conftest.err
7116 rm -f conftest.er1
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest.$ac_objext; then
7123 ac_cv_have_decl___sys_siglist=yes
7124 else
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7128 ac_cv_have_decl___sys_siglist=no
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7134 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7135 if test $ac_cv_have_decl___sys_siglist = yes; then
7137 cat >>confdefs.h <<_ACEOF
7138 #define HAVE_DECL___SYS_SIGLIST 1
7139 _ACEOF
7142 else
7143 cat >>confdefs.h <<_ACEOF
7144 #define HAVE_DECL___SYS_SIGLIST 0
7145 _ACEOF
7151 if test $ac_cv_have_decl___sys_siglist = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define sys_siglist __sys_siglist
7155 _ACEOF
7159 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7160 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7161 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h. */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <sys/types.h>
7171 #include <sys/wait.h>
7172 #ifndef WEXITSTATUS
7173 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7174 #endif
7175 #ifndef WIFEXITED
7176 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7177 #endif
7180 main ()
7182 int s;
7183 wait (&s);
7184 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7186 return 0;
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (ac_try="$ac_compile"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.$ac_objext; then
7206 ac_cv_header_sys_wait_h=yes
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_cv_header_sys_wait_h=no
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7217 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7218 if test $ac_cv_header_sys_wait_h = yes; then
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_SYS_WAIT_H 1
7222 _ACEOF
7227 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7228 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7229 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 #ifdef TIME_WITH_SYS_TIME
7239 #include <sys/time.h>
7240 #include <time.h>
7241 #else
7242 #ifdef HAVE_SYS_TIME_H
7243 #include <sys/time.h>
7244 #else
7245 #include <time.h>
7246 #endif
7247 #endif
7248 #ifdef HAVE_UTIME_H
7249 #include <utime.h>
7250 #endif
7252 main ()
7254 static struct utimbuf x; x.actime = x.modtime;
7256 return 0;
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 emacs_cv_struct_utimbuf=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 emacs_cv_struct_utimbuf=no
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7287 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7288 if test $emacs_cv_struct_utimbuf = yes; then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_STRUCT_UTIMBUF 1
7292 _ACEOF
7296 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7297 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7298 if test "${ac_cv_type_signal+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <sys/types.h>
7308 #include <signal.h>
7311 main ()
7313 return *(signal (0, 0)) (0) == 1;
7315 return 0;
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (ac_try="$ac_compile"
7320 case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.$ac_objext; then
7335 ac_cv_type_signal=int
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_type_signal=void
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7346 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7348 cat >>confdefs.h <<_ACEOF
7349 #define RETSIGTYPE $ac_cv_type_signal
7350 _ACEOF
7354 { echo "$as_me:$LINENO: checking for speed_t" >&5
7355 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7356 if test "${emacs_cv_speed_t+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 #include <termios.h>
7367 main ()
7369 speed_t x = 1;
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7376 case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 emacs_cv_speed_t=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 emacs_cv_speed_t=no
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7402 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7403 if test $emacs_cv_speed_t = yes; then
7405 cat >>confdefs.h <<\_ACEOF
7406 #define HAVE_SPEED_T 1
7407 _ACEOF
7411 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7412 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7413 if test "${emacs_cv_struct_timeval+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 #ifdef TIME_WITH_SYS_TIME
7423 #include <sys/time.h>
7424 #include <time.h>
7425 #else
7426 #ifdef HAVE_SYS_TIME_H
7427 #include <sys/time.h>
7428 #else
7429 #include <time.h>
7430 #endif
7431 #endif
7433 main ()
7435 static struct timeval x; x.tv_sec = x.tv_usec;
7437 return 0;
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (ac_try="$ac_compile"
7442 case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445 esac
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7448 ac_status=$?
7449 grep -v '^ *+' conftest.er1 >conftest.err
7450 rm -f conftest.er1
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.$ac_objext; then
7457 emacs_cv_struct_timeval=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 emacs_cv_struct_timeval=no
7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7468 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7469 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7470 if test $emacs_cv_struct_timeval = yes; then
7472 cat >>confdefs.h <<\_ACEOF
7473 #define HAVE_TIMEVAL 1
7474 _ACEOF
7478 { echo "$as_me:$LINENO: checking for struct exception" >&5
7479 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7480 if test "${emacs_cv_struct_exception+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h. */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 #include <math.h>
7491 main ()
7493 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7495 return 0;
7497 _ACEOF
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7500 case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7503 esac
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7515 emacs_cv_struct_exception=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 emacs_cv_struct_exception=no
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7526 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7527 HAVE_EXCEPTION=$emacs_cv_struct_exception
7528 if test $emacs_cv_struct_exception != yes; then
7530 cat >>confdefs.h <<\_ACEOF
7531 #define NO_MATHERR 1
7532 _ACEOF
7537 for ac_header in sys/socket.h
7539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 ac_res=`eval echo '${'$as_ac_Header'}'`
7547 { echo "$as_me:$LINENO: result: $ac_res" >&5
7548 echo "${ECHO_T}$ac_res" >&6; }
7549 else
7550 # Is the header compilable?
7551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 #include <$ac_header>
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7564 case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7579 ac_header_compiler=yes
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_header_compiler=no
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7589 echo "${ECHO_T}$ac_header_compiler" >&6; }
7591 # Is the header present?
7592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <$ac_header>
7601 _ACEOF
7602 if { (ac_try="$ac_cpp conftest.$ac_ext"
7603 case "(($ac_try" in
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606 esac
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } >/dev/null && {
7615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 }; then
7618 ac_header_preproc=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 ac_header_preproc=no
7626 rm -f conftest.err conftest.$ac_ext
7627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7628 echo "${ECHO_T}$ac_header_preproc" >&6; }
7630 # So? What about this header?
7631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7632 yes:no: )
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7637 ac_header_preproc=yes
7639 no:yes:* )
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7654 esac
7655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 eval "$as_ac_Header=\$ac_header_preproc"
7662 ac_res=`eval echo '${'$as_ac_Header'}'`
7663 { echo "$as_me:$LINENO: result: $ac_res" >&5
7664 echo "${ECHO_T}$ac_res" >&6; }
7667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7668 cat >>confdefs.h <<_ACEOF
7669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7670 _ACEOF
7674 done
7677 for ac_header in net/if.h
7679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 $ac_includes_default
7692 #if HAVE_SYS_SOCKET_H
7693 #include <sys/socket.h>
7694 #endif
7696 #include <$ac_header>
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7715 eval "$as_ac_Header=yes"
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 eval "$as_ac_Header=no"
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 ac_res=`eval echo '${'$as_ac_Header'}'`
7726 { echo "$as_me:$LINENO: result: $ac_res" >&5
7727 echo "${ECHO_T}$ac_res" >&6; }
7728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7729 cat >>confdefs.h <<_ACEOF
7730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7731 _ACEOF
7735 done
7738 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7739 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7740 if test "${ac_cv_struct_tm+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 #include <sys/types.h>
7750 #include <time.h>
7753 main ()
7755 struct tm tm;
7756 int *p = &tm.tm_sec;
7757 return !p;
7759 return 0;
7761 _ACEOF
7762 rm -f conftest.$ac_objext
7763 if { (ac_try="$ac_compile"
7764 case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767 esac
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_compile") 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } && {
7776 test -z "$ac_c_werror_flag" ||
7777 test ! -s conftest.err
7778 } && test -s conftest.$ac_objext; then
7779 ac_cv_struct_tm=time.h
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 ac_cv_struct_tm=sys/time.h
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7790 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7791 if test $ac_cv_struct_tm = sys/time.h; then
7793 cat >>confdefs.h <<\_ACEOF
7794 #define TM_IN_SYS_TIME 1
7795 _ACEOF
7799 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7800 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7801 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h. */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 #include <sys/types.h>
7811 #include <$ac_cv_struct_tm>
7815 main ()
7817 static struct tm ac_aggr;
7818 if (ac_aggr.tm_zone)
7819 return 0;
7821 return 0;
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (ac_try="$ac_compile"
7826 case "(($ac_try" in
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7829 esac
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.$ac_objext; then
7841 ac_cv_member_struct_tm_tm_zone=yes
7842 else
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 #include <sys/types.h>
7853 #include <$ac_cv_struct_tm>
7857 main ()
7859 static struct tm ac_aggr;
7860 if (sizeof ac_aggr.tm_zone)
7861 return 0;
7863 return 0;
7865 _ACEOF
7866 rm -f conftest.$ac_objext
7867 if { (ac_try="$ac_compile"
7868 case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 ac_cv_member_struct_tm_tm_zone=yes
7884 else
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7888 ac_cv_member_struct_tm_tm_zone=no
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7897 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7898 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_STRUCT_TM_TM_ZONE 1
7902 _ACEOF
7907 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_TM_ZONE 1
7911 _ACEOF
7913 else
7914 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7915 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7916 if test "${ac_cv_have_decl_tzname+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 #include <time.h>
7928 main ()
7930 #ifndef tzname
7931 (void) tzname;
7932 #endif
7935 return 0;
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_cv_have_decl_tzname=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 ac_cv_have_decl_tzname=no
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7966 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7967 if test $ac_cv_have_decl_tzname = yes; then
7969 cat >>confdefs.h <<_ACEOF
7970 #define HAVE_DECL_TZNAME 1
7971 _ACEOF
7974 else
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_DECL_TZNAME 0
7977 _ACEOF
7983 { echo "$as_me:$LINENO: checking for tzname" >&5
7984 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7985 if test "${ac_cv_var_tzname+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 #include <time.h>
7995 #if !HAVE_DECL_TZNAME
7996 extern char *tzname[];
7997 #endif
8000 main ()
8002 return tzname[0][0];
8004 return 0;
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (ac_try="$ac_link"
8009 case "(($ac_try" in
8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8012 esac
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_link") 2>conftest.er1
8015 ac_status=$?
8016 grep -v '^ *+' conftest.er1 >conftest.err
8017 rm -f conftest.er1
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest$ac_exeext &&
8024 $as_test_x conftest$ac_exeext; then
8025 ac_cv_var_tzname=yes
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_cv_var_tzname=no
8033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8034 conftest$ac_exeext conftest.$ac_ext
8036 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8037 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8038 if test $ac_cv_var_tzname = yes; then
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_TZNAME 1
8042 _ACEOF
8047 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8048 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8049 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 #include <time.h>
8061 main ()
8063 static struct tm ac_aggr;
8064 if (ac_aggr.tm_gmtoff)
8065 return 0;
8067 return 0;
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8087 ac_cv_member_struct_tm_tm_gmtoff=yes
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <time.h>
8101 main ()
8103 static struct tm ac_aggr;
8104 if (sizeof ac_aggr.tm_gmtoff)
8105 return 0;
8107 return 0;
8109 _ACEOF
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8112 case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest.$ac_objext; then
8127 ac_cv_member_struct_tm_tm_gmtoff=yes
8128 else
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_cv_member_struct_tm_tm_gmtoff=no
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8141 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8142 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8144 cat >>confdefs.h <<\_ACEOF
8145 #define HAVE_TM_GMTOFF 1
8146 _ACEOF
8150 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8151 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8152 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8162 #if HAVE_SYS_SOCKET_H
8163 #include <sys/socket.h>
8164 #endif
8165 #if HAVE_NET_IF_H
8166 #include <net/if.h>
8167 #endif
8170 main ()
8172 static struct ifreq ac_aggr;
8173 if (ac_aggr.ifr_flags)
8174 return 0;
8176 return 0;
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_member_struct_ifreq_ifr_flags=yes
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 $ac_includes_default
8208 #if HAVE_SYS_SOCKET_H
8209 #include <sys/socket.h>
8210 #endif
8211 #if HAVE_NET_IF_H
8212 #include <net/if.h>
8213 #endif
8216 main ()
8218 static struct ifreq ac_aggr;
8219 if (sizeof ac_aggr.ifr_flags)
8220 return 0;
8222 return 0;
8224 _ACEOF
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8227 case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then
8242 ac_cv_member_struct_ifreq_ifr_flags=yes
8243 else
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8247 ac_cv_member_struct_ifreq_ifr_flags=no
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8256 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8257 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8259 cat >>confdefs.h <<_ACEOF
8260 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8261 _ACEOF
8265 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8266 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8267 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #if HAVE_SYS_SOCKET_H
8278 #include <sys/socket.h>
8279 #endif
8280 #if HAVE_NET_IF_H
8281 #include <net/if.h>
8282 #endif
8285 main ()
8287 static struct ifreq ac_aggr;
8288 if (ac_aggr.ifr_hwaddr)
8289 return 0;
8291 return 0;
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h. */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 $ac_includes_default
8323 #if HAVE_SYS_SOCKET_H
8324 #include <sys/socket.h>
8325 #endif
8326 #if HAVE_NET_IF_H
8327 #include <net/if.h>
8328 #endif
8331 main ()
8333 static struct ifreq ac_aggr;
8334 if (sizeof ac_aggr.ifr_hwaddr)
8335 return 0;
8337 return 0;
8339 _ACEOF
8340 rm -f conftest.$ac_objext
8341 if { (ac_try="$ac_compile"
8342 case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345 esac
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_compile") 2>conftest.er1
8348 ac_status=$?
8349 grep -v '^ *+' conftest.er1 >conftest.err
8350 rm -f conftest.er1
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && {
8354 test -z "$ac_c_werror_flag" ||
8355 test ! -s conftest.err
8356 } && test -s conftest.$ac_objext; then
8357 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8358 else
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8371 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8372 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8374 cat >>confdefs.h <<_ACEOF
8375 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8376 _ACEOF
8380 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8381 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8382 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8394 #endif
8395 #if HAVE_NET_IF_H
8396 #include <net/if.h>
8397 #endif
8400 main ()
8402 static struct ifreq ac_aggr;
8403 if (ac_aggr.ifr_netmask)
8404 return 0;
8406 return 0;
8408 _ACEOF
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8411 case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_compile") 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && {
8423 test -z "$ac_c_werror_flag" ||
8424 test ! -s conftest.err
8425 } && test -s conftest.$ac_objext; then
8426 ac_cv_member_struct_ifreq_ifr_netmask=yes
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 $ac_includes_default
8438 #if HAVE_SYS_SOCKET_H
8439 #include <sys/socket.h>
8440 #endif
8441 #if HAVE_NET_IF_H
8442 #include <net/if.h>
8443 #endif
8446 main ()
8448 static struct ifreq ac_aggr;
8449 if (sizeof ac_aggr.ifr_netmask)
8450 return 0;
8452 return 0;
8454 _ACEOF
8455 rm -f conftest.$ac_objext
8456 if { (ac_try="$ac_compile"
8457 case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_compile") 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest.$ac_objext; then
8472 ac_cv_member_struct_ifreq_ifr_netmask=yes
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 ac_cv_member_struct_ifreq_ifr_netmask=no
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8486 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8487 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8489 cat >>confdefs.h <<_ACEOF
8490 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8491 _ACEOF
8495 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8496 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8497 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #if HAVE_SYS_SOCKET_H
8508 #include <sys/socket.h>
8509 #endif
8510 #if HAVE_NET_IF_H
8511 #include <net/if.h>
8512 #endif
8515 main ()
8517 static struct ifreq ac_aggr;
8518 if (ac_aggr.ifr_broadaddr)
8519 return 0;
8521 return 0;
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (ac_try="$ac_compile"
8526 case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8542 else
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 #if HAVE_SYS_SOCKET_H
8554 #include <sys/socket.h>
8555 #endif
8556 #if HAVE_NET_IF_H
8557 #include <net/if.h>
8558 #endif
8561 main ()
8563 static struct ifreq ac_aggr;
8564 if (sizeof ac_aggr.ifr_broadaddr)
8565 return 0;
8567 return 0;
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_compile") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest.$ac_objext; then
8587 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8592 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8601 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8602 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8606 _ACEOF
8610 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8611 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8612 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 #if HAVE_SYS_SOCKET_H
8623 #include <sys/socket.h>
8624 #endif
8625 #if HAVE_NET_IF_H
8626 #include <net/if.h>
8627 #endif
8630 main ()
8632 static struct ifreq ac_aggr;
8633 if (ac_aggr.ifr_addr)
8634 return 0;
8636 return 0;
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8641 case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8656 ac_cv_member_struct_ifreq_ifr_addr=yes
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #if HAVE_SYS_SOCKET_H
8669 #include <sys/socket.h>
8670 #endif
8671 #if HAVE_NET_IF_H
8672 #include <net/if.h>
8673 #endif
8676 main ()
8678 static struct ifreq ac_aggr;
8679 if (sizeof ac_aggr.ifr_addr)
8680 return 0;
8682 return 0;
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (ac_try="$ac_compile"
8687 case "(($ac_try" in
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8690 esac
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692 (eval "$ac_compile") 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && {
8699 test -z "$ac_c_werror_flag" ||
8700 test ! -s conftest.err
8701 } && test -s conftest.$ac_objext; then
8702 ac_cv_member_struct_ifreq_ifr_addr=yes
8703 else
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_member_struct_ifreq_ifr_addr=no
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8716 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8717 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8721 _ACEOF
8728 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8729 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8730 if test "$ac_cv_prog_cc_c89" != no; then
8731 { echo "$as_me:$LINENO: result: yes" >&5
8732 echo "${ECHO_T}yes" >&6; }
8734 cat >>confdefs.h <<\_ACEOF
8735 #define PROTOTYPES 1
8736 _ACEOF
8739 cat >>confdefs.h <<\_ACEOF
8740 #define __PROTOTYPES 1
8741 _ACEOF
8743 else
8744 { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8748 { echo "$as_me:$LINENO: checking for working volatile" >&5
8749 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8750 if test "${ac_cv_c_volatile+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8761 main ()
8764 volatile int x;
8765 int * volatile y = (int *) 0;
8766 return !x && !y;
8768 return 0;
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8773 case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_compile") 2>conftest.er1
8779 ac_status=$?
8780 grep -v '^ *+' conftest.er1 >conftest.err
8781 rm -f conftest.er1
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } && {
8785 test -z "$ac_c_werror_flag" ||
8786 test ! -s conftest.err
8787 } && test -s conftest.$ac_objext; then
8788 ac_cv_c_volatile=yes
8789 else
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ac_cv_c_volatile=no
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8799 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8800 if test $ac_cv_c_volatile = no; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define volatile
8804 _ACEOF
8808 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8809 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8810 if test "${ac_cv_c_const+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8821 main ()
8823 /* FIXME: Include the comments suggested by Paul. */
8824 #ifndef __cplusplus
8825 /* Ultrix mips cc rejects this. */
8826 typedef int charset[2];
8827 const charset cs;
8828 /* SunOS 4.1.1 cc rejects this. */
8829 char const *const *pcpcc;
8830 char **ppc;
8831 /* NEC SVR4.0.2 mips cc rejects this. */
8832 struct point {int x, y;};
8833 static struct point const zero = {0,0};
8834 /* AIX XL C 1.02.0.0 rejects this.
8835 It does not let you subtract one const X* pointer from another in
8836 an arm of an if-expression whose if-part is not a constant
8837 expression */
8838 const char *g = "string";
8839 pcpcc = &g + (g ? g-g : 0);
8840 /* HPUX 7.0 cc rejects these. */
8841 ++pcpcc;
8842 ppc = (char**) pcpcc;
8843 pcpcc = (char const *const *) ppc;
8844 { /* SCO 3.2v4 cc rejects this. */
8845 char *t;
8846 char const *s = 0 ? (char *) 0 : (char const *) 0;
8848 *t++ = 0;
8849 if (s) return 0;
8851 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8852 int x[] = {25, 17};
8853 const int *foo = &x[0];
8854 ++foo;
8856 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8857 typedef const int *iptr;
8858 iptr p = 0;
8859 ++p;
8861 { /* AIX XL C 1.02.0.0 rejects this saying
8862 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8863 struct s { int j; const int *ap[3]; };
8864 struct s *b; b->j = 5;
8866 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8867 const int foo = 10;
8868 if (!foo) return 0;
8870 return !cs[0] && !zero.x;
8871 #endif
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 ac_cv_c_const=yes
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 ac_cv_c_const=no
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8905 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8906 if test $ac_cv_c_const = no; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define const
8910 _ACEOF
8914 { echo "$as_me:$LINENO: checking for void * support" >&5
8915 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8916 if test "${emacs_cv_void_star+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919 cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h. */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8927 main ()
8929 void * foo;
8931 return 0;
8933 _ACEOF
8934 rm -f conftest.$ac_objext
8935 if { (ac_try="$ac_compile"
8936 case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.$ac_objext; then
8951 emacs_cv_void_star=yes
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 emacs_cv_void_star=no
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8962 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8963 if test $emacs_cv_void_star = yes; then
8964 cat >>confdefs.h <<\_ACEOF
8965 #define POINTER_TYPE void
8966 _ACEOF
8968 else
8969 cat >>confdefs.h <<\_ACEOF
8970 #define POINTER_TYPE char
8971 _ACEOF
8979 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8980 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8981 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8982 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985 cat >conftest.make <<\_ACEOF
8986 SHELL = /bin/sh
8987 all:
8988 @echo '@@@%%%=$(MAKE)=@@@%%%'
8989 _ACEOF
8990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8991 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8992 *@@@%%%=?*=@@@%%%*)
8993 eval ac_cv_prog_make_${ac_make}_set=yes;;
8995 eval ac_cv_prog_make_${ac_make}_set=no;;
8996 esac
8997 rm -f conftest.make
8999 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9000 { echo "$as_me:$LINENO: result: yes" >&5
9001 echo "${ECHO_T}yes" >&6; }
9002 SET_MAKE=
9003 else
9004 { echo "$as_me:$LINENO: result: no" >&5
9005 echo "${ECHO_T}no" >&6; }
9006 SET_MAKE="MAKE=${MAKE-make}"
9010 { echo "$as_me:$LINENO: checking for long file names" >&5
9011 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9012 if test "${ac_cv_sys_long_file_names+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 ac_cv_sys_long_file_names=yes
9016 # Test for long file names in all the places we know might matter:
9017 # . the current directory, where building will happen
9018 # $prefix/lib where we will be installing things
9019 # $exec_prefix/lib likewise
9020 # $TMPDIR if set, where it might want to write temporary files
9021 # /tmp where it might want to write temporary files
9022 # /var/tmp likewise
9023 # /usr/tmp likewise
9024 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9025 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9026 # in the usual case where exec_prefix is '${prefix}'.
9027 case $ac_dir in #(
9028 . | /* | ?:[\\/]*) ;; #(
9029 *) continue;;
9030 esac
9031 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9032 ac_xdir=$ac_dir/cf$$
9033 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9034 ac_tf1=$ac_xdir/conftest9012345
9035 ac_tf2=$ac_xdir/conftest9012346
9036 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9037 ac_cv_sys_long_file_names=no
9038 rm -f -r "$ac_xdir" 2>/dev/null
9039 test $ac_cv_sys_long_file_names = no && break
9040 done
9042 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9043 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9044 if test $ac_cv_sys_long_file_names = yes; then
9046 cat >>confdefs.h <<\_ACEOF
9047 #define HAVE_LONG_FILE_NAMES 1
9048 _ACEOF
9053 #### Choose a window system.
9055 { echo "$as_me:$LINENO: checking for X" >&5
9056 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9059 # Check whether --with-x was given.
9060 if test "${with_x+set}" = set; then
9061 withval=$with_x;
9064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9065 if test "x$with_x" = xno; then
9066 # The user explicitly disabled X.
9067 have_x=disabled
9068 else
9069 case $x_includes,$x_libraries in #(
9070 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9071 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9072 { (exit 1); exit 1; }; };; #(
9073 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
9076 # One or both of the vars are not set, and there is no cached value.
9077 ac_x_includes=no ac_x_libraries=no
9078 rm -f -r conftest.dir
9079 if mkdir conftest.dir; then
9080 cd conftest.dir
9081 cat >Imakefile <<'_ACEOF'
9082 incroot:
9083 @echo incroot='${INCROOT}'
9084 usrlibdir:
9085 @echo usrlibdir='${USRLIBDIR}'
9086 libdir:
9087 @echo libdir='${LIBDIR}'
9088 _ACEOF
9089 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9091 for ac_var in incroot usrlibdir libdir; do
9092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9093 done
9094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9095 for ac_extension in a so sl; do
9096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9098 ac_im_usrlibdir=$ac_im_libdir; break
9100 done
9101 # Screen out bogus values from the imake configuration. They are
9102 # bogus both because they are the default anyway, and because
9103 # using them would break gcc on systems where it needs fixed includes.
9104 case $ac_im_incroot in
9105 /usr/include) ac_x_includes= ;;
9106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9107 esac
9108 case $ac_im_usrlibdir in
9109 /usr/lib | /lib) ;;
9110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9111 esac
9113 cd ..
9114 rm -f -r conftest.dir
9117 # Standard set of common directories for X headers.
9118 # Check X11 before X11Rn because it is often a symlink to the current release.
9119 ac_x_header_dirs='
9120 /usr/X11/include
9121 /usr/X11R6/include
9122 /usr/X11R5/include
9123 /usr/X11R4/include
9125 /usr/include/X11
9126 /usr/include/X11R6
9127 /usr/include/X11R5
9128 /usr/include/X11R4
9130 /usr/local/X11/include
9131 /usr/local/X11R6/include
9132 /usr/local/X11R5/include
9133 /usr/local/X11R4/include
9135 /usr/local/include/X11
9136 /usr/local/include/X11R6
9137 /usr/local/include/X11R5
9138 /usr/local/include/X11R4
9140 /usr/X386/include
9141 /usr/x386/include
9142 /usr/XFree86/include/X11
9144 /usr/include
9145 /usr/local/include
9146 /usr/unsupported/include
9147 /usr/athena/include
9148 /usr/local/x11r5/include
9149 /usr/lpp/Xamples/include
9151 /usr/openwin/include
9152 /usr/openwin/share/include'
9154 if test "$ac_x_includes" = no; then
9155 # Guess where to find include files, by looking for Xlib.h.
9156 # First, try using that file with no special directory specified.
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #include <X11/Xlib.h>
9164 _ACEOF
9165 if { (ac_try="$ac_cpp conftest.$ac_ext"
9166 case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169 esac
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } >/dev/null && {
9178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9179 test ! -s conftest.err
9180 }; then
9181 # We can compile using X headers with no special include directory.
9182 ac_x_includes=
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 for ac_dir in $ac_x_header_dirs; do
9188 if test -r "$ac_dir/X11/Xlib.h"; then
9189 ac_x_includes=$ac_dir
9190 break
9192 done
9195 rm -f conftest.err conftest.$ac_ext
9196 fi # $ac_x_includes = no
9198 if test "$ac_x_libraries" = no; then
9199 # Check for the libraries.
9200 # See if we find them without any special options.
9201 # Don't add to $LIBS permanently.
9202 ac_save_LIBS=$LIBS
9203 LIBS="-lX11 $LIBS"
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 #include <X11/Xlib.h>
9212 main ()
9214 XrmInitialize ()
9216 return 0;
9218 _ACEOF
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (ac_try="$ac_link"
9221 case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_link") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest$ac_exeext &&
9236 $as_test_x conftest$ac_exeext; then
9237 LIBS=$ac_save_LIBS
9238 # We can link X programs with no special library path.
9239 ac_x_libraries=
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 LIBS=$ac_save_LIBS
9245 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9247 # Don't even attempt the hair of trying to link an X program!
9248 for ac_extension in a so sl; do
9249 if test -r "$ac_dir/libX11.$ac_extension"; then
9250 ac_x_libraries=$ac_dir
9251 break 2
9253 done
9254 done
9257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9258 conftest$ac_exeext conftest.$ac_ext
9259 fi # $ac_x_libraries = no
9261 case $ac_x_includes,$ac_x_libraries in #(
9262 no,* | *,no | *\'*)
9263 # Didn't find X, or a directory has "'" in its name.
9264 ac_cv_have_x="have_x=no";; #(
9266 # Record where we found X for the cache.
9267 ac_cv_have_x="have_x=yes\
9268 ac_x_includes='$ac_x_includes'\
9269 ac_x_libraries='$ac_x_libraries'"
9270 esac
9272 ;; #(
9273 *) have_x=yes;;
9274 esac
9275 eval "$ac_cv_have_x"
9276 fi # $with_x != no
9278 if test "$have_x" != yes; then
9279 { echo "$as_me:$LINENO: result: $have_x" >&5
9280 echo "${ECHO_T}$have_x" >&6; }
9281 no_x=yes
9282 else
9283 # If each of the values was on the command line, it overrides each guess.
9284 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9285 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9286 # Update the cache value to reflect the command line values.
9287 ac_cv_have_x="have_x=yes\
9288 ac_x_includes='$x_includes'\
9289 ac_x_libraries='$x_libraries'"
9290 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9291 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9294 if test "$no_x" = yes; then
9295 window_system=none
9296 else
9297 window_system=x11
9300 if test "${x_libraries}" != NONE; then
9301 if test -n "${x_libraries}"; then
9302 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9303 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9305 x_default_search_path=""
9306 x_search_path=${x_libraries}
9307 if test -z "${x_search_path}"; then
9308 x_search_path=/usr/lib
9310 for x_library in `echo ${x_search_path}: | \
9311 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9312 x_search_path="\
9313 ${x_library}/X11/%L/%T/%N%C%S:\
9314 ${x_library}/X11/%l/%T/%N%C%S:\
9315 ${x_library}/X11/%T/%N%C%S:\
9316 ${x_library}/X11/%L/%T/%N%S:\
9317 ${x_library}/X11/%l/%T/%N%S:\
9318 ${x_library}/X11/%T/%N%S"
9319 if test x"${x_default_search_path}" = x; then
9320 x_default_search_path=${x_search_path}
9321 else
9322 x_default_search_path="${x_search_path}:${x_default_search_path}"
9324 done
9326 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9327 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9330 if test x"${x_includes}" = x; then
9331 bitmapdir=/usr/include/X11/bitmaps
9332 else
9333 # accumulate include directories that have X11 bitmap subdirectories
9334 bmd_acc="dummyval"
9335 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9336 if test -d "${bmd}/X11/bitmaps"; then
9337 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9339 if test -d "${bmd}/bitmaps"; then
9340 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9342 done
9343 if test ${bmd_acc} != "dummyval"; then
9344 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9348 HAVE_CARBON=no
9349 if test "${with_carbon}" != no; then
9350 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9351 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9352 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9353 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9357 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9358 else
9359 # Is the header compilable?
9360 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9361 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9369 #include <Carbon/Carbon.h>
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (ac_try="$ac_compile"
9373 case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
9388 ac_header_compiler=yes
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_header_compiler=no
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9398 echo "${ECHO_T}$ac_header_compiler" >&6; }
9400 # Is the header present?
9401 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9402 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 #include <Carbon/Carbon.h>
9410 _ACEOF
9411 if { (ac_try="$ac_cpp conftest.$ac_ext"
9412 case "(($ac_try" in
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9415 esac
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev/null && {
9424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9425 test ! -s conftest.err
9426 }; then
9427 ac_header_preproc=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_header_preproc=no
9435 rm -f conftest.err conftest.$ac_ext
9436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9437 echo "${ECHO_T}$ac_header_preproc" >&6; }
9439 # So? What about this header?
9440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9441 yes:no: )
9442 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9443 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9446 ac_header_preproc=yes
9448 no:yes:* )
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9460 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9463 esac
9464 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9465 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9466 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9471 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9472 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9475 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9476 HAVE_CARBON=yes
9481 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9482 if test "${with_carbon+set}" != set \
9483 && test "${carbon_appdir_x+set}" != set; then
9484 for var in with_x with_x_toolkit with_gtk with_xim \
9485 with_xpm with_jpeg with_tiff with_gif with_png; do
9486 if eval test \"\${$var+set}\" = set; then
9487 HAVE_CARBON=no
9488 break
9490 done
9493 if test "${HAVE_CARBON}" = yes; then
9494 window_system=mac
9497 case "${window_system}" in
9498 x11 )
9499 HAVE_X_WINDOWS=yes
9500 HAVE_X11=yes
9501 case "${with_x_toolkit}" in
9502 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9503 motif ) USE_X_TOOLKIT=MOTIF ;;
9504 gtk ) with_gtk=yes
9505 USE_X_TOOLKIT=none ;;
9506 no ) USE_X_TOOLKIT=none ;;
9507 * ) USE_X_TOOLKIT=maybe ;;
9508 esac
9510 mac | none )
9511 HAVE_X_WINDOWS=no
9512 HAVE_X11=no
9513 USE_X_TOOLKIT=none
9515 esac
9517 ### If we're using X11, we should use the X menu package.
9518 HAVE_MENUS=no
9519 case ${HAVE_X11} in
9520 yes ) HAVE_MENUS=yes ;;
9521 esac
9523 if test "${opsys}" = "hpux9"; then
9524 case "${x_libraries}" in
9525 *X11R4* )
9526 opsysfile="s/hpux9-x11r4.h"
9528 esac
9531 if test "${opsys}" = "hpux9shr"; then
9532 case "${x_libraries}" in
9533 *X11R4* )
9534 opsysfile="s/hpux9shxr4.h"
9536 esac
9539 ### Compute the unexec source name from the object name.
9540 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9542 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9543 # Assume not, until told otherwise.
9544 GNU_MALLOC=yes
9545 doug_lea_malloc=yes
9546 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9547 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9548 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h. */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9559 #define malloc_get_state innocuous_malloc_get_state
9561 /* System header to define __stub macros and hopefully few prototypes,
9562 which can conflict with char malloc_get_state (); below.
9563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 <limits.h> exists even on freestanding compilers. */
9566 #ifdef __STDC__
9567 # include <limits.h>
9568 #else
9569 # include <assert.h>
9570 #endif
9572 #undef malloc_get_state
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9577 #ifdef __cplusplus
9578 extern "C"
9579 #endif
9580 char malloc_get_state ();
9581 /* The GNU C library defines this for functions which it implements
9582 to always fail with ENOSYS. Some functions are actually named
9583 something starting with __ and the normal name is an alias. */
9584 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9585 choke me
9586 #endif
9589 main ()
9591 return malloc_get_state ();
9593 return 0;
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9598 case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext &&
9613 $as_test_x conftest$ac_exeext; then
9614 ac_cv_func_malloc_get_state=yes
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_func_malloc_get_state=no
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9625 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9626 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9627 if test $ac_cv_func_malloc_get_state = yes; then
9629 else
9630 doug_lea_malloc=no
9633 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9634 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9635 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9646 #define malloc_set_state innocuous_malloc_set_state
9648 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char malloc_set_state (); below.
9650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9651 <limits.h> exists even on freestanding compilers. */
9653 #ifdef __STDC__
9654 # include <limits.h>
9655 #else
9656 # include <assert.h>
9657 #endif
9659 #undef malloc_set_state
9661 /* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 char malloc_set_state ();
9668 /* The GNU C library defines this for functions which it implements
9669 to always fail with ENOSYS. Some functions are actually named
9670 something starting with __ and the normal name is an alias. */
9671 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9672 choke me
9673 #endif
9676 main ()
9678 return malloc_set_state ();
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 ac_cv_func_malloc_set_state=yes
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_func_malloc_set_state=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: $ac_cv_func_malloc_set_state" >&5
9713 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9714 if test $ac_cv_func_malloc_set_state = yes; then
9716 else
9717 doug_lea_malloc=no
9720 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9721 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9722 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 extern void (* __after_morecore_hook)();
9733 main ()
9735 __after_morecore_hook = 0
9737 return 0;
9739 _ACEOF
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (ac_try="$ac_link"
9742 case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745 esac
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_link") 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && {
9754 test -z "$ac_c_werror_flag" ||
9755 test ! -s conftest.err
9756 } && test -s conftest$ac_exeext &&
9757 $as_test_x conftest$ac_exeext; then
9758 emacs_cv_var___after_morecore_hook=yes
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 emacs_cv_var___after_morecore_hook=no
9766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9767 conftest$ac_exeext conftest.$ac_ext
9769 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9770 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9771 if test $emacs_cv_var___after_morecore_hook = no; then
9772 doug_lea_malloc=no
9774 if test "${system_malloc}" = "yes"; then
9775 GNU_MALLOC=no
9776 GNU_MALLOC_reason="
9777 (The GNU allocators don't work with this system configuration.)"
9779 if test "$doug_lea_malloc" = "yes" ; then
9780 if test "$GNU_MALLOC" = yes ; then
9781 GNU_MALLOC_reason="
9782 (Using Doug Lea's new malloc from the GNU C Library.)"
9785 cat >>confdefs.h <<\_ACEOF
9786 #define DOUG_LEA_MALLOC 1
9787 _ACEOF
9791 if test x"${REL_ALLOC}" = x; then
9792 REL_ALLOC=${GNU_MALLOC}
9798 for ac_header in stdlib.h unistd.h
9800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 ac_res=`eval echo '${'$as_ac_Header'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9810 else
9811 # Is the header compilable?
9812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 #include <$ac_header>
9822 _ACEOF
9823 rm -f conftest.$ac_objext
9824 if { (ac_try="$ac_compile"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_compile") 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest.$ac_objext; then
9840 ac_header_compiler=yes
9841 else
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_header_compiler=no
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9850 echo "${ECHO_T}$ac_header_compiler" >&6; }
9852 # Is the header present?
9853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 #include <$ac_header>
9862 _ACEOF
9863 if { (ac_try="$ac_cpp conftest.$ac_ext"
9864 case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } >/dev/null && {
9876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9878 }; then
9879 ac_header_preproc=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_header_preproc=no
9887 rm -f conftest.err conftest.$ac_ext
9888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9889 echo "${ECHO_T}$ac_header_preproc" >&6; }
9891 # So? What about this header?
9892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9893 yes:no: )
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9898 ac_header_preproc=yes
9900 no:yes:* )
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9915 esac
9916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 eval "$as_ac_Header=\$ac_header_preproc"
9923 ac_res=`eval echo '${'$as_ac_Header'}'`
9924 { echo "$as_me:$LINENO: result: $ac_res" >&5
9925 echo "${ECHO_T}$ac_res" >&6; }
9928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9929 cat >>confdefs.h <<_ACEOF
9930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9931 _ACEOF
9935 done
9938 for ac_func in getpagesize
9940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9954 #define $ac_func innocuous_$ac_func
9956 /* System header to define __stub macros and hopefully few prototypes,
9957 which can conflict with char $ac_func (); below.
9958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9959 <limits.h> exists even on freestanding compilers. */
9961 #ifdef __STDC__
9962 # include <limits.h>
9963 #else
9964 # include <assert.h>
9965 #endif
9967 #undef $ac_func
9969 /* Override any GCC internal prototype to avoid an error.
9970 Use char because int might match the return type of a GCC
9971 builtin and then its argument prototype would still apply. */
9972 #ifdef __cplusplus
9973 extern "C"
9974 #endif
9975 char $ac_func ();
9976 /* The GNU C library defines this for functions which it implements
9977 to always fail with ENOSYS. Some functions are actually named
9978 something starting with __ and the normal name is an alias. */
9979 #if defined __stub_$ac_func || defined __stub___$ac_func
9980 choke me
9981 #endif
9984 main ()
9986 return $ac_func ();
9988 return 0;
9990 _ACEOF
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (ac_try="$ac_link"
9993 case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_link") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest$ac_exeext &&
10008 $as_test_x conftest$ac_exeext; then
10009 eval "$as_ac_var=yes"
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 eval "$as_ac_var=no"
10017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10018 conftest$ac_exeext conftest.$ac_ext
10020 ac_res=`eval echo '${'$as_ac_var'}'`
10021 { echo "$as_me:$LINENO: result: $ac_res" >&5
10022 echo "${ECHO_T}$ac_res" >&6; }
10023 if test `eval echo '${'$as_ac_var'}'` = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10026 _ACEOF
10029 done
10031 { echo "$as_me:$LINENO: checking for working mmap" >&5
10032 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10033 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036 if test "$cross_compiling" = yes; then
10037 ac_cv_func_mmap_fixed_mapped=no
10038 else
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 $ac_includes_default
10046 /* malloc might have been renamed as rpl_malloc. */
10047 #undef malloc
10049 /* Thanks to Mike Haertel and Jim Avera for this test.
10050 Here is a matrix of mmap possibilities:
10051 mmap private not fixed
10052 mmap private fixed at somewhere currently unmapped
10053 mmap private fixed at somewhere already mapped
10054 mmap shared not fixed
10055 mmap shared fixed at somewhere currently unmapped
10056 mmap shared fixed at somewhere already mapped
10057 For private mappings, we should verify that changes cannot be read()
10058 back from the file, nor mmap's back from the file at a different
10059 address. (There have been systems where private was not correctly
10060 implemented like the infamous i386 svr4.0, and systems where the
10061 VM page cache was not coherent with the file system buffer cache
10062 like early versions of FreeBSD and possibly contemporary NetBSD.)
10063 For shared mappings, we should conversely verify that changes get
10064 propagated back to all the places they're supposed to be.
10066 Grep wants private fixed already mapped.
10067 The main things grep needs to know about mmap are:
10068 * does it exist and is it safe to write into the mmap'd area
10069 * how to use it (BSD variants) */
10071 #include <fcntl.h>
10072 #include <sys/mman.h>
10074 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10075 char *malloc ();
10076 #endif
10078 /* This mess was copied from the GNU getpagesize.h. */
10079 #ifndef HAVE_GETPAGESIZE
10080 /* Assume that all systems that can run configure have sys/param.h. */
10081 # ifndef HAVE_SYS_PARAM_H
10082 # define HAVE_SYS_PARAM_H 1
10083 # endif
10085 # ifdef _SC_PAGESIZE
10086 # define getpagesize() sysconf(_SC_PAGESIZE)
10087 # else /* no _SC_PAGESIZE */
10088 # ifdef HAVE_SYS_PARAM_H
10089 # include <sys/param.h>
10090 # ifdef EXEC_PAGESIZE
10091 # define getpagesize() EXEC_PAGESIZE
10092 # else /* no EXEC_PAGESIZE */
10093 # ifdef NBPG
10094 # define getpagesize() NBPG * CLSIZE
10095 # ifndef CLSIZE
10096 # define CLSIZE 1
10097 # endif /* no CLSIZE */
10098 # else /* no NBPG */
10099 # ifdef NBPC
10100 # define getpagesize() NBPC
10101 # else /* no NBPC */
10102 # ifdef PAGESIZE
10103 # define getpagesize() PAGESIZE
10104 # endif /* PAGESIZE */
10105 # endif /* no NBPC */
10106 # endif /* no NBPG */
10107 # endif /* no EXEC_PAGESIZE */
10108 # else /* no HAVE_SYS_PARAM_H */
10109 # define getpagesize() 8192 /* punt totally */
10110 # endif /* no HAVE_SYS_PARAM_H */
10111 # endif /* no _SC_PAGESIZE */
10113 #endif /* no HAVE_GETPAGESIZE */
10116 main ()
10118 char *data, *data2, *data3;
10119 int i, pagesize;
10120 int fd;
10122 pagesize = getpagesize ();
10124 /* First, make a file with some known garbage in it. */
10125 data = (char *) malloc (pagesize);
10126 if (!data)
10127 return 1;
10128 for (i = 0; i < pagesize; ++i)
10129 *(data + i) = rand ();
10130 umask (0);
10131 fd = creat ("conftest.mmap", 0600);
10132 if (fd < 0)
10133 return 1;
10134 if (write (fd, data, pagesize) != pagesize)
10135 return 1;
10136 close (fd);
10138 /* Next, try to mmap the file at a fixed address which already has
10139 something else allocated at it. If we can, also make sure that
10140 we see the same garbage. */
10141 fd = open ("conftest.mmap", O_RDWR);
10142 if (fd < 0)
10143 return 1;
10144 data2 = (char *) malloc (2 * pagesize);
10145 if (!data2)
10146 return 1;
10147 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10150 return 1;
10151 for (i = 0; i < pagesize; ++i)
10152 if (*(data + i) != *(data2 + i))
10153 return 1;
10155 /* Finally, make sure that changes to the mapped area do not
10156 percolate back to the file as seen by read(). (This is a bug on
10157 some variants of i386 svr4.0.) */
10158 for (i = 0; i < pagesize; ++i)
10159 *(data2 + i) = *(data2 + i) + 1;
10160 data3 = (char *) malloc (pagesize);
10161 if (!data3)
10162 return 1;
10163 if (read (fd, data3, pagesize) != pagesize)
10164 return 1;
10165 for (i = 0; i < pagesize; ++i)
10166 if (*(data + i) != *(data3 + i))
10167 return 1;
10168 close (fd);
10169 return 0;
10171 _ACEOF
10172 rm -f conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10183 { (case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_try") 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_func_mmap_fixed_mapped=yes
10193 else
10194 echo "$as_me: program exited with status $ac_status" >&5
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ( exit $ac_status )
10199 ac_cv_func_mmap_fixed_mapped=no
10201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10206 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10207 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10208 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_MMAP 1
10212 _ACEOF
10215 rm -f conftest.mmap
10217 if test $use_mmap_for_buffers = yes; then
10218 REL_ALLOC=no
10221 LIBS="$libsrc_libs $LIBS"
10224 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10225 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10226 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229 ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-ldnet $LIBS"
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 char dnet_ntoa ();
10246 main ()
10248 return dnet_ntoa ();
10250 return 0;
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
10271 ac_cv_lib_dnet_dnet_ntoa=yes
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_cv_lib_dnet_dnet_ntoa=no
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10283 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10284 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10285 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10286 cat >>confdefs.h <<_ACEOF
10287 #define HAVE_LIBDNET 1
10288 _ACEOF
10290 LIBS="-ldnet $LIBS"
10295 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10296 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10297 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-lXbsd $LIBS"
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h. */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10311 main ()
10313 return main ();
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_link") 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext &&
10335 $as_test_x conftest$ac_exeext; then
10336 ac_cv_lib_Xbsd_main=yes
10337 else
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_cv_lib_Xbsd_main=no
10344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10349 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10350 if test $ac_cv_lib_Xbsd_main = yes; then
10351 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10356 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10357 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10358 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361 ac_check_lib_save_LIBS=$LIBS
10362 LIBS="-lpthreads $LIBS"
10363 cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h. */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10370 /* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 char cma_open ();
10378 main ()
10380 return cma_open ();
10382 return 0;
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext &&
10402 $as_test_x conftest$ac_exeext; then
10403 ac_cv_lib_pthreads_cma_open=yes
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_cv_lib_pthreads_cma_open=no
10411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LIBS=$ac_check_lib_save_LIBS
10415 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10416 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10417 if test $ac_cv_lib_pthreads_cma_open = yes; then
10418 cat >>confdefs.h <<_ACEOF
10419 #define HAVE_LIBPTHREADS 1
10420 _ACEOF
10422 LIBS="-lpthreads $LIBS"
10427 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10428 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10429 if test -d /usr/X386/include; then
10430 HAVE_XFREE386=yes
10431 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10432 else
10433 HAVE_XFREE386=no
10435 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10436 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10439 case ${host_os} in
10440 aix*)
10441 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10442 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10443 if test "${gdb_cv_bigtoc+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10447 case $GCC in
10448 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10449 *) gdb_cv_bigtoc=-bbigtoc ;;
10450 esac
10452 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10461 main ()
10463 int i;
10465 return 0;
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest$ac_exeext &&
10485 $as_test_x conftest$ac_exeext; then
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 gdb_cv_bigtoc=
10494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10495 conftest$ac_exeext conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10499 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10501 esac
10503 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10504 # used for the tests that follow. We set them back to REAL_CFLAGS and
10505 # REAL_CPPFLAGS later on.
10507 REAL_CPPFLAGS="$CPPFLAGS"
10509 if test "${HAVE_X11}" = "yes"; then
10510 DEFS="$C_SWITCH_X_SITE $DEFS"
10511 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10512 LIBS="$LIBX $LIBS"
10513 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10514 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10516 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10517 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10518 # but it's more convenient here to set LD_RUN_PATH
10519 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10520 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10521 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10522 export LD_RUN_PATH
10525 if test "${opsys}" = "gnu-linux"; then
10526 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10527 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10536 main ()
10538 XOpenDisplay ("foo");
10540 return 0;
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (ac_try="$ac_link"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest$ac_exeext &&
10560 $as_test_x conftest$ac_exeext; then
10561 xlinux_first_failure=no
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 xlinux_first_failure=yes
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10571 if test "${xlinux_first_failure}" = "yes"; then
10572 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10573 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10574 OLD_CPPFLAGS="$CPPFLAGS"
10575 OLD_LIBS="$LIBS"
10576 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10577 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10578 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10579 LIBS="$LIBS -b i486-linuxaout"
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10588 main ()
10590 XOpenDisplay ("foo");
10592 return 0;
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (ac_try="$ac_link"
10597 case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600 esac
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_link") 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest$ac_exeext &&
10612 $as_test_x conftest$ac_exeext; then
10613 xlinux_second_failure=no
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 xlinux_second_failure=yes
10621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10622 conftest$ac_exeext conftest.$ac_ext
10623 if test "${xlinux_second_failure}" = "yes"; then
10624 # If we get the same failure with -b, there is no use adding -b.
10625 # So take it out. This plays safe.
10626 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10627 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10628 CPPFLAGS="$OLD_CPPFLAGS"
10629 LIBS="$OLD_LIBS"
10630 { echo "$as_me:$LINENO: result: no" >&5
10631 echo "${ECHO_T}no" >&6; }
10632 else
10633 { echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6; }
10636 else
10637 { echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6; }
10642 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10643 # header files included from there.
10644 { echo "$as_me:$LINENO: checking for Xkb" >&5
10645 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 #include <X11/Xlib.h>
10653 #include <X11/XKBlib.h>
10655 main ()
10657 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10659 return 0;
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_link") 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest$ac_exeext &&
10679 $as_test_x conftest$ac_exeext; then
10680 emacs_xkb=yes
10681 else
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 emacs_xkb=no
10688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10689 conftest$ac_exeext conftest.$ac_ext
10690 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10691 echo "${ECHO_T}$emacs_xkb" >&6; }
10692 if test $emacs_xkb = yes; then
10694 cat >>confdefs.h <<\_ACEOF
10695 #define HAVE_XKBGETKEYBOARD 1
10696 _ACEOF
10704 for ac_func in XrmSetDatabase XScreenResourceString \
10705 XScreenNumberOfScreen XSetWMProtocols
10707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10721 #define $ac_func innocuous_$ac_func
10723 /* System header to define __stub macros and hopefully few prototypes,
10724 which can conflict with char $ac_func (); below.
10725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726 <limits.h> exists even on freestanding compilers. */
10728 #ifdef __STDC__
10729 # include <limits.h>
10730 #else
10731 # include <assert.h>
10732 #endif
10734 #undef $ac_func
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char $ac_func ();
10743 /* The GNU C library defines this for functions which it implements
10744 to always fail with ENOSYS. Some functions are actually named
10745 something starting with __ and the normal name is an alias. */
10746 #if defined __stub_$ac_func || defined __stub___$ac_func
10747 choke me
10748 #endif
10751 main ()
10753 return $ac_func ();
10755 return 0;
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext &&
10775 $as_test_x conftest$ac_exeext; then
10776 eval "$as_ac_var=yes"
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 eval "$as_ac_var=no"
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10787 ac_res=`eval echo '${'$as_ac_var'}'`
10788 { echo "$as_me:$LINENO: result: $ac_res" >&5
10789 echo "${ECHO_T}$ac_res" >&6; }
10790 if test `eval echo '${'$as_ac_var'}'` = yes; then
10791 cat >>confdefs.h <<_ACEOF
10792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10793 _ACEOF
10796 done
10800 if test "${window_system}" = "x11"; then
10801 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10802 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10803 if test "${emacs_cv_x11_version_6+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h. */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 #include <X11/Xlib.h>
10814 main ()
10816 #if XlibSpecificationRelease < 6
10817 fail;
10818 #endif
10821 return 0;
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 emacs_cv_x11_version_6=yes
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 emacs_cv_x11_version_6=no
10850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10854 if test $emacs_cv_x11_version_6 = yes; then
10855 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10856 echo "${ECHO_T}6 or newer" >&6; }
10858 cat >>confdefs.h <<\_ACEOF
10859 #define HAVE_X11R6 1
10860 _ACEOF
10862 else
10863 { echo "$as_me:$LINENO: result: before 6" >&5
10864 echo "${ECHO_T}before 6" >&6; }
10868 if test "${window_system}" = "x11"; then
10869 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10870 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10871 if test "${emacs_cv_x11_version_5+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h. */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <X11/Xlib.h>
10882 main ()
10884 #if XlibSpecificationRelease < 5
10885 fail;
10886 #endif
10889 return 0;
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (ac_try="$ac_link"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_link") 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_c_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest$ac_exeext &&
10909 $as_test_x conftest$ac_exeext; then
10910 emacs_cv_x11_version_5=yes
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 emacs_cv_x11_version_5=no
10918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10919 conftest$ac_exeext conftest.$ac_ext
10922 if test $emacs_cv_x11_version_5 = yes; then
10923 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10924 echo "${ECHO_T}5 or newer" >&6; }
10925 HAVE_X11R5=yes
10927 cat >>confdefs.h <<\_ACEOF
10928 #define HAVE_X11R5 1
10929 _ACEOF
10931 else
10932 HAVE_X11R5=no
10933 { echo "$as_me:$LINENO: result: before 5" >&5
10934 echo "${ECHO_T}before 5" >&6; }
10938 HAVE_GTK=no
10939 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10940 USE_X_TOOLKIT=none
10942 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10943 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10944 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10945 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10946 { (exit 1); exit 1; }; };
10948 GLIB_REQUIRED=2.4
10949 GTK_REQUIRED=2.4
10950 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10952 if test "X${with_pkg_config_prog}" != X; then
10953 PKG_CONFIG="${with_pkg_config_prog}"
10956 succeeded=no
10958 if test -z "$PKG_CONFIG"; then
10959 # Extract the first word of "pkg-config", so it can be a program name with args.
10960 set dummy pkg-config; ac_word=$2
10961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966 case $PKG_CONFIG in
10967 [\\/]* | ?:[\\/]*)
10968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10982 done
10983 done
10984 IFS=$as_save_IFS
10986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10988 esac
10990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10991 if test -n "$PKG_CONFIG"; then
10992 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10993 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10994 else
10995 { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
11002 if test "$PKG_CONFIG" = "no" ; then
11003 { { echo "$as_me:$LINENO: error:
11004 *** 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
11005 echo "$as_me: error:
11006 *** 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;}
11007 { (exit 1); exit 1; }; }
11008 else
11009 PKG_CONFIG_MIN_VERSION=0.9.0
11010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11011 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11012 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11014 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11015 { echo "$as_me:$LINENO: result: yes" >&5
11016 echo "${ECHO_T}yes" >&6; }
11017 succeeded=yes
11019 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11020 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11021 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11022 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11023 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11025 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11026 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11027 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11028 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11029 echo "${ECHO_T}$GTK_LIBS" >&6; }
11030 else
11031 { echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6; }
11033 GTK_CFLAGS=""
11034 GTK_LIBS=""
11035 ## If we have a custom action on failure, don't print errors, but
11036 ## do set a variable so people can do so.
11037 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11038 echo $GTK_PKG_ERRORS
11043 else
11044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11049 if test $succeeded = yes; then
11051 else
11052 { { 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
11053 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;}
11054 { (exit 1); exit 1; }; }
11059 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11060 CFLAGS="$CFLAGS $GTK_CFLAGS"
11061 LIBS="$GTK_LIBS $LIBS"
11062 GTK_COMPILES=no
11064 for ac_func in gtk_main
11066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11080 #define $ac_func innocuous_$ac_func
11082 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char $ac_func (); below.
11084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11085 <limits.h> exists even on freestanding compilers. */
11087 #ifdef __STDC__
11088 # include <limits.h>
11089 #else
11090 # include <assert.h>
11091 #endif
11093 #undef $ac_func
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 char $ac_func ();
11102 /* The GNU C library defines this for functions which it implements
11103 to always fail with ENOSYS. Some functions are actually named
11104 something starting with __ and the normal name is an alias. */
11105 #if defined __stub_$ac_func || defined __stub___$ac_func
11106 choke me
11107 #endif
11110 main ()
11112 return $ac_func ();
11114 return 0;
11116 _ACEOF
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (ac_try="$ac_link"
11119 case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_link") 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest$ac_exeext &&
11134 $as_test_x conftest$ac_exeext; then
11135 eval "$as_ac_var=yes"
11136 else
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 eval "$as_ac_var=no"
11143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11144 conftest$ac_exeext conftest.$ac_ext
11146 ac_res=`eval echo '${'$as_ac_var'}'`
11147 { echo "$as_me:$LINENO: result: $ac_res" >&5
11148 echo "${ECHO_T}$ac_res" >&6; }
11149 if test `eval echo '${'$as_ac_var'}'` = yes; then
11150 cat >>confdefs.h <<_ACEOF
11151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11152 _ACEOF
11153 GTK_COMPILES=yes
11155 done
11157 if test "${GTK_COMPILES}" != "yes"; then
11158 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11159 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11160 { (exit 1); exit 1; }; };
11163 HAVE_GTK=yes
11165 cat >>confdefs.h <<\_ACEOF
11166 #define HAVE_GTK 1
11167 _ACEOF
11169 USE_X_TOOLKIT=none
11171 if test "$with_toolkit_scroll_bars" != no; then
11172 with_toolkit_scroll_bars=yes
11175 HAVE_GTK_MULTIDISPLAY=no
11177 for ac_func in gdk_display_open
11179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h. */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11193 #define $ac_func innocuous_$ac_func
11195 /* System header to define __stub macros and hopefully few prototypes,
11196 which can conflict with char $ac_func (); below.
11197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11198 <limits.h> exists even on freestanding compilers. */
11200 #ifdef __STDC__
11201 # include <limits.h>
11202 #else
11203 # include <assert.h>
11204 #endif
11206 #undef $ac_func
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 char $ac_func ();
11215 /* The GNU C library defines this for functions which it implements
11216 to always fail with ENOSYS. Some functions are actually named
11217 something starting with __ and the normal name is an alias. */
11218 #if defined __stub_$ac_func || defined __stub___$ac_func
11219 choke me
11220 #endif
11223 main ()
11225 return $ac_func ();
11227 return 0;
11229 _ACEOF
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (ac_try="$ac_link"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_link") 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } && {
11244 test -z "$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11246 } && test -s conftest$ac_exeext &&
11247 $as_test_x conftest$ac_exeext; then
11248 eval "$as_ac_var=yes"
11249 else
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 eval "$as_ac_var=no"
11256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11257 conftest$ac_exeext conftest.$ac_ext
11259 ac_res=`eval echo '${'$as_ac_var'}'`
11260 { echo "$as_me:$LINENO: result: $ac_res" >&5
11261 echo "${ECHO_T}$ac_res" >&6; }
11262 if test `eval echo '${'$as_ac_var'}'` = yes; then
11263 cat >>confdefs.h <<_ACEOF
11264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11265 _ACEOF
11266 HAVE_GTK_MULTIDISPLAY=yes
11268 done
11270 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11272 cat >>confdefs.h <<\_ACEOF
11273 #define HAVE_GTK_MULTIDISPLAY 1
11274 _ACEOF
11277 HAVE_GTK_FILE_SELECTION=no
11279 for ac_func in gtk_file_selection_new
11281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11295 #define $ac_func innocuous_$ac_func
11297 /* System header to define __stub macros and hopefully few prototypes,
11298 which can conflict with char $ac_func (); below.
11299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11300 <limits.h> exists even on freestanding compilers. */
11302 #ifdef __STDC__
11303 # include <limits.h>
11304 #else
11305 # include <assert.h>
11306 #endif
11308 #undef $ac_func
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 char $ac_func ();
11317 /* The GNU C library defines this for functions which it implements
11318 to always fail with ENOSYS. Some functions are actually named
11319 something starting with __ and the normal name is an alias. */
11320 #if defined __stub_$ac_func || defined __stub___$ac_func
11321 choke me
11322 #endif
11325 main ()
11327 return $ac_func ();
11329 return 0;
11331 _ACEOF
11332 rm -f conftest.$ac_objext conftest$ac_exeext
11333 if { (ac_try="$ac_link"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_link") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && {
11346 test -z "$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11348 } && test -s conftest$ac_exeext &&
11349 $as_test_x conftest$ac_exeext; then
11350 eval "$as_ac_var=yes"
11351 else
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 eval "$as_ac_var=no"
11358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11359 conftest$ac_exeext conftest.$ac_ext
11361 ac_res=`eval echo '${'$as_ac_var'}'`
11362 { echo "$as_me:$LINENO: result: $ac_res" >&5
11363 echo "${ECHO_T}$ac_res" >&6; }
11364 if test `eval echo '${'$as_ac_var'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11367 _ACEOF
11368 HAVE_GTK_FILE_SELECTION=yes
11370 done
11373 HAVE_GTK_FILE_CHOOSER=no
11375 for ac_func in gtk_file_chooser_dialog_new
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11391 #define $ac_func innocuous_$ac_func
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below.
11395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11396 <limits.h> exists even on freestanding compilers. */
11398 #ifdef __STDC__
11399 # include <limits.h>
11400 #else
11401 # include <assert.h>
11402 #endif
11404 #undef $ac_func
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char $ac_func ();
11413 /* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
11416 #if defined __stub_$ac_func || defined __stub___$ac_func
11417 choke me
11418 #endif
11421 main ()
11423 return $ac_func ();
11425 return 0;
11427 _ACEOF
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (ac_try="$ac_link"
11430 case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_link") 2>conftest.er1
11436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } && {
11442 test -z "$ac_c_werror_flag" ||
11443 test ! -s conftest.err
11444 } && test -s conftest$ac_exeext &&
11445 $as_test_x conftest$ac_exeext; then
11446 eval "$as_ac_var=yes"
11447 else
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 eval "$as_ac_var=no"
11454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11455 conftest$ac_exeext conftest.$ac_ext
11457 ac_res=`eval echo '${'$as_ac_var'}'`
11458 { echo "$as_me:$LINENO: result: $ac_res" >&5
11459 echo "${ECHO_T}$ac_res" >&6; }
11460 if test `eval echo '${'$as_ac_var'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11463 _ACEOF
11464 HAVE_GTK_FILE_CHOOSER=yes
11466 done
11469 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11470 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_GTK_FILE_BOTH 1
11474 _ACEOF
11478 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11479 HAVE_GTK_AND_PTHREAD=no
11481 for ac_header in pthread.h
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493 else
11494 # Is the header compilable?
11495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 #include <$ac_header>
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest.$ac_objext; then
11523 ac_header_compiler=yes
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_header_compiler=no
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11533 echo "${ECHO_T}$ac_header_compiler" >&6; }
11535 # Is the header present?
11536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 #include <$ac_header>
11545 _ACEOF
11546 if { (ac_try="$ac_cpp conftest.$ac_ext"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } >/dev/null && {
11559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11560 test ! -s conftest.err
11561 }; then
11562 ac_header_preproc=yes
11563 else
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 ac_header_preproc=no
11570 rm -f conftest.err conftest.$ac_ext
11571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 echo "${ECHO_T}$ac_header_preproc" >&6; }
11574 # So? What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576 yes:no: )
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581 ac_header_preproc=yes
11583 no:yes:* )
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11598 esac
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604 eval "$as_ac_Header=\$ac_header_preproc"
11606 ac_res=`eval echo '${'$as_ac_Header'}'`
11607 { echo "$as_me:$LINENO: result: $ac_res" >&5
11608 echo "${ECHO_T}$ac_res" >&6; }
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11614 _ACEOF
11618 done
11620 if test "$ac_cv_header_pthread_h"; then
11621 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11622 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11623 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626 ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-lpthread $LIBS"
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char pthread_self ();
11643 main ()
11645 return pthread_self ();
11647 return 0;
11649 _ACEOF
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest$ac_exeext &&
11667 $as_test_x conftest$ac_exeext; then
11668 ac_cv_lib_pthread_pthread_self=yes
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ac_cv_lib_pthread_pthread_self=no
11676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677 conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11680 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11681 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11682 if test $ac_cv_lib_pthread_pthread_self = yes; then
11683 HAVE_GTK_AND_PTHREAD=yes
11687 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11688 GTK_LIBS="$GTK_LIBS -lpthread"
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_GTK_AND_PTHREAD 1
11692 _ACEOF
11698 ### Link with -lXft if available to work around a bug.
11699 HAVE_XFT=maybe
11700 if test "${HAVE_GTK}" = "yes"; then
11701 if test "X${with_pkg_config_prog}" != X; then
11702 PKG_CONFIG="${with_pkg_config_prog}"
11706 succeeded=no
11708 if test -z "$PKG_CONFIG"; then
11709 # Extract the first word of "pkg-config", so it can be a program name with args.
11710 set dummy pkg-config; ac_word=$2
11711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11713 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716 case $PKG_CONFIG in
11717 [\\/]* | ?:[\\/]*)
11718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11732 done
11733 done
11734 IFS=$as_save_IFS
11736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11738 esac
11740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11741 if test -n "$PKG_CONFIG"; then
11742 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11743 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11744 else
11745 { echo "$as_me:$LINENO: result: no" >&5
11746 echo "${ECHO_T}no" >&6; }
11752 if test "$PKG_CONFIG" = "no" ; then
11753 HAVE_XFT=no
11754 else
11755 PKG_CONFIG_MIN_VERSION=0.9.0
11756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11757 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11758 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11760 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11761 { echo "$as_me:$LINENO: result: yes" >&5
11762 echo "${ECHO_T}yes" >&6; }
11763 succeeded=yes
11765 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11766 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11767 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11768 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11769 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11771 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11772 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11773 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11774 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11775 echo "${ECHO_T}$XFT_LIBS" >&6; }
11776 else
11777 { echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6; }
11779 XFT_CFLAGS=""
11780 XFT_LIBS=""
11781 ## If we have a custom action on failure, don't print errors, but
11782 ## do set a variable so people can do so.
11783 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11789 else
11790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11795 if test $succeeded = yes; then
11797 else
11798 HAVE_XFT=no
11801 if test "$HAVE_XFT" != no; then
11802 OLD_CFLAGS="$CPPFLAGS"
11803 OLD_CPPFLAGS="$CFLAGS"
11804 OLD_LIBS="$LIBS"
11805 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11806 CFLAGS="$CFLAGS $XFT_CFLAGS"
11807 LIBS="$XFT_LIBS $LIBS"
11808 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11809 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11810 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11811 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11815 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11816 else
11817 # Is the header compilable?
11818 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11819 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 $ac_includes_default
11827 #include <X11/Xft/Xft.h>
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (ac_try="$ac_compile"
11831 case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_compile") 2>conftest.er1
11837 ac_status=$?
11838 grep -v '^ *+' conftest.er1 >conftest.err
11839 rm -f conftest.er1
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } && {
11843 test -z "$ac_c_werror_flag" ||
11844 test ! -s conftest.err
11845 } && test -s conftest.$ac_objext; then
11846 ac_header_compiler=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 ac_header_compiler=no
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11856 echo "${ECHO_T}$ac_header_compiler" >&6; }
11858 # Is the header present?
11859 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11860 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 #include <X11/Xft/Xft.h>
11868 _ACEOF
11869 if { (ac_try="$ac_cpp conftest.$ac_ext"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } >/dev/null && {
11882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 }; then
11885 ac_header_preproc=yes
11886 else
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_header_preproc=no
11893 rm -f conftest.err conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11895 echo "${ECHO_T}$ac_header_preproc" >&6; }
11897 # So? What about this header?
11898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11899 yes:no: )
11900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11901 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11903 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11904 ac_header_preproc=yes
11906 no:yes:* )
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11912 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11914 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11918 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11921 esac
11922 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11923 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11924 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11929 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11930 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11933 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11934 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11935 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11936 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lXft $XFT_LIBS $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 char XftFontOpen ();
11956 main ()
11958 return XftFontOpen ();
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_link") 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest$ac_exeext &&
11980 $as_test_x conftest$ac_exeext; then
11981 ac_cv_lib_Xft_XftFontOpen=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_cv_lib_Xft_XftFontOpen=no
11989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11990 conftest$ac_exeext conftest.$ac_ext
11991 LIBS=$ac_check_lib_save_LIBS
11993 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11994 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11995 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11996 HAVE_XFT=yes
12003 if test "${HAVE_XFT}" = "yes"; then
12005 cat >>confdefs.h <<\_ACEOF
12006 #define HAVE_XFT 1
12007 _ACEOF
12010 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12011 else
12012 CFLAGS="$OLD_CPPFLAGS"
12013 CFLAGS="$OLD_CFLAGS"
12014 LIBS="$OLD_LIBS"
12019 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12020 if test x"${HAVE_X11R5}" = xyes; then
12021 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12022 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12023 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12033 #include <X11/Intrinsic.h>
12034 #include <X11/Xaw/Simple.h>
12036 main ()
12040 return 0;
12042 _ACEOF
12043 rm -f conftest.$ac_objext conftest$ac_exeext
12044 if { (ac_try="$ac_link"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_link") 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest$ac_exeext &&
12060 $as_test_x conftest$ac_exeext; then
12061 emacs_cv_x11_version_5_with_xaw=yes
12062 else
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 emacs_cv_x11_version_5_with_xaw=no
12069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12070 conftest$ac_exeext conftest.$ac_ext
12073 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12074 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12075 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12076 USE_X_TOOLKIT=LUCID
12077 else
12078 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12079 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12080 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12081 { (exit 1); exit 1; }; }
12082 else
12083 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12084 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12085 USE_X_TOOLKIT=none
12088 else
12089 USE_X_TOOLKIT=none
12093 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12095 if test "${USE_X_TOOLKIT}" != "none"; then
12096 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12097 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12098 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 #include <X11/Intrinsic.h>
12109 main ()
12111 #if XtSpecificationRelease < 6
12112 fail;
12113 #endif
12116 return 0;
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest$ac_exeext &&
12136 $as_test_x conftest$ac_exeext; then
12137 emacs_cv_x11_toolkit_version_6=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 emacs_cv_x11_toolkit_version_6=no
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146 conftest$ac_exeext conftest.$ac_ext
12149 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12150 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12151 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12152 echo "${ECHO_T}6 or newer" >&6; }
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_X11XTR6 1
12156 _ACEOF
12158 else
12159 { echo "$as_me:$LINENO: result: before 6" >&5
12160 echo "${ECHO_T}before 6" >&6; }
12163 OLDLIBS="$LIBS"
12164 if test x$HAVE_X11XTR6 = xyes; then
12165 LIBS="-lXt -lSM -lICE $LIBS"
12166 else
12167 LIBS="-lXt $LIBS"
12170 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12171 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12172 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lXmu $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char XmuConvertStandardSelection ();
12192 main ()
12194 return XmuConvertStandardSelection ();
12196 return 0;
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest$ac_exeext &&
12216 $as_test_x conftest$ac_exeext; then
12217 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12218 else
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12229 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12230 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12231 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12232 cat >>confdefs.h <<_ACEOF
12233 #define HAVE_LIBXMU 1
12234 _ACEOF
12236 LIBS="-lXmu $LIBS"
12240 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12243 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12244 if test "${HAVE_X11}" = "yes"; then
12245 if test "${USE_X_TOOLKIT}" != "none"; then
12247 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12248 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12249 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lXext $LIBS"
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char XShapeQueryExtension ();
12269 main ()
12271 return XShapeQueryExtension ();
12273 return 0;
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 ac_cv_lib_Xext_XShapeQueryExtension=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_Xext_XShapeQueryExtension=no
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12307 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12308 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12309 cat >>confdefs.h <<_ACEOF
12310 #define HAVE_LIBXEXT 1
12311 _ACEOF
12313 LIBS="-lXext $LIBS"
12320 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12321 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12322 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12323 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
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. */
12332 #include <Xm/Xm.h>
12334 main ()
12336 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12337 int x = 5;
12338 #else
12339 Motif version prior to 2.1.
12340 #endif
12342 return 0;
12344 _ACEOF
12345 rm -f conftest.$ac_objext
12346 if { (ac_try="$ac_compile"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_compile") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest.$ac_objext; then
12362 emacs_cv_motif_version_2_1=yes
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 emacs_cv_motif_version_2_1=no
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12373 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12374 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12375 if test $emacs_cv_motif_version_2_1 = yes; then
12376 HAVE_LIBXP=no
12378 cat >>confdefs.h <<\_ACEOF
12379 #define HAVE_MOTIF_2_1 1
12380 _ACEOF
12382 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12383 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12384 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387 ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-lXp $LIBS"
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char XpCreateContext ();
12404 main ()
12406 return XpCreateContext ();
12408 return 0;
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (ac_try="$ac_link"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_link") 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest$ac_exeext &&
12428 $as_test_x conftest$ac_exeext; then
12429 ac_cv_lib_Xp_XpCreateContext=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_cv_lib_Xp_XpCreateContext=no
12437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12442 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12443 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12444 HAVE_LIBXP=yes
12447 if test ${HAVE_LIBXP} = yes; then
12449 cat >>confdefs.h <<\_ACEOF
12450 #define HAVE_LIBXP 1
12451 _ACEOF
12454 else
12455 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12456 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12457 if test "${emacs_cv_lesstif+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 # We put this in CFLAGS temporarily to precede other -I options
12461 # that might be in CFLAGS temporarily.
12462 # We put this in CPPFLAGS where it precedes the other -I options.
12463 OLD_CPPFLAGS=$CPPFLAGS
12464 OLD_CFLAGS=$CFLAGS
12465 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12466 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h. */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12475 main ()
12477 int x = 5;
12479 return 0;
12481 _ACEOF
12482 rm -f conftest.$ac_objext
12483 if { (ac_try="$ac_compile"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_compile") 2>conftest.er1
12490 ac_status=$?
12491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest.$ac_objext; then
12499 emacs_cv_lesstif=yes
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 emacs_cv_lesstif=no
12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12510 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12511 if test $emacs_cv_lesstif = yes; then
12512 # Make sure this -I option remains in CPPFLAGS after it is set
12513 # back to REAL_CPPFLAGS.
12514 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12515 # have those other -I options anyway. Ultimately, having this
12516 # directory ultimately in CPPFLAGS will be enough.
12517 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12518 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12519 else
12520 CFLAGS=$OLD_CFLAGS
12521 CPPFLAGS=$OLD_CPPFLAGS
12526 ### Is -lXaw3d available?
12527 HAVE_XAW3D=no
12528 if test "${HAVE_X11}" = "yes"; then
12529 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12530 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12531 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12532 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535 cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h. */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 #include <X11/Xaw3d/Scrollbar.h>
12542 _ACEOF
12543 if { (ac_try="$ac_cpp conftest.$ac_ext"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } >/dev/null && {
12556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 }; then
12559 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12560 else
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12567 rm -f conftest.err conftest.$ac_ext
12569 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12570 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12571 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12572 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12573 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12574 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577 ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-lXaw3d $LIBS"
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12589 #ifdef __cplusplus
12590 extern "C"
12591 #endif
12592 char XawScrollbarSetThumb ();
12594 main ()
12596 return XawScrollbarSetThumb ();
12598 return 0;
12600 _ACEOF
12601 rm -f conftest.$ac_objext conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_link") 2>conftest.er1
12609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && {
12615 test -z "$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12617 } && test -s conftest$ac_exeext &&
12618 $as_test_x conftest$ac_exeext; then
12619 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12620 else
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12631 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12632 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12633 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12634 HAVE_XAW3D=yes
12640 if test "${HAVE_XAW3D}" = "yes"; then
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_XAW3D 1
12644 _ACEOF
12652 USE_TOOLKIT_SCROLL_BARS=no
12653 if test "${with_toolkit_scroll_bars}" != "no"; then
12654 if test "${USE_X_TOOLKIT}" != "none"; then
12655 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define USE_TOOLKIT_SCROLL_BARS 1
12658 _ACEOF
12660 HAVE_XAW3D=no
12661 USE_TOOLKIT_SCROLL_BARS=yes
12662 elif test "${HAVE_XAW3D}" = "yes"; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define USE_TOOLKIT_SCROLL_BARS 1
12665 _ACEOF
12667 USE_TOOLKIT_SCROLL_BARS=yes
12669 elif test "${HAVE_GTK}" = "yes"; then
12670 cat >>confdefs.h <<\_ACEOF
12671 #define USE_TOOLKIT_SCROLL_BARS 1
12672 _ACEOF
12674 USE_TOOLKIT_SCROLL_BARS=yes
12675 elif test "${HAVE_CARBON}" = "yes"; then
12676 cat >>confdefs.h <<\_ACEOF
12677 #define USE_TOOLKIT_SCROLL_BARS 1
12678 _ACEOF
12680 USE_TOOLKIT_SCROLL_BARS=yes
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12691 #include <X11/Xlib.h>
12692 #include <X11/Xresource.h>
12694 main ()
12696 XIMProc callback;
12698 return 0;
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (ac_try="$ac_compile"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_compile") 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest.$ac_objext; then
12718 HAVE_XIM=yes
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_XIM 1
12722 _ACEOF
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 HAVE_XIM=no
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 if test "${with_xim}" != "no"; then
12736 cat >>confdefs.h <<\_ACEOF
12737 #define USE_XIM 1
12738 _ACEOF
12743 if test "${HAVE_XIM}" != "no"; then
12744 late_CFLAGS=$CFLAGS
12745 if test "$GCC" = yes; then
12746 CFLAGS="$CFLAGS --pedantic-errors"
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12755 #include <X11/Xlib.h>
12756 #include <X11/Xresource.h>
12758 main ()
12760 Display *display;
12761 XrmDatabase db;
12762 char *res_name;
12763 char *res_class;
12764 XIMProc callback;
12765 XPointer *client_data;
12766 #ifndef __GNUC__
12767 /* If we're not using GCC, it's probably not XFree86, and this is
12768 probably right, but we can't use something like --pedantic-errors. */
12769 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12770 char*, XIMProc, XPointer*);
12771 #endif
12772 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12773 client_data);
12775 return 0;
12777 _ACEOF
12778 rm -f conftest.$ac_objext
12779 if { (ac_try="$ac_compile"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_compile") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest.$ac_objext; then
12795 emacs_cv_arg6_star=yes
12796 else
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 if test "$emacs_cv_arg6_star" = yes; then
12806 cat >>confdefs.h <<\_ACEOF
12807 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12808 _ACEOF
12810 else
12811 cat >>confdefs.h <<\_ACEOF
12812 #define XRegisterIMInstantiateCallback_arg6 XPointer
12813 _ACEOF
12816 CFLAGS=$late_CFLAGS
12819 ### Use -lXpm if available, unless `--with-xpm=no'.
12820 HAVE_XPM=no
12821 if test "${HAVE_X11}" = "yes"; then
12822 if test "${with_xpm}" != "no"; then
12823 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12824 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12825 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12826 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12830 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12831 else
12832 # Is the header compilable?
12833 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12834 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 $ac_includes_default
12842 #include <X11/xpm.h>
12843 _ACEOF
12844 rm -f conftest.$ac_objext
12845 if { (ac_try="$ac_compile"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_compile") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest.$ac_objext; then
12861 ac_header_compiler=yes
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_header_compiler=no
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12871 echo "${ECHO_T}$ac_header_compiler" >&6; }
12873 # Is the header present?
12874 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12875 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h. */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 #include <X11/xpm.h>
12883 _ACEOF
12884 if { (ac_try="$ac_cpp conftest.$ac_ext"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } >/dev/null && {
12897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 }; then
12900 ac_header_preproc=yes
12901 else
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12905 ac_header_preproc=no
12908 rm -f conftest.err conftest.$ac_ext
12909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12910 echo "${ECHO_T}$ac_header_preproc" >&6; }
12912 # So? What about this header?
12913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12914 yes:no: )
12915 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12916 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12918 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12919 ac_header_preproc=yes
12921 no:yes:* )
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12927 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12929 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12931 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12933 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12936 esac
12937 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12938 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12939 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 ac_cv_header_X11_xpm_h=$ac_header_preproc
12944 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12945 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12948 if test $ac_cv_header_X11_xpm_h = yes; then
12949 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12950 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12951 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954 ac_check_lib_save_LIBS=$LIBS
12955 LIBS="-lXpm -lX11 $LIBS"
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h. */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 char XpmReadFileToPixmap ();
12971 main ()
12973 return XpmReadFileToPixmap ();
12975 return 0;
12977 _ACEOF
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979 if { (ac_try="$ac_link"
12980 case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983 esac
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest$ac_exeext &&
12995 $as_test_x conftest$ac_exeext; then
12996 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext conftest.$ac_ext
13006 LIBS=$ac_check_lib_save_LIBS
13008 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13009 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13010 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13011 HAVE_XPM=yes
13017 if test "${HAVE_XPM}" = "yes"; then
13018 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13019 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h. */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 #include "X11/xpm.h"
13027 #ifndef XpmReturnAllocPixels
13028 no_return_alloc_pixels
13029 #endif
13031 _ACEOF
13032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13033 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13034 HAVE_XPM=no
13035 else
13036 HAVE_XPM=yes
13038 rm -f conftest*
13041 if test "${HAVE_XPM}" = "yes"; then
13042 { echo "$as_me:$LINENO: result: yes" >&5
13043 echo "${ECHO_T}yes" >&6; }
13044 else
13045 { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13051 if test "${HAVE_XPM}" = "yes"; then
13053 cat >>confdefs.h <<\_ACEOF
13054 #define HAVE_XPM 1
13055 _ACEOF
13060 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13061 HAVE_JPEG=no
13062 if test "${HAVE_X11}" = "yes"; then
13063 if test "${with_jpeg}" != "no"; then
13064 if test "${ac_cv_header_jerror_h+set}" = set; then
13065 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13066 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13067 if test "${ac_cv_header_jerror_h+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13071 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13072 else
13073 # Is the header compilable?
13074 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13075 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 $ac_includes_default
13083 #include <jerror.h>
13084 _ACEOF
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
13102 ac_header_compiler=yes
13103 else
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ac_header_compiler=no
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13112 echo "${ECHO_T}$ac_header_compiler" >&6; }
13114 # Is the header present?
13115 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13116 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 #include <jerror.h>
13124 _ACEOF
13125 if { (ac_try="$ac_cpp conftest.$ac_ext"
13126 case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } >/dev/null && {
13138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13139 test ! -s conftest.err
13140 }; then
13141 ac_header_preproc=yes
13142 else
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_header_preproc=no
13149 rm -f conftest.err conftest.$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151 echo "${ECHO_T}$ac_header_preproc" >&6; }
13153 # So? What about this header?
13154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13155 yes:no: )
13156 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13157 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13159 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13160 ac_header_preproc=yes
13162 no:yes:* )
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13164 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13166 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13168 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13170 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13172 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13174 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13177 esac
13178 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13180 if test "${ac_cv_header_jerror_h+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 ac_cv_header_jerror_h=$ac_header_preproc
13185 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13189 if test $ac_cv_header_jerror_h = yes; then
13190 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195 ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-ljpeg $LIBS"
13197 cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h. */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char jpeg_destroy_compress ();
13212 main ()
13214 return jpeg_destroy_compress ();
13216 return 0;
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest$ac_exeext &&
13236 $as_test_x conftest$ac_exeext; then
13237 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13238 else
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13250 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13251 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13252 HAVE_JPEG=yes
13261 if test "${HAVE_JPEG}" = "yes"; then
13262 cat >>confdefs.h <<\_ACEOF
13263 #define HAVE_JPEG 1
13264 _ACEOF
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h. */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <jpeglib.h>
13273 version=JPEG_LIB_VERSION
13275 _ACEOF
13276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13277 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13278 cat >>confdefs.h <<\_ACEOF
13279 #define HAVE_JPEG 1
13280 _ACEOF
13282 else
13283 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13284 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13285 HAVE_JPEG=no
13287 rm -f conftest*
13292 ### Use -lpng if available, unless `--with-png=no'.
13293 HAVE_PNG=no
13294 if test "${HAVE_X11}" = "yes"; then
13295 if test "${with_png}" != "no"; then
13296 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13297 # in /usr/include/libpng.
13300 for ac_header in png.h libpng/png.h
13302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_res=`eval echo '${'$as_ac_Header'}'`
13310 { echo "$as_me:$LINENO: result: $ac_res" >&5
13311 echo "${ECHO_T}$ac_res" >&6; }
13312 else
13313 # Is the header compilable?
13314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 $ac_includes_default
13323 #include <$ac_header>
13324 _ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (ac_try="$ac_compile"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_compile") 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } && {
13339 test -z "$ac_c_werror_flag" ||
13340 test ! -s conftest.err
13341 } && test -s conftest.$ac_objext; then
13342 ac_header_compiler=yes
13343 else
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ac_header_compiler=no
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13352 echo "${ECHO_T}$ac_header_compiler" >&6; }
13354 # Is the header present?
13355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include <$ac_header>
13364 _ACEOF
13365 if { (ac_try="$ac_cpp conftest.$ac_ext"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } >/dev/null && {
13378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13379 test ! -s conftest.err
13380 }; then
13381 ac_header_preproc=yes
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 ac_header_preproc=no
13389 rm -f conftest.err conftest.$ac_ext
13390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13391 echo "${ECHO_T}$ac_header_preproc" >&6; }
13393 # So? What about this header?
13394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13395 yes:no: )
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13400 ac_header_preproc=yes
13402 no:yes:* )
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13417 esac
13418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423 eval "$as_ac_Header=\$ac_header_preproc"
13425 ac_res=`eval echo '${'$as_ac_Header'}'`
13426 { echo "$as_me:$LINENO: result: $ac_res" >&5
13427 echo "${ECHO_T}$ac_res" >&6; }
13430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13431 cat >>confdefs.h <<_ACEOF
13432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13433 _ACEOF
13437 done
13439 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13440 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13441 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13442 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445 ac_check_lib_save_LIBS=$LIBS
13446 LIBS="-lpng -lz -lm $LIBS"
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13457 #ifdef __cplusplus
13458 extern "C"
13459 #endif
13460 char png_get_channels ();
13462 main ()
13464 return png_get_channels ();
13466 return 0;
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } && {
13483 test -z "$ac_c_werror_flag" ||
13484 test ! -s conftest.err
13485 } && test -s conftest$ac_exeext &&
13486 $as_test_x conftest$ac_exeext; then
13487 ac_cv_lib_png_png_get_channels=yes
13488 else
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_cv_lib_png_png_get_channels=no
13495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13496 conftest$ac_exeext conftest.$ac_ext
13497 LIBS=$ac_check_lib_save_LIBS
13499 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13500 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13501 if test $ac_cv_lib_png_png_get_channels = yes; then
13502 HAVE_PNG=yes
13508 if test "${HAVE_PNG}" = "yes"; then
13510 cat >>confdefs.h <<\_ACEOF
13511 #define HAVE_PNG 1
13512 _ACEOF
13517 ### Use -ltiff if available, unless `--with-tiff=no'.
13518 HAVE_TIFF=no
13519 if test "${HAVE_X11}" = "yes"; then
13520 if test "${with_tiff}" != "no"; then
13521 if test "${ac_cv_header_tiffio_h+set}" = set; then
13522 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13523 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13524 if test "${ac_cv_header_tiffio_h+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13528 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13529 else
13530 # Is the header compilable?
13531 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13532 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h. */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_includes_default
13540 #include <tiffio.h>
13541 _ACEOF
13542 rm -f conftest.$ac_objext
13543 if { (ac_try="$ac_compile"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compile") 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } && {
13556 test -z "$ac_c_werror_flag" ||
13557 test ! -s conftest.err
13558 } && test -s conftest.$ac_objext; then
13559 ac_header_compiler=yes
13560 else
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_header_compiler=no
13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13569 echo "${ECHO_T}$ac_header_compiler" >&6; }
13571 # Is the header present?
13572 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13573 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h. */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <tiffio.h>
13581 _ACEOF
13582 if { (ac_try="$ac_cpp conftest.$ac_ext"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } >/dev/null && {
13595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13597 }; then
13598 ac_header_preproc=yes
13599 else
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 ac_header_preproc=no
13606 rm -f conftest.err conftest.$ac_ext
13607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13608 echo "${ECHO_T}$ac_header_preproc" >&6; }
13610 # So? What about this header?
13611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13612 yes:no: )
13613 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13614 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13616 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13617 ac_header_preproc=yes
13619 no:yes:* )
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13621 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13623 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13625 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13627 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13629 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13631 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13634 esac
13635 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13636 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13637 if test "${ac_cv_header_tiffio_h+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640 ac_cv_header_tiffio_h=$ac_header_preproc
13642 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13643 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13646 if test $ac_cv_header_tiffio_h = yes; then
13647 tifflibs="-lz -lm"
13648 # At least one tiff package requires the jpeg library.
13649 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13650 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13651 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13652 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 ac_check_lib_save_LIBS=$LIBS
13656 LIBS="-ltiff $tifflibs $LIBS"
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h. */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13667 #ifdef __cplusplus
13668 extern "C"
13669 #endif
13670 char TIFFGetVersion ();
13672 main ()
13674 return TIFFGetVersion ();
13676 return 0;
13678 _ACEOF
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest$ac_exeext &&
13696 $as_test_x conftest$ac_exeext; then
13697 ac_cv_lib_tiff_TIFFGetVersion=yes
13698 else
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 ac_cv_lib_tiff_TIFFGetVersion=no
13705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13706 conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13709 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13710 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13711 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13712 HAVE_TIFF=yes
13720 if test "${HAVE_TIFF}" = "yes"; then
13722 cat >>confdefs.h <<\_ACEOF
13723 #define HAVE_TIFF 1
13724 _ACEOF
13729 ### Use -lgif if available, unless `--with-gif=no'.
13730 HAVE_GIF=no
13731 if test "${HAVE_X11}" = "yes"; then
13732 if test "${with_gif}" != "no"; then
13733 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13734 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13735 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13736 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13740 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13741 else
13742 # Is the header compilable?
13743 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13744 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 $ac_includes_default
13752 #include <gif_lib.h>
13753 _ACEOF
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_compile") 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
13771 ac_header_compiler=yes
13772 else
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_header_compiler=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6; }
13783 # Is the header present?
13784 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13785 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <gif_lib.h>
13793 _ACEOF
13794 if { (ac_try="$ac_cpp conftest.$ac_ext"
13795 case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798 esac
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev/null && {
13807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13809 }; then
13810 ac_header_preproc=yes
13811 else
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_header_preproc=no
13818 rm -f conftest.err conftest.$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6; }
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13824 yes:no: )
13825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13828 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13829 ac_header_preproc=yes
13831 no:yes:* )
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13833 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13835 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13837 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13839 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13841 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13843 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13846 esac
13847 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13848 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13849 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 ac_cv_header_gif_lib_h=$ac_header_preproc
13854 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13855 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13858 if test $ac_cv_header_gif_lib_h = yes; then
13859 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13860 # Earlier versions can crash Emacs.
13861 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13862 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13863 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866 ac_check_lib_save_LIBS=$LIBS
13867 LIBS="-lungif $LIBS"
13868 cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h. */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 char EGifPutExtensionLast ();
13883 main ()
13885 return EGifPutExtensionLast ();
13887 return 0;
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_link") 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest$ac_exeext &&
13907 $as_test_x conftest$ac_exeext; then
13908 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13909 else
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_cv_lib_ungif_EGifPutExtensionLast=no
13916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13920 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13921 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13922 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13923 HAVE_GIF=yes
13931 if test "${HAVE_GIF}" = "yes"; then
13933 cat >>confdefs.h <<\_ACEOF
13934 #define HAVE_GIF 1
13935 _ACEOF
13940 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13941 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13942 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13943 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13947 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13948 else
13949 # Is the header compilable?
13950 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13951 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 $ac_includes_default
13959 #include <malloc/malloc.h>
13960 _ACEOF
13961 rm -f conftest.$ac_objext
13962 if { (ac_try="$ac_compile"
13963 case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_compile") 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } && {
13975 test -z "$ac_c_werror_flag" ||
13976 test ! -s conftest.err
13977 } && test -s conftest.$ac_objext; then
13978 ac_header_compiler=yes
13979 else
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_header_compiler=no
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13988 echo "${ECHO_T}$ac_header_compiler" >&6; }
13990 # Is the header present?
13991 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13992 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 #include <malloc/malloc.h>
14000 _ACEOF
14001 if { (ac_try="$ac_cpp conftest.$ac_ext"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } >/dev/null && {
14014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 }; then
14017 ac_header_preproc=yes
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_header_preproc=no
14025 rm -f conftest.err conftest.$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027 echo "${ECHO_T}$ac_header_preproc" >&6; }
14029 # So? What about this header?
14030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031 yes:no: )
14032 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14033 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14035 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14036 ac_header_preproc=yes
14038 no:yes:* )
14039 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14040 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14042 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14044 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14046 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14048 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14050 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14053 esac
14054 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14055 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14056 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14061 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14062 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14065 if test $ac_cv_header_malloc_malloc_h = yes; then
14067 cat >>confdefs.h <<\_ACEOF
14068 #define HAVE_MALLOC_MALLOC_H 1
14069 _ACEOF
14075 ### Use Mac OS X Carbon API to implement GUI.
14076 if test "${HAVE_CARBON}" = "yes"; then
14078 cat >>confdefs.h <<\_ACEOF
14079 #define HAVE_CARBON 1
14080 _ACEOF
14082 ## Specify the install directory
14083 carbon_appdir=
14084 if test "${carbon_appdir_x}" != ""; then
14085 case ${carbon_appdir_x} in
14086 y | ye | yes) carbon_appdir=/Applications ;;
14087 * ) carbon_appdir=${carbon_appdir_x} ;;
14088 esac
14090 # We also have mouse menus.
14091 HAVE_MENUS=yes
14094 ### Use session management (-lSM -lICE) if available
14095 HAVE_X_SM=no
14096 if test "${HAVE_X11}" = "yes"; then
14097 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14098 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14099 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14104 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14105 else
14106 # Is the header compilable?
14107 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14108 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14109 cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h. */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 $ac_includes_default
14116 #include <X11/SM/SMlib.h>
14117 _ACEOF
14118 rm -f conftest.$ac_objext
14119 if { (ac_try="$ac_compile"
14120 case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14123 esac
14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125 (eval "$ac_compile") 2>conftest.er1
14126 ac_status=$?
14127 grep -v '^ *+' conftest.er1 >conftest.err
14128 rm -f conftest.er1
14129 cat conftest.err >&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && {
14132 test -z "$ac_c_werror_flag" ||
14133 test ! -s conftest.err
14134 } && test -s conftest.$ac_objext; then
14135 ac_header_compiler=yes
14136 else
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 ac_header_compiler=no
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14145 echo "${ECHO_T}$ac_header_compiler" >&6; }
14147 # Is the header present?
14148 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14149 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14150 cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h. */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 #include <X11/SM/SMlib.h>
14157 _ACEOF
14158 if { (ac_try="$ac_cpp conftest.$ac_ext"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14165 ac_status=$?
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } >/dev/null && {
14171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14173 }; then
14174 ac_header_preproc=yes
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_header_preproc=no
14182 rm -f conftest.err conftest.$ac_ext
14183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14184 echo "${ECHO_T}$ac_header_preproc" >&6; }
14186 # So? What about this header?
14187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14188 yes:no: )
14189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14190 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14192 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14193 ac_header_preproc=yes
14195 no:yes:* )
14196 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14197 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14199 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14201 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14203 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14205 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14207 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14210 esac
14211 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14212 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14213 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14218 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14219 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14222 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14223 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14224 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14225 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 ac_check_lib_save_LIBS=$LIBS
14229 LIBS="-lSM -lICE $LIBS"
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14240 #ifdef __cplusplus
14241 extern "C"
14242 #endif
14243 char SmcOpenConnection ();
14245 main ()
14247 return SmcOpenConnection ();
14249 return 0;
14251 _ACEOF
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } && {
14266 test -z "$ac_c_werror_flag" ||
14267 test ! -s conftest.err
14268 } && test -s conftest$ac_exeext &&
14269 $as_test_x conftest$ac_exeext; then
14270 ac_cv_lib_SM_SmcOpenConnection=yes
14271 else
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_lib_SM_SmcOpenConnection=no
14278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14279 conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_check_lib_save_LIBS
14282 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14283 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14284 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14285 HAVE_X_SM=yes
14292 if test "${HAVE_X_SM}" = "yes"; then
14294 cat >>confdefs.h <<\_ACEOF
14295 #define HAVE_X_SM 1
14296 _ACEOF
14298 case "$LIBS" in
14299 *-lSM*) ;;
14300 *) LIBS="-lSM -lICE $LIBS" ;;
14301 esac
14305 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14306 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14307 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14308 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h. */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 #include <netdb.h>
14319 main ()
14321 return h_errno;
14323 return 0;
14325 _ACEOF
14326 rm -f conftest.$ac_objext conftest$ac_exeext
14327 if { (ac_try="$ac_link"
14328 case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331 esac
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_link") 2>conftest.er1
14334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } && {
14340 test -z "$ac_c_werror_flag" ||
14341 test ! -s conftest.err
14342 } && test -s conftest$ac_exeext &&
14343 $as_test_x conftest$ac_exeext; then
14344 emacs_cv_netdb_declares_h_errno=yes
14345 else
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14349 emacs_cv_netdb_declares_h_errno=no
14352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 conftest$ac_exeext conftest.$ac_ext
14355 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14356 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14357 if test $emacs_cv_netdb_declares_h_errno = yes; then
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_H_ERRNO 1
14361 _ACEOF
14365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14366 # for constant arguments. Useless!
14367 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14368 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14369 if test "${ac_cv_working_alloca_h+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 #include <alloca.h>
14380 main ()
14382 char *p = (char *) alloca (2 * sizeof (int));
14383 if (p) return 0;
14385 return 0;
14387 _ACEOF
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>conftest.er1
14396 ac_status=$?
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } && {
14402 test -z "$ac_c_werror_flag" ||
14403 test ! -s conftest.err
14404 } && test -s conftest$ac_exeext &&
14405 $as_test_x conftest$ac_exeext; then
14406 ac_cv_working_alloca_h=yes
14407 else
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_cv_working_alloca_h=no
14414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14415 conftest$ac_exeext conftest.$ac_ext
14417 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14418 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14419 if test $ac_cv_working_alloca_h = yes; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_ALLOCA_H 1
14423 _ACEOF
14427 { echo "$as_me:$LINENO: checking for alloca" >&5
14428 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14429 if test "${ac_cv_func_alloca_works+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 else
14432 cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h. */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 #ifdef __GNUC__
14439 # define alloca __builtin_alloca
14440 #else
14441 # ifdef _MSC_VER
14442 # include <malloc.h>
14443 # define alloca _alloca
14444 # else
14445 # ifdef HAVE_ALLOCA_H
14446 # include <alloca.h>
14447 # else
14448 # ifdef _AIX
14449 #pragma alloca
14450 # else
14451 # ifndef alloca /* predefined by HP cc +Olibcalls */
14452 char *alloca ();
14453 # endif
14454 # endif
14455 # endif
14456 # endif
14457 #endif
14460 main ()
14462 char *p = (char *) alloca (1);
14463 if (p) return 0;
14465 return 0;
14467 _ACEOF
14468 rm -f conftest.$ac_objext conftest$ac_exeext
14469 if { (ac_try="$ac_link"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473 esac
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_link") 2>conftest.er1
14476 ac_status=$?
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest$ac_exeext &&
14485 $as_test_x conftest$ac_exeext; then
14486 ac_cv_func_alloca_works=yes
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_cv_func_alloca_works=no
14494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14495 conftest$ac_exeext conftest.$ac_ext
14497 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14498 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14500 if test $ac_cv_func_alloca_works = yes; then
14502 cat >>confdefs.h <<\_ACEOF
14503 #define HAVE_ALLOCA 1
14504 _ACEOF
14506 else
14507 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14508 # that cause trouble. Some versions do not even contain alloca or
14509 # contain a buggy version. If you still want to use their alloca,
14510 # use ar to extract alloca.o from them instead of compiling alloca.c.
14512 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14514 cat >>confdefs.h <<\_ACEOF
14515 #define C_ALLOCA 1
14516 _ACEOF
14519 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14520 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14521 if test "${ac_cv_os_cray+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 #if defined CRAY && ! defined CRAY2
14531 webecray
14532 #else
14533 wenotbecray
14534 #endif
14536 _ACEOF
14537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14538 $EGREP "webecray" >/dev/null 2>&1; then
14539 ac_cv_os_cray=yes
14540 else
14541 ac_cv_os_cray=no
14543 rm -f conftest*
14546 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14547 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14548 if test $ac_cv_os_cray = yes; then
14549 for ac_func in _getb67 GETB67 getb67; do
14550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14551 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14553 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14554 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 else
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h. */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14564 #define $ac_func innocuous_$ac_func
14566 /* System header to define __stub macros and hopefully few prototypes,
14567 which can conflict with char $ac_func (); below.
14568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14569 <limits.h> exists even on freestanding compilers. */
14571 #ifdef __STDC__
14572 # include <limits.h>
14573 #else
14574 # include <assert.h>
14575 #endif
14577 #undef $ac_func
14579 /* Override any GCC internal prototype to avoid an error.
14580 Use char because int might match the return type of a GCC
14581 builtin and then its argument prototype would still apply. */
14582 #ifdef __cplusplus
14583 extern "C"
14584 #endif
14585 char $ac_func ();
14586 /* The GNU C library defines this for functions which it implements
14587 to always fail with ENOSYS. Some functions are actually named
14588 something starting with __ and the normal name is an alias. */
14589 #if defined __stub_$ac_func || defined __stub___$ac_func
14590 choke me
14591 #endif
14594 main ()
14596 return $ac_func ();
14598 return 0;
14600 _ACEOF
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (ac_try="$ac_link"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606 esac
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_link") 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } && {
14615 test -z "$ac_c_werror_flag" ||
14616 test ! -s conftest.err
14617 } && test -s conftest$ac_exeext &&
14618 $as_test_x conftest$ac_exeext; then
14619 eval "$as_ac_var=yes"
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 eval "$as_ac_var=no"
14627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628 conftest$ac_exeext conftest.$ac_ext
14630 ac_res=`eval echo '${'$as_ac_var'}'`
14631 { echo "$as_me:$LINENO: result: $ac_res" >&5
14632 echo "${ECHO_T}$ac_res" >&6; }
14633 if test `eval echo '${'$as_ac_var'}'` = yes; then
14635 cat >>confdefs.h <<_ACEOF
14636 #define CRAY_STACKSEG_END $ac_func
14637 _ACEOF
14639 break
14642 done
14645 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14646 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14647 if test "${ac_cv_c_stack_direction+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650 if test "$cross_compiling" = yes; then
14651 ac_cv_c_stack_direction=0
14652 else
14653 cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h. */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 $ac_includes_default
14661 find_stack_direction ()
14663 static char *addr = 0;
14664 auto char dummy;
14665 if (addr == 0)
14667 addr = &dummy;
14668 return find_stack_direction ();
14670 else
14671 return (&dummy > addr) ? 1 : -1;
14675 main ()
14677 return find_stack_direction () < 0;
14679 _ACEOF
14680 rm -f conftest$ac_exeext
14681 if { (ac_try="$ac_link"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_link") 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_try") 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_c_stack_direction=1
14701 else
14702 echo "$as_me: program exited with status $ac_status" >&5
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ( exit $ac_status )
14707 ac_cv_c_stack_direction=-1
14709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14714 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14715 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14717 cat >>confdefs.h <<_ACEOF
14718 #define STACK_DIRECTION $ac_cv_c_stack_direction
14719 _ACEOF
14725 # fmod, logb, and frexp are found in -lm on most systems.
14726 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14728 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14729 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14730 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733 ac_check_lib_save_LIBS=$LIBS
14734 LIBS="-lm $LIBS"
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14742 /* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
14745 #ifdef __cplusplus
14746 extern "C"
14747 #endif
14748 char sqrt ();
14750 main ()
14752 return sqrt ();
14754 return 0;
14756 _ACEOF
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_link") 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest$ac_exeext &&
14774 $as_test_x conftest$ac_exeext; then
14775 ac_cv_lib_m_sqrt=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_lib_m_sqrt=no
14783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14784 conftest$ac_exeext conftest.$ac_ext
14785 LIBS=$ac_check_lib_save_LIBS
14787 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14788 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14789 if test $ac_cv_lib_m_sqrt = yes; then
14790 cat >>confdefs.h <<_ACEOF
14791 #define HAVE_LIBM 1
14792 _ACEOF
14794 LIBS="-lm $LIBS"
14799 # Check for mail-locking functions in a "mail" library. Probably this should
14800 # have the same check as for liblockfile below.
14802 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14803 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14804 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807 ac_check_lib_save_LIBS=$LIBS
14808 LIBS="-lmail $LIBS"
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 char maillock ();
14824 main ()
14826 return maillock ();
14828 return 0;
14830 _ACEOF
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (ac_try="$ac_link"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_link") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest$ac_exeext &&
14848 $as_test_x conftest$ac_exeext; then
14849 ac_cv_lib_mail_maillock=yes
14850 else
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_cv_lib_mail_maillock=no
14857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14858 conftest$ac_exeext conftest.$ac_ext
14859 LIBS=$ac_check_lib_save_LIBS
14861 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14862 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14863 if test $ac_cv_lib_mail_maillock = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_LIBMAIL 1
14866 _ACEOF
14868 LIBS="-lmail $LIBS"
14873 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14874 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14875 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-llockfile $LIBS"
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 char maillock ();
14895 main ()
14897 return maillock ();
14899 return 0;
14901 _ACEOF
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (ac_try="$ac_link"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_link") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest$ac_exeext &&
14919 $as_test_x conftest$ac_exeext; then
14920 ac_cv_lib_lockfile_maillock=yes
14921 else
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_lib_lockfile_maillock=no
14928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14929 conftest$ac_exeext conftest.$ac_ext
14930 LIBS=$ac_check_lib_save_LIBS
14932 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14933 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14934 if test $ac_cv_lib_lockfile_maillock = yes; then
14935 cat >>confdefs.h <<_ACEOF
14936 #define HAVE_LIBLOCKFILE 1
14937 _ACEOF
14939 LIBS="-llockfile $LIBS"
14943 # If we have the shared liblockfile, assume we must use it for mail
14944 # locking (e.g. Debian). If we couldn't link against liblockfile
14945 # (no liblockfile.a installed), ensure that we don't need to.
14946 if test "$ac_cv_lib_lockfile_maillock" = no; then
14947 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14948 set dummy liblockfile.so; ac_word=$2
14949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14951 if test "${ac_cv_prog_liblockfile+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954 if test -n "$liblockfile"; then
14955 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14956 else
14957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14958 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14959 for as_dir in $as_dummy
14961 IFS=$as_save_IFS
14962 test -z "$as_dir" && as_dir=.
14963 for ac_exec_ext in '' $ac_executable_extensions; do
14964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14965 ac_cv_prog_liblockfile="yes"
14966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14967 break 2
14969 done
14970 done
14971 IFS=$as_save_IFS
14973 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14976 liblockfile=$ac_cv_prog_liblockfile
14977 if test -n "$liblockfile"; then
14978 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14979 echo "${ECHO_T}$liblockfile" >&6; }
14980 else
14981 { echo "$as_me:$LINENO: result: no" >&5
14982 echo "${ECHO_T}no" >&6; }
14986 if test $ac_cv_prog_liblockfile = yes; then
14987 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14988 This probably means that movemail could lose mail.
14989 There may be a \`development' package to install containing liblockfile." >&5
14990 echo "$as_me: error: Shared liblockfile found but can't link against it.
14991 This probably means that movemail could lose mail.
14992 There may be a \`development' package to install containing liblockfile." >&2;}
14993 { (exit 1); exit 1; }; }
14994 else :
14998 for ac_func in touchlock
15000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15014 #define $ac_func innocuous_$ac_func
15016 /* System header to define __stub macros and hopefully few prototypes,
15017 which can conflict with char $ac_func (); below.
15018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15019 <limits.h> exists even on freestanding compilers. */
15021 #ifdef __STDC__
15022 # include <limits.h>
15023 #else
15024 # include <assert.h>
15025 #endif
15027 #undef $ac_func
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 #ifdef __cplusplus
15033 extern "C"
15034 #endif
15035 char $ac_func ();
15036 /* The GNU C library defines this for functions which it implements
15037 to always fail with ENOSYS. Some functions are actually named
15038 something starting with __ and the normal name is an alias. */
15039 #if defined __stub_$ac_func || defined __stub___$ac_func
15040 choke me
15041 #endif
15044 main ()
15046 return $ac_func ();
15048 return 0;
15050 _ACEOF
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext &&
15068 $as_test_x conftest$ac_exeext; then
15069 eval "$as_ac_var=yes"
15070 else
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 eval "$as_ac_var=no"
15077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15078 conftest$ac_exeext conftest.$ac_ext
15080 ac_res=`eval echo '${'$as_ac_var'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083 if test `eval echo '${'$as_ac_var'}'` = yes; then
15084 cat >>confdefs.h <<_ACEOF
15085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15086 _ACEOF
15089 done
15092 for ac_header in maillock.h
15094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 ac_res=`eval echo '${'$as_ac_Header'}'`
15102 { echo "$as_me:$LINENO: result: $ac_res" >&5
15103 echo "${ECHO_T}$ac_res" >&6; }
15104 else
15105 # Is the header compilable?
15106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h. */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 $ac_includes_default
15115 #include <$ac_header>
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest.$ac_objext; then
15134 ac_header_compiler=yes
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_header_compiler=no
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15144 echo "${ECHO_T}$ac_header_compiler" >&6; }
15146 # Is the header present?
15147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15150 /* confdefs.h. */
15151 _ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 #include <$ac_header>
15156 _ACEOF
15157 if { (ac_try="$ac_cpp conftest.$ac_ext"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } >/dev/null && {
15170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15171 test ! -s conftest.err
15172 }; then
15173 ac_header_preproc=yes
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_header_preproc=no
15181 rm -f conftest.err conftest.$ac_ext
15182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15183 echo "${ECHO_T}$ac_header_preproc" >&6; }
15185 # So? What about this header?
15186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15187 yes:no: )
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15192 ac_header_preproc=yes
15194 no:yes:* )
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15209 esac
15210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 eval "$as_ac_Header=\$ac_header_preproc"
15217 ac_res=`eval echo '${'$as_ac_Header'}'`
15218 { echo "$as_me:$LINENO: result: $ac_res" >&5
15219 echo "${ECHO_T}$ac_res" >&6; }
15222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15225 _ACEOF
15229 done
15301 for ac_func in gethostname getdomainname dup2 \
15302 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15303 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15304 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15305 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15306 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15307 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15308 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15309 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317 cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h. */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15325 #define $ac_func innocuous_$ac_func
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func (); below.
15329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330 <limits.h> exists even on freestanding compilers. */
15332 #ifdef __STDC__
15333 # include <limits.h>
15334 #else
15335 # include <assert.h>
15336 #endif
15338 #undef $ac_func
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 char $ac_func ();
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined __stub_$ac_func || defined __stub___$ac_func
15351 choke me
15352 #endif
15355 main ()
15357 return $ac_func ();
15359 return 0;
15361 _ACEOF
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_link") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext &&
15379 $as_test_x conftest$ac_exeext; then
15380 eval "$as_ac_var=yes"
15381 else
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 eval "$as_ac_var=no"
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389 conftest$ac_exeext conftest.$ac_ext
15391 ac_res=`eval echo '${'$as_ac_var'}'`
15392 { echo "$as_me:$LINENO: result: $ac_res" >&5
15393 echo "${ECHO_T}$ac_res" >&6; }
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15397 _ACEOF
15400 done
15404 for ac_header in sys/un.h
15406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 ac_res=`eval echo '${'$as_ac_Header'}'`
15414 { echo "$as_me:$LINENO: result: $ac_res" >&5
15415 echo "${ECHO_T}$ac_res" >&6; }
15416 else
15417 # Is the header compilable?
15418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <$ac_header>
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } && {
15443 test -z "$ac_c_werror_flag" ||
15444 test ! -s conftest.err
15445 } && test -s conftest.$ac_objext; then
15446 ac_header_compiler=yes
15447 else
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 ac_header_compiler=no
15454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15456 echo "${ECHO_T}$ac_header_compiler" >&6; }
15458 # Is the header present?
15459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15461 cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467 #include <$ac_header>
15468 _ACEOF
15469 if { (ac_try="$ac_cpp conftest.$ac_ext"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473 esac
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15476 ac_status=$?
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } >/dev/null && {
15482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15483 test ! -s conftest.err
15484 }; then
15485 ac_header_preproc=yes
15486 else
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 ac_header_preproc=no
15493 rm -f conftest.err conftest.$ac_ext
15494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15495 echo "${ECHO_T}$ac_header_preproc" >&6; }
15497 # So? What about this header?
15498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15499 yes:no: )
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15504 ac_header_preproc=yes
15506 no:yes:* )
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15521 esac
15522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 else
15527 eval "$as_ac_Header=\$ac_header_preproc"
15529 ac_res=`eval echo '${'$as_ac_Header'}'`
15530 { echo "$as_me:$LINENO: result: $ac_res" >&5
15531 echo "${ECHO_T}$ac_res" >&6; }
15534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15535 cat >>confdefs.h <<_ACEOF
15536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15537 _ACEOF
15541 done
15548 for ac_header in $ac_header_list
15550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 ac_res=`eval echo '${'$as_ac_Header'}'`
15558 { echo "$as_me:$LINENO: result: $ac_res" >&5
15559 echo "${ECHO_T}$ac_res" >&6; }
15560 else
15561 # Is the header compilable?
15562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h. */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 $ac_includes_default
15571 #include <$ac_header>
15572 _ACEOF
15573 rm -f conftest.$ac_objext
15574 if { (ac_try="$ac_compile"
15575 case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_compile") 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && {
15587 test -z "$ac_c_werror_flag" ||
15588 test ! -s conftest.err
15589 } && test -s conftest.$ac_objext; then
15590 ac_header_compiler=yes
15591 else
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_header_compiler=no
15598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15600 echo "${ECHO_T}$ac_header_compiler" >&6; }
15602 # Is the header present?
15603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15605 cat >conftest.$ac_ext <<_ACEOF
15606 /* confdefs.h. */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 #include <$ac_header>
15612 _ACEOF
15613 if { (ac_try="$ac_cpp conftest.$ac_ext"
15614 case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15617 esac
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15620 ac_status=$?
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } >/dev/null && {
15626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15627 test ! -s conftest.err
15628 }; then
15629 ac_header_preproc=yes
15630 else
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 ac_header_preproc=no
15637 rm -f conftest.err conftest.$ac_ext
15638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15639 echo "${ECHO_T}$ac_header_preproc" >&6; }
15641 # So? What about this header?
15642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15643 yes:no: )
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15648 ac_header_preproc=yes
15650 no:yes:* )
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15665 esac
15666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671 eval "$as_ac_Header=\$ac_header_preproc"
15673 ac_res=`eval echo '${'$as_ac_Header'}'`
15674 { echo "$as_me:$LINENO: result: $ac_res" >&5
15675 echo "${ECHO_T}$ac_res" >&6; }
15678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15679 cat >>confdefs.h <<_ACEOF
15680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15681 _ACEOF
15685 done
15695 for ac_func in $ac_func_list
15697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h. */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15711 #define $ac_func innocuous_$ac_func
15713 /* System header to define __stub macros and hopefully few prototypes,
15714 which can conflict with char $ac_func (); below.
15715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15716 <limits.h> exists even on freestanding compilers. */
15718 #ifdef __STDC__
15719 # include <limits.h>
15720 #else
15721 # include <assert.h>
15722 #endif
15724 #undef $ac_func
15726 /* Override any GCC internal prototype to avoid an error.
15727 Use char because int might match the return type of a GCC
15728 builtin and then its argument prototype would still apply. */
15729 #ifdef __cplusplus
15730 extern "C"
15731 #endif
15732 char $ac_func ();
15733 /* The GNU C library defines this for functions which it implements
15734 to always fail with ENOSYS. Some functions are actually named
15735 something starting with __ and the normal name is an alias. */
15736 #if defined __stub_$ac_func || defined __stub___$ac_func
15737 choke me
15738 #endif
15741 main ()
15743 return $ac_func ();
15745 return 0;
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (ac_try="$ac_link"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_link") 2>conftest.er1
15756 ac_status=$?
15757 grep -v '^ *+' conftest.er1 >conftest.err
15758 rm -f conftest.er1
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest$ac_exeext &&
15765 $as_test_x conftest$ac_exeext; then
15766 eval "$as_ac_var=yes"
15767 else
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 eval "$as_ac_var=no"
15774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15775 conftest$ac_exeext conftest.$ac_ext
15777 ac_res=`eval echo '${'$as_ac_var'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15780 if test `eval echo '${'$as_ac_var'}'` = yes; then
15781 cat >>confdefs.h <<_ACEOF
15782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15783 _ACEOF
15786 done
15804 { echo "$as_me:$LINENO: checking for working mktime" >&5
15805 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15806 if test "${ac_cv_func_working_mktime+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809 if test "$cross_compiling" = yes; then
15810 ac_cv_func_working_mktime=no
15811 else
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 /* Test program from Paul Eggert and Tony Leneis. */
15819 #ifdef TIME_WITH_SYS_TIME
15820 # include <sys/time.h>
15821 # include <time.h>
15822 #else
15823 # ifdef HAVE_SYS_TIME_H
15824 # include <sys/time.h>
15825 # else
15826 # include <time.h>
15827 # endif
15828 #endif
15830 #include <stdlib.h>
15832 #ifdef HAVE_UNISTD_H
15833 # include <unistd.h>
15834 #endif
15836 #ifndef HAVE_ALARM
15837 # define alarm(X) /* empty */
15838 #endif
15840 /* Work around redefinition to rpl_putenv by other config tests. */
15841 #undef putenv
15843 static time_t time_t_max;
15844 static time_t time_t_min;
15846 /* Values we'll use to set the TZ environment variable. */
15847 static char *tz_strings[] = {
15848 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15849 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15851 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15853 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15854 Based on a problem report from Andreas Jaeger. */
15855 static int
15856 spring_forward_gap ()
15858 /* glibc (up to about 1998-10-07) failed this test. */
15859 struct tm tm;
15861 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15862 instead of "TZ=America/Vancouver" in order to detect the bug even
15863 on systems that don't support the Olson extension, or don't have the
15864 full zoneinfo tables installed. */
15865 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15867 tm.tm_year = 98;
15868 tm.tm_mon = 3;
15869 tm.tm_mday = 5;
15870 tm.tm_hour = 2;
15871 tm.tm_min = 0;
15872 tm.tm_sec = 0;
15873 tm.tm_isdst = -1;
15874 return mktime (&tm) != (time_t) -1;
15877 static int
15878 mktime_test1 (now)
15879 time_t now;
15881 struct tm *lt;
15882 return ! (lt = localtime (&now)) || mktime (lt) == now;
15885 static int
15886 mktime_test (now)
15887 time_t now;
15889 return (mktime_test1 (now)
15890 && mktime_test1 ((time_t) (time_t_max - now))
15891 && mktime_test1 ((time_t) (time_t_min + now)));
15894 static int
15895 irix_6_4_bug ()
15897 /* Based on code from Ariel Faigon. */
15898 struct tm tm;
15899 tm.tm_year = 96;
15900 tm.tm_mon = 3;
15901 tm.tm_mday = 0;
15902 tm.tm_hour = 0;
15903 tm.tm_min = 0;
15904 tm.tm_sec = 0;
15905 tm.tm_isdst = -1;
15906 mktime (&tm);
15907 return tm.tm_mon == 2 && tm.tm_mday == 31;
15910 static int
15911 bigtime_test (j)
15912 int j;
15914 struct tm tm;
15915 time_t now;
15916 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15917 now = mktime (&tm);
15918 if (now != (time_t) -1)
15920 struct tm *lt = localtime (&now);
15921 if (! (lt
15922 && lt->tm_year == tm.tm_year
15923 && lt->tm_mon == tm.tm_mon
15924 && lt->tm_mday == tm.tm_mday
15925 && lt->tm_hour == tm.tm_hour
15926 && lt->tm_min == tm.tm_min
15927 && lt->tm_sec == tm.tm_sec
15928 && lt->tm_yday == tm.tm_yday
15929 && lt->tm_wday == tm.tm_wday
15930 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15931 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15932 return 0;
15934 return 1;
15937 static int
15938 year_2050_test ()
15940 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15941 ignoring leap seconds. */
15942 unsigned long int answer = 2527315200UL;
15944 struct tm tm;
15945 time_t t;
15946 tm.tm_year = 2050 - 1900;
15947 tm.tm_mon = 2 - 1;
15948 tm.tm_mday = 1;
15949 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15950 tm.tm_isdst = -1;
15952 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15953 instead of "TZ=America/Vancouver" in order to detect the bug even
15954 on systems that don't support the Olson extension, or don't have the
15955 full zoneinfo tables installed. */
15956 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15958 t = mktime (&tm);
15960 /* Check that the result is either a failure, or close enough
15961 to the correct answer that we can assume the discrepancy is
15962 due to leap seconds. */
15963 return (t == (time_t) -1
15964 || (0 < t && answer - 120 <= t && t <= answer + 120));
15968 main ()
15970 time_t t, delta;
15971 int i, j;
15973 /* This test makes some buggy mktime implementations loop.
15974 Give up after 60 seconds; a mktime slower than that
15975 isn't worth using anyway. */
15976 alarm (60);
15978 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15979 continue;
15980 time_t_max--;
15981 if ((time_t) -1 < 0)
15982 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15983 continue;
15984 delta = time_t_max / 997; /* a suitable prime number */
15985 for (i = 0; i < N_STRINGS; i++)
15987 if (tz_strings[i])
15988 putenv (tz_strings[i]);
15990 for (t = 0; t <= time_t_max - delta; t += delta)
15991 if (! mktime_test (t))
15992 return 1;
15993 if (! (mktime_test ((time_t) 1)
15994 && mktime_test ((time_t) (60 * 60))
15995 && mktime_test ((time_t) (60 * 60 * 24))))
15996 return 1;
15998 for (j = 1; 0 < j; j *= 2)
15999 if (! bigtime_test (j))
16000 return 1;
16001 if (! bigtime_test (j - 1))
16002 return 1;
16004 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16006 _ACEOF
16007 rm -f conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_link") 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16021 esac
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_cv_func_working_mktime=yes
16028 else
16029 echo "$as_me: program exited with status $ac_status" >&5
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 ( exit $ac_status )
16034 ac_cv_func_working_mktime=no
16036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16041 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16042 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16043 if test $ac_cv_func_working_mktime = no; then
16044 case " $LIBOBJS " in
16045 *" mktime.$ac_objext "* ) ;;
16046 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16048 esac
16052 if test "$ac_cv_func_working_mktime" = no; then
16054 cat >>confdefs.h <<\_ACEOF
16055 #define BROKEN_MKTIME 1
16056 _ACEOF
16060 ac_have_func=no # yes means we've found a way to get the load average.
16062 # Make sure getloadavg.c is where it belongs, at configure-time.
16063 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16064 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16065 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16066 { (exit 1); exit 1; }; }
16068 ac_save_LIBS=$LIBS
16070 # Check for getloadavg, but be sure not to touch the cache variable.
16071 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16072 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16073 if test "${ac_cv_func_getloadavg+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16084 #define getloadavg innocuous_getloadavg
16086 /* System header to define __stub macros and hopefully few prototypes,
16087 which can conflict with char getloadavg (); below.
16088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16089 <limits.h> exists even on freestanding compilers. */
16091 #ifdef __STDC__
16092 # include <limits.h>
16093 #else
16094 # include <assert.h>
16095 #endif
16097 #undef getloadavg
16099 /* Override any GCC internal prototype to avoid an error.
16100 Use char because int might match the return type of a GCC
16101 builtin and then its argument prototype would still apply. */
16102 #ifdef __cplusplus
16103 extern "C"
16104 #endif
16105 char getloadavg ();
16106 /* The GNU C library defines this for functions which it implements
16107 to always fail with ENOSYS. Some functions are actually named
16108 something starting with __ and the normal name is an alias. */
16109 #if defined __stub_getloadavg || defined __stub___getloadavg
16110 choke me
16111 #endif
16114 main ()
16116 return getloadavg ();
16118 return 0;
16120 _ACEOF
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (ac_try="$ac_link"
16123 case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126 esac
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_link") 2>conftest.er1
16129 ac_status=$?
16130 grep -v '^ *+' conftest.er1 >conftest.err
16131 rm -f conftest.er1
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } && {
16135 test -z "$ac_c_werror_flag" ||
16136 test ! -s conftest.err
16137 } && test -s conftest$ac_exeext &&
16138 $as_test_x conftest$ac_exeext; then
16139 ac_cv_func_getloadavg=yes
16140 else
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 ac_cv_func_getloadavg=no
16147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16148 conftest$ac_exeext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16151 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16152 if test $ac_cv_func_getloadavg = yes; then
16153 exit 0
16154 else
16155 exit 1
16157 ) && ac_have_func=yes
16159 # On HPUX9, an unprivileged user can get load averages through this function.
16161 for ac_func in pstat_getdynamic
16163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16177 #define $ac_func innocuous_$ac_func
16179 /* System header to define __stub macros and hopefully few prototypes,
16180 which can conflict with char $ac_func (); below.
16181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16182 <limits.h> exists even on freestanding compilers. */
16184 #ifdef __STDC__
16185 # include <limits.h>
16186 #else
16187 # include <assert.h>
16188 #endif
16190 #undef $ac_func
16192 /* Override any GCC internal prototype to avoid an error.
16193 Use char because int might match the return type of a GCC
16194 builtin and then its argument prototype would still apply. */
16195 #ifdef __cplusplus
16196 extern "C"
16197 #endif
16198 char $ac_func ();
16199 /* The GNU C library defines this for functions which it implements
16200 to always fail with ENOSYS. Some functions are actually named
16201 something starting with __ and the normal name is an alias. */
16202 #if defined __stub_$ac_func || defined __stub___$ac_func
16203 choke me
16204 #endif
16207 main ()
16209 return $ac_func ();
16211 return 0;
16213 _ACEOF
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (ac_try="$ac_link"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_link") 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && {
16228 test -z "$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 } && test -s conftest$ac_exeext &&
16231 $as_test_x conftest$ac_exeext; then
16232 eval "$as_ac_var=yes"
16233 else
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 eval "$as_ac_var=no"
16240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16241 conftest$ac_exeext conftest.$ac_ext
16243 ac_res=`eval echo '${'$as_ac_var'}'`
16244 { echo "$as_me:$LINENO: result: $ac_res" >&5
16245 echo "${ECHO_T}$ac_res" >&6; }
16246 if test `eval echo '${'$as_ac_var'}'` = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16249 _ACEOF
16252 done
16255 # Solaris has libkstat which does not require root.
16257 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16258 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16259 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262 ac_check_lib_save_LIBS=$LIBS
16263 LIBS="-lkstat $LIBS"
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16271 /* Override any GCC internal prototype to avoid an error.
16272 Use char because int might match the return type of a GCC
16273 builtin and then its argument prototype would still apply. */
16274 #ifdef __cplusplus
16275 extern "C"
16276 #endif
16277 char kstat_open ();
16279 main ()
16281 return kstat_open ();
16283 return 0;
16285 _ACEOF
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (ac_try="$ac_link"
16288 case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16291 esac
16292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_link") 2>conftest.er1
16294 ac_status=$?
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } && {
16300 test -z "$ac_c_werror_flag" ||
16301 test ! -s conftest.err
16302 } && test -s conftest$ac_exeext &&
16303 $as_test_x conftest$ac_exeext; then
16304 ac_cv_lib_kstat_kstat_open=yes
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_cv_lib_kstat_kstat_open=no
16312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16313 conftest$ac_exeext conftest.$ac_ext
16314 LIBS=$ac_check_lib_save_LIBS
16316 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16317 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16318 if test $ac_cv_lib_kstat_kstat_open = yes; then
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_LIBKSTAT 1
16321 _ACEOF
16323 LIBS="-lkstat $LIBS"
16327 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16329 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16330 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16331 # to get the right answer into the cache.
16332 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16333 if test $ac_have_func = no; then
16334 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16335 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16336 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339 ac_check_lib_save_LIBS=$LIBS
16340 LIBS="-lelf $LIBS"
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h. */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16348 /* Override any GCC internal prototype to avoid an error.
16349 Use char because int might match the return type of a GCC
16350 builtin and then its argument prototype would still apply. */
16351 #ifdef __cplusplus
16352 extern "C"
16353 #endif
16354 char elf_begin ();
16356 main ()
16358 return elf_begin ();
16360 return 0;
16362 _ACEOF
16363 rm -f conftest.$ac_objext conftest$ac_exeext
16364 if { (ac_try="$ac_link"
16365 case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16368 esac
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_link") 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest$ac_exeext &&
16380 $as_test_x conftest$ac_exeext; then
16381 ac_cv_lib_elf_elf_begin=yes
16382 else
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_cv_lib_elf_elf_begin=no
16389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16390 conftest$ac_exeext conftest.$ac_ext
16391 LIBS=$ac_check_lib_save_LIBS
16393 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16394 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16395 if test $ac_cv_lib_elf_elf_begin = yes; then
16396 LIBS="-lelf $LIBS"
16400 if test $ac_have_func = no; then
16401 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16402 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16403 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406 ac_check_lib_save_LIBS=$LIBS
16407 LIBS="-lkvm $LIBS"
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h. */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16415 /* Override any GCC internal prototype to avoid an error.
16416 Use char because int might match the return type of a GCC
16417 builtin and then its argument prototype would still apply. */
16418 #ifdef __cplusplus
16419 extern "C"
16420 #endif
16421 char kvm_open ();
16423 main ()
16425 return kvm_open ();
16427 return 0;
16429 _ACEOF
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (ac_try="$ac_link"
16432 case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16435 esac
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_link") 2>conftest.er1
16438 ac_status=$?
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } && {
16444 test -z "$ac_c_werror_flag" ||
16445 test ! -s conftest.err
16446 } && test -s conftest$ac_exeext &&
16447 $as_test_x conftest$ac_exeext; then
16448 ac_cv_lib_kvm_kvm_open=yes
16449 else
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 ac_cv_lib_kvm_kvm_open=no
16456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16457 conftest$ac_exeext conftest.$ac_ext
16458 LIBS=$ac_check_lib_save_LIBS
16460 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16461 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16462 if test $ac_cv_lib_kvm_kvm_open = yes; then
16463 LIBS="-lkvm $LIBS"
16466 # Check for the 4.4BSD definition of getloadavg.
16467 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16468 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16469 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lutil $LIBS"
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16481 /* Override any GCC internal prototype to avoid an error.
16482 Use char because int might match the return type of a GCC
16483 builtin and then its argument prototype would still apply. */
16484 #ifdef __cplusplus
16485 extern "C"
16486 #endif
16487 char getloadavg ();
16489 main ()
16491 return getloadavg ();
16493 return 0;
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_link") 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest$ac_exeext &&
16513 $as_test_x conftest$ac_exeext; then
16514 ac_cv_lib_util_getloadavg=yes
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_lib_util_getloadavg=no
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16527 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16528 if test $ac_cv_lib_util_getloadavg = yes; then
16529 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16534 if test $ac_have_func = no; then
16535 # There is a commonly available library for RS/6000 AIX.
16536 # Since it is not a standard part of AIX, it might be installed locally.
16537 ac_getloadavg_LIBS=$LIBS
16538 LIBS="-L/usr/local/lib $LIBS"
16539 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16540 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16541 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544 ac_check_lib_save_LIBS=$LIBS
16545 LIBS="-lgetloadavg $LIBS"
16546 cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h. */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16553 /* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
16556 #ifdef __cplusplus
16557 extern "C"
16558 #endif
16559 char getloadavg ();
16561 main ()
16563 return getloadavg ();
16565 return 0;
16567 _ACEOF
16568 rm -f conftest.$ac_objext conftest$ac_exeext
16569 if { (ac_try="$ac_link"
16570 case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573 esac
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_link") 2>conftest.er1
16576 ac_status=$?
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && {
16582 test -z "$ac_c_werror_flag" ||
16583 test ! -s conftest.err
16584 } && test -s conftest$ac_exeext &&
16585 $as_test_x conftest$ac_exeext; then
16586 ac_cv_lib_getloadavg_getloadavg=yes
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_lib_getloadavg_getloadavg=no
16594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16595 conftest$ac_exeext conftest.$ac_ext
16596 LIBS=$ac_check_lib_save_LIBS
16598 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16599 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16600 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16601 LIBS="-lgetloadavg $LIBS"
16602 else
16603 LIBS=$ac_getloadavg_LIBS
16608 # Make sure it is really in the library, if we think we found it,
16609 # otherwise set up the replacement function.
16611 for ac_func in getloadavg
16613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619 cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16627 #define $ac_func innocuous_$ac_func
16629 /* System header to define __stub macros and hopefully few prototypes,
16630 which can conflict with char $ac_func (); below.
16631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16632 <limits.h> exists even on freestanding compilers. */
16634 #ifdef __STDC__
16635 # include <limits.h>
16636 #else
16637 # include <assert.h>
16638 #endif
16640 #undef $ac_func
16642 /* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
16645 #ifdef __cplusplus
16646 extern "C"
16647 #endif
16648 char $ac_func ();
16649 /* The GNU C library defines this for functions which it implements
16650 to always fail with ENOSYS. Some functions are actually named
16651 something starting with __ and the normal name is an alias. */
16652 #if defined __stub_$ac_func || defined __stub___$ac_func
16653 choke me
16654 #endif
16657 main ()
16659 return $ac_func ();
16661 return 0;
16663 _ACEOF
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (ac_try="$ac_link"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_link") 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest$ac_exeext &&
16681 $as_test_x conftest$ac_exeext; then
16682 eval "$as_ac_var=yes"
16683 else
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 eval "$as_ac_var=no"
16690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16691 conftest$ac_exeext conftest.$ac_ext
16693 ac_res=`eval echo '${'$as_ac_var'}'`
16694 { echo "$as_me:$LINENO: result: $ac_res" >&5
16695 echo "${ECHO_T}$ac_res" >&6; }
16696 if test `eval echo '${'$as_ac_var'}'` = yes; then
16697 cat >>confdefs.h <<_ACEOF
16698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16699 _ACEOF
16701 else
16702 case " $LIBOBJS " in
16703 *" getloadavg.$ac_objext "* ) ;;
16704 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16706 esac
16709 cat >>confdefs.h <<\_ACEOF
16710 #define C_GETLOADAVG 1
16711 _ACEOF
16713 # Figure out what our getloadavg.c needs.
16714 ac_have_func=no
16715 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16716 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16717 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16718 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16722 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16723 else
16724 # Is the header compilable?
16725 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16726 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16734 #include <sys/dg_sys_info.h>
16735 _ACEOF
16736 rm -f conftest.$ac_objext
16737 if { (ac_try="$ac_compile"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_compile") 2>conftest.er1
16744 ac_status=$?
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } && {
16750 test -z "$ac_c_werror_flag" ||
16751 test ! -s conftest.err
16752 } && test -s conftest.$ac_objext; then
16753 ac_header_compiler=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_compiler=no
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16763 echo "${ECHO_T}$ac_header_compiler" >&6; }
16765 # Is the header present?
16766 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16767 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h. */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <sys/dg_sys_info.h>
16775 _ACEOF
16776 if { (ac_try="$ac_cpp conftest.$ac_ext"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } >/dev/null && {
16789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16790 test ! -s conftest.err
16791 }; then
16792 ac_header_preproc=yes
16793 else
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ac_header_preproc=no
16800 rm -f conftest.err conftest.$ac_ext
16801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16802 echo "${ECHO_T}$ac_header_preproc" >&6; }
16804 # So? What about this header?
16805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16806 yes:no: )
16807 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16808 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16810 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16811 ac_header_preproc=yes
16813 no:yes:* )
16814 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16815 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16817 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16819 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16821 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16823 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16825 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16828 esac
16829 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16830 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16831 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16837 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16840 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16841 ac_have_func=yes
16843 cat >>confdefs.h <<\_ACEOF
16844 #define DGUX 1
16845 _ACEOF
16848 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16849 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16850 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853 ac_check_lib_save_LIBS=$LIBS
16854 LIBS="-ldgc $LIBS"
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16862 /* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 char dg_sys_info ();
16870 main ()
16872 return dg_sys_info ();
16874 return 0;
16876 _ACEOF
16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (ac_try="$ac_link"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_link") 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } && {
16891 test -z "$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16893 } && test -s conftest$ac_exeext &&
16894 $as_test_x conftest$ac_exeext; then
16895 ac_cv_lib_dgc_dg_sys_info=yes
16896 else
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_lib_dgc_dg_sys_info=no
16903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16904 conftest$ac_exeext conftest.$ac_ext
16905 LIBS=$ac_check_lib_save_LIBS
16907 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16908 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16909 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16910 cat >>confdefs.h <<_ACEOF
16911 #define HAVE_LIBDGC 1
16912 _ACEOF
16914 LIBS="-ldgc $LIBS"
16922 if test "${ac_cv_header_locale_h+set}" = set; then
16923 { echo "$as_me:$LINENO: checking for locale.h" >&5
16924 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16925 if test "${ac_cv_header_locale_h+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16929 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16930 else
16931 # Is the header compilable?
16932 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16933 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16934 cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h. */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 $ac_includes_default
16941 #include <locale.h>
16942 _ACEOF
16943 rm -f conftest.$ac_objext
16944 if { (ac_try="$ac_compile"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_compile") 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest.$ac_objext; then
16960 ac_header_compiler=yes
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_compiler=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16974 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h. */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <locale.h>
16982 _ACEOF
16983 if { (ac_try="$ac_cpp conftest.$ac_ext"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null && {
16996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 }; then
16999 ac_header_preproc=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_header_preproc=no
17007 rm -f conftest.err conftest.$ac_ext
17008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17009 echo "${ECHO_T}$ac_header_preproc" >&6; }
17011 # So? What about this header?
17012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17013 yes:no: )
17014 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17015 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17017 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17018 ac_header_preproc=yes
17020 no:yes:* )
17021 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17022 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17024 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17026 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17028 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17030 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17032 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17035 esac
17036 { echo "$as_me:$LINENO: checking for locale.h" >&5
17037 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17038 if test "${ac_cv_header_locale_h+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 ac_cv_header_locale_h=$ac_header_preproc
17043 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17044 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17050 for ac_func in setlocale
17052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058 cat >conftest.$ac_ext <<_ACEOF
17059 /* confdefs.h. */
17060 _ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17066 #define $ac_func innocuous_$ac_func
17068 /* System header to define __stub macros and hopefully few prototypes,
17069 which can conflict with char $ac_func (); below.
17070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071 <limits.h> exists even on freestanding compilers. */
17073 #ifdef __STDC__
17074 # include <limits.h>
17075 #else
17076 # include <assert.h>
17077 #endif
17079 #undef $ac_func
17081 /* Override any GCC internal prototype to avoid an error.
17082 Use char because int might match the return type of a GCC
17083 builtin and then its argument prototype would still apply. */
17084 #ifdef __cplusplus
17085 extern "C"
17086 #endif
17087 char $ac_func ();
17088 /* The GNU C library defines this for functions which it implements
17089 to always fail with ENOSYS. Some functions are actually named
17090 something starting with __ and the normal name is an alias. */
17091 #if defined __stub_$ac_func || defined __stub___$ac_func
17092 choke me
17093 #endif
17096 main ()
17098 return $ac_func ();
17100 return 0;
17102 _ACEOF
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_link") 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest$ac_exeext &&
17120 $as_test_x conftest$ac_exeext; then
17121 eval "$as_ac_var=yes"
17122 else
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 eval "$as_ac_var=no"
17129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17130 conftest$ac_exeext conftest.$ac_ext
17132 ac_res=`eval echo '${'$as_ac_var'}'`
17133 { echo "$as_me:$LINENO: result: $ac_res" >&5
17134 echo "${ECHO_T}$ac_res" >&6; }
17135 if test `eval echo '${'$as_ac_var'}'` = yes; then
17136 cat >>confdefs.h <<_ACEOF
17137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17138 _ACEOF
17141 done
17144 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17145 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17146 # Irix 4.0.5F has the header but not the library.
17147 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17148 ac_have_func=yes
17150 cat >>confdefs.h <<\_ACEOF
17151 #define SVR4 1
17152 _ACEOF
17156 if test $ac_have_func = no; then
17157 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17158 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17159 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17160 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17164 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17165 else
17166 # Is the header compilable?
17167 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17168 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17169 cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h. */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 $ac_includes_default
17176 #include <inq_stats/cpustats.h>
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest.$ac_objext; then
17195 ac_header_compiler=yes
17196 else
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_header_compiler=no
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17205 echo "${ECHO_T}$ac_header_compiler" >&6; }
17207 # Is the header present?
17208 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17209 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 #include <inq_stats/cpustats.h>
17217 _ACEOF
17218 if { (ac_try="$ac_cpp conftest.$ac_ext"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } >/dev/null && {
17231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 }; then
17234 ac_header_preproc=yes
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_header_preproc=no
17242 rm -f conftest.err conftest.$ac_ext
17243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17244 echo "${ECHO_T}$ac_header_preproc" >&6; }
17246 # So? What about this header?
17247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17248 yes:no: )
17249 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17250 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17252 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17253 ac_header_preproc=yes
17255 no:yes:* )
17256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17257 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17259 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17261 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17263 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17265 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17267 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17270 esac
17271 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17272 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17273 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17278 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17279 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17282 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17283 ac_have_func=yes
17285 cat >>confdefs.h <<\_ACEOF
17286 #define UMAX 1
17287 _ACEOF
17290 cat >>confdefs.h <<\_ACEOF
17291 #define UMAX4_3 1
17292 _ACEOF
17299 if test $ac_have_func = no; then
17300 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17301 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17302 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17303 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17307 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17308 else
17309 # Is the header compilable?
17310 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17311 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17312 cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h. */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 $ac_includes_default
17319 #include <sys/cpustats.h>
17320 _ACEOF
17321 rm -f conftest.$ac_objext
17322 if { (ac_try="$ac_compile"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326 esac
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_compile") 2>conftest.er1
17329 ac_status=$?
17330 grep -v '^ *+' conftest.er1 >conftest.err
17331 rm -f conftest.er1
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } && {
17335 test -z "$ac_c_werror_flag" ||
17336 test ! -s conftest.err
17337 } && test -s conftest.$ac_objext; then
17338 ac_header_compiler=yes
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_header_compiler=no
17346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17348 echo "${ECHO_T}$ac_header_compiler" >&6; }
17350 # Is the header present?
17351 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17352 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17353 cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h. */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <sys/cpustats.h>
17360 _ACEOF
17361 if { (ac_try="$ac_cpp conftest.$ac_ext"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17368 ac_status=$?
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } >/dev/null && {
17374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17375 test ! -s conftest.err
17376 }; then
17377 ac_header_preproc=yes
17378 else
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ac_header_preproc=no
17385 rm -f conftest.err conftest.$ac_ext
17386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17387 echo "${ECHO_T}$ac_header_preproc" >&6; }
17389 # So? What about this header?
17390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17391 yes:no: )
17392 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17393 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17395 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17396 ac_header_preproc=yes
17398 no:yes:* )
17399 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17400 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17401 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17402 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17404 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17406 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17408 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17410 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17413 esac
17414 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17415 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17416 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17421 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17422 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17425 if test $ac_cv_header_sys_cpustats_h = yes; then
17426 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17427 #define UMAX 1
17428 _ACEOF
17435 if test $ac_have_func = no; then
17437 for ac_header in mach/mach.h
17439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 ac_res=`eval echo '${'$as_ac_Header'}'`
17447 { echo "$as_me:$LINENO: result: $ac_res" >&5
17448 echo "${ECHO_T}$ac_res" >&6; }
17449 else
17450 # Is the header compilable?
17451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 $ac_includes_default
17460 #include <$ac_header>
17461 _ACEOF
17462 rm -f conftest.$ac_objext
17463 if { (ac_try="$ac_compile"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_compile") 2>conftest.er1
17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } && {
17476 test -z "$ac_c_werror_flag" ||
17477 test ! -s conftest.err
17478 } && test -s conftest.$ac_objext; then
17479 ac_header_compiler=yes
17480 else
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_header_compiler=no
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17489 echo "${ECHO_T}$ac_header_compiler" >&6; }
17491 # Is the header present?
17492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 #include <$ac_header>
17501 _ACEOF
17502 if { (ac_try="$ac_cpp conftest.$ac_ext"
17503 case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17509 ac_status=$?
17510 grep -v '^ *+' conftest.er1 >conftest.err
17511 rm -f conftest.er1
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } >/dev/null && {
17515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17516 test ! -s conftest.err
17517 }; then
17518 ac_header_preproc=yes
17519 else
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ac_header_preproc=no
17526 rm -f conftest.err conftest.$ac_ext
17527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17528 echo "${ECHO_T}$ac_header_preproc" >&6; }
17530 # So? What about this header?
17531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17532 yes:no: )
17533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17537 ac_header_preproc=yes
17539 no:yes:* )
17540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17554 esac
17555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560 eval "$as_ac_Header=\$ac_header_preproc"
17562 ac_res=`eval echo '${'$as_ac_Header'}'`
17563 { echo "$as_me:$LINENO: result: $ac_res" >&5
17564 echo "${ECHO_T}$ac_res" >&6; }
17567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17568 cat >>confdefs.h <<_ACEOF
17569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17570 _ACEOF
17574 done
17579 for ac_header in nlist.h
17581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 ac_res=`eval echo '${'$as_ac_Header'}'`
17589 { echo "$as_me:$LINENO: result: $ac_res" >&5
17590 echo "${ECHO_T}$ac_res" >&6; }
17591 else
17592 # Is the header compilable?
17593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 $ac_includes_default
17602 #include <$ac_header>
17603 _ACEOF
17604 rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_compile") 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest.$ac_objext; then
17621 ac_header_compiler=yes
17622 else
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ac_header_compiler=no
17629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17631 echo "${ECHO_T}$ac_header_compiler" >&6; }
17633 # Is the header present?
17634 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 #include <$ac_header>
17643 _ACEOF
17644 if { (ac_try="$ac_cpp conftest.$ac_ext"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } >/dev/null && {
17657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17658 test ! -s conftest.err
17659 }; then
17660 ac_header_preproc=yes
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_header_preproc=no
17668 rm -f conftest.err conftest.$ac_ext
17669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17670 echo "${ECHO_T}$ac_header_preproc" >&6; }
17672 # So? What about this header?
17673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17674 yes:no: )
17675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17679 ac_header_preproc=yes
17681 no:yes:* )
17682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17696 esac
17697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702 eval "$as_ac_Header=\$ac_header_preproc"
17704 ac_res=`eval echo '${'$as_ac_Header'}'`
17705 { echo "$as_me:$LINENO: result: $ac_res" >&5
17706 echo "${ECHO_T}$ac_res" >&6; }
17709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17710 cat >>confdefs.h <<_ACEOF
17711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17712 _ACEOF
17713 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17714 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17715 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718 cat >conftest.$ac_ext <<_ACEOF
17719 /* confdefs.h. */
17720 _ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17724 #include <nlist.h>
17727 main ()
17729 static struct nlist ac_aggr;
17730 if (ac_aggr.n_un.n_name)
17731 return 0;
17733 return 0;
17735 _ACEOF
17736 rm -f conftest.$ac_objext
17737 if { (ac_try="$ac_compile"
17738 case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_compile") 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } && {
17750 test -z "$ac_c_werror_flag" ||
17751 test ! -s conftest.err
17752 } && test -s conftest.$ac_objext; then
17753 ac_cv_member_struct_nlist_n_un_n_name=yes
17754 else
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 #include <nlist.h>
17767 main ()
17769 static struct nlist ac_aggr;
17770 if (sizeof ac_aggr.n_un.n_name)
17771 return 0;
17773 return 0;
17775 _ACEOF
17776 rm -f conftest.$ac_objext
17777 if { (ac_try="$ac_compile"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_compile") 2>conftest.er1
17784 ac_status=$?
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } && {
17790 test -z "$ac_c_werror_flag" ||
17791 test ! -s conftest.err
17792 } && test -s conftest.$ac_objext; then
17793 ac_cv_member_struct_nlist_n_un_n_name=yes
17794 else
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ac_cv_member_struct_nlist_n_un_n_name=no
17801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17807 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17808 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17810 cat >>confdefs.h <<_ACEOF
17811 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17812 _ACEOF
17815 cat >>confdefs.h <<\_ACEOF
17816 #define NLIST_NAME_UNION 1
17817 _ACEOF
17824 done
17827 done
17830 # Some definitions of getloadavg require that the program be installed setgid.
17831 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17832 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17833 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h. */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17843 #ifdef LDAV_PRIVILEGED
17844 Yowza Am I SETGID yet
17845 #endif
17846 _ACEOF
17847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17848 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17849 ac_cv_func_getloadavg_setgid=yes
17850 else
17851 ac_cv_func_getloadavg_setgid=no
17853 rm -f conftest*
17856 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17857 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17858 if test $ac_cv_func_getloadavg_setgid = yes; then
17859 NEED_SETGID=true
17861 cat >>confdefs.h <<\_ACEOF
17862 #define GETLOADAVG_PRIVILEGED 1
17863 _ACEOF
17865 else
17866 NEED_SETGID=false
17869 if test $ac_cv_func_getloadavg_setgid = yes; then
17870 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17871 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17872 if test "${ac_cv_group_kmem+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17876 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17877 # If we got an error (system does not support symlinks), try without -L.
17878 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17879 ac_cv_group_kmem=`echo $ac_ls_output \
17880 | sed -ne 's/[ ][ ]*/ /g;
17881 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17882 / /s/.* //;p;'`
17885 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17886 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17887 KMEM_GROUP=$ac_cv_group_kmem
17889 if test "x$ac_save_LIBS" = x; then
17890 GETLOADAVG_LIBS=$LIBS
17891 else
17892 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17894 LIBS=$ac_save_LIBS
17898 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17899 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17900 if test "${ac_cv_sys_largefile_source+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 while :; do
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 #include <stdio.h>
17912 main ()
17914 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest$ac_exeext &&
17936 $as_test_x conftest$ac_exeext; then
17937 ac_cv_sys_largefile_source=no; break
17938 else
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17946 conftest$ac_exeext conftest.$ac_ext
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h. */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953 #define _LARGEFILE_SOURCE 1
17954 #include <stdio.h>
17956 main ()
17958 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17960 return 0;
17962 _ACEOF
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (ac_try="$ac_link"
17965 case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17968 esac
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_link") 2>conftest.er1
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } && {
17977 test -z "$ac_c_werror_flag" ||
17978 test ! -s conftest.err
17979 } && test -s conftest$ac_exeext &&
17980 $as_test_x conftest$ac_exeext; then
17981 ac_cv_sys_largefile_source=1; break
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17990 conftest$ac_exeext conftest.$ac_ext
17991 ac_cv_sys_largefile_source=unknown
17992 break
17993 done
17995 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17996 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17997 case $ac_cv_sys_largefile_source in #(
17998 no | unknown) ;;
18000 cat >>confdefs.h <<_ACEOF
18001 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18002 _ACEOF
18004 esac
18005 rm -f conftest*
18007 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18008 # in glibc 2.1.3, but that breaks too many other things.
18009 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18010 if test $ac_cv_sys_largefile_source != unknown; then
18012 cat >>confdefs.h <<\_ACEOF
18013 #define HAVE_FSEEKO 1
18014 _ACEOF
18019 # Configure getopt.
18020 # getopt.m4 serial 10
18022 # The getopt module assume you want GNU getopt, with getopt_long etc,
18023 # rather than vanilla POSIX getopt. This means your your code should
18024 # always include <getopt.h> for the getopt prototypes.
18036 # Prerequisites of lib/getopt*.
18041 GETOPT_H=
18043 for ac_header in getopt.h
18045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 ac_res=`eval echo '${'$as_ac_Header'}'`
18053 { echo "$as_me:$LINENO: result: $ac_res" >&5
18054 echo "${ECHO_T}$ac_res" >&6; }
18055 else
18056 # Is the header compilable?
18057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18059 cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h. */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 $ac_includes_default
18066 #include <$ac_header>
18067 _ACEOF
18068 rm -f conftest.$ac_objext
18069 if { (ac_try="$ac_compile"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_compile") 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } && {
18082 test -z "$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18084 } && test -s conftest.$ac_objext; then
18085 ac_header_compiler=yes
18086 else
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_header_compiler=no
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18095 echo "${ECHO_T}$ac_header_compiler" >&6; }
18097 # Is the header present?
18098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18100 cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h. */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 #include <$ac_header>
18107 _ACEOF
18108 if { (ac_try="$ac_cpp conftest.$ac_ext"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18115 ac_status=$?
18116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } >/dev/null && {
18121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18122 test ! -s conftest.err
18123 }; then
18124 ac_header_preproc=yes
18125 else
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18129 ac_header_preproc=no
18132 rm -f conftest.err conftest.$ac_ext
18133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18134 echo "${ECHO_T}$ac_header_preproc" >&6; }
18136 # So? What about this header?
18137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18138 yes:no: )
18139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18143 ac_header_preproc=yes
18145 no:yes:* )
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18160 esac
18161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166 eval "$as_ac_Header=\$ac_header_preproc"
18168 ac_res=`eval echo '${'$as_ac_Header'}'`
18169 { echo "$as_me:$LINENO: result: $ac_res" >&5
18170 echo "${ECHO_T}$ac_res" >&6; }
18173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18176 _ACEOF
18178 else
18179 GETOPT_H=getopt.h
18182 done
18184 if test -z "$GETOPT_H"; then
18186 for ac_func in getopt_long_only
18188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 else
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18202 #define $ac_func innocuous_$ac_func
18204 /* System header to define __stub macros and hopefully few prototypes,
18205 which can conflict with char $ac_func (); below.
18206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18207 <limits.h> exists even on freestanding compilers. */
18209 #ifdef __STDC__
18210 # include <limits.h>
18211 #else
18212 # include <assert.h>
18213 #endif
18215 #undef $ac_func
18217 /* Override any GCC internal prototype to avoid an error.
18218 Use char because int might match the return type of a GCC
18219 builtin and then its argument prototype would still apply. */
18220 #ifdef __cplusplus
18221 extern "C"
18222 #endif
18223 char $ac_func ();
18224 /* The GNU C library defines this for functions which it implements
18225 to always fail with ENOSYS. Some functions are actually named
18226 something starting with __ and the normal name is an alias. */
18227 #if defined __stub_$ac_func || defined __stub___$ac_func
18228 choke me
18229 #endif
18232 main ()
18234 return $ac_func ();
18236 return 0;
18238 _ACEOF
18239 rm -f conftest.$ac_objext conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>conftest.er1
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } && {
18253 test -z "$ac_c_werror_flag" ||
18254 test ! -s conftest.err
18255 } && test -s conftest$ac_exeext &&
18256 $as_test_x conftest$ac_exeext; then
18257 eval "$as_ac_var=yes"
18258 else
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 eval "$as_ac_var=no"
18265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18266 conftest$ac_exeext conftest.$ac_ext
18268 ac_res=`eval echo '${'$as_ac_var'}'`
18269 { echo "$as_me:$LINENO: result: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18271 if test `eval echo '${'$as_ac_var'}'` = yes; then
18272 cat >>confdefs.h <<_ACEOF
18273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18274 _ACEOF
18276 else
18277 GETOPT_H=getopt.h
18279 done
18283 if test -z "$GETOPT_H"; then
18284 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18285 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18286 if test "${ac_cv_have_decl_optreset+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289 cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h. */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 #include <getopt.h>
18298 main ()
18300 #ifndef optreset
18301 (void) optreset;
18302 #endif
18305 return 0;
18307 _ACEOF
18308 rm -f conftest.$ac_objext
18309 if { (ac_try="$ac_compile"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_compile") 2>conftest.er1
18316 ac_status=$?
18317 grep -v '^ *+' conftest.er1 >conftest.err
18318 rm -f conftest.er1
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && {
18322 test -z "$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 } && test -s conftest.$ac_objext; then
18325 ac_cv_have_decl_optreset=yes
18326 else
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_cv_have_decl_optreset=no
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18336 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18337 if test $ac_cv_have_decl_optreset = yes; then
18338 GETOPT_H=getopt.h
18343 if test -z "$GETOPT_H"; then
18344 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18345 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18346 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349 if test "$cross_compiling" = yes; then
18350 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18351 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18352 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 else
18355 cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h. */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18361 #include <getopt.h>
18364 main ()
18366 #ifndef getopt_clip
18367 (void) getopt_clip;
18368 #endif
18371 return 0;
18373 _ACEOF
18374 rm -f conftest.$ac_objext
18375 if { (ac_try="$ac_compile"
18376 case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_compile") 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest.$ac_objext; then
18391 ac_cv_have_decl_getopt_clip=yes
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_have_decl_getopt_clip=no
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18402 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18403 if test $ac_cv_have_decl_getopt_clip = yes; then
18404 gl_cv_func_gnu_getopt=no
18405 else
18406 gl_cv_func_gnu_getopt=yes
18409 else
18410 cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h. */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 #include <getopt.h>
18418 main ()
18421 char *myargv[3];
18422 myargv[0] = "conftest";
18423 myargv[1] = "-+";
18424 myargv[2] = 0;
18425 return getopt (2, myargv, "+a") != '?';
18428 return 0;
18430 _ACEOF
18431 rm -f conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_link") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 gl_cv_func_gnu_getopt=yes
18452 else
18453 echo "$as_me: program exited with status $ac_status" >&5
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 ( exit $ac_status )
18458 gl_cv_func_gnu_getopt=no
18460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18465 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18466 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18467 if test "$gl_cv_func_gnu_getopt" = "no"; then
18468 GETOPT_H=getopt.h
18474 if test -n "$GETOPT_H"; then
18477 GETOPT_H=getopt.h
18479 cat >>confdefs.h <<\_ACEOF
18480 #define __GETOPT_PREFIX rpl_
18481 _ACEOF
18486 GETOPTOBJS='getopt.o getopt1.o'
18493 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18494 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18495 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498 # Use it with a single arg.
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 $ac_includes_default
18507 main ()
18509 getpgrp (0);
18511 return 0;
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_compile") 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest.$ac_objext; then
18531 ac_cv_func_getpgrp_void=no
18532 else
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 ac_cv_func_getpgrp_void=yes
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18543 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18544 if test $ac_cv_func_getpgrp_void = yes; then
18546 cat >>confdefs.h <<\_ACEOF
18547 #define GETPGRP_VOID 1
18548 _ACEOF
18554 for ac_func in strftime
18556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define $ac_func innocuous_$ac_func
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char $ac_func (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18577 #ifdef __STDC__
18578 # include <limits.h>
18579 #else
18580 # include <assert.h>
18581 #endif
18583 #undef $ac_func
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18588 #ifdef __cplusplus
18589 extern "C"
18590 #endif
18591 char $ac_func ();
18592 /* The GNU C library defines this for functions which it implements
18593 to always fail with ENOSYS. Some functions are actually named
18594 something starting with __ and the normal name is an alias. */
18595 #if defined __stub_$ac_func || defined __stub___$ac_func
18596 choke me
18597 #endif
18600 main ()
18602 return $ac_func ();
18604 return 0;
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } && {
18621 test -z "$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 } && test -s conftest$ac_exeext &&
18624 $as_test_x conftest$ac_exeext; then
18625 eval "$as_ac_var=yes"
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 eval "$as_ac_var=no"
18633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18634 conftest$ac_exeext conftest.$ac_ext
18636 ac_res=`eval echo '${'$as_ac_var'}'`
18637 { echo "$as_me:$LINENO: result: $ac_res" >&5
18638 echo "${ECHO_T}$ac_res" >&6; }
18639 if test `eval echo '${'$as_ac_var'}'` = yes; then
18640 cat >>confdefs.h <<_ACEOF
18641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18642 _ACEOF
18644 else
18645 # strftime is in -lintl on SCO UNIX.
18646 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18647 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18648 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651 ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lintl $LIBS"
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18663 #ifdef __cplusplus
18664 extern "C"
18665 #endif
18666 char strftime ();
18668 main ()
18670 return strftime ();
18672 return 0;
18674 _ACEOF
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (ac_try="$ac_link"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_link") 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } && {
18689 test -z "$ac_c_werror_flag" ||
18690 test ! -s conftest.err
18691 } && test -s conftest$ac_exeext &&
18692 $as_test_x conftest$ac_exeext; then
18693 ac_cv_lib_intl_strftime=yes
18694 else
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_cv_lib_intl_strftime=no
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18705 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18706 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18707 if test $ac_cv_lib_intl_strftime = yes; then
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_STRFTIME 1
18710 _ACEOF
18712 LIBS="-lintl $LIBS"
18716 done
18719 # UNIX98 PTYs.
18721 for ac_func in grantpt
18723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729 cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h. */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18737 #define $ac_func innocuous_$ac_func
18739 /* System header to define __stub macros and hopefully few prototypes,
18740 which can conflict with char $ac_func (); below.
18741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18742 <limits.h> exists even on freestanding compilers. */
18744 #ifdef __STDC__
18745 # include <limits.h>
18746 #else
18747 # include <assert.h>
18748 #endif
18750 #undef $ac_func
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18755 #ifdef __cplusplus
18756 extern "C"
18757 #endif
18758 char $ac_func ();
18759 /* The GNU C library defines this for functions which it implements
18760 to always fail with ENOSYS. Some functions are actually named
18761 something starting with __ and the normal name is an alias. */
18762 #if defined __stub_$ac_func || defined __stub___$ac_func
18763 choke me
18764 #endif
18767 main ()
18769 return $ac_func ();
18771 return 0;
18773 _ACEOF
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (ac_try="$ac_link"
18776 case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18779 esac
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_link") 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } && {
18788 test -z "$ac_c_werror_flag" ||
18789 test ! -s conftest.err
18790 } && test -s conftest$ac_exeext &&
18791 $as_test_x conftest$ac_exeext; then
18792 eval "$as_ac_var=yes"
18793 else
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18797 eval "$as_ac_var=no"
18800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18801 conftest$ac_exeext conftest.$ac_ext
18803 ac_res=`eval echo '${'$as_ac_var'}'`
18804 { echo "$as_me:$LINENO: result: $ac_res" >&5
18805 echo "${ECHO_T}$ac_res" >&6; }
18806 if test `eval echo '${'$as_ac_var'}'` = yes; then
18807 cat >>confdefs.h <<_ACEOF
18808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18809 _ACEOF
18812 done
18815 # PTY-related GNU extensions.
18817 for ac_func in getpt
18819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 else
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h. */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18833 #define $ac_func innocuous_$ac_func
18835 /* System header to define __stub macros and hopefully few prototypes,
18836 which can conflict with char $ac_func (); below.
18837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838 <limits.h> exists even on freestanding compilers. */
18840 #ifdef __STDC__
18841 # include <limits.h>
18842 #else
18843 # include <assert.h>
18844 #endif
18846 #undef $ac_func
18848 /* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18851 #ifdef __cplusplus
18852 extern "C"
18853 #endif
18854 char $ac_func ();
18855 /* The GNU C library defines this for functions which it implements
18856 to always fail with ENOSYS. Some functions are actually named
18857 something starting with __ and the normal name is an alias. */
18858 #if defined __stub_$ac_func || defined __stub___$ac_func
18859 choke me
18860 #endif
18863 main ()
18865 return $ac_func ();
18867 return 0;
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (ac_try="$ac_link"
18872 case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_link") 2>conftest.er1
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } && {
18884 test -z "$ac_c_werror_flag" ||
18885 test ! -s conftest.err
18886 } && test -s conftest$ac_exeext &&
18887 $as_test_x conftest$ac_exeext; then
18888 eval "$as_ac_var=yes"
18889 else
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 eval "$as_ac_var=no"
18896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18897 conftest$ac_exeext conftest.$ac_ext
18899 ac_res=`eval echo '${'$as_ac_var'}'`
18900 { echo "$as_me:$LINENO: result: $ac_res" >&5
18901 echo "${ECHO_T}$ac_res" >&6; }
18902 if test `eval echo '${'$as_ac_var'}'` = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18905 _ACEOF
18908 done
18911 # Check this now, so that we will NOT find the above functions in ncurses.
18912 # That is because we have not set up to link ncurses in lib-src.
18913 # It's better to believe a function is not available
18914 # than to expect to find it in ncurses.
18916 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18917 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18918 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921 ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lncurses $LIBS"
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h. */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 /* Override any GCC internal prototype to avoid an error.
18931 Use char because int might match the return type of a GCC
18932 builtin and then its argument prototype would still apply. */
18933 #ifdef __cplusplus
18934 extern "C"
18935 #endif
18936 char tparm ();
18938 main ()
18940 return tparm ();
18942 return 0;
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext &&
18962 $as_test_x conftest$ac_exeext; then
18963 ac_cv_lib_ncurses_tparm=yes
18964 else
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_lib_ncurses_tparm=no
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18973 LIBS=$ac_check_lib_save_LIBS
18975 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18976 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18977 if test $ac_cv_lib_ncurses_tparm = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_LIBNCURSES 1
18980 _ACEOF
18982 LIBS="-lncurses $LIBS"
18987 # Do we need the Hesiod library to provide the support routines?
18988 if test "$with_hesiod" = yes ; then
18989 # Don't set $LIBS here -- see comments above.
18990 resolv=no
18991 { echo "$as_me:$LINENO: checking for res_send" >&5
18992 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18993 if test "${ac_cv_func_res_send+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h. */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19004 #define res_send innocuous_res_send
19006 /* System header to define __stub macros and hopefully few prototypes,
19007 which can conflict with char res_send (); below.
19008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19009 <limits.h> exists even on freestanding compilers. */
19011 #ifdef __STDC__
19012 # include <limits.h>
19013 #else
19014 # include <assert.h>
19015 #endif
19017 #undef res_send
19019 /* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19022 #ifdef __cplusplus
19023 extern "C"
19024 #endif
19025 char res_send ();
19026 /* The GNU C library defines this for functions which it implements
19027 to always fail with ENOSYS. Some functions are actually named
19028 something starting with __ and the normal name is an alias. */
19029 #if defined __stub_res_send || defined __stub___res_send
19030 choke me
19031 #endif
19034 main ()
19036 return res_send ();
19038 return 0;
19040 _ACEOF
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } && {
19055 test -z "$ac_c_werror_flag" ||
19056 test ! -s conftest.err
19057 } && test -s conftest$ac_exeext &&
19058 $as_test_x conftest$ac_exeext; then
19059 ac_cv_func_res_send=yes
19060 else
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_cv_func_res_send=no
19067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19068 conftest$ac_exeext conftest.$ac_ext
19070 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19071 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19072 if test $ac_cv_func_res_send = yes; then
19074 else
19075 { echo "$as_me:$LINENO: checking for __res_send" >&5
19076 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19077 if test "${ac_cv_func___res_send+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19088 #define __res_send innocuous___res_send
19090 /* System header to define __stub macros and hopefully few prototypes,
19091 which can conflict with char __res_send (); below.
19092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19093 <limits.h> exists even on freestanding compilers. */
19095 #ifdef __STDC__
19096 # include <limits.h>
19097 #else
19098 # include <assert.h>
19099 #endif
19101 #undef __res_send
19103 /* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19106 #ifdef __cplusplus
19107 extern "C"
19108 #endif
19109 char __res_send ();
19110 /* The GNU C library defines this for functions which it implements
19111 to always fail with ENOSYS. Some functions are actually named
19112 something starting with __ and the normal name is an alias. */
19113 #if defined __stub___res_send || defined __stub_____res_send
19114 choke me
19115 #endif
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_func___res_send=yes
19144 else
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_cv_func___res_send=no
19151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19152 conftest$ac_exeext conftest.$ac_ext
19154 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19155 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19156 if test $ac_cv_func___res_send = yes; then
19158 else
19159 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19160 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164 ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lresolv $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h. */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char res_send ();
19181 main ()
19183 return res_send ();
19185 return 0;
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19196 ac_status=$?
19197 grep -v '^ *+' conftest.er1 >conftest.err
19198 rm -f conftest.er1
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest$ac_exeext &&
19205 $as_test_x conftest$ac_exeext; then
19206 ac_cv_lib_resolv_res_send=yes
19207 else
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_lib_resolv_res_send=no
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215 conftest$ac_exeext conftest.$ac_ext
19216 LIBS=$ac_check_lib_save_LIBS
19218 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19219 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19220 if test $ac_cv_lib_resolv_res_send = yes; then
19221 resolv=yes
19222 else
19223 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19224 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19225 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lresolv $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char __res_send ();
19245 main ()
19247 return __res_send ();
19249 return 0;
19251 _ACEOF
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest$ac_exeext &&
19269 $as_test_x conftest$ac_exeext; then
19270 ac_cv_lib_resolv___res_send=yes
19271 else
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 ac_cv_lib_resolv___res_send=no
19278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19283 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19284 if test $ac_cv_lib_resolv___res_send = yes; then
19285 resolv=yes
19294 if test "$resolv" = yes ; then
19295 RESOLVLIB=-lresolv
19297 cat >>confdefs.h <<\_ACEOF
19298 #define HAVE_LIBRESOLV 1
19299 _ACEOF
19301 else
19302 RESOLVLIB=
19304 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19305 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19306 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308 else
19309 cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h. */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19315 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19317 #define hes_getmailhost innocuous_hes_getmailhost
19319 /* System header to define __stub macros and hopefully few prototypes,
19320 which can conflict with char hes_getmailhost (); below.
19321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19322 <limits.h> exists even on freestanding compilers. */
19324 #ifdef __STDC__
19325 # include <limits.h>
19326 #else
19327 # include <assert.h>
19328 #endif
19330 #undef hes_getmailhost
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19335 #ifdef __cplusplus
19336 extern "C"
19337 #endif
19338 char hes_getmailhost ();
19339 /* The GNU C library defines this for functions which it implements
19340 to always fail with ENOSYS. Some functions are actually named
19341 something starting with __ and the normal name is an alias. */
19342 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19343 choke me
19344 #endif
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_func_hes_getmailhost=yes
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_func_hes_getmailhost=no
19380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19381 conftest$ac_exeext conftest.$ac_ext
19383 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19384 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19385 if test $ac_cv_func_hes_getmailhost = yes; then
19387 else
19388 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19389 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19390 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 else
19393 ac_check_lib_save_LIBS=$LIBS
19394 LIBS="-lhesiod $RESOLVLIB $LIBS"
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h. */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19405 #ifdef __cplusplus
19406 extern "C"
19407 #endif
19408 char hes_getmailhost ();
19410 main ()
19412 return hes_getmailhost ();
19414 return 0;
19416 _ACEOF
19417 rm -f conftest.$ac_objext conftest$ac_exeext
19418 if { (ac_try="$ac_link"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_link") 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } && {
19431 test -z "$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 } && test -s conftest$ac_exeext &&
19434 $as_test_x conftest$ac_exeext; then
19435 ac_cv_lib_hesiod_hes_getmailhost=yes
19436 else
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_cv_lib_hesiod_hes_getmailhost=no
19443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19444 conftest$ac_exeext conftest.$ac_ext
19445 LIBS=$ac_check_lib_save_LIBS
19447 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19448 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19449 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_LIBHESIOD 1
19453 _ACEOF
19455 else
19463 # These tell us which Kerberos-related libraries to use.
19464 if test "${with_kerberos+set}" = set; then
19466 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19467 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19468 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lcom_err $LIBS"
19473 cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19483 #ifdef __cplusplus
19484 extern "C"
19485 #endif
19486 char com_err ();
19488 main ()
19490 return com_err ();
19492 return 0;
19494 _ACEOF
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 ac_cv_lib_com_err_com_err=yes
19514 else
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ac_cv_lib_com_err_com_err=no
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19525 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19526 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19527 if test $ac_cv_lib_com_err_com_err = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define HAVE_LIBCOM_ERR 1
19530 _ACEOF
19532 LIBS="-lcom_err $LIBS"
19537 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19538 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19539 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542 ac_check_lib_save_LIBS=$LIBS
19543 LIBS="-lk5crypto $LIBS"
19544 cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h. */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 /* Override any GCC internal prototype to avoid an error.
19552 Use char because int might match the return type of a GCC
19553 builtin and then its argument prototype would still apply. */
19554 #ifdef __cplusplus
19555 extern "C"
19556 #endif
19557 char mit_des_cbc_encrypt ();
19559 main ()
19561 return mit_des_cbc_encrypt ();
19563 return 0;
19565 _ACEOF
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19574 ac_status=$?
19575 grep -v '^ *+' conftest.er1 >conftest.err
19576 rm -f conftest.er1
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest$ac_exeext &&
19583 $as_test_x conftest$ac_exeext; then
19584 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593 conftest$ac_exeext conftest.$ac_ext
19594 LIBS=$ac_check_lib_save_LIBS
19596 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19597 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19598 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19599 cat >>confdefs.h <<_ACEOF
19600 #define HAVE_LIBK5CRYPTO 1
19601 _ACEOF
19603 LIBS="-lk5crypto $LIBS"
19608 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19609 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19610 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 ac_check_lib_save_LIBS=$LIBS
19614 LIBS="-lcrypto $LIBS"
19615 cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h. */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19622 /* Override any GCC internal prototype to avoid an error.
19623 Use char because int might match the return type of a GCC
19624 builtin and then its argument prototype would still apply. */
19625 #ifdef __cplusplus
19626 extern "C"
19627 #endif
19628 char mit_des_cbc_encrypt ();
19630 main ()
19632 return mit_des_cbc_encrypt ();
19634 return 0;
19636 _ACEOF
19637 rm -f conftest.$ac_objext conftest$ac_exeext
19638 if { (ac_try="$ac_link"
19639 case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_link") 2>conftest.er1
19645 ac_status=$?
19646 grep -v '^ *+' conftest.er1 >conftest.err
19647 rm -f conftest.er1
19648 cat conftest.err >&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } && {
19651 test -z "$ac_c_werror_flag" ||
19652 test ! -s conftest.err
19653 } && test -s conftest$ac_exeext &&
19654 $as_test_x conftest$ac_exeext; then
19655 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19656 else
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_lib_save_LIBS
19667 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19668 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19669 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19670 cat >>confdefs.h <<_ACEOF
19671 #define HAVE_LIBCRYPTO 1
19672 _ACEOF
19674 LIBS="-lcrypto $LIBS"
19679 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19680 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19681 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684 ac_check_lib_save_LIBS=$LIBS
19685 LIBS="-lkrb5 $LIBS"
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19693 /* Override any GCC internal prototype to avoid an error.
19694 Use char because int might match the return type of a GCC
19695 builtin and then its argument prototype would still apply. */
19696 #ifdef __cplusplus
19697 extern "C"
19698 #endif
19699 char krb5_init_context ();
19701 main ()
19703 return krb5_init_context ();
19705 return 0;
19707 _ACEOF
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (ac_try="$ac_link"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_link") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest$ac_exeext &&
19725 $as_test_x conftest$ac_exeext; then
19726 ac_cv_lib_krb5_krb5_init_context=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_cv_lib_krb5_krb5_init_context=no
19734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19739 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19740 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_LIBKRB5 1
19743 _ACEOF
19745 LIBS="-lkrb5 $LIBS"
19749 if test "${with_kerberos5+set}" != set; then
19751 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19752 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19753 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756 ac_check_lib_save_LIBS=$LIBS
19757 LIBS="-ldes425 $LIBS"
19758 cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h. */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19768 #ifdef __cplusplus
19769 extern "C"
19770 #endif
19771 char des_cbc_encrypt ();
19773 main ()
19775 return des_cbc_encrypt ();
19777 return 0;
19779 _ACEOF
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_link") 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest$ac_exeext &&
19797 $as_test_x conftest$ac_exeext; then
19798 ac_cv_lib_des425_des_cbc_encrypt=yes
19799 else
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ac_cv_lib_des425_des_cbc_encrypt=no
19806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19807 conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19810 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19811 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19812 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_LIBDES425 1
19815 _ACEOF
19817 LIBS="-ldes425 $LIBS"
19819 else
19821 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19822 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19823 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 else
19826 ac_check_lib_save_LIBS=$LIBS
19827 LIBS="-ldes $LIBS"
19828 cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h. */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19835 /* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19838 #ifdef __cplusplus
19839 extern "C"
19840 #endif
19841 char des_cbc_encrypt ();
19843 main ()
19845 return des_cbc_encrypt ();
19847 return 0;
19849 _ACEOF
19850 rm -f conftest.$ac_objext conftest$ac_exeext
19851 if { (ac_try="$ac_link"
19852 case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_link") 2>conftest.er1
19858 ac_status=$?
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } && {
19864 test -z "$ac_c_werror_flag" ||
19865 test ! -s conftest.err
19866 } && test -s conftest$ac_exeext &&
19867 $as_test_x conftest$ac_exeext; then
19868 ac_cv_lib_des_des_cbc_encrypt=yes
19869 else
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_cv_lib_des_des_cbc_encrypt=no
19876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19877 conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_check_lib_save_LIBS
19880 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19881 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19882 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19883 cat >>confdefs.h <<_ACEOF
19884 #define HAVE_LIBDES 1
19885 _ACEOF
19887 LIBS="-ldes $LIBS"
19894 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19895 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19896 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899 ac_check_lib_save_LIBS=$LIBS
19900 LIBS="-lkrb4 $LIBS"
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19911 #ifdef __cplusplus
19912 extern "C"
19913 #endif
19914 char krb_get_cred ();
19916 main ()
19918 return krb_get_cred ();
19920 return 0;
19922 _ACEOF
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19928 esac
19929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
19931 ac_status=$?
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext &&
19940 $as_test_x conftest$ac_exeext; then
19941 ac_cv_lib_krb4_krb_get_cred=yes
19942 else
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_cv_lib_krb4_krb_get_cred=no
19949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19953 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19954 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19955 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_LIBKRB4 1
19958 _ACEOF
19960 LIBS="-lkrb4 $LIBS"
19962 else
19964 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19965 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19966 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969 ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-lkrb $LIBS"
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h. */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19981 #ifdef __cplusplus
19982 extern "C"
19983 #endif
19984 char krb_get_cred ();
19986 main ()
19988 return krb_get_cred ();
19990 return 0;
19992 _ACEOF
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_link") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest$ac_exeext &&
20010 $as_test_x conftest$ac_exeext; then
20011 ac_cv_lib_krb_krb_get_cred=yes
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_lib_krb_krb_get_cred=no
20019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020 conftest$ac_exeext conftest.$ac_ext
20021 LIBS=$ac_check_lib_save_LIBS
20023 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20024 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20025 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20026 cat >>confdefs.h <<_ACEOF
20027 #define HAVE_LIBKRB 1
20028 _ACEOF
20030 LIBS="-lkrb $LIBS"
20038 if test "${with_kerberos5+set}" = set; then
20040 for ac_header in krb5.h
20042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20049 ac_res=`eval echo '${'$as_ac_Header'}'`
20050 { echo "$as_me:$LINENO: result: $ac_res" >&5
20051 echo "${ECHO_T}$ac_res" >&6; }
20052 else
20053 # Is the header compilable?
20054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 $ac_includes_default
20063 #include <$ac_header>
20064 _ACEOF
20065 rm -f conftest.$ac_objext
20066 if { (ac_try="$ac_compile"
20067 case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_compile") 2>conftest.er1
20073 ac_status=$?
20074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest.$ac_objext; then
20082 ac_header_compiler=yes
20083 else
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_header_compiler=no
20090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20092 echo "${ECHO_T}$ac_header_compiler" >&6; }
20094 # Is the header present?
20095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h. */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 #include <$ac_header>
20104 _ACEOF
20105 if { (ac_try="$ac_cpp conftest.$ac_ext"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } >/dev/null && {
20118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20119 test ! -s conftest.err
20120 }; then
20121 ac_header_preproc=yes
20122 else
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_header_preproc=no
20129 rm -f conftest.err conftest.$ac_ext
20130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20131 echo "${ECHO_T}$ac_header_preproc" >&6; }
20133 # So? What about this header?
20134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20135 yes:no: )
20136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20140 ac_header_preproc=yes
20142 no:yes:* )
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20157 esac
20158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163 eval "$as_ac_Header=\$ac_header_preproc"
20165 ac_res=`eval echo '${'$as_ac_Header'}'`
20166 { echo "$as_me:$LINENO: result: $ac_res" >&5
20167 echo "${ECHO_T}$ac_res" >&6; }
20170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20171 cat >>confdefs.h <<_ACEOF
20172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20173 _ACEOF
20177 done
20179 else
20181 for ac_header in des.h
20183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 ac_res=`eval echo '${'$as_ac_Header'}'`
20191 { echo "$as_me:$LINENO: result: $ac_res" >&5
20192 echo "${ECHO_T}$ac_res" >&6; }
20193 else
20194 # Is the header compilable?
20195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h. */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20204 #include <$ac_header>
20205 _ACEOF
20206 rm -f conftest.$ac_objext
20207 if { (ac_try="$ac_compile"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_compile") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest.$ac_objext; then
20223 ac_header_compiler=yes
20224 else
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_header_compiler=no
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20233 echo "${ECHO_T}$ac_header_compiler" >&6; }
20235 # Is the header present?
20236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 #include <$ac_header>
20245 _ACEOF
20246 if { (ac_try="$ac_cpp conftest.$ac_ext"
20247 case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20253 ac_status=$?
20254 grep -v '^ *+' conftest.er1 >conftest.err
20255 rm -f conftest.er1
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } >/dev/null && {
20259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20260 test ! -s conftest.err
20261 }; then
20262 ac_header_preproc=yes
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_header_preproc=no
20270 rm -f conftest.err conftest.$ac_ext
20271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20272 echo "${ECHO_T}$ac_header_preproc" >&6; }
20274 # So? What about this header?
20275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20276 yes:no: )
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20281 ac_header_preproc=yes
20283 no:yes:* )
20284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20298 esac
20299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304 eval "$as_ac_Header=\$ac_header_preproc"
20306 ac_res=`eval echo '${'$as_ac_Header'}'`
20307 { echo "$as_me:$LINENO: result: $ac_res" >&5
20308 echo "${ECHO_T}$ac_res" >&6; }
20311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20312 cat >>confdefs.h <<_ACEOF
20313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20314 _ACEOF
20316 else
20318 for ac_header in kerberosIV/des.h
20320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 ac_res=`eval echo '${'$as_ac_Header'}'`
20328 { echo "$as_me:$LINENO: result: $ac_res" >&5
20329 echo "${ECHO_T}$ac_res" >&6; }
20330 else
20331 # Is the header compilable?
20332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h. */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 $ac_includes_default
20341 #include <$ac_header>
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (ac_try="$ac_compile"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_compile") 2>conftest.er1
20351 ac_status=$?
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && {
20357 test -z "$ac_c_werror_flag" ||
20358 test ! -s conftest.err
20359 } && test -s conftest.$ac_objext; then
20360 ac_header_compiler=yes
20361 else
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ac_header_compiler=no
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20370 echo "${ECHO_T}$ac_header_compiler" >&6; }
20372 # Is the header present?
20373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20375 cat >conftest.$ac_ext <<_ACEOF
20376 /* confdefs.h. */
20377 _ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 #include <$ac_header>
20382 _ACEOF
20383 if { (ac_try="$ac_cpp conftest.$ac_ext"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20390 ac_status=$?
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } >/dev/null && {
20396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20397 test ! -s conftest.err
20398 }; then
20399 ac_header_preproc=yes
20400 else
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20404 ac_header_preproc=no
20407 rm -f conftest.err conftest.$ac_ext
20408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20409 echo "${ECHO_T}$ac_header_preproc" >&6; }
20411 # So? What about this header?
20412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20413 yes:no: )
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20418 ac_header_preproc=yes
20420 no:yes:* )
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20435 esac
20436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441 eval "$as_ac_Header=\$ac_header_preproc"
20443 ac_res=`eval echo '${'$as_ac_Header'}'`
20444 { echo "$as_me:$LINENO: result: $ac_res" >&5
20445 echo "${ECHO_T}$ac_res" >&6; }
20448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20451 _ACEOF
20453 else
20455 for ac_header in kerberos/des.h
20457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 ac_res=`eval echo '${'$as_ac_Header'}'`
20465 { echo "$as_me:$LINENO: result: $ac_res" >&5
20466 echo "${ECHO_T}$ac_res" >&6; }
20467 else
20468 # Is the header compilable?
20469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20478 #include <$ac_header>
20479 _ACEOF
20480 rm -f conftest.$ac_objext
20481 if { (ac_try="$ac_compile"
20482 case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_compile") 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest.$ac_objext; then
20497 ac_header_compiler=yes
20498 else
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_header_compiler=no
20505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20507 echo "${ECHO_T}$ac_header_compiler" >&6; }
20509 # Is the header present?
20510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 #include <$ac_header>
20519 _ACEOF
20520 if { (ac_try="$ac_cpp conftest.$ac_ext"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } >/dev/null && {
20533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 }; then
20536 ac_header_preproc=yes
20537 else
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_header_preproc=no
20544 rm -f conftest.err conftest.$ac_ext
20545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20546 echo "${ECHO_T}$ac_header_preproc" >&6; }
20548 # So? What about this header?
20549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20550 yes:no: )
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20555 ac_header_preproc=yes
20557 no:yes:* )
20558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20572 esac
20573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578 eval "$as_ac_Header=\$ac_header_preproc"
20580 ac_res=`eval echo '${'$as_ac_Header'}'`
20581 { echo "$as_me:$LINENO: result: $ac_res" >&5
20582 echo "${ECHO_T}$ac_res" >&6; }
20585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20588 _ACEOF
20592 done
20596 done
20600 done
20603 for ac_header in krb.h
20605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 ac_res=`eval echo '${'$as_ac_Header'}'`
20613 { echo "$as_me:$LINENO: result: $ac_res" >&5
20614 echo "${ECHO_T}$ac_res" >&6; }
20615 else
20616 # Is the header compilable?
20617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20626 #include <$ac_header>
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20645 ac_header_compiler=yes
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_header_compiler=no
20653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20655 echo "${ECHO_T}$ac_header_compiler" >&6; }
20657 # Is the header present?
20658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20660 cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h. */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20666 #include <$ac_header>
20667 _ACEOF
20668 if { (ac_try="$ac_cpp conftest.$ac_ext"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672 esac
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20675 ac_status=$?
20676 grep -v '^ *+' conftest.er1 >conftest.err
20677 rm -f conftest.er1
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } >/dev/null && {
20681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20682 test ! -s conftest.err
20683 }; then
20684 ac_header_preproc=yes
20685 else
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ac_header_preproc=no
20692 rm -f conftest.err conftest.$ac_ext
20693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20694 echo "${ECHO_T}$ac_header_preproc" >&6; }
20696 # So? What about this header?
20697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20698 yes:no: )
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20703 ac_header_preproc=yes
20705 no:yes:* )
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20720 esac
20721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 else
20726 eval "$as_ac_Header=\$ac_header_preproc"
20728 ac_res=`eval echo '${'$as_ac_Header'}'`
20729 { echo "$as_me:$LINENO: result: $ac_res" >&5
20730 echo "${ECHO_T}$ac_res" >&6; }
20733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20734 cat >>confdefs.h <<_ACEOF
20735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20736 _ACEOF
20738 else
20740 for ac_header in kerberosIV/krb.h
20742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 ac_res=`eval echo '${'$as_ac_Header'}'`
20750 { echo "$as_me:$LINENO: result: $ac_res" >&5
20751 echo "${ECHO_T}$ac_res" >&6; }
20752 else
20753 # Is the header compilable?
20754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 $ac_includes_default
20763 #include <$ac_header>
20764 _ACEOF
20765 rm -f conftest.$ac_objext
20766 if { (ac_try="$ac_compile"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_compile") 2>conftest.er1
20773 ac_status=$?
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } && {
20779 test -z "$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 } && test -s conftest.$ac_objext; then
20782 ac_header_compiler=yes
20783 else
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 ac_header_compiler=no
20790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20792 echo "${ECHO_T}$ac_header_compiler" >&6; }
20794 # Is the header present?
20795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20797 cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h. */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 #include <$ac_header>
20804 _ACEOF
20805 if { (ac_try="$ac_cpp conftest.$ac_ext"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20812 ac_status=$?
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } >/dev/null && {
20818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 }; then
20821 ac_header_preproc=yes
20822 else
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ac_header_preproc=no
20829 rm -f conftest.err conftest.$ac_ext
20830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20831 echo "${ECHO_T}$ac_header_preproc" >&6; }
20833 # So? What about this header?
20834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20835 yes:no: )
20836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20840 ac_header_preproc=yes
20842 no:yes:* )
20843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20857 esac
20858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863 eval "$as_ac_Header=\$ac_header_preproc"
20865 ac_res=`eval echo '${'$as_ac_Header'}'`
20866 { echo "$as_me:$LINENO: result: $ac_res" >&5
20867 echo "${ECHO_T}$ac_res" >&6; }
20870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20871 cat >>confdefs.h <<_ACEOF
20872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20873 _ACEOF
20875 else
20877 for ac_header in kerberos/krb.h
20879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 ac_res=`eval echo '${'$as_ac_Header'}'`
20887 { echo "$as_me:$LINENO: result: $ac_res" >&5
20888 echo "${ECHO_T}$ac_res" >&6; }
20889 else
20890 # Is the header compilable?
20891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h. */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 $ac_includes_default
20900 #include <$ac_header>
20901 _ACEOF
20902 rm -f conftest.$ac_objext
20903 if { (ac_try="$ac_compile"
20904 case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20907 esac
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_compile") 2>conftest.er1
20910 ac_status=$?
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } && {
20916 test -z "$ac_c_werror_flag" ||
20917 test ! -s conftest.err
20918 } && test -s conftest.$ac_objext; then
20919 ac_header_compiler=yes
20920 else
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_header_compiler=no
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20929 echo "${ECHO_T}$ac_header_compiler" >&6; }
20931 # Is the header present?
20932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h. */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 #include <$ac_header>
20941 _ACEOF
20942 if { (ac_try="$ac_cpp conftest.$ac_ext"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } >/dev/null && {
20955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20957 }; then
20958 ac_header_preproc=yes
20959 else
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 ac_header_preproc=no
20966 rm -f conftest.err conftest.$ac_ext
20967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20968 echo "${ECHO_T}$ac_header_preproc" >&6; }
20970 # So? What about this header?
20971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20972 yes:no: )
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20977 ac_header_preproc=yes
20979 no:yes:* )
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20994 esac
20995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000 eval "$as_ac_Header=\$ac_header_preproc"
21002 ac_res=`eval echo '${'$as_ac_Header'}'`
21003 { echo "$as_me:$LINENO: result: $ac_res" >&5
21004 echo "${ECHO_T}$ac_res" >&6; }
21007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21010 _ACEOF
21014 done
21018 done
21022 done
21026 for ac_header in com_err.h
21028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036 { echo "$as_me:$LINENO: result: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21038 else
21039 # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h. */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 #include <$ac_header>
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21068 ac_header_compiler=yes
21069 else
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_compiler=no
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21078 echo "${ECHO_T}$ac_header_compiler" >&6; }
21080 # Is the header present?
21081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <$ac_header>
21090 _ACEOF
21091 if { (ac_try="$ac_cpp conftest.$ac_ext"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } >/dev/null && {
21104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 }; then
21107 ac_header_preproc=yes
21108 else
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_header_preproc=no
21115 rm -f conftest.err conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21117 echo "${ECHO_T}$ac_header_preproc" >&6; }
21119 # So? What about this header?
21120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21121 yes:no: )
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21126 ac_header_preproc=yes
21128 no:yes:* )
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21143 esac
21144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 else
21149 eval "$as_ac_Header=\$ac_header_preproc"
21151 ac_res=`eval echo '${'$as_ac_Header'}'`
21152 { echo "$as_me:$LINENO: result: $ac_res" >&5
21153 echo "${ECHO_T}$ac_res" >&6; }
21156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21159 _ACEOF
21163 done
21167 # Solaris requires -lintl if you want strerror (which calls dgettext)
21168 # to return localized messages.
21170 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21171 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21172 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175 ac_check_lib_save_LIBS=$LIBS
21176 LIBS="-lintl $LIBS"
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h. */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21184 /* Override any GCC internal prototype to avoid an error.
21185 Use char because int might match the return type of a GCC
21186 builtin and then its argument prototype would still apply. */
21187 #ifdef __cplusplus
21188 extern "C"
21189 #endif
21190 char dgettext ();
21192 main ()
21194 return dgettext ();
21196 return 0;
21198 _ACEOF
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (ac_try="$ac_link"
21201 case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21204 esac
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_link") 2>conftest.er1
21207 ac_status=$?
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest$ac_exeext &&
21216 $as_test_x conftest$ac_exeext; then
21217 ac_cv_lib_intl_dgettext=yes
21218 else
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_cv_lib_intl_dgettext=no
21225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21226 conftest$ac_exeext conftest.$ac_ext
21227 LIBS=$ac_check_lib_save_LIBS
21229 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21230 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21231 if test $ac_cv_lib_intl_dgettext = yes; then
21232 cat >>confdefs.h <<_ACEOF
21233 #define HAVE_LIBINTL 1
21234 _ACEOF
21236 LIBS="-lintl $LIBS"
21241 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21242 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21243 if test "${emacs_cv_localtime_cache+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246 if test x$ac_cv_func_tzset = xyes; then
21247 if test "$cross_compiling" = yes; then
21248 # If we have tzset, assume the worst when cross-compiling.
21249 emacs_cv_localtime_cache=yes
21250 else
21251 cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h. */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 #include <time.h>
21258 extern char **environ;
21259 unset_TZ ()
21261 char **from, **to;
21262 for (to = from = environ; (*to = *from); from++)
21263 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21264 to++;
21266 char TZ_GMT0[] = "TZ=GMT0";
21267 char TZ_PST8[] = "TZ=PST8";
21268 main()
21270 time_t now = time ((time_t *) 0);
21271 int hour_GMT0, hour_unset;
21272 if (putenv (TZ_GMT0) != 0)
21273 exit (1);
21274 hour_GMT0 = localtime (&now)->tm_hour;
21275 unset_TZ ();
21276 hour_unset = localtime (&now)->tm_hour;
21277 if (putenv (TZ_PST8) != 0)
21278 exit (1);
21279 if (localtime (&now)->tm_hour == hour_GMT0)
21280 exit (1);
21281 unset_TZ ();
21282 if (localtime (&now)->tm_hour != hour_unset)
21283 exit (1);
21284 exit (0);
21286 _ACEOF
21287 rm -f conftest$ac_exeext
21288 if { (ac_try="$ac_link"
21289 case "(($ac_try" in
21290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291 *) ac_try_echo=$ac_try;;
21292 esac
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294 (eval "$ac_link") 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21298 { (case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_try") 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 emacs_cv_localtime_cache=no
21308 else
21309 echo "$as_me: program exited with status $ac_status" >&5
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ( exit $ac_status )
21314 emacs_cv_localtime_cache=yes
21316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21320 else
21321 # If we lack tzset, report that localtime does not cache TZ,
21322 # since we can't invalidate the cache if we don't have tzset.
21323 emacs_cv_localtime_cache=no
21326 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21327 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21328 if test $emacs_cv_localtime_cache = yes; then
21330 cat >>confdefs.h <<\_ACEOF
21331 #define LOCALTIME_CACHE 1
21332 _ACEOF
21336 if test "x$HAVE_TIMEVAL" = xyes; then
21338 for ac_func in gettimeofday
21340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346 cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h. */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21354 #define $ac_func innocuous_$ac_func
21356 /* System header to define __stub macros and hopefully few prototypes,
21357 which can conflict with char $ac_func (); below.
21358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21359 <limits.h> exists even on freestanding compilers. */
21361 #ifdef __STDC__
21362 # include <limits.h>
21363 #else
21364 # include <assert.h>
21365 #endif
21367 #undef $ac_func
21369 /* Override any GCC internal prototype to avoid an error.
21370 Use char because int might match the return type of a GCC
21371 builtin and then its argument prototype would still apply. */
21372 #ifdef __cplusplus
21373 extern "C"
21374 #endif
21375 char $ac_func ();
21376 /* The GNU C library defines this for functions which it implements
21377 to always fail with ENOSYS. Some functions are actually named
21378 something starting with __ and the normal name is an alias. */
21379 #if defined __stub_$ac_func || defined __stub___$ac_func
21380 choke me
21381 #endif
21384 main ()
21386 return $ac_func ();
21388 return 0;
21390 _ACEOF
21391 rm -f conftest.$ac_objext conftest$ac_exeext
21392 if { (ac_try="$ac_link"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_link") 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest$ac_exeext &&
21408 $as_test_x conftest$ac_exeext; then
21409 eval "$as_ac_var=yes"
21410 else
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21414 eval "$as_ac_var=no"
21417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21418 conftest$ac_exeext conftest.$ac_ext
21420 ac_res=`eval echo '${'$as_ac_var'}'`
21421 { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_var'}'` = yes; then
21424 cat >>confdefs.h <<_ACEOF
21425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21426 _ACEOF
21429 done
21431 if test $ac_cv_func_gettimeofday = yes; then
21432 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21433 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21434 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 else
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21444 #ifdef TIME_WITH_SYS_TIME
21445 #include <sys/time.h>
21446 #include <time.h>
21447 #else
21448 #ifdef HAVE_SYS_TIME_H
21449 #include <sys/time.h>
21450 #else
21451 #include <time.h>
21452 #endif
21453 #endif
21455 main ()
21457 struct timeval time;
21458 gettimeofday (&time, 0);
21460 return 0;
21462 _ACEOF
21463 rm -f conftest.$ac_objext
21464 if { (ac_try="$ac_compile"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21468 esac
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_compile") 2>conftest.er1
21471 ac_status=$?
21472 grep -v '^ *+' conftest.er1 >conftest.err
21473 rm -f conftest.er1
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest.$ac_objext; then
21480 emacs_cv_gettimeofday_two_arguments=yes
21481 else
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 emacs_cv_gettimeofday_two_arguments=no
21488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21491 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21492 if test $emacs_cv_gettimeofday_two_arguments = no; then
21494 cat >>confdefs.h <<\_ACEOF
21495 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21496 _ACEOF
21502 ok_so_far=yes
21503 { echo "$as_me:$LINENO: checking for socket" >&5
21504 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21505 if test "${ac_cv_func_socket+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21516 #define socket innocuous_socket
21518 /* System header to define __stub macros and hopefully few prototypes,
21519 which can conflict with char socket (); below.
21520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21521 <limits.h> exists even on freestanding compilers. */
21523 #ifdef __STDC__
21524 # include <limits.h>
21525 #else
21526 # include <assert.h>
21527 #endif
21529 #undef socket
21531 /* Override any GCC internal prototype to avoid an error.
21532 Use char because int might match the return type of a GCC
21533 builtin and then its argument prototype would still apply. */
21534 #ifdef __cplusplus
21535 extern "C"
21536 #endif
21537 char socket ();
21538 /* The GNU C library defines this for functions which it implements
21539 to always fail with ENOSYS. Some functions are actually named
21540 something starting with __ and the normal name is an alias. */
21541 #if defined __stub_socket || defined __stub___socket
21542 choke me
21543 #endif
21546 main ()
21548 return socket ();
21550 return 0;
21552 _ACEOF
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (ac_try="$ac_link"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21558 esac
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_link") 2>conftest.er1
21561 ac_status=$?
21562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && {
21567 test -z "$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 } && test -s conftest$ac_exeext &&
21570 $as_test_x conftest$ac_exeext; then
21571 ac_cv_func_socket=yes
21572 else
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_func_socket=no
21579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21580 conftest$ac_exeext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21583 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21584 if test $ac_cv_func_socket = yes; then
21586 else
21587 ok_so_far=no
21590 if test $ok_so_far = yes; then
21591 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21592 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21593 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21594 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21598 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21599 else
21600 # Is the header compilable?
21601 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21602 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21610 #include <netinet/in.h>
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21620 ac_status=$?
21621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && {
21626 test -z "$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 } && test -s conftest.$ac_objext; then
21629 ac_header_compiler=yes
21630 else
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_header_compiler=no
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21639 echo "${ECHO_T}$ac_header_compiler" >&6; }
21641 # Is the header present?
21642 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21643 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h. */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 #include <netinet/in.h>
21651 _ACEOF
21652 if { (ac_try="$ac_cpp conftest.$ac_ext"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21656 esac
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21659 ac_status=$?
21660 grep -v '^ *+' conftest.er1 >conftest.err
21661 rm -f conftest.er1
21662 cat conftest.err >&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } >/dev/null && {
21665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21666 test ! -s conftest.err
21667 }; then
21668 ac_header_preproc=yes
21669 else
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 ac_header_preproc=no
21676 rm -f conftest.err conftest.$ac_ext
21677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21678 echo "${ECHO_T}$ac_header_preproc" >&6; }
21680 # So? What about this header?
21681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21682 yes:no: )
21683 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21684 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21686 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21687 ac_header_preproc=yes
21689 no:yes:* )
21690 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21691 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21693 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21694 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21695 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21697 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21698 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21699 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21701 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21704 esac
21705 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21706 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21707 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710 ac_cv_header_netinet_in_h=$ac_header_preproc
21712 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21713 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21716 if test $ac_cv_header_netinet_in_h = yes; then
21718 else
21719 ok_so_far=no
21724 if test $ok_so_far = yes; then
21725 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21726 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21727 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21728 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21732 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21733 else
21734 # Is the header compilable?
21735 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21736 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h. */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21744 #include <arpa/inet.h>
21745 _ACEOF
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21751 esac
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_compile") 2>conftest.er1
21754 ac_status=$?
21755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && {
21760 test -z "$ac_c_werror_flag" ||
21761 test ! -s conftest.err
21762 } && test -s conftest.$ac_objext; then
21763 ac_header_compiler=yes
21764 else
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21768 ac_header_compiler=no
21771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21773 echo "${ECHO_T}$ac_header_compiler" >&6; }
21775 # Is the header present?
21776 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21777 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21778 cat >conftest.$ac_ext <<_ACEOF
21779 /* confdefs.h. */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 #include <arpa/inet.h>
21785 _ACEOF
21786 if { (ac_try="$ac_cpp conftest.$ac_ext"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21793 ac_status=$?
21794 grep -v '^ *+' conftest.er1 >conftest.err
21795 rm -f conftest.er1
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } >/dev/null && {
21799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 }; then
21802 ac_header_preproc=yes
21803 else
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21807 ac_header_preproc=no
21810 rm -f conftest.err conftest.$ac_ext
21811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21812 echo "${ECHO_T}$ac_header_preproc" >&6; }
21814 # So? What about this header?
21815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21816 yes:no: )
21817 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21818 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21820 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21821 ac_header_preproc=yes
21823 no:yes:* )
21824 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21825 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21827 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21829 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21831 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21833 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21835 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21838 esac
21839 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21840 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21841 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 else
21844 ac_cv_header_arpa_inet_h=$ac_header_preproc
21846 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21847 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21850 if test $ac_cv_header_arpa_inet_h = yes; then
21852 else
21853 ok_so_far=no
21858 if test $ok_so_far = yes; then
21860 cat >>confdefs.h <<\_ACEOF
21861 #define HAVE_INET_SOCKETS 1
21862 _ACEOF
21867 for ac_header in sys/ioctl.h
21869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 ac_res=`eval echo '${'$as_ac_Header'}'`
21877 { echo "$as_me:$LINENO: result: $ac_res" >&5
21878 echo "${ECHO_T}$ac_res" >&6; }
21879 else
21880 # Is the header compilable?
21881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 $ac_includes_default
21890 #include <$ac_header>
21891 _ACEOF
21892 rm -f conftest.$ac_objext
21893 if { (ac_try="$ac_compile"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21897 esac
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_compile") 2>conftest.er1
21900 ac_status=$?
21901 grep -v '^ *+' conftest.er1 >conftest.err
21902 rm -f conftest.er1
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_c_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest.$ac_objext; then
21909 ac_header_compiler=yes
21910 else
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ac_header_compiler=no
21917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21919 echo "${ECHO_T}$ac_header_compiler" >&6; }
21921 # Is the header present?
21922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21924 cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h. */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 #include <$ac_header>
21931 _ACEOF
21932 if { (ac_try="$ac_cpp conftest.$ac_ext"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21939 ac_status=$?
21940 grep -v '^ *+' conftest.er1 >conftest.err
21941 rm -f conftest.er1
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } >/dev/null && {
21945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 }; then
21948 ac_header_preproc=yes
21949 else
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_header_preproc=no
21956 rm -f conftest.err conftest.$ac_ext
21957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21958 echo "${ECHO_T}$ac_header_preproc" >&6; }
21960 # So? What about this header?
21961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21962 yes:no: )
21963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21967 ac_header_preproc=yes
21969 no:yes:* )
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21984 esac
21985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990 eval "$as_ac_Header=\$ac_header_preproc"
21992 ac_res=`eval echo '${'$as_ac_Header'}'`
21993 { echo "$as_me:$LINENO: result: $ac_res" >&5
21994 echo "${ECHO_T}$ac_res" >&6; }
21997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22000 _ACEOF
22004 done
22007 if test -f /usr/lpp/X11/bin/smt.exp; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_AIX_SMT_EXP 1
22011 _ACEOF
22015 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22016 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22017 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22018 { echo "$as_me:$LINENO: result: yes" >&5
22019 echo "${ECHO_T}yes" >&6; }
22021 cat >>confdefs.h <<\_ACEOF
22022 #define HAVE_DEV_PTMX 1
22023 _ACEOF
22025 else
22026 { echo "$as_me:$LINENO: result: no" >&5
22027 echo "${ECHO_T}no" >&6; }
22030 { echo "$as_me:$LINENO: checking for pid_t" >&5
22031 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22032 if test "${ac_cv_type_pid_t+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035 cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h. */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 $ac_includes_default
22042 typedef pid_t ac__type_new_;
22044 main ()
22046 if ((ac__type_new_ *) 0)
22047 return 0;
22048 if (sizeof (ac__type_new_))
22049 return 0;
22051 return 0;
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_cv_type_pid_t=yes
22072 else
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22076 ac_cv_type_pid_t=no
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22082 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22083 if test $ac_cv_type_pid_t = yes; then
22085 else
22087 cat >>confdefs.h <<_ACEOF
22088 #define pid_t int
22089 _ACEOF
22094 for ac_header in vfork.h
22096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 ac_res=`eval echo '${'$as_ac_Header'}'`
22104 { echo "$as_me:$LINENO: result: $ac_res" >&5
22105 echo "${ECHO_T}$ac_res" >&6; }
22106 else
22107 # Is the header compilable?
22108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h. */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 $ac_includes_default
22117 #include <$ac_header>
22118 _ACEOF
22119 rm -f conftest.$ac_objext
22120 if { (ac_try="$ac_compile"
22121 case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124 esac
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_compile") 2>conftest.er1
22127 ac_status=$?
22128 grep -v '^ *+' conftest.er1 >conftest.err
22129 rm -f conftest.er1
22130 cat conftest.err >&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } && {
22133 test -z "$ac_c_werror_flag" ||
22134 test ! -s conftest.err
22135 } && test -s conftest.$ac_objext; then
22136 ac_header_compiler=yes
22137 else
22138 echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22141 ac_header_compiler=no
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22146 echo "${ECHO_T}$ac_header_compiler" >&6; }
22148 # Is the header present?
22149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22151 cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h. */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 #include <$ac_header>
22158 _ACEOF
22159 if { (ac_try="$ac_cpp conftest.$ac_ext"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22163 esac
22164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22166 ac_status=$?
22167 grep -v '^ *+' conftest.er1 >conftest.err
22168 rm -f conftest.er1
22169 cat conftest.err >&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } >/dev/null && {
22172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22173 test ! -s conftest.err
22174 }; then
22175 ac_header_preproc=yes
22176 else
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 ac_header_preproc=no
22183 rm -f conftest.err conftest.$ac_ext
22184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22185 echo "${ECHO_T}$ac_header_preproc" >&6; }
22187 # So? What about this header?
22188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22189 yes:no: )
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22194 ac_header_preproc=yes
22196 no:yes:* )
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22211 esac
22212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217 eval "$as_ac_Header=\$ac_header_preproc"
22219 ac_res=`eval echo '${'$as_ac_Header'}'`
22220 { echo "$as_me:$LINENO: result: $ac_res" >&5
22221 echo "${ECHO_T}$ac_res" >&6; }
22224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22225 cat >>confdefs.h <<_ACEOF
22226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227 _ACEOF
22231 done
22235 for ac_func in fork vfork
22237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h. */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22251 #define $ac_func innocuous_$ac_func
22253 /* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char $ac_func (); below.
22255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256 <limits.h> exists even on freestanding compilers. */
22258 #ifdef __STDC__
22259 # include <limits.h>
22260 #else
22261 # include <assert.h>
22262 #endif
22264 #undef $ac_func
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22269 #ifdef __cplusplus
22270 extern "C"
22271 #endif
22272 char $ac_func ();
22273 /* The GNU C library defines this for functions which it implements
22274 to always fail with ENOSYS. Some functions are actually named
22275 something starting with __ and the normal name is an alias. */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22277 choke me
22278 #endif
22281 main ()
22283 return $ac_func ();
22285 return 0;
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest$ac_exeext &&
22305 $as_test_x conftest$ac_exeext; then
22306 eval "$as_ac_var=yes"
22307 else
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 eval "$as_ac_var=no"
22314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22315 conftest$ac_exeext conftest.$ac_ext
22317 ac_res=`eval echo '${'$as_ac_var'}'`
22318 { echo "$as_me:$LINENO: result: $ac_res" >&5
22319 echo "${ECHO_T}$ac_res" >&6; }
22320 if test `eval echo '${'$as_ac_var'}'` = yes; then
22321 cat >>confdefs.h <<_ACEOF
22322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22323 _ACEOF
22326 done
22328 if test "x$ac_cv_func_fork" = xyes; then
22329 { echo "$as_me:$LINENO: checking for working fork" >&5
22330 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22331 if test "${ac_cv_func_fork_works+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334 if test "$cross_compiling" = yes; then
22335 ac_cv_func_fork_works=cross
22336 else
22337 cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h. */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 $ac_includes_default
22345 main ()
22348 /* By Ruediger Kuhlmann. */
22349 return fork () < 0;
22352 return 0;
22354 _ACEOF
22355 rm -f conftest$ac_exeext
22356 if { (ac_try="$ac_link"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_link") 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22366 { (case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_try") 2>&5
22372 ac_status=$?
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 ac_cv_func_fork_works=yes
22376 else
22377 echo "$as_me: program exited with status $ac_status" >&5
22378 echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22381 ( exit $ac_status )
22382 ac_cv_func_fork_works=no
22384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22389 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22390 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22392 else
22393 ac_cv_func_fork_works=$ac_cv_func_fork
22395 if test "x$ac_cv_func_fork_works" = xcross; then
22396 case $host in
22397 *-*-amigaos* | *-*-msdosdjgpp*)
22398 # Override, as these systems have only a dummy fork() stub
22399 ac_cv_func_fork_works=no
22402 ac_cv_func_fork_works=yes
22404 esac
22405 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22406 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22408 ac_cv_func_vfork_works=$ac_cv_func_vfork
22409 if test "x$ac_cv_func_vfork" = xyes; then
22410 { echo "$as_me:$LINENO: checking for working vfork" >&5
22411 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22412 if test "${ac_cv_func_vfork_works+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415 if test "$cross_compiling" = yes; then
22416 ac_cv_func_vfork_works=cross
22417 else
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h. */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 /* Thanks to Paul Eggert for this test. */
22425 $ac_includes_default
22426 #include <sys/wait.h>
22427 #ifdef HAVE_VFORK_H
22428 # include <vfork.h>
22429 #endif
22430 /* On some sparc systems, changes by the child to local and incoming
22431 argument registers are propagated back to the parent. The compiler
22432 is told about this with #include <vfork.h>, but some compilers
22433 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22434 static variable whose address is put into a register that is
22435 clobbered by the vfork. */
22436 static void
22437 #ifdef __cplusplus
22438 sparc_address_test (int arg)
22439 # else
22440 sparc_address_test (arg) int arg;
22441 #endif
22443 static pid_t child;
22444 if (!child) {
22445 child = vfork ();
22446 if (child < 0) {
22447 perror ("vfork");
22448 _exit(2);
22450 if (!child) {
22451 arg = getpid();
22452 write(-1, "", 0);
22453 _exit (arg);
22459 main ()
22461 pid_t parent = getpid ();
22462 pid_t child;
22464 sparc_address_test (0);
22466 child = vfork ();
22468 if (child == 0) {
22469 /* Here is another test for sparc vfork register problems. This
22470 test uses lots of local variables, at least as many local
22471 variables as main has allocated so far including compiler
22472 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22473 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22474 reuse the register of parent for one of the local variables,
22475 since it will think that parent can't possibly be used any more
22476 in this routine. Assigning to the local variable will thus
22477 munge parent in the parent process. */
22478 pid_t
22479 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22480 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22481 /* Convince the compiler that p..p7 are live; otherwise, it might
22482 use the same hardware register for all 8 local variables. */
22483 if (p != p1 || p != p2 || p != p3 || p != p4
22484 || p != p5 || p != p6 || p != p7)
22485 _exit(1);
22487 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22488 from child file descriptors. If the child closes a descriptor
22489 before it execs or exits, this munges the parent's descriptor
22490 as well. Test for this by closing stdout in the child. */
22491 _exit(close(fileno(stdout)) != 0);
22492 } else {
22493 int status;
22494 struct stat st;
22496 while (wait(&status) != child)
22498 return (
22499 /* Was there some problem with vforking? */
22500 child < 0
22502 /* Did the child fail? (This shouldn't happen.) */
22503 || status
22505 /* Did the vfork/compiler bug occur? */
22506 || parent != getpid()
22508 /* Did the file descriptor bug occur? */
22509 || fstat(fileno(stdout), &st) != 0
22513 _ACEOF
22514 rm -f conftest$ac_exeext
22515 if { (ac_try="$ac_link"
22516 case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22519 esac
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_link") 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22525 { (case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_try") 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_cv_func_vfork_works=yes
22535 else
22536 echo "$as_me: program exited with status $ac_status" >&5
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ( exit $ac_status )
22541 ac_cv_func_vfork_works=no
22543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22548 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22549 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22552 if test "x$ac_cv_func_fork_works" = xcross; then
22553 ac_cv_func_vfork_works=$ac_cv_func_vfork
22554 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22555 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22558 if test "x$ac_cv_func_vfork_works" = xyes; then
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_WORKING_VFORK 1
22562 _ACEOF
22564 else
22566 cat >>confdefs.h <<\_ACEOF
22567 #define vfork fork
22568 _ACEOF
22571 if test "x$ac_cv_func_fork_works" = xyes; then
22573 cat >>confdefs.h <<\_ACEOF
22574 #define HAVE_WORKING_FORK 1
22575 _ACEOF
22580 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22581 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22582 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 #include <langinfo.h>
22593 main ()
22595 char* cs = nl_langinfo(CODESET);
22597 return 0;
22599 _ACEOF
22600 rm -f conftest.$ac_objext conftest$ac_exeext
22601 if { (ac_try="$ac_link"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22605 esac
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_link") 2>conftest.er1
22608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } && {
22614 test -z "$ac_c_werror_flag" ||
22615 test ! -s conftest.err
22616 } && test -s conftest$ac_exeext &&
22617 $as_test_x conftest$ac_exeext; then
22618 emacs_cv_langinfo_codeset=yes
22619 else
22620 echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22623 emacs_cv_langinfo_codeset=no
22626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22627 conftest$ac_exeext conftest.$ac_ext
22630 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22631 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22632 if test $emacs_cv_langinfo_codeset = yes; then
22634 cat >>confdefs.h <<\_ACEOF
22635 #define HAVE_LANGINFO_CODESET 1
22636 _ACEOF
22640 { echo "$as_me:$LINENO: checking for size_t" >&5
22641 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22642 if test "${ac_cv_type_size_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 typedef size_t ac__type_new_;
22654 main ()
22656 if ((ac__type_new_ *) 0)
22657 return 0;
22658 if (sizeof (ac__type_new_))
22659 return 0;
22661 return 0;
22663 _ACEOF
22664 rm -f conftest.$ac_objext
22665 if { (ac_try="$ac_compile"
22666 case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671 (eval "$ac_compile") 2>conftest.er1
22672 ac_status=$?
22673 grep -v '^ *+' conftest.er1 >conftest.err
22674 rm -f conftest.er1
22675 cat conftest.err >&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); } && {
22678 test -z "$ac_c_werror_flag" ||
22679 test ! -s conftest.err
22680 } && test -s conftest.$ac_objext; then
22681 ac_cv_type_size_t=yes
22682 else
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22686 ac_cv_type_size_t=no
22689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22692 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22693 if test $ac_cv_type_size_t = yes; then
22695 cat >>confdefs.h <<_ACEOF
22696 #define HAVE_SIZE_T 1
22697 _ACEOF
22703 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22704 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22705 if test "${ac_cv_type_mbstate_t+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 $ac_includes_default
22715 # include <wchar.h>
22717 main ()
22719 mbstate_t x; return sizeof x;
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 ac_cv_type_mbstate_t=yes
22742 else
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 ac_cv_type_mbstate_t=no
22749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22752 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22753 if test $ac_cv_type_mbstate_t = yes; then
22755 cat >>confdefs.h <<\_ACEOF
22756 #define HAVE_MBSTATE_T 1
22757 _ACEOF
22759 else
22761 cat >>confdefs.h <<\_ACEOF
22762 #define mbstate_t int
22763 _ACEOF
22767 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22768 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22769 if test "${emacs_cv_c_restrict+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h. */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 void fred (int *restrict x);
22780 main ()
22784 return 0;
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22792 esac
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_compile") 2>conftest.er1
22795 ac_status=$?
22796 grep -v '^ *+' conftest.er1 >conftest.err
22797 rm -f conftest.er1
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest.$ac_objext; then
22804 emacs_cv_c_restrict=yes
22805 else
22806 echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 void fred (int *__restrict x);
22817 main ()
22821 return 0;
22823 _ACEOF
22824 rm -f conftest.$ac_objext
22825 if { (ac_try="$ac_compile"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_compile") 2>conftest.er1
22832 ac_status=$?
22833 grep -v '^ *+' conftest.er1 >conftest.err
22834 rm -f conftest.er1
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && {
22838 test -z "$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 } && test -s conftest.$ac_objext; then
22841 emacs_cv_c_restrict=__restrict
22842 else
22843 echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 emacs_cv_c_restrict=no
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22855 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22856 case "$emacs_cv_c_restrict" in
22857 yes) emacs_restrict=restrict;;
22858 no) emacs_restrict="";;
22859 *) emacs_restrict="$emacs_cv_c_restrict";;
22860 esac
22861 if test "$emacs_restrict" != __restrict; then
22863 cat >>confdefs.h <<_ACEOF
22864 #define __restrict $emacs_restrict
22865 _ACEOF
22869 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22870 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22871 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h. */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22880 void fred (int x[__restrict]);
22882 main ()
22886 return 0;
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22894 esac
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896 (eval "$ac_compile") 2>conftest.er1
22897 ac_status=$?
22898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } && {
22903 test -z "$ac_c_werror_flag" ||
22904 test ! -s conftest.err
22905 } && test -s conftest.$ac_objext; then
22906 emacs_cv_c_restrict_arr=yes
22907 else
22908 echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22911 emacs_cv_c_restrict_arr=no
22914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22917 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22918 if test "$emacs_cv_c_restrict_arr" = yes; then
22920 cat >>confdefs.h <<\_ACEOF
22921 #define __restrict_arr __restrict
22922 _ACEOF
22928 # Set up the CFLAGS for real compilation, so we can substitute it.
22929 CFLAGS="$REAL_CFLAGS"
22930 CPPFLAGS="$REAL_CPPFLAGS"
22932 #### Find out which version of Emacs this is.
22933 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22934 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22935 if test x"${version}" = x; then
22936 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22937 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22938 { (exit 1); exit 1; }; }
22941 ### Specify what sort of things we'll be editing into Makefile and config.h.
22942 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22978 cat >>confdefs.h <<_ACEOF
22979 #define EMACS_CONFIGURATION "${canonical}"
22980 _ACEOF
22983 cat >>confdefs.h <<_ACEOF
22984 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22985 _ACEOF
22988 cat >>confdefs.h <<_ACEOF
22989 #define config_machfile "${machfile}"
22990 _ACEOF
22993 cat >>confdefs.h <<_ACEOF
22994 #define config_opsysfile "${opsysfile}"
22995 _ACEOF
22998 cat >>confdefs.h <<_ACEOF
22999 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23000 _ACEOF
23003 cat >>confdefs.h <<_ACEOF
23004 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23005 _ACEOF
23008 cat >>confdefs.h <<_ACEOF
23009 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23010 _ACEOF
23013 cat >>confdefs.h <<_ACEOF
23014 #define UNEXEC_SRC ${UNEXEC_SRC}
23015 _ACEOF
23018 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23020 cat >>confdefs.h <<\_ACEOF
23021 #define HAVE_X_WINDOWS 1
23022 _ACEOF
23025 if test "${USE_X_TOOLKIT}" != "none" ; then
23027 cat >>confdefs.h <<\_ACEOF
23028 #define USE_X_TOOLKIT 1
23029 _ACEOF
23032 if test "${HAVE_X11}" = "yes" ; then
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_X11 1
23036 _ACEOF
23039 if test "${HAVE_XFREE386}" = "yes" ; then
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_XFREE386 1
23043 _ACEOF
23046 if test "${HAVE_MENUS}" = "yes" ; then
23048 cat >>confdefs.h <<\_ACEOF
23049 #define HAVE_MENUS 1
23050 _ACEOF
23053 if test "${GNU_MALLOC}" = "yes" ; then
23055 cat >>confdefs.h <<\_ACEOF
23056 #define GNU_MALLOC 1
23057 _ACEOF
23060 if test "${REL_ALLOC}" = "yes" ; then
23062 cat >>confdefs.h <<\_ACEOF
23063 #define REL_ALLOC 1
23064 _ACEOF
23072 #### Report on what we decided to do.
23073 #### Report GTK as a toolkit, even if it doesn't use Xt.
23074 #### It makes printing result more understandable as using GTK sets
23075 #### toolkit_scroll_bars to yes by default.
23076 if test "${HAVE_GTK}" = "yes"; then
23077 USE_X_TOOLKIT=GTK
23080 echo "
23081 Configured for \`${canonical}'.
23083 Where should the build process find the source code? ${srcdir}
23084 What operating system and machine description files should Emacs use?
23085 \`${opsysfile}' and \`${machfile}'
23086 What compiler should emacs be built with? ${CC} ${CFLAGS}
23087 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23088 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23089 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23090 What window system should Emacs use? ${window_system}
23091 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23093 if test -n "${x_includes}"; then
23094 echo " Where do we find X Windows header files? ${x_includes}"
23095 else
23096 echo " Where do we find X Windows header files? Standard dirs"
23098 if test -n "${x_libraries}"; then
23099 echo " Where do we find X Windows libraries? ${x_libraries}"
23100 else
23101 echo " Where do we find X Windows libraries? Standard dirs"
23104 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23105 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23106 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23107 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23108 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23109 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23110 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23111 echo
23113 if test $USE_XASSERTS = yes; then
23114 echo " Compiling with asserts turned on."
23115 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23116 echo
23119 if test "$USE_X_TOOLKIT" = GTK; then
23120 case "$canonical" in
23121 *cygwin*)
23122 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23123 will probably get a crash on startup. If this happens, please use another
23124 toolkit for Emacs. See etc/PROBLEMS for more information."
23126 esac
23131 # Remove any trailing slashes in these variables.
23132 test "${prefix}" != NONE &&
23133 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23134 test "${exec_prefix}" != NONE &&
23135 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23137 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23138 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23139 ## from Makefile.c can correctly provide the arg `-traditional' to the
23140 ## C preprocessor.
23142 cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h. */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23148 yes..yes
23149 _ACEOF
23150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23151 $EGREP "yes..yes" >/dev/null 2>&1; then
23152 CPP_NEED_TRADITIONAL=no
23153 else
23154 CPP_NEED_TRADITIONAL=yes
23156 rm -f conftest*
23159 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"
23161 ac_config_commands="$ac_config_commands default"
23163 cat >confcache <<\_ACEOF
23164 # This file is a shell script that caches the results of configure
23165 # tests run on this system so they can be shared between configure
23166 # scripts and configure runs, see configure's option --config-cache.
23167 # It is not useful on other systems. If it contains results you don't
23168 # want to keep, you may remove or edit it.
23170 # config.status only pays attention to the cache file if you give it
23171 # the --recheck option to rerun configure.
23173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23175 # following values.
23177 _ACEOF
23179 # The following way of writing the cache mishandles newlines in values,
23180 # but we know of no workaround that is simple, portable, and efficient.
23181 # So, we kill variables containing newlines.
23182 # Ultrix sh set writes to stderr and can't be redirected directly,
23183 # and sets the high bit in the cache file unless we assign to the vars.
23185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23186 eval ac_val=\$$ac_var
23187 case $ac_val in #(
23188 *${as_nl}*)
23189 case $ac_var in #(
23190 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23191 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23192 esac
23193 case $ac_var in #(
23194 _ | IFS | as_nl) ;; #(
23195 *) $as_unset $ac_var ;;
23196 esac ;;
23197 esac
23198 done
23200 (set) 2>&1 |
23201 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23202 *${as_nl}ac_space=\ *)
23203 # `set' does not quote correctly, so add quotes (double-quote
23204 # substitution turns \\\\ into \\, and sed turns \\ into \).
23205 sed -n \
23206 "s/'/'\\\\''/g;
23207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23208 ;; #(
23210 # `set' quotes correctly as required by POSIX, so do not add quotes.
23211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23213 esac |
23214 sort
23216 sed '
23217 /^ac_cv_env_/b end
23218 t clear
23219 :clear
23220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23221 t end
23222 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23223 :end' >>confcache
23224 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23225 if test -w "$cache_file"; then
23226 test "x$cache_file" != "x/dev/null" &&
23227 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23228 echo "$as_me: updating cache $cache_file" >&6;}
23229 cat confcache >$cache_file
23230 else
23231 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23232 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23235 rm -f confcache
23237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23238 # Let make expand exec_prefix.
23239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23241 DEFS=-DHAVE_CONFIG_H
23243 ac_libobjs=
23244 ac_ltlibobjs=
23245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23246 # 1. Remove the extension, and $U if already installed.
23247 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23248 ac_i=`echo "$ac_i" | sed "$ac_script"`
23249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23250 # will be set to the directory where LIBOBJS objects are built.
23251 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23252 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23253 done
23254 LIBOBJS=$ac_libobjs
23256 LTLIBOBJS=$ac_ltlibobjs
23260 : ${CONFIG_STATUS=./config.status}
23261 ac_clean_files_save=$ac_clean_files
23262 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23263 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23264 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23265 cat >$CONFIG_STATUS <<_ACEOF
23266 #! $SHELL
23267 # Generated by $as_me.
23268 # Run this file to recreate the current configuration.
23269 # Compiler output produced by configure, useful for debugging
23270 # configure, is in config.log if it exists.
23272 debug=false
23273 ac_cs_recheck=false
23274 ac_cs_silent=false
23275 SHELL=\${CONFIG_SHELL-$SHELL}
23276 _ACEOF
23278 cat >>$CONFIG_STATUS <<\_ACEOF
23279 ## --------------------- ##
23280 ## M4sh Initialization. ##
23281 ## --------------------- ##
23283 # Be more Bourne compatible
23284 DUALCASE=1; export DUALCASE # for MKS sh
23285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23286 emulate sh
23287 NULLCMD=:
23288 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23289 # is contrary to our usage. Disable this feature.
23290 alias -g '${1+"$@"}'='"$@"'
23291 setopt NO_GLOB_SUBST
23292 else
23293 case `(set -o) 2>/dev/null` in
23294 *posix*) set -o posix ;;
23295 esac
23302 # PATH needs CR
23303 # Avoid depending upon Character Ranges.
23304 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23305 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23306 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23307 as_cr_digits='0123456789'
23308 as_cr_alnum=$as_cr_Letters$as_cr_digits
23310 # The user is always right.
23311 if test "${PATH_SEPARATOR+set}" != set; then
23312 echo "#! /bin/sh" >conf$$.sh
23313 echo "exit 0" >>conf$$.sh
23314 chmod +x conf$$.sh
23315 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23316 PATH_SEPARATOR=';'
23317 else
23318 PATH_SEPARATOR=:
23320 rm -f conf$$.sh
23323 # Support unset when possible.
23324 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23325 as_unset=unset
23326 else
23327 as_unset=false
23331 # IFS
23332 # We need space, tab and new line, in precisely that order. Quoting is
23333 # there to prevent editors from complaining about space-tab.
23334 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23335 # splitting by setting IFS to empty value.)
23336 as_nl='
23338 IFS=" "" $as_nl"
23340 # Find who we are. Look in the path if we contain no directory separator.
23341 case $0 in
23342 *[\\/]* ) as_myself=$0 ;;
23343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23344 for as_dir in $PATH
23346 IFS=$as_save_IFS
23347 test -z "$as_dir" && as_dir=.
23348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23349 done
23350 IFS=$as_save_IFS
23353 esac
23354 # We did not find ourselves, most probably we were run as `sh COMMAND'
23355 # in which case we are not to be found in the path.
23356 if test "x$as_myself" = x; then
23357 as_myself=$0
23359 if test ! -f "$as_myself"; then
23360 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23361 { (exit 1); exit 1; }
23364 # Work around bugs in pre-3.0 UWIN ksh.
23365 for as_var in ENV MAIL MAILPATH
23366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23367 done
23368 PS1='$ '
23369 PS2='> '
23370 PS4='+ '
23372 # NLS nuisances.
23373 for as_var in \
23374 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23375 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23376 LC_TELEPHONE LC_TIME
23378 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23379 eval $as_var=C; export $as_var
23380 else
23381 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23383 done
23385 # Required to use basename.
23386 if expr a : '\(a\)' >/dev/null 2>&1 &&
23387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23388 as_expr=expr
23389 else
23390 as_expr=false
23393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23394 as_basename=basename
23395 else
23396 as_basename=false
23400 # Name of the executable.
23401 as_me=`$as_basename -- "$0" ||
23402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23403 X"$0" : 'X\(//\)$' \| \
23404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23405 echo X/"$0" |
23406 sed '/^.*\/\([^/][^/]*\)\/*$/{
23407 s//\1/
23410 /^X\/\(\/\/\)$/{
23411 s//\1/
23414 /^X\/\(\/\).*/{
23415 s//\1/
23418 s/.*/./; q'`
23420 # CDPATH.
23421 $as_unset CDPATH
23425 as_lineno_1=$LINENO
23426 as_lineno_2=$LINENO
23427 test "x$as_lineno_1" != "x$as_lineno_2" &&
23428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23431 # uniformly replaced by the line number. The first 'sed' inserts a
23432 # line-number line after each line using $LINENO; the second 'sed'
23433 # does the real work. The second script uses 'N' to pair each
23434 # line-number line with the line containing $LINENO, and appends
23435 # trailing '-' during substitution so that $LINENO is not a special
23436 # case at line end.
23437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23438 # scripts with optimization help from Paolo Bonzini. Blame Lee
23439 # E. McMahon (1931-1989) for sed's syntax. :-)
23440 sed -n '
23442 /[$]LINENO/=
23443 ' <$as_myself |
23444 sed '
23445 s/[$]LINENO.*/&-/
23446 t lineno
23448 :lineno
23450 :loop
23451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23452 t loop
23453 s/-\n.*//
23454 ' >$as_me.lineno &&
23455 chmod +x "$as_me.lineno" ||
23456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23457 { (exit 1); exit 1; }; }
23459 # Don't try to exec as it changes $[0], causing all sort of problems
23460 # (the dirname of $[0] is not the place where we might find the
23461 # original and so on. Autoconf is especially sensitive to this).
23462 . "./$as_me.lineno"
23463 # Exit status is that of the last command.
23464 exit
23468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23469 as_dirname=dirname
23470 else
23471 as_dirname=false
23474 ECHO_C= ECHO_N= ECHO_T=
23475 case `echo -n x` in
23476 -n*)
23477 case `echo 'x\c'` in
23478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23479 *) ECHO_C='\c';;
23480 esac;;
23482 ECHO_N='-n';;
23483 esac
23485 if expr a : '\(a\)' >/dev/null 2>&1 &&
23486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23487 as_expr=expr
23488 else
23489 as_expr=false
23492 rm -f conf$$ conf$$.exe conf$$.file
23493 if test -d conf$$.dir; then
23494 rm -f conf$$.dir/conf$$.file
23495 else
23496 rm -f conf$$.dir
23497 mkdir conf$$.dir
23499 echo >conf$$.file
23500 if ln -s conf$$.file conf$$ 2>/dev/null; then
23501 as_ln_s='ln -s'
23502 # ... but there are two gotchas:
23503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23505 # In both cases, we have to default to `cp -p'.
23506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23507 as_ln_s='cp -p'
23508 elif ln conf$$.file conf$$ 2>/dev/null; then
23509 as_ln_s=ln
23510 else
23511 as_ln_s='cp -p'
23513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23514 rmdir conf$$.dir 2>/dev/null
23516 if mkdir -p . 2>/dev/null; then
23517 as_mkdir_p=:
23518 else
23519 test -d ./-p && rmdir ./-p
23520 as_mkdir_p=false
23523 if test -x / >/dev/null 2>&1; then
23524 as_test_x='test -x'
23525 else
23526 if ls -dL / >/dev/null 2>&1; then
23527 as_ls_L_option=L
23528 else
23529 as_ls_L_option=
23531 as_test_x='
23532 eval sh -c '\''
23533 if test -d "$1"; then
23534 test -d "$1/.";
23535 else
23536 case $1 in
23537 -*)set "./$1";;
23538 esac;
23539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23540 ???[sx]*):;;*)false;;esac;fi
23541 '\'' sh
23544 as_executable_p=$as_test_x
23546 # Sed expression to map a string onto a valid CPP name.
23547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23549 # Sed expression to map a string onto a valid variable name.
23550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23553 exec 6>&1
23555 # Save the log message, to keep $[0] and so on meaningful, and to
23556 # report actual input values of CONFIG_FILES etc. instead of their
23557 # values after options handling.
23558 ac_log="
23559 This file was extended by $as_me, which was
23560 generated by GNU Autoconf 2.61. Invocation command line was
23562 CONFIG_FILES = $CONFIG_FILES
23563 CONFIG_HEADERS = $CONFIG_HEADERS
23564 CONFIG_LINKS = $CONFIG_LINKS
23565 CONFIG_COMMANDS = $CONFIG_COMMANDS
23566 $ $0 $@
23568 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23571 _ACEOF
23573 cat >>$CONFIG_STATUS <<_ACEOF
23574 # Files that config.status was made for.
23575 config_files="$ac_config_files"
23576 config_headers="$ac_config_headers"
23577 config_commands="$ac_config_commands"
23579 _ACEOF
23581 cat >>$CONFIG_STATUS <<\_ACEOF
23582 ac_cs_usage="\
23583 \`$as_me' instantiates files from templates according to the
23584 current configuration.
23586 Usage: $0 [OPTIONS] [FILE]...
23588 -h, --help print this help, then exit
23589 -V, --version print version number and configuration settings, then exit
23590 -q, --quiet do not print progress messages
23591 -d, --debug don't remove temporary files
23592 --recheck update $as_me by reconfiguring in the same conditions
23593 --file=FILE[:TEMPLATE]
23594 instantiate the configuration file FILE
23595 --header=FILE[:TEMPLATE]
23596 instantiate the configuration header FILE
23598 Configuration files:
23599 $config_files
23601 Configuration headers:
23602 $config_headers
23604 Configuration commands:
23605 $config_commands
23607 Report bugs to <bug-autoconf@gnu.org>."
23609 _ACEOF
23610 cat >>$CONFIG_STATUS <<_ACEOF
23611 ac_cs_version="\\
23612 config.status
23613 configured by $0, generated by GNU Autoconf 2.61,
23614 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23616 Copyright (C) 2006 Free Software Foundation, Inc.
23617 This config.status script is free software; the Free Software Foundation
23618 gives unlimited permission to copy, distribute and modify it."
23620 ac_pwd='$ac_pwd'
23621 srcdir='$srcdir'
23622 INSTALL='$INSTALL'
23623 _ACEOF
23625 cat >>$CONFIG_STATUS <<\_ACEOF
23626 # If no file are specified by the user, then we need to provide default
23627 # value. By we need to know if files were specified by the user.
23628 ac_need_defaults=:
23629 while test $# != 0
23631 case $1 in
23632 --*=*)
23633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23635 ac_shift=:
23638 ac_option=$1
23639 ac_optarg=$2
23640 ac_shift=shift
23642 esac
23644 case $ac_option in
23645 # Handling of the options.
23646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23647 ac_cs_recheck=: ;;
23648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23649 echo "$ac_cs_version"; exit ;;
23650 --debug | --debu | --deb | --de | --d | -d )
23651 debug=: ;;
23652 --file | --fil | --fi | --f )
23653 $ac_shift
23654 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23655 ac_need_defaults=false;;
23656 --header | --heade | --head | --hea )
23657 $ac_shift
23658 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23659 ac_need_defaults=false;;
23660 --he | --h)
23661 # Conflict between --help and --header
23662 { echo "$as_me: error: ambiguous option: $1
23663 Try \`$0 --help' for more information." >&2
23664 { (exit 1); exit 1; }; };;
23665 --help | --hel | -h )
23666 echo "$ac_cs_usage"; exit ;;
23667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23668 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23669 ac_cs_silent=: ;;
23671 # This is an error.
23672 -*) { echo "$as_me: error: unrecognized option: $1
23673 Try \`$0 --help' for more information." >&2
23674 { (exit 1); exit 1; }; } ;;
23676 *) ac_config_targets="$ac_config_targets $1"
23677 ac_need_defaults=false ;;
23679 esac
23680 shift
23681 done
23683 ac_configure_extra_args=
23685 if $ac_cs_silent; then
23686 exec 6>/dev/null
23687 ac_configure_extra_args="$ac_configure_extra_args --silent"
23690 _ACEOF
23691 cat >>$CONFIG_STATUS <<_ACEOF
23692 if \$ac_cs_recheck; then
23693 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23694 CONFIG_SHELL=$SHELL
23695 export CONFIG_SHELL
23696 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23699 _ACEOF
23700 cat >>$CONFIG_STATUS <<\_ACEOF
23701 exec 5>>config.log
23703 echo
23704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23705 ## Running $as_me. ##
23706 _ASBOX
23707 echo "$ac_log"
23708 } >&5
23710 _ACEOF
23711 cat >>$CONFIG_STATUS <<_ACEOF
23713 # INIT-COMMANDS
23715 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23717 _ACEOF
23719 cat >>$CONFIG_STATUS <<\_ACEOF
23721 # Handling of arguments.
23722 for ac_config_target in $ac_config_targets
23724 case $ac_config_target in
23725 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23726 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23727 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23728 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23729 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23730 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23731 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23732 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23733 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23734 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23735 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23736 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23740 { (exit 1); exit 1; }; };;
23741 esac
23742 done
23745 # If the user did not use the arguments to specify the items to instantiate,
23746 # then the envvar interface is used. Set only those that are not.
23747 # We use the long form for the default assignment because of an extremely
23748 # bizarre bug on SunOS 4.1.3.
23749 if $ac_need_defaults; then
23750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23755 # Have a temporary directory for convenience. Make it in the build tree
23756 # simply because there is no reason against having it here, and in addition,
23757 # creating and moving files from /tmp can sometimes cause problems.
23758 # Hook for its removal unless debugging.
23759 # Note that there is a small window in which the directory will not be cleaned:
23760 # after its creation but before its name has been assigned to `$tmp'.
23761 $debug ||
23763 tmp=
23764 trap 'exit_status=$?
23765 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23767 trap '{ (exit 1); exit 1; }' 1 2 13 15
23769 # Create a (secure) tmp directory for tmp files.
23772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23773 test -n "$tmp" && test -d "$tmp"
23774 } ||
23776 tmp=./conf$$-$RANDOM
23777 (umask 077 && mkdir "$tmp")
23778 } ||
23780 echo "$me: cannot create a temporary directory in ." >&2
23781 { (exit 1); exit 1; }
23785 # Set up the sed scripts for CONFIG_FILES section.
23788 # No need to generate the scripts if there are no CONFIG_FILES.
23789 # This happens for instance when ./config.status config.h
23790 if test -n "$CONFIG_FILES"; then
23792 _ACEOF
23796 ac_delim='%!_!# '
23797 for ac_last_try in false false false false false :; do
23798 cat >conf$$subs.sed <<_ACEOF
23799 SHELL!$SHELL$ac_delim
23800 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23801 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23802 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23803 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23804 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23805 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23806 exec_prefix!$exec_prefix$ac_delim
23807 prefix!$prefix$ac_delim
23808 program_transform_name!$program_transform_name$ac_delim
23809 bindir!$bindir$ac_delim
23810 sbindir!$sbindir$ac_delim
23811 libexecdir!$libexecdir$ac_delim
23812 datarootdir!$datarootdir$ac_delim
23813 datadir!$datadir$ac_delim
23814 sysconfdir!$sysconfdir$ac_delim
23815 sharedstatedir!$sharedstatedir$ac_delim
23816 localstatedir!$localstatedir$ac_delim
23817 includedir!$includedir$ac_delim
23818 oldincludedir!$oldincludedir$ac_delim
23819 docdir!$docdir$ac_delim
23820 infodir!$infodir$ac_delim
23821 htmldir!$htmldir$ac_delim
23822 dvidir!$dvidir$ac_delim
23823 pdfdir!$pdfdir$ac_delim
23824 psdir!$psdir$ac_delim
23825 libdir!$libdir$ac_delim
23826 localedir!$localedir$ac_delim
23827 mandir!$mandir$ac_delim
23828 DEFS!$DEFS$ac_delim
23829 ECHO_C!$ECHO_C$ac_delim
23830 ECHO_N!$ECHO_N$ac_delim
23831 ECHO_T!$ECHO_T$ac_delim
23832 LIBS!$LIBS$ac_delim
23833 build_alias!$build_alias$ac_delim
23834 host_alias!$host_alias$ac_delim
23835 target_alias!$target_alias$ac_delim
23836 MAINT!$MAINT$ac_delim
23837 build!$build$ac_delim
23838 build_cpu!$build_cpu$ac_delim
23839 build_vendor!$build_vendor$ac_delim
23840 build_os!$build_os$ac_delim
23841 host!$host$ac_delim
23842 host_cpu!$host_cpu$ac_delim
23843 host_vendor!$host_vendor$ac_delim
23844 host_os!$host_os$ac_delim
23845 CC!$CC$ac_delim
23846 CFLAGS!$CFLAGS$ac_delim
23847 LDFLAGS!$LDFLAGS$ac_delim
23848 CPPFLAGS!$CPPFLAGS$ac_delim
23849 ac_ct_CC!$ac_ct_CC$ac_delim
23850 EXEEXT!$EXEEXT$ac_delim
23851 OBJEXT!$OBJEXT$ac_delim
23852 CPP!$CPP$ac_delim
23853 GREP!$GREP$ac_delim
23854 EGREP!$EGREP$ac_delim
23855 LN_S!$LN_S$ac_delim
23856 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23857 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23858 INSTALL_DATA!$INSTALL_DATA$ac_delim
23859 RANLIB!$RANLIB$ac_delim
23860 INSTALL_INFO!$INSTALL_INFO$ac_delim
23861 GZIP_PROG!$GZIP_PROG$ac_delim
23862 LIBSOUND!$LIBSOUND$ac_delim
23863 PKG_CONFIG!$PKG_CONFIG$ac_delim
23864 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23865 ALSA_LIBS!$ALSA_LIBS$ac_delim
23866 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23867 SET_MAKE!$SET_MAKE$ac_delim
23868 XMKMF!$XMKMF$ac_delim
23869 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23870 GTK_LIBS!$GTK_LIBS$ac_delim
23871 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23872 XFT_LIBS!$XFT_LIBS$ac_delim
23873 ALLOCA!$ALLOCA$ac_delim
23874 liblockfile!$liblockfile$ac_delim
23875 LIBOBJS!$LIBOBJS$ac_delim
23876 NEED_SETGID!$NEED_SETGID$ac_delim
23877 KMEM_GROUP!$KMEM_GROUP$ac_delim
23878 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23879 GETOPT_H!$GETOPT_H$ac_delim
23880 GETOPTOBJS!$GETOPTOBJS$ac_delim
23881 version!$version$ac_delim
23882 configuration!$configuration$ac_delim
23883 canonical!$canonical$ac_delim
23884 srcdir!$srcdir$ac_delim
23885 lispdir!$lispdir$ac_delim
23886 locallisppath!$locallisppath$ac_delim
23887 lisppath!$lisppath$ac_delim
23888 x_default_search_path!$x_default_search_path$ac_delim
23889 etcdir!$etcdir$ac_delim
23890 archlibdir!$archlibdir$ac_delim
23891 bitmapdir!$bitmapdir$ac_delim
23892 gamedir!$gamedir$ac_delim
23893 gameuser!$gameuser$ac_delim
23894 c_switch_system!$c_switch_system$ac_delim
23895 c_switch_machine!$c_switch_machine$ac_delim
23896 _ACEOF
23898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23899 break
23900 elif $ac_last_try; then
23901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23903 { (exit 1); exit 1; }; }
23904 else
23905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23907 done
23909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23910 if test -n "$ac_eof"; then
23911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23912 ac_eof=`expr $ac_eof + 1`
23915 cat >>$CONFIG_STATUS <<_ACEOF
23916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23918 _ACEOF
23919 sed '
23920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23921 s/^/s,@/; s/!/@,|#_!!_#|/
23924 s/'"$ac_delim"'$/,g/; t
23925 s/$/\\/; p
23926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23927 ' >>$CONFIG_STATUS <conf$$subs.sed
23928 rm -f conf$$subs.sed
23929 cat >>$CONFIG_STATUS <<_ACEOF
23930 CEOF$ac_eof
23931 _ACEOF
23934 ac_delim='%!_!# '
23935 for ac_last_try in false false false false false :; do
23936 cat >conf$$subs.sed <<_ACEOF
23937 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23938 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23939 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23940 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23941 machfile!$machfile$ac_delim
23942 opsysfile!$opsysfile$ac_delim
23943 carbon_appdir!$carbon_appdir$ac_delim
23944 LTLIBOBJS!$LTLIBOBJS$ac_delim
23945 _ACEOF
23947 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23948 break
23949 elif $ac_last_try; then
23950 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23951 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23952 { (exit 1); exit 1; }; }
23953 else
23954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23956 done
23958 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23959 if test -n "$ac_eof"; then
23960 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23961 ac_eof=`expr $ac_eof + 1`
23964 cat >>$CONFIG_STATUS <<_ACEOF
23965 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23967 _ACEOF
23968 sed '
23969 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23970 s/^/s,@/; s/!/@,|#_!!_#|/
23973 s/'"$ac_delim"'$/,g/; t
23974 s/$/\\/; p
23975 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23976 ' >>$CONFIG_STATUS <conf$$subs.sed
23977 rm -f conf$$subs.sed
23978 cat >>$CONFIG_STATUS <<_ACEOF
23979 :end
23980 s/|#_!!_#|//g
23981 CEOF$ac_eof
23982 _ACEOF
23985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23987 # trailing colons and then remove the whole line if VPATH becomes empty
23988 # (actually we leave an empty line to preserve line numbers).
23989 if test "x$srcdir" = x.; then
23990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23991 s/:*\$(srcdir):*/:/
23992 s/:*\${srcdir}:*/:/
23993 s/:*@srcdir@:*/:/
23994 s/^\([^=]*=[ ]*\):*/\1/
23995 s/:*$//
23996 s/^[^=]*=[ ]*$//
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24001 fi # test -n "$CONFIG_FILES"
24004 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24006 case $ac_tag in
24007 :[FHLC]) ac_mode=$ac_tag; continue;;
24008 esac
24009 case $ac_mode$ac_tag in
24010 :[FHL]*:*);;
24011 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24012 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24013 { (exit 1); exit 1; }; };;
24014 :[FH]-) ac_tag=-:-;;
24015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24016 esac
24017 ac_save_IFS=$IFS
24018 IFS=:
24019 set x $ac_tag
24020 IFS=$ac_save_IFS
24021 shift
24022 ac_file=$1
24023 shift
24025 case $ac_mode in
24026 :L) ac_source=$1;;
24027 :[FH])
24028 ac_file_inputs=
24029 for ac_f
24031 case $ac_f in
24032 -) ac_f="$tmp/stdin";;
24033 *) # Look for the file first in the build tree, then in the source tree
24034 # (if the path is not absolute). The absolute path cannot be DOS-style,
24035 # because $ac_f cannot contain `:'.
24036 test -f "$ac_f" ||
24037 case $ac_f in
24038 [\\/$]*) false;;
24039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24040 esac ||
24041 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24042 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24043 { (exit 1); exit 1; }; };;
24044 esac
24045 ac_file_inputs="$ac_file_inputs $ac_f"
24046 done
24048 # Let's still pretend it is `configure' which instantiates (i.e., don't
24049 # use $as_me), people would be surprised to read:
24050 # /* config.h. Generated by config.status. */
24051 configure_input="Generated from "`IFS=:
24052 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24053 if test x"$ac_file" != x-; then
24054 configure_input="$ac_file. $configure_input"
24055 { echo "$as_me:$LINENO: creating $ac_file" >&5
24056 echo "$as_me: creating $ac_file" >&6;}
24059 case $ac_tag in
24060 *:-:* | *:-) cat >"$tmp/stdin";;
24061 esac
24063 esac
24065 ac_dir=`$as_dirname -- "$ac_file" ||
24066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24067 X"$ac_file" : 'X\(//\)[^/]' \| \
24068 X"$ac_file" : 'X\(//\)$' \| \
24069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24070 echo X"$ac_file" |
24071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24072 s//\1/
24075 /^X\(\/\/\)[^/].*/{
24076 s//\1/
24079 /^X\(\/\/\)$/{
24080 s//\1/
24083 /^X\(\/\).*/{
24084 s//\1/
24087 s/.*/./; q'`
24088 { as_dir="$ac_dir"
24089 case $as_dir in #(
24090 -*) as_dir=./$as_dir;;
24091 esac
24092 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24093 as_dirs=
24094 while :; do
24095 case $as_dir in #(
24096 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24097 *) as_qdir=$as_dir;;
24098 esac
24099 as_dirs="'$as_qdir' $as_dirs"
24100 as_dir=`$as_dirname -- "$as_dir" ||
24101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24102 X"$as_dir" : 'X\(//\)[^/]' \| \
24103 X"$as_dir" : 'X\(//\)$' \| \
24104 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24105 echo X"$as_dir" |
24106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24107 s//\1/
24110 /^X\(\/\/\)[^/].*/{
24111 s//\1/
24114 /^X\(\/\/\)$/{
24115 s//\1/
24118 /^X\(\/\).*/{
24119 s//\1/
24122 s/.*/./; q'`
24123 test -d "$as_dir" && break
24124 done
24125 test -z "$as_dirs" || eval "mkdir $as_dirs"
24126 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24127 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24128 { (exit 1); exit 1; }; }; }
24129 ac_builddir=.
24131 case "$ac_dir" in
24132 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24135 # A ".." for each directory in $ac_dir_suffix.
24136 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24137 case $ac_top_builddir_sub in
24138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24140 esac ;;
24141 esac
24142 ac_abs_top_builddir=$ac_pwd
24143 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24144 # for backward compatibility:
24145 ac_top_builddir=$ac_top_build_prefix
24147 case $srcdir in
24148 .) # We are building in place.
24149 ac_srcdir=.
24150 ac_top_srcdir=$ac_top_builddir_sub
24151 ac_abs_top_srcdir=$ac_pwd ;;
24152 [\\/]* | ?:[\\/]* ) # Absolute name.
24153 ac_srcdir=$srcdir$ac_dir_suffix;
24154 ac_top_srcdir=$srcdir
24155 ac_abs_top_srcdir=$srcdir ;;
24156 *) # Relative name.
24157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24158 ac_top_srcdir=$ac_top_build_prefix$srcdir
24159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24160 esac
24161 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24164 case $ac_mode in
24167 # CONFIG_FILE
24170 case $INSTALL in
24171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24173 esac
24174 _ACEOF
24176 cat >>$CONFIG_STATUS <<\_ACEOF
24177 # If the template does not know about datarootdir, expand it.
24178 # FIXME: This hack should be removed a few years after 2.60.
24179 ac_datarootdir_hack=; ac_datarootdir_seen=
24181 case `sed -n '/datarootdir/ {
24185 /@datadir@/p
24186 /@docdir@/p
24187 /@infodir@/p
24188 /@localedir@/p
24189 /@mandir@/p
24190 ' $ac_file_inputs` in
24191 *datarootdir*) ac_datarootdir_seen=yes;;
24192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24193 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24194 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24195 _ACEOF
24196 cat >>$CONFIG_STATUS <<_ACEOF
24197 ac_datarootdir_hack='
24198 s&@datadir@&$datadir&g
24199 s&@docdir@&$docdir&g
24200 s&@infodir@&$infodir&g
24201 s&@localedir@&$localedir&g
24202 s&@mandir@&$mandir&g
24203 s&\\\${datarootdir}&$datarootdir&g' ;;
24204 esac
24205 _ACEOF
24207 # Neutralize VPATH when `$srcdir' = `.'.
24208 # Shell code in configure.ac might set extrasub.
24209 # FIXME: do we really want to maintain this feature?
24210 cat >>$CONFIG_STATUS <<_ACEOF
24211 sed "$ac_vpsub
24212 $extrasub
24213 _ACEOF
24214 cat >>$CONFIG_STATUS <<\_ACEOF
24216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24217 s&@configure_input@&$configure_input&;t t
24218 s&@top_builddir@&$ac_top_builddir_sub&;t t
24219 s&@srcdir@&$ac_srcdir&;t t
24220 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24221 s&@top_srcdir@&$ac_top_srcdir&;t t
24222 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24223 s&@builddir@&$ac_builddir&;t t
24224 s&@abs_builddir@&$ac_abs_builddir&;t t
24225 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24226 s&@INSTALL@&$ac_INSTALL&;t t
24227 $ac_datarootdir_hack
24228 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24233 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24234 which seems to be undefined. Please make sure it is defined." >&5
24235 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24236 which seems to be undefined. Please make sure it is defined." >&2;}
24238 rm -f "$tmp/stdin"
24239 case $ac_file in
24240 -) cat "$tmp/out"; rm -f "$tmp/out";;
24241 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24242 esac
24246 # CONFIG_HEADER
24248 _ACEOF
24250 # Transform confdefs.h into a sed script `conftest.defines', that
24251 # substitutes the proper values into config.h.in to produce config.h.
24252 rm -f conftest.defines conftest.tail
24253 # First, append a space to every undef/define line, to ease matching.
24254 echo 's/$/ /' >conftest.defines
24255 # Then, protect against being on the right side of a sed subst, or in
24256 # an unquoted here document, in config.status. If some macros were
24257 # called several times there might be several #defines for the same
24258 # symbol, which is useless. But do not sort them, since the last
24259 # AC_DEFINE must be honored.
24260 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24261 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24262 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24263 # PARAMS is the parameter list in the macro definition--in most cases, it's
24264 # just an empty string.
24265 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24266 ac_dB='\\)[ (].*,\\1define\\2'
24267 ac_dC=' '
24268 ac_dD=' ,'
24270 uniq confdefs.h |
24271 sed -n '
24272 t rset
24273 :rset
24274 s/^[ ]*#[ ]*define[ ][ ]*//
24275 t ok
24278 s/[\\&,]/\\&/g
24279 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24280 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24281 ' >>conftest.defines
24283 # Remove the space that was appended to ease matching.
24284 # Then replace #undef with comments. This is necessary, for
24285 # example, in the case of _POSIX_SOURCE, which is predefined and required
24286 # on some systems where configure will not decide to define it.
24287 # (The regexp can be short, since the line contains either #define or #undef.)
24288 echo 's/ $//
24289 s,^[ #]*u.*,/* & */,' >>conftest.defines
24291 # Break up conftest.defines:
24292 ac_max_sed_lines=50
24294 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24295 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24296 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24297 # et cetera.
24298 ac_in='$ac_file_inputs'
24299 ac_out='"$tmp/out1"'
24300 ac_nxt='"$tmp/out2"'
24302 while :
24304 # Write a here document:
24305 cat >>$CONFIG_STATUS <<_ACEOF
24306 # First, check the format of the line:
24307 cat >"\$tmp/defines.sed" <<\\CEOF
24308 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24309 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24311 :def
24312 _ACEOF
24313 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24314 echo 'CEOF
24315 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24316 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24317 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24318 grep . conftest.tail >/dev/null || break
24319 rm -f conftest.defines
24320 mv conftest.tail conftest.defines
24321 done
24322 rm -f conftest.defines conftest.tail
24324 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24326 if test x"$ac_file" != x-; then
24327 echo "/* $configure_input */" >"$tmp/config.h"
24328 cat "$ac_result" >>"$tmp/config.h"
24329 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24331 echo "$as_me: $ac_file is unchanged" >&6;}
24332 else
24333 rm -f $ac_file
24334 mv "$tmp/config.h" $ac_file
24336 else
24337 echo "/* $configure_input */"
24338 cat "$ac_result"
24340 rm -f "$tmp/out12"
24343 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24344 echo "$as_me: executing $ac_file commands" >&6;}
24346 esac
24349 case $ac_file$ac_mode in
24350 "default":C)
24352 ### Make the necessary directories, if they don't exist.
24353 for dir in etc lisp ; do
24354 test -d ${dir} || mkdir ${dir}
24355 done
24357 # Build src/Makefile from ${srcdir}/src/Makefile.c
24358 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24359 # This must be done after src/config.h is built, since we rely on that file.
24361 # Now get this: Some word that is part of the ${srcdir} directory name
24362 # or the ${configuration} value might, just might, happen to be an
24363 # identifier like `sun4' or `i386' or something, and be predefined by
24364 # the C preprocessor to some helpful value like 1, or maybe the empty
24365 # string. Needless to say consequent macro substitutions are less
24366 # than conducive to the makefile finding the correct directory.
24367 undefs="`echo $top_srcdir $configuration $canonical |
24368 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24369 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24372 echo creating src/epaths.h
24373 ${MAKE-make} epaths-force
24375 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24376 # `..' to `. .' unless invoked with -traditional
24378 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24379 CPPFLAGS="$CPPFLAGS -traditional"
24382 echo creating lib-src/Makefile
24383 ( cd lib-src
24384 rm -f junk.c junk1.c junk2.c
24385 sed -e '/start of cpp stuff/q' \
24386 < Makefile.c > junk1.c
24387 sed -e '1,/start of cpp stuff/d'\
24388 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24389 < Makefile.c > junk.c
24390 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24391 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24392 cat junk1.c junk2.c > Makefile.new
24393 rm -f junk.c junk1.c junk2.c
24394 chmod 444 Makefile.new
24395 mv -f Makefile.new Makefile
24398 echo creating src/Makefile
24399 ( cd src
24400 rm -f junk.c junk1.c junk2.c
24401 sed -e '/start of cpp stuff/q' \
24402 < Makefile.c > junk1.c
24403 sed -e '1,/start of cpp stuff/d'\
24404 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24405 < Makefile.c > junk.c
24406 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24407 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24408 cat junk1.c junk2.c > Makefile.new
24409 rm -f junk.c junk1.c junk2.c
24410 chmod 444 Makefile.new
24411 mv -f Makefile.new Makefile
24414 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24415 echo creating src/.gdbinit
24416 echo source $srcdir/src/.gdbinit > src/.gdbinit
24419 # This is how we know whether to re-run configure in certain cases.
24420 touch src/config.stamp
24424 esac
24425 done # for ac_tag
24428 { (exit 0); exit 0; }
24429 _ACEOF
24430 chmod +x $CONFIG_STATUS
24431 ac_clean_files=$ac_clean_files_save
24434 # configure is writing to config.log, and then calls config.status.
24435 # config.status does its own redirection, appending to config.log.
24436 # Unfortunately, on DOS this fails, as config.log is still kept open
24437 # by configure, so config.status won't be able to write to it; its
24438 # output is simply discarded. So we exec the FD to /dev/null,
24439 # effectively closing config.log, so it can be properly (re)opened and
24440 # appended to by config.status. When coming back to configure, we
24441 # need to make the FD available again.
24442 if test "$no_create" != yes; then
24443 ac_cs_success=:
24444 ac_config_status_args=
24445 test "$silent" = yes &&
24446 ac_config_status_args="$ac_config_status_args --quiet"
24447 exec 5>/dev/null
24448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24449 exec 5>>config.log
24450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24451 # would make configure fail if this is the last instruction.
24452 $ac_cs_success || { (exit 1); exit 1; }