(unexec_regions_recorder, unexec_regions_merge):
[emacs.git] / configure
blob5df7d18faaa3fb8ed4c21bba30ad21cddce41f59
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
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 GTK_CFLAGS
690 GTK_LIBS
691 XFT_CFLAGS
692 XFT_LIBS
693 ALLOCA
694 liblockfile
695 LIBOBJS
696 NEED_SETGID
697 KMEM_GROUP
698 GETLOADAVG_LIBS
699 GETOPT_H
700 GETOPTOBJS
701 version
702 configuration
703 canonical
704 srcdir
705 lispdir
706 locallisppath
707 lisppath
708 x_default_search_path
709 etcdir
710 archlibdir
711 bitmapdir
712 gamedir
713 gameuser
714 c_switch_system
715 c_switch_machine
716 LD_SWITCH_X_SITE
717 LD_SWITCH_X_SITE_AUX
718 C_SWITCH_X_SITE
719 X_TOOLKIT_TYPE
720 machfile
721 opsysfile
722 carbon_appdir
723 LTLIBOBJS'
724 ac_subst_files=''
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
734 XMKMF'
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
783 ac_prev=
784 ac_dashdash=
785 for ac_option
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
794 case $ac_option in
795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *) ac_optarg=yes ;;
797 esac
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
803 ac_dashdash=yes ;;
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
822 --config-cache | -C)
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_$ac_feature=no ;;
846 -docdir | --docdir | --docdi | --doc | --do)
847 ac_prev=docdir ;;
848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 docdir=$ac_optarg ;;
851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 ac_prev=dvidir ;;
853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 dvidir=$ac_optarg ;;
856 -enable-* | --enable-*)
857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_$ac_feature=\$ac_optarg ;;
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1053 -with-* | --with-*)
1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_$ac_package=\$ac_optarg ;;
1062 -without-* | --without-*)
1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_$ac_package=no ;;
1071 --x)
1072 # Obsolete; use --with-x.
1073 with_x=yes ;;
1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1076 | --x-incl | --x-inc | --x-in | --x-i)
1077 ac_prev=x_includes ;;
1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1080 x_includes=$ac_optarg ;;
1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1084 ac_prev=x_libraries ;;
1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1087 x_libraries=$ac_optarg ;;
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\$ac_optarg
1101 export $ac_envvar ;;
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111 esac
1112 done
1114 if test -n "$ac_prev"; then
1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1120 # Be sure to have absolute directory names.
1121 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1126 eval ac_val=\$$ac_var
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1133 done
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156 test "$silent" = yes && exec 6>/dev/null
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 echo X"$0" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1187 /^X\(\/\/\)$/{
1188 s//\1/
1191 /^X\(\/\).*/{
1192 s//\1/
1195 s/.*/./; q'`
1196 srcdir=$ac_confdir
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 srcdir=..
1200 else
1201 ac_srcdir_defaulted=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1231 # Report the --help message.
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures this package to adapt to many kinds of systems.
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1244 Defaults for the options are specified in brackets.
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1268 For better control, use the options below.
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1292 cat <<\_ACEOF
1294 Program names:
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299 X features:
1300 --x-includes=DIR X include files are in DIR
1301 --x-libraries=DIR X library files are in DIR
1303 System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1311 cat <<\_ACEOF
1313 Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1316 --enable-carbon-app[=DIR] [DIR=/Application]
1317 specify install directory for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search for lisp files
1323 specific to this site
1324 --disable-largefile omit support for large files
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-gcc don't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version 5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server host
1334 --without-sound don't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1343 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1344 --without-toolkit-scroll-bars
1345 don't use Motif or Xaw3d scroll bars
1346 --without-xim don't use X11 XIM
1347 --without-carbon don't use Carbon GUI on Mac OS X
1348 --with-x use the X Window System
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1358 CPP C preprocessor
1359 XMKMF Path to xmkmf, Makefile generator for X Window System
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 _ACEOF
1365 ac_status=$?
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" || continue
1372 ac_builddir=.
1374 case "$ac_dir" in
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 esac ;;
1384 esac
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1390 case $srcdir in
1391 .) # We are building in place.
1392 ac_srcdir=.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1399 *) # Relative name.
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 esac
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1414 else
1415 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1418 done
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1423 cat <<\_ACEOF
1424 configure
1425 generated by GNU Autoconf 2.61
1427 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1428 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1434 cat >config.log <<_ACEOF
1435 This file contains any messages produced by compilers while
1436 running configure, to aid debugging if configure makes a mistake.
1438 It was created by $as_me, which was
1439 generated by GNU Autoconf 2.61. Invocation command line was
1441 $ $0 $@
1443 _ACEOF
1444 exec 5>>config.log
1446 cat <<_ASUNAME
1447 ## --------- ##
1448 ## Platform. ##
1449 ## --------- ##
1451 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1458 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1462 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1463 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1464 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1465 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1466 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468 _ASUNAME
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 echo "PATH: $as_dir"
1476 done
1477 IFS=$as_save_IFS
1479 } >&5
1481 cat >&5 <<_ACEOF
1484 ## ----------- ##
1485 ## Core tests. ##
1486 ## ----------- ##
1488 _ACEOF
1491 # Keep a trace of the command line.
1492 # Strip out --no-create and --no-recursion so they do not pile up.
1493 # Strip out --silent because we don't want to record it for future runs.
1494 # Also quote any args containing shell meta-characters.
1495 # Make two passes to allow for proper duplicate-argument suppression.
1496 ac_configure_args=
1497 ac_configure_args0=
1498 ac_configure_args1=
1499 ac_must_keep_next=false
1500 for ac_pass in 1 2
1502 for ac_arg
1504 case $ac_arg in
1505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1508 continue ;;
1509 *\'*)
1510 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1511 esac
1512 case $ac_pass in
1513 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1516 if test $ac_must_keep_next = true; then
1517 ac_must_keep_next=false # Got value, back to normal.
1518 else
1519 case $ac_arg in
1520 *=* | --config-cache | -C | -disable-* | --disable-* \
1521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1523 | -with-* | --with-* | -without-* | --without-* | --x)
1524 case "$ac_configure_args0 " in
1525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1526 esac
1528 -* ) ac_must_keep_next=true ;;
1529 esac
1531 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 esac
1534 done
1535 done
1536 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1537 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539 # When interrupted or exit'd, cleanup temporary files, and complete
1540 # config.log. We remove comments because anyway the quotes in there
1541 # would cause problems or look ugly.
1542 # WARNING: Use '\'' to represent an apostrophe within the trap.
1543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1544 trap 'exit_status=$?
1545 # Save into config.log some information that might help in debugging.
1547 echo
1549 cat <<\_ASBOX
1550 ## ---------------- ##
1551 ## Cache variables. ##
1552 ## ---------------- ##
1553 _ASBOX
1554 echo
1555 # The following way of writing the cache mishandles newlines in values,
1557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1558 eval ac_val=\$$ac_var
1559 case $ac_val in #(
1560 *${as_nl}*)
1561 case $ac_var in #(
1562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1563 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1564 esac
1565 case $ac_var in #(
1566 _ | IFS | as_nl) ;; #(
1567 *) $as_unset $ac_var ;;
1568 esac ;;
1569 esac
1570 done
1571 (set) 2>&1 |
1572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1573 *${as_nl}ac_space=\ *)
1574 sed -n \
1575 "s/'\''/'\''\\\\'\'''\''/g;
1576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1577 ;; #(
1579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 esac |
1582 sort
1584 echo
1586 cat <<\_ASBOX
1587 ## ----------------- ##
1588 ## Output variables. ##
1589 ## ----------------- ##
1590 _ASBOX
1591 echo
1592 for ac_var in $ac_subst_vars
1594 eval ac_val=\$$ac_var
1595 case $ac_val in
1596 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 esac
1598 echo "$ac_var='\''$ac_val'\''"
1599 done | sort
1600 echo
1602 if test -n "$ac_subst_files"; then
1603 cat <<\_ASBOX
1604 ## ------------------- ##
1605 ## File substitutions. ##
1606 ## ------------------- ##
1607 _ASBOX
1608 echo
1609 for ac_var in $ac_subst_files
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1620 if test -s confdefs.h; then
1621 cat <<\_ASBOX
1622 ## ----------- ##
1623 ## confdefs.h. ##
1624 ## ----------- ##
1625 _ASBOX
1626 echo
1627 cat confdefs.h
1628 echo
1630 test "$ac_signal" != 0 &&
1631 echo "$as_me: caught signal $ac_signal"
1632 echo "$as_me: exit $exit_status"
1633 } >&5
1634 rm -f core *.core core.conftest.* &&
1635 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1636 exit $exit_status
1638 for ac_signal in 1 2 13 15; do
1639 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1640 done
1641 ac_signal=0
1643 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1644 rm -f -r conftest* confdefs.h
1646 # Predefined preprocessor variables.
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_NAME "$PACKAGE_NAME"
1650 _ACEOF
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1655 _ACEOF
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1660 _ACEOF
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_STRING "$PACKAGE_STRING"
1665 _ACEOF
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1670 _ACEOF
1673 # Let the site file select an alternate cache file if it wants to.
1674 # Prefer explicitly selected file to automatically selected ones.
1675 if test -n "$CONFIG_SITE"; then
1676 set x "$CONFIG_SITE"
1677 elif test "x$prefix" != xNONE; then
1678 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1679 else
1680 set x "$ac_default_prefix/share/config.site" \
1681 "$ac_default_prefix/etc/config.site"
1683 shift
1684 for ac_site_file
1686 if test -r "$ac_site_file"; then
1687 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1688 echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1690 . "$ac_site_file"
1692 done
1694 if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special
1696 # files actually), so we avoid doing that.
1697 if test -f "$cache_file"; then
1698 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1699 echo "$as_me: loading cache $cache_file" >&6;}
1700 case $cache_file in
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1703 esac
1705 else
1706 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1707 echo "$as_me: creating cache $cache_file" >&6;}
1708 >$cache_file
1711 ac_header_list="$ac_header_list sys/time.h"
1712 ac_header_list="$ac_header_list unistd.h"
1713 ac_func_list="$ac_func_list alarm"
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1754 done
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1779 ac_ext=c
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789 test "$program_prefix" != NONE &&
1790 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1791 # Use a double $ so make ignores it.
1792 test "$program_suffix" != NONE &&
1793 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1794 # Double any \ or $. echo might interpret backslashes.
1795 # By default was `s,x,x', remove it if useless.
1796 cat <<\_ACEOF >conftest.sed
1797 s/[\\$]/&&/g;s/;s,x,x,$//
1798 _ACEOF
1799 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1800 rm -f conftest.sed
1803 lispdir='${datadir}/emacs/${version}/lisp'
1804 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1805 '${datadir}/emacs/site-lisp'
1806 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1807 etcdir='${datadir}/emacs/${version}/etc'
1808 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1809 docdir='${datadir}/emacs/${version}/etc'
1810 gamedir='${localstatedir}/games/emacs'
1812 gameuser=games
1815 # Check whether --with-gcc was given.
1816 if test "${with_gcc+set}" = set; then
1817 withval=$with_gcc;
1821 # Check whether --with-pop was given.
1822 if test "${with_pop+set}" = set; then
1823 withval=$with_pop; if test "$withval" = yes; then
1824 cat >>confdefs.h <<\_ACEOF
1825 #define MAIL_USE_POP 1
1826 _ACEOF
1828 else :
1830 else
1831 cat >>confdefs.h <<\_ACEOF
1832 #define MAIL_USE_POP 1
1833 _ACEOF
1839 # Check whether --with-kerberos was given.
1840 if test "${with_kerberos+set}" = set; then
1841 withval=$with_kerberos; if test "$withval" = yes; then
1842 cat >>confdefs.h <<\_ACEOF
1843 #define KERBEROS 1
1844 _ACEOF
1851 # Check whether --with-kerberos5 was given.
1852 if test "${with_kerberos5+set}" = set; then
1853 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1854 if test "${with_kerberos+set}" != set; then
1855 with_kerberos=yes
1856 cat >>confdefs.h <<\_ACEOF
1857 #define KERBEROS 1
1858 _ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1863 #define KERBEROS5 1
1864 _ACEOF
1870 # Check whether --with-hesiod was given.
1871 if test "${with_hesiod+set}" = set; then
1872 withval=$with_hesiod; if test "$withval" = yes; then
1874 cat >>confdefs.h <<\_ACEOF
1875 #define HESIOD 1
1876 _ACEOF
1883 # Check whether --with-sound was given.
1884 if test "${with_sound+set}" = set; then
1885 withval=$with_sound;
1890 # Check whether --with-x-toolkit was given.
1891 if test "${with_x_toolkit+set}" = set; then
1892 withval=$with_x_toolkit; case "${withval}" in
1893 y | ye | yes ) val=athena ;;
1894 n | no ) val=no ;;
1895 l | lu | luc | luci | lucid ) val=lucid ;;
1896 a | at | ath | athe | athen | athena ) val=athena ;;
1897 m | mo | mot | moti | motif ) val=motif ;;
1898 g | gt | gtk ) val=gtk ;;
1900 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1901 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1902 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1903 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1904 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1905 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1906 { (exit 1); exit 1; }; }
1908 esac
1909 with_x_toolkit=$val
1914 # Check whether --with-xpm was given.
1915 if test "${with_xpm+set}" = set; then
1916 withval=$with_xpm;
1920 # Check whether --with-jpeg was given.
1921 if test "${with_jpeg+set}" = set; then
1922 withval=$with_jpeg;
1926 # Check whether --with-tiff was given.
1927 if test "${with_tiff+set}" = set; then
1928 withval=$with_tiff;
1932 # Check whether --with-gif was given.
1933 if test "${with_gif+set}" = set; then
1934 withval=$with_gif;
1938 # Check whether --with-png was given.
1939 if test "${with_png+set}" = set; then
1940 withval=$with_png;
1944 # Check whether --with-gtk was given.
1945 if test "${with_gtk+set}" = set; then
1946 withval=$with_gtk;
1950 # Check whether --with-pkg-config-prog was given.
1951 if test "${with_pkg_config_prog+set}" = set; then
1952 withval=$with_pkg_config_prog;
1956 # Check whether --with-toolkit-scroll-bars was given.
1957 if test "${with_toolkit_scroll_bars+set}" = set; then
1958 withval=$with_toolkit_scroll_bars;
1962 # Check whether --with-xim was given.
1963 if test "${with_xim+set}" = set; then
1964 withval=$with_xim;
1968 # Check whether --with-carbon was given.
1969 if test "${with_carbon+set}" = set; then
1970 withval=$with_carbon;
1973 # Check whether --enable-carbon-app was given.
1974 if test "${enable_carbon_app+set}" = set; then
1975 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1979 # Check whether --enable-asserts was given.
1980 if test "${enable_asserts+set}" = set; then
1981 enableval=$enable_asserts; USE_XASSERTS=$enableval
1982 else
1983 USE_XASSERTS=no
1987 # Check whether --enable-maintainer-mode was given.
1988 if test "${enable_maintainer_mode+set}" = set; then
1989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1990 else
1991 USE_MAINTAINER_MODE=no
1994 if test $USE_MAINTAINER_MODE = yes; then
1995 MAINT=
1996 else
1997 MAINT=#
2001 # Check whether --enable-locallisppath was given.
2002 if test "${enable_locallisppath+set}" = set; then
2003 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2004 locallisppath=
2005 elif test "${enableval}" != "yes"; then
2006 locallisppath=${enableval}
2011 #### Make srcdir absolute, if it isn't already. It's important to
2012 #### avoid running the path through pwd unnecessarily, since pwd can
2013 #### give you automounter prefixes, which can go away. We do all this
2014 #### so Emacs can find its files when run uninstalled.
2015 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2016 unset CDPATH
2017 case "${srcdir}" in
2018 /* ) ;;
2020 ## We may be able to use the $PWD environment variable to make this
2021 ## absolute. But sometimes PWD is inaccurate.
2022 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2023 ## but that tested only for a well-formed and valid PWD,
2024 ## it did not object when PWD was well-formed and valid but just wrong.
2025 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2026 then
2027 srcdir="$PWD"
2028 else
2029 srcdir="`(cd ${srcdir}; pwd)`"
2032 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2033 esac
2035 #### Check if the source directory already has a configured system in it.
2036 if test `pwd` != `(cd ${srcdir} && pwd)` \
2037 && test -f "${srcdir}/src/config.h" ; then
2038 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&5
2044 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2045 as a build directory right now; it has been configured in its own
2046 right. To configure in another directory as well, you MUST
2047 use GNU make. If you do not have GNU make, then you must
2048 now do \`make distclean' in ${srcdir},
2049 and then run $0 again." >&2;}
2052 #### Given the configuration name, set machfile and opsysfile to the
2053 #### names of the m/*.h and s/*.h files we should use.
2055 ### Canonicalize the configuration name.
2057 ac_aux_dir=
2058 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2059 if test -f "$ac_dir/install-sh"; then
2060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 break
2063 elif test -f "$ac_dir/install.sh"; then
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 break
2067 elif test -f "$ac_dir/shtool"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2070 break
2072 done
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 ac_build_alias=$build_alias
2100 test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x &&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2115 *-*-*) ;;
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2119 esac
2120 build=$ac_cv_build
2121 ac_save_IFS=$IFS; IFS='-'
2122 set x $ac_cv_build
2123 shift
2124 build_cpu=$1
2125 build_vendor=$2
2126 shift; shift
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2129 build_os=$*
2130 IFS=$ac_save_IFS
2131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2141 else
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2151 case $ac_cv_host in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 host=$ac_cv_host
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_host
2160 shift
2161 host_cpu=$1
2162 host_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 host_os=$*
2167 IFS=$ac_save_IFS
2168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171 canonical=$host
2172 configuration=${host_alias-$host}
2176 ### If you add support for a new configuration, add code to this
2177 ### switch statement to recognize your configuration name and select
2178 ### the appropriate operating system and machine description files.
2180 ### You would hope that you could choose an m/*.h file pretty much
2181 ### based on the machine portion of the configuration name, and an s-
2182 ### file based on the operating system portion. However, it turns out
2183 ### that each m/*.h file is pretty manufacturer-specific - for
2184 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2185 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2186 ### machines. So we basically have to have a special case for each
2187 ### configuration name.
2189 ### As far as handling version numbers on operating systems is
2190 ### concerned, make sure things will fail in a fixable way. If
2191 ### /etc/MACHINES doesn't say anything about version numbers, be
2192 ### prepared to handle anything reasonably. If version numbers
2193 ### matter, be sure /etc/MACHINES says something about it.
2195 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2196 ### "System V Release 4"; he writes, "The old convention encouraged
2197 ### confusion between `system' and `release' levels'."
2199 machine='' opsys='' unported=no
2200 case "${canonical}" in
2202 ## FreeBSD ports
2203 *-*-freebsd* )
2204 opsys=freebsd
2205 case "${canonical}" in
2206 alpha*-*-freebsd*) machine=alpha ;;
2207 ia64-*-freebsd*) machine=ia64 ;;
2208 sparc64-*-freebsd*) machine=sparc ;;
2209 powerpc-*-freebsd*) machine=macppc ;;
2210 i[3456]86-*-freebsd*) machine=intel386 ;;
2211 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2212 esac
2215 ## NetBSD ports
2216 *-*-netbsd* )
2217 opsys=netbsd
2218 if test -f /usr/lib/crti.o; then
2220 cat >>confdefs.h <<\_ACEOF
2221 #define HAVE_CRTIN
2222 _ACEOF
2226 case "${canonical}" in
2227 alpha*-*-netbsd*) machine=alpha ;;
2228 i[3456]86-*-netbsd*) machine=intel386 ;;
2229 m68k-*-netbsd*)
2230 # This is somewhat bogus.
2231 machine=hp9000s300 ;;
2232 mips-*-netbsd*) machine=pmax ;;
2233 mipsel-*-netbsd*) machine=pmax ;;
2234 mipseb-*-netbsd*) machine=pmax ;;
2235 ns32k-*-netbsd*) machine=ns32000 ;;
2236 powerpc-*-netbsd*) machine=macppc ;;
2237 sparc*-*-netbsd*) machine=sparc ;;
2238 vax-*-netbsd*) machine=vax ;;
2239 arm-*-netbsd*) machine=arm ;;
2240 x86_64-*-netbsd*) machine=amdx86-64 ;;
2241 hppa-*-netbsd*) machine=hp800 ;;
2242 shle-*-netbsd*) machine=sh3el ;;
2243 esac
2246 ## OpenBSD ports
2247 *-*-openbsd* )
2248 opsys=openbsd
2249 case "${canonical}" in
2250 alpha*-*-openbsd*) machine=alpha ;;
2251 arm-*-openbsd*) machine=arm ;;
2252 hppa-*-openbsd*) machine=hp9000s300 ;;
2253 i386-*-openbsd*) machine=intel386 ;;
2254 m68k-*-openbsd*) machine=hp9000s300 ;;
2255 m88k-*-openbsd*) machine=aviion ;;
2256 mips64-*-openbsd*) machine=mips64 ;;
2257 powerpc-*-openbsd*) machine=macppc ;;
2258 sh-*-openbsd*) machine=sh3el ;;
2259 sparc*-*-openbsd*) machine=sparc ;;
2260 vax-*-openbsd*) machine=vax ;;
2261 x86_64-*-openbsd*) machine=amdx86-64 ;;
2262 esac
2265 ## LynxOS ports
2266 *-*-lynxos* )
2267 opsys=lynxos
2268 case "${canonical}" in
2269 i[3456]86-*-lynxos*) machine=intel386 ;;
2270 powerpc-*-lynxos*) machine=powerpc ;;
2271 esac
2274 ## Acorn RISCiX:
2275 arm-acorn-riscix1.1* )
2276 machine=acorn opsys=riscix1-1
2278 arm-acorn-riscix1.2* | arm-acorn-riscix )
2279 ## This name is riscix12 instead of riscix1.2
2280 ## to avoid a file name conflict on MSDOS.
2281 machine=acorn opsys=riscix12
2284 ## BSDI ports
2285 *-*-bsdi* )
2286 opsys=bsdi
2287 case "${canonical}" in
2288 i[345]86-*-bsdi*) machine=intel386 ;;
2289 sparc-*-bsdi*) machine=sparc ;;
2290 powerpc-*-bsdi*) machine=macppc ;;
2291 esac
2292 case "${canonical}" in
2293 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2294 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2295 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2296 *-*-bsdi3* ) opsys=bsdos3 ;;
2297 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2298 esac
2301 ## Alliant machines
2302 ## Strictly speaking, we need the version of the alliant operating
2303 ## system to choose the right machine file, but currently the
2304 ## configuration name doesn't tell us enough to choose the right
2305 ## one; we need to give alliants their own operating system name to
2306 ## do this right. When someone cares, they can help us.
2307 fx80-alliant-* )
2308 machine=alliant4 opsys=bsd4-2
2310 i860-alliant-* )
2311 machine=alliant-2800 opsys=bsd4-3
2314 ## Alpha (DEC) machines.
2315 alpha*-dec-osf* )
2316 machine=alpha opsys=osf1
2317 # This is needed to find X11R6.1 libraries for certain tests.
2318 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2319 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2320 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2321 # due to non-traditional preprocessing with the current compiler
2322 # defaults. OSF 4 can also have that compiler version, and there
2323 # seems always to have been a usable /usr/bin/cpp.
2324 NON_GNU_CPP=/usr/bin/cpp
2325 case "${canonical}" in
2326 alpha*-dec-osf[5-9]*)
2327 opsys=osf5-0 ;;
2328 esac
2331 alpha*-*-linux-gnu* )
2332 machine=alpha opsys=gnu-linux
2335 arm*-*-linux-gnu* )
2336 machine=arm opsys=gnu-linux
2339 ## Altos 3068
2340 m68*-altos-sysv* )
2341 machine=altos opsys=usg5-2
2344 ## Amdahl UTS
2345 580-amdahl-sysv* )
2346 machine=amdahl opsys=usg5-2-2
2349 ## Apollo, Domain/OS
2350 m68*-apollo-* )
2351 machine=apollo opsys=bsd4-3
2354 ## Apple Darwin / Mac OS X
2355 *-apple-darwin* )
2356 case "${canonical}" in
2357 i[3456]86-* ) machine=intel386 ;;
2358 powerpc-* ) machine=powermac ;;
2359 * ) unported=yes ;;
2360 esac
2361 opsys=darwin
2362 # Define CPP as follows to make autoconf work correctly.
2363 CPP="${CC-cc} -E -no-cpp-precomp"
2364 # Use fink packages if available.
2365 if test -d /sw/include && test -d /sw/lib; then
2366 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2367 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2368 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2372 ## AT&T 3b2, 3b5, 3b15, 3b20
2373 we32k-att-sysv* )
2374 machine=att3b opsys=usg5-2-2
2377 ## AT&T 3b1 - The Mighty Unix PC!
2378 m68*-att-sysv* )
2379 machine=7300 opsys=usg5-2-2
2382 ## Bull dpx20
2383 rs6000-bull-bosx* )
2384 machine=ibmrs6000 opsys=aix3-2
2387 ## Bull dpx2
2388 m68*-bull-sysv3* )
2389 machine=dpx2 opsys=usg5-3
2392 ## Bull sps7
2393 m68*-bull-sysv2* )
2394 machine=sps7 opsys=usg5-2
2397 ## CCI 5/32, 6/32 -- see "Tahoe".
2399 ## Celerity
2400 ## I don't know what configuration name to use for this; config.sub
2401 ## doesn't seem to know anything about it. Hey, Celerity users, get
2402 ## in touch with us!
2403 celerity-celerity-bsd* )
2404 machine=celerity opsys=bsd4-2
2407 ## Clipper
2408 ## What operating systems does this chip run that Emacs has been
2409 ## tested on?
2410 clipper-* )
2411 machine=clipper
2412 ## We'll use the catch-all code at the bottom to guess the
2413 ## operating system.
2416 ## Compaq Nonstop
2417 mips-compaq-nonstopux* )
2418 machine=nonstopux opsys=nonstopux
2421 ## Convex
2422 *-convex-bsd* | *-convex-convexos* )
2423 machine=convex opsys=bsd4-3
2424 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2425 NON_GNU_CPP="cc -E -P"
2428 ## Cubix QBx/386
2429 i[3456]86-cubix-sysv* )
2430 machine=intel386 opsys=usg5-3
2433 ## Cydra 5
2434 cydra*-cydrome-sysv* )
2435 machine=cydra5 opsys=usg5-3
2438 ## Data General AViiON Machines
2439 ## DG changed naming conventions with the release of 5.4.4.10, they
2440 ## dropped the initial 5.4 but left the intervening R. Because of the
2441 ## R this shouldn't conflict with older versions of the OS (which I
2442 ## think were named like dgux4.*). In addition, DG new AViiONs series
2443 ## uses either Motorola M88k or Intel Pentium CPUs.
2444 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2445 machine=aviion opsys=dgux4
2447 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2448 ## This name is dgux5-4-3 instead of dgux5-4r3
2449 ## to avoid a file name conflict on MSDOS.
2450 machine=aviion opsys=dgux5-4-3
2452 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2453 machine=aviion opsys=dgux5-4r2
2455 m88k-dg-dgux* )
2456 machine=aviion opsys=dgux
2459 ## Data General AViiON Intel (x86) Machines
2460 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2461 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2462 i[345]86-dg-dguxR4* )
2463 machine=aviion-intel opsys=dgux4
2466 ## DECstations
2467 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2468 machine=pmax opsys=bsd4-2
2470 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2471 machine=pmax opsys=bsd4-3
2473 mips-dec-ultrix* )
2474 machine=pmax opsys=ultrix4-3
2476 mips-dec-osf* )
2477 machine=pmax opsys=osf1
2479 mips-dec-mach_bsd4.3* )
2480 machine=pmax opsys=mach-bsd4-3
2483 ## Motorola Delta machines
2484 m68k-motorola-sysv* | m68000-motorola-sysv* )
2485 machine=delta opsys=usg5-3
2486 if test -z "`type gnucc | grep 'not found'`"
2487 then
2488 if test -s /etc/167config
2489 then CC="gnucc -m68040"
2490 else CC="gnucc -m68881"
2492 else
2493 if test -z "`type gcc | grep 'not found'`"
2494 then CC=gcc
2495 else CC=cc
2499 m88k-motorola-sysv4* )
2500 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2501 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2502 # I hope there are not other 4.0 versions for this machine
2503 # which really need usg5-4 instead.
2504 machine=delta88k opsys=usg5-4-2
2506 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2507 machine=delta88k opsys=usg5-3
2510 ## Dual machines
2511 m68*-dual-sysv* )
2512 machine=dual opsys=usg5-2
2514 m68*-dual-uniplus* )
2515 machine=dual opsys=unipl5-2
2518 ## Elxsi 6400
2519 elxsi-elxsi-sysv* )
2520 machine=elxsi opsys=usg5-2
2523 ## Encore machines
2524 ns16k-encore-bsd* )
2525 machine=ns16000 opsys=umax
2528 ## The GEC 63 - apparently, this port isn't really finished yet.
2529 # I'm sure we finished off the last of the machines, though. -- fx
2531 ## Gould Power Node and NP1
2532 pn-gould-bsd4.2* )
2533 machine=gould opsys=bsd4-2
2535 pn-gould-bsd4.3* )
2536 machine=gould opsys=bsd4-3
2538 np1-gould-bsd* )
2539 machine=gould-np1 opsys=bsd4-3
2542 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2543 ## as far as Emacs is concerned).
2544 m88k-harris-cxux* )
2545 # Build needs to be different on 7.0 and later releases
2546 case "`uname -r`" in
2547 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2548 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2549 esac
2550 NON_GNU_CPP="/lib/cpp"
2552 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2553 m68k-harris-cxux* )
2554 machine=nh3000 opsys=cxux
2556 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2557 powerpc-harris-powerunix )
2558 machine=nh6000 opsys=powerunix
2559 NON_GNU_CPP="cc -Xo -E -P"
2561 ## SR2001/SR2201 running HI-UX/MPP
2562 hppa1.1-hitachi-hiuxmpp* )
2563 machine=sr2k opsys=hiuxmpp
2565 hppa1.1-hitachi-hiuxwe2* )
2566 machine=sr2k opsys=hiuxwe2
2568 ## Honeywell XPS100
2569 xps*-honeywell-sysv* )
2570 machine=xps100 opsys=usg5-2
2573 ## HP 9000 series 200 or 300
2574 m68*-hp-bsd* )
2575 machine=hp9000s300 opsys=bsd4-3
2577 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2578 m68*-hp-hpux* )
2579 case "`uname -r`" in
2580 ## Someone's system reports A.B8.05 for this.
2581 ## I wonder what other possibilities there are.
2582 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2583 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2584 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2585 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2586 *) machine=hp9000s300 opsys=hpux ;;
2587 esac
2590 ## HP 9000 series 700 and 800, running HP/UX
2591 hppa*-hp-hpux7* )
2592 machine=hp800 opsys=hpux
2594 hppa*-hp-hpux8* )
2595 machine=hp800 opsys=hpux8
2597 hppa*-hp-hpux9shr* )
2598 machine=hp800 opsys=hpux9shr
2600 hppa*-hp-hpux9* )
2601 machine=hp800 opsys=hpux9
2603 hppa*-hp-hpux10.2* )
2604 machine=hp800 opsys=hpux10-20
2606 hppa*-hp-hpux10* )
2607 machine=hp800 opsys=hpux10
2609 hppa*-hp-hpux1[1-9]* )
2610 machine=hp800 opsys=hpux11
2611 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2614 hppa*-*-linux-gnu* )
2615 machine=hp800 opsys=gnu-linux
2618 ## HP 9000 series 700 and 800, running HP/UX
2619 hppa*-hp-hpux* )
2620 ## Cross-compilation? Nah!
2621 case "`uname -r`" in
2622 ## Someone's system reports A.B8.05 for this.
2623 ## I wonder what other possibilities there are.
2624 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2625 *.08.* ) machine=hp800 opsys=hpux8 ;;
2626 *.09.* ) machine=hp800 opsys=hpux9 ;;
2627 *) machine=hp800 opsys=hpux10 ;;
2628 esac
2630 hppa*-*-nextstep* )
2631 machine=hp800 opsys=nextstep
2634 ## Orion machines
2635 orion-orion-bsd* )
2636 machine=orion opsys=bsd4-2
2638 clipper-orion-bsd* )
2639 machine=orion105 opsys=bsd4-2
2642 ## IBM machines
2643 i[3456]86-ibm-aix1.1* )
2644 machine=ibmps2-aix opsys=usg5-2-2
2646 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2647 machine=ibmps2-aix opsys=usg5-3
2649 i370-ibm-aix*)
2650 machine=ibm370aix opsys=usg5-3
2652 s390-*-linux-gnu* )
2653 machine=ibms390 opsys=gnu-linux
2655 s390x-*-linux-gnu* )
2656 machine=ibms390x opsys=gnu-linux
2658 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2659 machine=ibmrs6000 opsys=aix3-1
2661 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2662 machine=ibmrs6000 opsys=aix3-2-5
2664 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2665 machine=ibmrs6000 opsys=aix4-1
2667 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2668 machine=ibmrs6000 opsys=aix4-2
2670 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2671 machine=ibmrs6000 opsys=aix4-2
2673 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2674 machine=ibmrs6000 opsys=aix4-2
2676 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2677 machine=ibmrs6000 opsys=aix4
2679 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2680 machine=ibmrs6000 opsys=aix4-1
2682 rs6000-ibm-aix* | powerpc-ibm-aix* )
2683 machine=ibmrs6000 opsys=aix3-2
2685 romp-ibm-bsd4.3* )
2686 machine=ibmrt opsys=bsd4-3
2688 romp-ibm-bsd4.2* )
2689 machine=ibmrt opsys=bsd4-2
2691 romp-ibm-aos4.3* )
2692 machine=ibmrt opsys=bsd4-3
2694 romp-ibm-aos4.2* )
2695 machine=ibmrt opsys=bsd4-2
2697 romp-ibm-aos* )
2698 machine=ibmrt opsys=bsd4-3
2700 romp-ibm-bsd* )
2701 machine=ibmrt opsys=bsd4-3
2703 romp-ibm-aix* )
2704 machine=ibmrt-aix opsys=usg5-2-2
2707 ## Integrated Solutions `Optimum V'
2708 m68*-isi-bsd4.2* )
2709 machine=isi-ov opsys=bsd4-2
2711 m68*-isi-bsd4.3* )
2712 machine=isi-ov opsys=bsd4-3
2715 ## Intel 386 machines where we do care about the manufacturer
2716 i[3456]86-intsys-sysv* )
2717 machine=is386 opsys=usg5-2-2
2720 ## Prime EXL
2721 i[3456]86-prime-sysv* )
2722 machine=i386 opsys=usg5-3
2725 ## Sequent Symmetry running Dynix
2726 i[3456]86-sequent-bsd* )
2727 machine=symmetry opsys=bsd4-3
2730 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2731 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2732 machine=sequent-ptx opsys=ptx4
2733 NON_GNU_CPP=/lib/cpp
2736 ## Sequent Symmetry running DYNIX/ptx
2737 ## Use the old cpp rather than the newer ANSI one.
2738 i[3456]86-sequent-ptx* )
2739 machine=sequent-ptx opsys=ptx
2740 NON_GNU_CPP="/lib/cpp"
2743 ## ncr machine running svr4.3.
2744 i[3456]86-ncr-sysv4.3 )
2745 machine=ncr386 opsys=usg5-4-3
2748 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2749 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2750 i[3456]86-ncr-sysv* )
2751 machine=ncr386 opsys=usg5-4-2
2754 ## Intel Paragon OSF/1
2755 i860-intel-osf1* )
2756 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2759 ## Intel 860
2760 i860-*-sysv4* )
2761 machine=i860 opsys=usg5-4
2762 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2763 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2766 ## Macintosh PowerPC
2767 powerpc*-*-linux-gnu* )
2768 machine=macppc opsys=gnu-linux
2771 ## Masscomp machines
2772 m68*-masscomp-rtu* )
2773 machine=masscomp opsys=rtu
2776 ## Megatest machines
2777 m68*-megatest-bsd* )
2778 machine=mega68 opsys=bsd4-2
2781 ## Workstations sold by MIPS
2782 ## This is not necessarily all workstations using the MIPS processor -
2783 ## Irises are produced by SGI, and DECstations by DEC.
2785 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2786 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2787 ## it gives for choosing between the alternatives seems to be "Use
2788 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2789 ## the BSD world." I'll assume that these are instructions for
2790 ## handling two odd situations, and that every other situation
2791 ## should use mips.h and usg5-2-2, they being listed first.
2792 mips-mips-usg* )
2793 machine=mips4
2794 ## Fall through to the general code at the bottom to decide on the OS.
2796 mips-mips-riscos4* )
2797 machine=mips4 opsys=bsd4-3
2798 NON_GNU_CC="cc -systype bsd43"
2799 NON_GNU_CPP="cc -systype bsd43 -E"
2801 mips-mips-riscos5* )
2802 machine=mips4 opsys=riscos5
2803 NON_GNU_CC="cc -systype bsd43"
2804 NON_GNU_CPP="cc -systype bsd43 -E"
2806 mips-mips-bsd* )
2807 machine=mips opsys=bsd4-3
2809 mips-mips-* )
2810 machine=mips opsys=usg5-2-2
2813 ## NeXT
2814 m68*-next-* | m68k-*-nextstep* )
2815 machine=m68k opsys=nextstep
2818 ## The complete machine from National Semiconductor
2819 ns32k-ns-genix* )
2820 machine=ns32000 opsys=usg5-2
2823 ## NCR machines
2824 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2825 machine=tower32 opsys=usg5-2-2
2827 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2828 machine=tower32v3 opsys=usg5-3
2831 ## NEC EWS4800
2832 mips-nec-sysv4*)
2833 machine=ews4800 opsys=ux4800
2836 ## Nixdorf Targon 31
2837 m68*-nixdorf-sysv* )
2838 machine=targon31 opsys=usg5-2-2
2841 ## Nu (TI or LMI)
2842 m68*-nu-sysv* )
2843 machine=nu opsys=usg5-2
2846 ## Plexus
2847 m68*-plexus-sysv* )
2848 machine=plexus opsys=usg5-2
2851 ## Pyramid machines
2852 ## I don't really have any idea what sort of processor the Pyramid has,
2853 ## so I'm assuming it is its own architecture.
2854 pyramid-pyramid-bsd* )
2855 machine=pyramid opsys=bsd4-2
2858 ## Sequent Balance
2859 ns32k-sequent-bsd4.2* )
2860 machine=sequent opsys=bsd4-2
2862 ns32k-sequent-bsd4.3* )
2863 machine=sequent opsys=bsd4-3
2866 ## Siemens Nixdorf
2867 mips-siemens-sysv* | mips-sni-sysv*)
2868 machine=mips-siemens opsys=usg5-4
2869 NON_GNU_CC=/usr/ccs/bin/cc
2870 NON_GNU_CPP=/usr/ccs/lib/cpp
2873 ## Silicon Graphics machines
2874 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2875 m68*-sgi-iris3.5* )
2876 machine=irist opsys=iris3-5
2878 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2879 machine=irist opsys=iris3-6
2881 ## Iris 4D
2882 mips-sgi-irix3* )
2883 machine=iris4d opsys=irix3-3
2885 mips-sgi-irix4* )
2886 machine=iris4d opsys=irix4-0
2888 mips-sgi-irix6.5 )
2889 machine=iris4d opsys=irix6-5
2890 # Without defining _LANGUAGE_C, things get masked out in the headers
2891 # so that, for instance, grepping for `free' in stdlib.h fails and
2892 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2893 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2894 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2896 mips-sgi-irix6* )
2897 machine=iris4d opsys=irix6-0
2898 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2899 # but presumably it does no harm.
2900 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2901 # -32 probably isn't necessary in later v.6s -- anyone know which?
2902 NON_GCC_TEST_OPTIONS=-32
2904 mips-sgi-irix5.[01]* )
2905 machine=iris4d opsys=irix5-0
2907 mips-sgi-irix5* | mips-sgi-irix* )
2908 machine=iris4d opsys=irix5-2
2911 ## SONY machines
2912 m68*-sony-bsd4.2* )
2913 machine=news opsys=bsd4-2
2915 m68*-sony-bsd4.3* )
2916 machine=news opsys=bsd4-3
2918 m68*-sony-newsos3* | m68*-sony-news3*)
2919 machine=news opsys=bsd4-3
2921 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2922 machine=news-risc opsys=bsd4-3
2924 mips-sony-newsos6* )
2925 machine=news-r6 opsys=newsos6
2927 mips-sony-news* )
2928 machine=news-risc opsys=newsos5
2931 ## Stride
2932 m68*-stride-sysv* )
2933 machine=stride opsys=usg5-2
2936 ## Suns
2937 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2938 machine=sparc opsys=gnu-linux
2941 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2942 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2943 | rs6000-*-solaris2*)
2944 case "${canonical}" in
2945 m68*-sunos1* ) machine=sun1 ;;
2946 m68*-sunos2* ) machine=sun2 ;;
2947 m68* ) machine=sun3 ;;
2948 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2949 i[3456]86-*-* ) machine=intel386 ;;
2950 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2951 powerpcle* ) machine=powerpcle ;;
2952 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2953 sparc* ) machine=sparc ;;
2954 * ) unported=yes ;;
2955 esac
2956 case "${canonical}" in
2957 ## The Sun386 didn't get past 4.0.
2958 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2959 *-sunos4.0* ) opsys=sunos4-0 ;;
2960 *-sunos4.1.[3-9]*noshare )
2961 ## This name is sunos413 instead of sunos4-1-3
2962 ## to avoid a file name conflict on MSDOS.
2963 opsys=sunos413
2964 NON_GNU_CPP=/usr/lib/cpp
2965 NON_GCC_TEST_OPTIONS=-Bstatic
2966 GCC_TEST_OPTIONS=-static
2968 *-sunos4.1.[3-9]* | *-sunos4shr*)
2969 opsys=sunos4shr
2970 NON_GNU_CPP=/usr/lib/cpp
2972 *-sunos4* | *-sunos )
2973 opsys=sunos4-1
2974 NON_GCC_TEST_OPTIONS=-Bstatic
2975 GCC_TEST_OPTIONS=-static
2977 *-sunos5.3* | *-solaris2.3* )
2978 opsys=sol2-3
2979 NON_GNU_CPP=/usr/ccs/lib/cpp
2981 *-sunos5.4* | *-solaris2.4* )
2982 opsys=sol2-4
2983 NON_GNU_CPP=/usr/ccs/lib/cpp
2984 RANLIB="ar -ts"
2986 *-sunos5.5* | *-solaris2.5* )
2987 opsys=sol2-5
2988 NON_GNU_CPP=/usr/ccs/lib/cpp
2989 RANLIB="ar -ts"
2991 *-sunos5.6* | *-solaris2.6* )
2992 opsys=sol2-6
2993 NON_GNU_CPP=/usr/ccs/lib/cpp
2994 RANLIB="ar -ts"
2996 *-sunos5* | *-solaris* )
2997 opsys=sol2-6
2998 ## FIXME: make this into a proper fix that checks the compiler type,
2999 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3000 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3001 ## -Xs prevents spurious whitespace.
3002 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3003 else
3004 NON_GNU_CPP=/usr/ccs/lib/cpp
3007 * ) opsys=bsd4-2 ;;
3008 esac
3009 ## Watch out for a compiler that we know will not work.
3010 case "${canonical}" in
3011 *-solaris* | *-sunos5* )
3012 if [ "x$CC" = x/usr/ucb/cc ]; then
3013 ## /usr/ucb/cc doesn't work;
3014 ## we should find some other compiler that does work.
3015 unset CC
3018 *) ;;
3019 esac
3021 sparc-*-nextstep* )
3022 machine=sparc opsys=nextstep
3025 ## Tadpole 68k
3026 m68*-tadpole-sysv* )
3027 machine=tad68k opsys=usg5-3
3030 ## Tahoe machines
3031 tahoe-tahoe-bsd4.2* )
3032 machine=tahoe opsys=bsd4-2
3034 tahoe-tahoe-bsd4.3* )
3035 machine=tahoe opsys=bsd4-3
3038 ## Tandem Integrity S2
3039 mips-tandem-sysv* )
3040 machine=tandem-s2 opsys=usg5-3
3043 ## Tektronix XD88
3044 m88k-tektronix-sysv3* )
3045 machine=tekxd88 opsys=usg5-3
3048 ## Tektronix 16000 box (6130?)
3049 ns16k-tektronix-bsd* )
3050 machine=ns16000 opsys=bsd4-2
3052 ## Tektronix 4300
3053 ## src/m/tek4300.h hints that this is a m68k machine.
3054 m68*-tektronix-bsd* )
3055 machine=tek4300 opsys=bsd4-3
3058 ## Titan P2 or P3
3059 ## We seem to have lost the machine-description file titan.h!
3060 titan-titan-sysv* )
3061 machine=titan opsys=usg5-3
3064 ## Ustation E30 (SS5E)
3065 m68*-unisys-uniplus* )
3066 machine=ustation opsystem=unipl5-2
3069 ## Vaxen.
3070 vax-dec-* )
3071 machine=vax
3072 case "${canonical}" in
3073 *-bsd4.1* ) opsys=bsd4-1 ;;
3074 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3075 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3076 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3077 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3078 *-vms* ) opsys=vms ;;
3079 * ) unported=yes
3080 esac
3083 ## Whitechapel MG1
3084 ns16k-whitechapel-* )
3085 machine=mg1
3086 ## We don't know what sort of OS runs on these; we'll let the
3087 ## operating system guessing code below try.
3090 ## Wicat
3091 m68*-wicat-sysv* )
3092 machine=wicat opsys=usg5-2
3095 ## IA-64
3096 ia64*-*-linux* )
3097 machine=ia64 opsys=gnu-linux
3100 ## Intel 386 machines where we don't care about the manufacturer
3101 i[3456]86-*-* )
3102 machine=intel386
3103 case "${canonical}" in
3104 *-cygwin ) opsys=cygwin ;;
3105 *-darwin* ) opsys=darwin
3106 CPP="${CC-cc} -E -no-cpp-precomp"
3108 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3109 *-isc2.2* ) opsys=isc2-2 ;;
3110 *-isc4.0* ) opsys=isc4-0 ;;
3111 *-isc4.* ) opsys=isc4-1
3112 GCC_TEST_OPTIONS=-posix
3113 NON_GCC_TEST_OPTIONS=-Xp
3115 *-isc* ) opsys=isc3-0 ;;
3116 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3117 *-esix* ) opsys=esix ;;
3118 *-xenix* ) opsys=xenix ;;
3119 *-linux-gnu* ) opsys=gnu-linux ;;
3120 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3121 *-sco3.2v5* ) opsys=sco5
3122 NON_GNU_CPP=/lib/cpp
3123 # Prevent -belf from being passed to $CPP.
3124 # /lib/cpp does not accept it.
3125 OVERRIDE_CPPFLAGS=" "
3127 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3128 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3129 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3130 *-386bsd* ) opsys=386bsd ;;
3131 *-nextstep* ) opsys=nextstep ;;
3132 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3133 esac
3136 ## m68k Linux-based GNU system
3137 m68k-*-linux-gnu* )
3138 machine=m68k opsys=gnu-linux
3141 ## Mips Linux-based GNU system
3142 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3143 machine=mips opsys=gnu-linux
3146 ## UXP/DS
3147 sparc-fujitsu-sysv4* )
3148 machine=sparc opsys=uxpds
3149 NON_GNU_CPP=/usr/ccs/lib/cpp
3150 RANLIB="ar -ts"
3153 ## UXP/V
3154 f301-fujitsu-uxpv4.1)
3155 machine=f301 opsys=uxpv
3158 ## AMD x86-64 Linux-based GNU system
3159 x86_64-*-linux-gnu* )
3160 machine=amdx86-64 opsys=gnu-linux
3163 ## Tensilica Xtensa Linux-based GNU system
3164 xtensa-*-linux-gnu* )
3165 machine=xtensa opsys=gnu-linux
3169 unported=yes
3171 esac
3173 ### If the code above didn't choose an operating system, just choose
3174 ### an operating system based on the configuration name. You really
3175 ### only want to use this when you have no idea what the right
3176 ### operating system is; if you know what operating systems a machine
3177 ### runs, it's cleaner to make it explicit in the case statement
3178 ### above.
3179 if test x"${opsys}" = x; then
3180 case "${canonical}" in
3181 *-gnu* ) opsys=gnu ;;
3182 *-bsd4.[01] ) opsys=bsd4-1 ;;
3183 *-bsd4.2 ) opsys=bsd4-2 ;;
3184 *-bsd4.3 ) opsys=bsd4-3 ;;
3185 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3186 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3187 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3188 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3189 *-sysv4.2uw* ) opsys=unixware ;;
3190 *-sysv5uw* ) opsys=unixware ;;
3191 *-sysv5OpenUNIX* ) opsys=unixware ;;
3192 *-sysv4.1* | *-sysvr4.1* )
3193 NON_GNU_CPP=/usr/lib/cpp
3194 opsys=usg5-4 ;;
3195 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3196 if [ x$NON_GNU_CPP = x ]; then
3197 if [ -f /usr/ccs/lib/cpp ]; then
3198 NON_GNU_CPP=/usr/ccs/lib/cpp
3199 else
3200 NON_GNU_CPP=/lib/cpp
3203 opsys=usg5-4-2 ;;
3204 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3206 unported=yes
3208 esac
3213 if test $unported = yes; then
3214 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3215 Check \`etc/MACHINES' for recognized configuration names." >&5
3216 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3217 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3218 { (exit 1); exit 1; }; }
3221 machfile="m/${machine}.h"
3222 opsysfile="s/${opsys}.h"
3225 #### Choose a compiler.
3226 test -n "$CC" && cc_specified=yes
3228 # Save the value of CFLAGS that the user specified.
3229 SPECIFIED_CFLAGS="$CFLAGS"
3231 case ${with_gcc} in
3232 "yes" ) CC="gcc" GCC=yes ;;
3233 "no" ) : ${CC=cc} ;;
3235 esac
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3263 done
3264 done
3265 IFS=$as_save_IFS
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { echo "$as_me:$LINENO: result: $CC" >&5
3272 echo "${ECHO_T}$CC" >&6; }
3273 else
3274 { echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6; }
3280 if test -z "$ac_cv_prog_CC"; then
3281 ac_ct_CC=$CC
3282 # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_ac_ct_CC="gcc"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3303 done
3304 done
3305 IFS=$as_save_IFS
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3312 echo "${ECHO_T}$ac_ct_CC" >&6; }
3313 else
3314 { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3318 if test "x$ac_ct_CC" = x; then
3319 CC=""
3320 else
3321 case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3324 whose name does not start with the host triplet. If you think this
3325 configuration is useful to you, please write to autoconf@gnu.org." >&5
3326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3327 whose name does not start with the host triplet. If you think this
3328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3329 ac_tool_warned=yes ;;
3330 esac
3331 CC=$ac_ct_CC
3333 else
3334 CC="$ac_cv_prog_CC"
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}cc; ac_word=$2
3341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3343 if test "${ac_cv_prog_CC+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_CC="${ac_tool_prefix}cc"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3360 done
3361 done
3362 IFS=$as_save_IFS
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368 { echo "$as_me:$LINENO: result: $CC" >&5
3369 echo "${ECHO_T}$CC" >&6; }
3370 else
3371 { echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6; }
3378 if test -z "$CC"; then
3379 # Extract the first word of "cc", so it can be a program name with args.
3380 set dummy cc; ac_word=$2
3381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_CC+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC="$CC" # Let the user override the test.
3388 else
3389 ac_prog_rejected=no
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3398 ac_prog_rejected=yes
3399 continue
3401 ac_cv_prog_CC="cc"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3405 done
3406 done
3407 IFS=$as_save_IFS
3409 if test $ac_prog_rejected = yes; then
3410 # We found a bogon in the path, so make sure we never use it.
3411 set dummy $ac_cv_prog_CC
3412 shift
3413 if test $# != 0; then
3414 # We chose a different compiler from the bogus one.
3415 # However, it has the same basename, so the bogon will be chosen
3416 # first if we set CC to just the basename; use the full file name.
3417 shift
3418 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425 { echo "$as_me:$LINENO: result: $CC" >&5
3426 echo "${ECHO_T}$CC" >&6; }
3427 else
3428 { echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6; }
3434 if test -z "$CC"; then
3435 if test -n "$ac_tool_prefix"; then
3436 for ac_prog in cl.exe
3438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3459 done
3460 done
3461 IFS=$as_save_IFS
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467 { echo "$as_me:$LINENO: result: $CC" >&5
3468 echo "${ECHO_T}$CC" >&6; }
3469 else
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3475 test -n "$CC" && break
3476 done
3478 if test -z "$CC"; then
3479 ac_ct_CC=$CC
3480 for ac_prog in cl.exe
3482 # Extract the first word of "$ac_prog", so it can be a program name with args.
3483 set dummy $ac_prog; ac_word=$2
3484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489 if test -n "$ac_ct_CC"; then
3490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499 ac_cv_prog_ac_ct_CC="$ac_prog"
3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3505 IFS=$as_save_IFS
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3512 echo "${ECHO_T}$ac_ct_CC" >&6; }
3513 else
3514 { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3519 test -n "$ac_ct_CC" && break
3520 done
3522 if test "x$ac_ct_CC" = x; then
3523 CC=""
3524 else
3525 case $cross_compiling:$ac_tool_warned in
3526 yes:)
3527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3528 whose name does not start with the host triplet. If you think this
3529 configuration is useful to you, please write to autoconf@gnu.org." >&5
3530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3531 whose name does not start with the host triplet. If you think this
3532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535 CC=$ac_ct_CC
3542 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3543 See \`config.log' for more details." >&5
3544 echo "$as_me: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&2;}
3546 { (exit 1); exit 1; }; }
3548 # Provide some information about the compiler.
3549 echo "$as_me:$LINENO: checking for C compiler version" >&5
3550 ac_compiler=`set X $ac_compile; echo $2`
3551 { (ac_try="$ac_compiler --version >&5"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compiler --version >&5") 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }
3561 { (ac_try="$ac_compiler -v >&5"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_compiler -v >&5") 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }
3571 { (ac_try="$ac_compiler -V >&5"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_compiler -V >&5") 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3590 main ()
3594 return 0;
3596 _ACEOF
3597 ac_clean_files_save=$ac_clean_files
3598 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3599 # Try to create an executable without -o first, disregard a.out.
3600 # It will help us diagnose broken compilers, and finding out an intuition
3601 # of exeext.
3602 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3603 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3604 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3606 # List of possible output files, starting from the most likely.
3607 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3608 # only as a last resort. b.out is created by i960 compilers.
3609 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3611 # The IRIX 6 linker writes into existing files which may not be
3612 # executable, retaining their permissions. Remove them first so a
3613 # subsequent execution test works.
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620 esac
3621 done
3622 rm -f $ac_rmfiles
3624 if { (ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_link_default") 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; then
3634 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3635 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3636 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3637 # so that the user can short-circuit this test for compilers unknown to
3638 # Autoconf.
3639 for ac_file in $ac_files ''
3641 test -f "$ac_file" || continue
3642 case $ac_file in
3643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3645 [ab].out )
3646 # We found the default executable, but exeext='' is most
3647 # certainly right.
3648 break;;
3649 *.* )
3650 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3651 then :; else
3652 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654 # We set ac_cv_exeext here because the later test for it is not
3655 # safe: cross compilers may not add the suffix if given an `-o'
3656 # argument, so we may need to know it at that point already.
3657 # Even if this section looks crufty: it has the advantage of
3658 # actually working.
3659 break;;
3661 break;;
3662 esac
3663 done
3664 test "$ac_cv_exeext" = no && ac_cv_exeext=
3666 else
3667 ac_file=''
3670 { echo "$as_me:$LINENO: result: $ac_file" >&5
3671 echo "${ECHO_T}$ac_file" >&6; }
3672 if test -z "$ac_file"; then
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&2;}
3680 { (exit 77); exit 77; }; }
3683 ac_exeext=$ac_cv_exeext
3685 # Check that the compiler produces executables we can run. If not, either
3686 # the compiler is broken, or we cross compile.
3687 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3688 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3689 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3690 # If not cross compiling, check that we can run a simple program.
3691 if test "$cross_compiling" != yes; then
3692 if { ac_try='./$ac_file'
3693 { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 cross_compiling=no
3703 else
3704 if test "$cross_compiling" = maybe; then
3705 cross_compiling=yes
3706 else
3707 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3708 If you meant to cross compile, use \`--host'.
3709 See \`config.log' for more details." >&5
3710 echo "$as_me: error: cannot run C compiled programs.
3711 If you meant to cross compile, use \`--host'.
3712 See \`config.log' for more details." >&2;}
3713 { (exit 1); exit 1; }; }
3717 { echo "$as_me:$LINENO: result: yes" >&5
3718 echo "${ECHO_T}yes" >&6; }
3720 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 # Check that the compiler produces executables we can run. If not, either
3723 # the compiler is broken, or we cross compile.
3724 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3725 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3726 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3727 echo "${ECHO_T}$cross_compiling" >&6; }
3729 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3730 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3731 if { (ac_try="$ac_link"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3737 (eval "$ac_link") 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; then
3741 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3742 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3743 # work properly (i.e., refer to `conftest.exe'), while it won't with
3744 # `rm'.
3745 for ac_file in conftest.exe conftest conftest.*; do
3746 test -f "$ac_file" || continue
3747 case $ac_file in
3748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3750 break;;
3751 * ) break;;
3752 esac
3753 done
3754 else
3755 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details." >&5
3757 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&2;}
3759 { (exit 1); exit 1; }; }
3762 rm -f conftest$ac_cv_exeext
3763 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3764 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3766 rm -f conftest.$ac_ext
3767 EXEEXT=$ac_cv_exeext
3768 ac_exeext=$EXEEXT
3769 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3770 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3771 if test "${ac_cv_objext+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 rm -f conftest.o conftest.obj
3790 if { (ac_try="$ac_compile"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; then
3800 for ac_file in conftest.o conftest.obj conftest.*; do
3801 test -f "$ac_file" || continue;
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3805 break;;
3806 esac
3807 done
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3813 See \`config.log' for more details." >&5
3814 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details." >&2;}
3816 { (exit 1); exit 1; }; }
3819 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3821 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3822 echo "${ECHO_T}$ac_cv_objext" >&6; }
3823 OBJEXT=$ac_cv_objext
3824 ac_objext=$OBJEXT
3825 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3826 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3827 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3838 main ()
3840 #ifndef __GNUC__
3841 choke me
3842 #endif
3845 return 0;
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compile") 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } && {
3862 test -z "$ac_c_werror_flag" ||
3863 test ! -s conftest.err
3864 } && test -s conftest.$ac_objext; then
3865 ac_compiler_gnu=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_compiler_gnu=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3877 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3878 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3879 GCC=`test $ac_compiler_gnu = yes && echo yes`
3880 ac_test_CFLAGS=${CFLAGS+set}
3881 ac_save_CFLAGS=$CFLAGS
3882 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3883 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3884 if test "${ac_cv_prog_cc_g+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 ac_save_c_werror_flag=$ac_c_werror_flag
3888 ac_c_werror_flag=yes
3889 ac_cv_prog_cc_g=no
3890 CFLAGS="-g"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3899 main ()
3903 return 0;
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_prog_cc_g=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 CFLAGS=""
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 main ()
3941 return 0;
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest.$ac_objext; then
3962 else
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 ac_c_werror_flag=$ac_save_c_werror_flag
3967 CFLAGS="-g"
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3976 main ()
3980 return 0;
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3985 case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_compile") 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } && {
3997 test -z "$ac_c_werror_flag" ||
3998 test ! -s conftest.err
3999 } && test -s conftest.$ac_objext; then
4000 ac_cv_prog_cc_g=yes
4001 else
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_c_werror_flag=$ac_save_c_werror_flag
4017 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4019 if test "$ac_test_CFLAGS" = set; then
4020 CFLAGS=$ac_save_CFLAGS
4021 elif test $ac_cv_prog_cc_g = yes; then
4022 if test "$GCC" = yes; then
4023 CFLAGS="-g -O2"
4024 else
4025 CFLAGS="-g"
4027 else
4028 if test "$GCC" = yes; then
4029 CFLAGS="-O2"
4030 else
4031 CFLAGS=
4034 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4035 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4036 if test "${ac_cv_prog_cc_c89+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 ac_cv_prog_cc_c89=no
4040 ac_save_CC=$CC
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <stdarg.h>
4048 #include <stdio.h>
4049 #include <sys/types.h>
4050 #include <sys/stat.h>
4051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4052 struct buf { int x; };
4053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4054 static char *e (p, i)
4055 char **p;
4056 int i;
4058 return p[i];
4060 static char *f (char * (*g) (char **, int), char **p, ...)
4062 char *s;
4063 va_list v;
4064 va_start (v,p);
4065 s = g (p, va_arg (v,int));
4066 va_end (v);
4067 return s;
4070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4071 function prototypes and stuff, but not '\xHH' hex character constants.
4072 These don't provoke an error unfortunately, instead are silently treated
4073 as 'x'. The following induces an error, until -std is added to get
4074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4075 array size at least. It's necessary to write '\x00'==0 to get something
4076 that's true only with -std. */
4077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4080 inside strings and character constants. */
4081 #define FOO(x) 'x'
4082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084 int test (int i, double x);
4085 struct s1 {int (*f) (int a);};
4086 struct s2 {int (*f) (double a);};
4087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 int argc;
4089 char **argv;
4091 main ()
4093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4095 return 0;
4097 _ACEOF
4098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4101 CC="$ac_save_CC $ac_arg"
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4119 ac_cv_prog_cc_c89=$ac_arg
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4127 rm -f core conftest.err conftest.$ac_objext
4128 test "x$ac_cv_prog_cc_c89" != "xno" && break
4129 done
4130 rm -f conftest.$ac_ext
4131 CC=$ac_save_CC
4134 # AC_CACHE_VAL
4135 case "x$ac_cv_prog_cc_c89" in
4137 { echo "$as_me:$LINENO: result: none needed" >&5
4138 echo "${ECHO_T}none needed" >&6; } ;;
4139 xno)
4140 { echo "$as_me:$LINENO: result: unsupported" >&5
4141 echo "${ECHO_T}unsupported" >&6; } ;;
4143 CC="$CC $ac_cv_prog_cc_c89"
4144 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4145 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4146 esac
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 # On Suns, sometimes $CPP names a directory.
4157 if test -n "$CPP" && test -d "$CPP"; then
4158 CPP=
4161 #### Some systems specify a CPP to use unless we are using GCC.
4162 #### Now that we know whether we are using GCC, we can decide whether
4163 #### to use that one.
4164 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4165 then
4166 CPP="$NON_GNU_CPP"
4169 #### Some systems specify a CC to use unless we are using GCC.
4170 #### Now that we know whether we are using GCC, we can decide whether
4171 #### to use that one.
4172 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4173 test x$cc_specified != xyes
4174 then
4175 CC="$NON_GNU_CC"
4178 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4179 then
4180 CC="$CC $GCC_TEST_OPTIONS"
4183 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4184 then
4185 CC="$CC $NON_GCC_TEST_OPTIONS"
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4195 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4196 # On Suns, sometimes $CPP names a directory.
4197 if test -n "$CPP" && test -d "$CPP"; then
4198 CPP=
4200 if test -z "$CPP"; then
4201 if test "${ac_cv_prog_CPP+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 # Double quotes because CPP needs to be expanded
4205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4207 ac_preproc_ok=false
4208 for ac_c_preproc_warn_flag in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #ifdef __STDC__
4223 # include <limits.h>
4224 #else
4225 # include <assert.h>
4226 #endif
4227 Syntax error
4228 _ACEOF
4229 if { (ac_try="$ac_cpp conftest.$ac_ext"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } >/dev/null && {
4242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 }; then
4246 else
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 # Broken: fails on valid input.
4251 continue
4254 rm -f conftest.err conftest.$ac_ext
4256 # OK, works on sane cases. Now check whether nonexistent headers
4257 # can be detected and how.
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #include <ac_nonexistent.h>
4265 _ACEOF
4266 if { (ac_try="$ac_cpp conftest.$ac_ext"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } >/dev/null && {
4279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4280 test ! -s conftest.err
4281 }; then
4282 # Broken: success on invalid input.
4283 continue
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 # Passes both tests.
4289 ac_preproc_ok=:
4290 break
4293 rm -f conftest.err conftest.$ac_ext
4295 done
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.err conftest.$ac_ext
4298 if $ac_preproc_ok; then
4299 break
4302 done
4303 ac_cv_prog_CPP=$CPP
4306 CPP=$ac_cv_prog_CPP
4307 else
4308 ac_cv_prog_CPP=$CPP
4310 { echo "$as_me:$LINENO: result: $CPP" >&5
4311 echo "${ECHO_T}$CPP" >&6; }
4312 ac_preproc_ok=false
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h. */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #ifdef __STDC__
4328 # include <limits.h>
4329 #else
4330 # include <assert.h>
4331 #endif
4332 Syntax error
4333 _ACEOF
4334 if { (ac_try="$ac_cpp conftest.$ac_ext"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4341 ac_status=$?
4342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } >/dev/null && {
4347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4348 test ! -s conftest.err
4349 }; then
4351 else
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 # Broken: fails on valid input.
4356 continue
4359 rm -f conftest.err conftest.$ac_ext
4361 # OK, works on sane cases. Now check whether nonexistent headers
4362 # can be detected and how.
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <ac_nonexistent.h>
4370 _ACEOF
4371 if { (ac_try="$ac_cpp conftest.$ac_ext"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 }; then
4387 # Broken: success on invalid input.
4388 continue
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Passes both tests.
4394 ac_preproc_ok=:
4395 break
4398 rm -f conftest.err conftest.$ac_ext
4400 done
4401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402 rm -f conftest.err conftest.$ac_ext
4403 if $ac_preproc_ok; then
4405 else
4406 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4407 See \`config.log' for more details." >&5
4408 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4409 See \`config.log' for more details." >&2;}
4410 { (exit 1); exit 1; }; }
4413 ac_ext=c
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4421 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4422 if test "${ac_cv_path_GREP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 # Extract the first word of "grep ggrep" to use in msg output
4426 if test -z "$GREP"; then
4427 set dummy grep ggrep; ac_prog_name=$2
4428 if test "${ac_cv_path_GREP+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 ac_path_GREP_found=false
4432 # Loop through the user's path and test for each of PROGNAME-LIST
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_prog in grep ggrep; do
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4442 # Check for GNU ac_path_GREP and select it if it is found.
4443 # Check for GNU $ac_path_GREP
4444 case `"$ac_path_GREP" --version 2>&1` in
4445 *GNU*)
4446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4448 ac_count=0
4449 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4450 while :
4452 cat "conftest.in" "conftest.in" >"conftest.tmp"
4453 mv "conftest.tmp" "conftest.in"
4454 cp "conftest.in" "conftest.nl"
4455 echo 'GREP' >> "conftest.nl"
4456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4458 ac_count=`expr $ac_count + 1`
4459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4460 # Best one so far, save it but keep looking for a better one
4461 ac_cv_path_GREP="$ac_path_GREP"
4462 ac_path_GREP_max=$ac_count
4464 # 10*(2^10) chars as input seems more than enough
4465 test $ac_count -gt 10 && break
4466 done
4467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4468 esac
4471 $ac_path_GREP_found && break 3
4472 done
4473 done
4475 done
4476 IFS=$as_save_IFS
4481 GREP="$ac_cv_path_GREP"
4482 if test -z "$GREP"; then
4483 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4484 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4485 { (exit 1); exit 1; }; }
4488 else
4489 ac_cv_path_GREP=$GREP
4494 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4495 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4496 GREP="$ac_cv_path_GREP"
4499 { echo "$as_me:$LINENO: checking for egrep" >&5
4500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4501 if test "${ac_cv_path_EGREP+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4505 then ac_cv_path_EGREP="$GREP -E"
4506 else
4507 # Extract the first word of "egrep" to use in msg output
4508 if test -z "$EGREP"; then
4509 set dummy egrep; ac_prog_name=$2
4510 if test "${ac_cv_path_EGREP+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 ac_path_EGREP_found=false
4514 # Loop through the user's path and test for each of PROGNAME-LIST
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_prog in egrep; do
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4523 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4524 # Check for GNU ac_path_EGREP and select it if it is found.
4525 # Check for GNU $ac_path_EGREP
4526 case `"$ac_path_EGREP" --version 2>&1` in
4527 *GNU*)
4528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4530 ac_count=0
4531 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4532 while :
4534 cat "conftest.in" "conftest.in" >"conftest.tmp"
4535 mv "conftest.tmp" "conftest.in"
4536 cp "conftest.in" "conftest.nl"
4537 echo 'EGREP' >> "conftest.nl"
4538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540 ac_count=`expr $ac_count + 1`
4541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4542 # Best one so far, save it but keep looking for a better one
4543 ac_cv_path_EGREP="$ac_path_EGREP"
4544 ac_path_EGREP_max=$ac_count
4546 # 10*(2^10) chars as input seems more than enough
4547 test $ac_count -gt 10 && break
4548 done
4549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4550 esac
4553 $ac_path_EGREP_found && break 3
4554 done
4555 done
4557 done
4558 IFS=$as_save_IFS
4563 EGREP="$ac_cv_path_EGREP"
4564 if test -z "$EGREP"; then
4565 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4566 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4567 { (exit 1); exit 1; }; }
4570 else
4571 ac_cv_path_EGREP=$EGREP
4577 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4578 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4579 EGREP="$ac_cv_path_EGREP"
4583 { echo "$as_me:$LINENO: checking for AIX" >&5
4584 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4585 cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h. */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 #ifdef _AIX
4593 #endif
4595 _ACEOF
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 $EGREP "yes" >/dev/null 2>&1; then
4598 { echo "$as_me:$LINENO: result: yes" >&5
4599 echo "${ECHO_T}yes" >&6; }
4600 cat >>confdefs.h <<\_ACEOF
4601 #define _ALL_SOURCE 1
4602 _ACEOF
4604 else
4605 { echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6; }
4608 rm -f conftest*
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _GNU_SOURCE 1
4614 _ACEOF
4618 ### Use -Wno-pointer-sign if the compiler supports it
4619 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4620 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -Wno-pointer-sign"
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4631 main ()
4635 return 0;
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4655 has_option=yes
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 has_option=no
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test $has_option = yes; then
4665 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4667 { echo "$as_me:$LINENO: result: $has_option" >&5
4668 echo "${ECHO_T}$has_option" >&6; }
4669 CFLAGS="$SAVE_CFLAGS"
4670 unset has_option
4671 unset SAVE_CFLAGS
4673 #### Some other nice autoconf tests.
4675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4677 LN_S=$as_ln_s
4678 if test "$LN_S" = "ln -s"; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4681 else
4682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6; }
4686 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4695 CPP=
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 # Double quotes because CPP needs to be expanded
4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4704 ac_preproc_ok=false
4705 for ac_c_preproc_warn_flag in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #ifdef __STDC__
4720 # include <limits.h>
4721 #else
4722 # include <assert.h>
4723 #endif
4724 Syntax error
4725 _ACEOF
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 }; then
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 # Broken: fails on valid input.
4748 continue
4751 rm -f conftest.err conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4762 _ACEOF
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null && {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 }; then
4779 # Broken: success on invalid input.
4780 continue
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Passes both tests.
4786 ac_preproc_ok=:
4787 break
4790 rm -f conftest.err conftest.$ac_ext
4792 done
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.$ac_ext
4795 if $ac_preproc_ok; then
4796 break
4799 done
4800 ac_cv_prog_CPP=$CPP
4803 CPP=$ac_cv_prog_CPP
4804 else
4805 ac_cv_prog_CPP=$CPP
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4809 ac_preproc_ok=false
4810 for ac_c_preproc_warn_flag in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4829 Syntax error
4830 _ACEOF
4831 if { (ac_try="$ac_cpp conftest.$ac_ext"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 }; then
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4853 continue
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null && {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 }; then
4884 # Broken: success on invalid input.
4885 continue
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 # Passes both tests.
4891 ac_preproc_ok=:
4892 break
4895 rm -f conftest.err conftest.$ac_ext
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then
4902 else
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916 # Find a good install program. We prefer a C program (faster),
4917 # so one script is as good as another. But avoid the broken or
4918 # incompatible versions:
4919 # SysV /etc/install, /usr/sbin/install
4920 # SunOS /usr/etc/install
4921 # IRIX /sbin/install
4922 # AIX /bin/install
4923 # AmigaOS /C/install, which installs bootblocks on floppy discs
4924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4927 # OS/2's system install, which has a completely different semantic
4928 # ./install, which can be erroneously created by make from ./install.sh.
4929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4931 if test -z "$INSTALL"; then
4932 if test "${ac_cv_path_install+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 # Account for people who put trailing slashes in PATH elements.
4941 case $as_dir/ in
4942 ./ | .// | /cC/* | \
4943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4945 /usr/ucb/* ) ;;
4947 # OSF1 and SCO ODT 3.0 have their own names for install.
4948 # Don't use installbsd from OSF since it installs stuff as root
4949 # by default.
4950 for ac_prog in ginstall scoinst install; do
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4953 if test $ac_prog = install &&
4954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4955 # AIX install. It has an incompatible calling convention.
4957 elif test $ac_prog = install &&
4958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4959 # program-specific install script used by HP pwplus--don't use.
4961 else
4962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4963 break 3
4966 done
4967 done
4969 esac
4970 done
4971 IFS=$as_save_IFS
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL=$ac_cv_path_install
4977 else
4978 # As a last resort, use the slow shell script. Don't cache a
4979 # value for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the value is a relative name.
4982 INSTALL=$ac_install_sh
4985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6; }
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4996 if test "x$RANLIB" = x; then
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 RANLIB=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5028 echo "${ECHO_T}$RANLIB" >&6; }
5029 else
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib; ac_word=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_RANLIB="ranlib"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5069 else
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5074 if test "x$ac_ct_RANLIB" = x; then
5075 RANLIB=":"
5076 else
5077 case $cross_compiling:$ac_tool_warned in
5078 yes:)
5079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5080 whose name does not start with the host triplet. If you think this
5081 configuration is useful to you, please write to autoconf@gnu.org." >&5
5082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 RANLIB=$ac_ct_RANLIB
5089 else
5090 RANLIB="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 case $INSTALL_INFO in
5102 [\\/]* | ?:[\\/]*)
5103 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5122 esac
5124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5127 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5128 else
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 case $INSTALL_INFO in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in /usr/sbin
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5162 esac
5164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5168 else
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 case $INSTALL_INFO in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in /sbin
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5203 esac
5205 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5208 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5209 else
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy gzip; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 case $GZIP_PROG in
5223 [\\/]* | ?:[\\/]*)
5224 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5243 esac
5245 GZIP_PROG=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5248 echo "${ECHO_T}$GZIP_PROG" >&6; }
5249 else
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5257 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5258 then
5259 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5262 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5263 then
5264 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5268 late_LDFLAGS=$LDFLAGS
5269 if test "$GCC" = yes; then
5270 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5271 else
5272 LDFLAGS="$LDFLAGS -znocombreloc"
5275 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5276 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5277 cat >conftest.$ac_ext <<_ACEOF
5278 main(){return 0;}
5279 _ACEOF
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (ac_try="$ac_link"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_link") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest$ac_exeext &&
5297 $as_test_x conftest$ac_exeext; then
5298 { echo "$as_me:$LINENO: result: yes" >&5
5299 echo "${ECHO_T}yes" >&6; }
5300 else
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 LDFLAGS=$late_LDFLAGS
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5310 conftest$ac_exeext conftest.$ac_ext
5312 #### Extract some information from the operating system and machine files.
5314 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5315 - which libraries the lib-src programs will want, and
5316 - whether the GNU malloc routines are usable..." >&5
5317 echo "$as_me: checking the machine- and system-dependent files to find out
5318 - which libraries the lib-src programs will want, and
5319 - whether the GNU malloc routines are usable..." >&6;}
5321 ### First figure out CFLAGS (which we use for running the compiler here)
5322 ### and REAL_CFLAGS (which we use for real compilation).
5323 ### The two are the same except on a few systems, where they are made
5324 ### different to work around various lossages. For example,
5325 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5326 ### as implying static linking.
5328 ### If the CFLAGS env var is specified, we use that value
5329 ### instead of the default.
5331 ### It's not important that this name contain the PID; you can't run
5332 ### two configures in the same directory and have anything work
5333 ### anyway.
5334 tempcname="conftest.c"
5336 echo '
5337 #include "'${srcdir}'/src/'${opsysfile}'"
5338 #include "'${srcdir}'/src/'${machfile}'"
5339 #ifndef LIBS_MACHINE
5340 #define LIBS_MACHINE
5341 #endif
5342 #ifndef LIBS_SYSTEM
5343 #define LIBS_SYSTEM
5344 #endif
5345 #ifndef C_SWITCH_SYSTEM
5346 #define C_SWITCH_SYSTEM
5347 #endif
5348 #ifndef C_SWITCH_MACHINE
5349 #define C_SWITCH_MACHINE
5350 #endif
5351 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5352 configure___ c_switch_system=C_SWITCH_SYSTEM
5353 configure___ c_switch_machine=C_SWITCH_MACHINE
5355 #ifndef LIB_X11_LIB
5356 #define LIB_X11_LIB -lX11
5357 #endif
5359 #ifndef LIBX11_MACHINE
5360 #define LIBX11_MACHINE
5361 #endif
5363 #ifndef LIBX11_SYSTEM
5364 #define LIBX11_SYSTEM
5365 #endif
5366 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5368 #ifdef UNEXEC
5369 configure___ unexec=UNEXEC
5370 #else
5371 configure___ unexec=unexec.o
5372 #endif
5374 #ifdef SYSTEM_MALLOC
5375 configure___ system_malloc=yes
5376 #else
5377 configure___ system_malloc=no
5378 #endif
5380 #ifdef USE_MMAP_FOR_BUFFERS
5381 configure___ use_mmap_for_buffers=yes
5382 #else
5383 configure___ use_mmap_for_buffers=no
5384 #endif
5386 #ifndef C_DEBUG_SWITCH
5387 #define C_DEBUG_SWITCH -g
5388 #endif
5390 #ifndef C_OPTIMIZE_SWITCH
5391 #ifdef __GNUC__
5392 #define C_OPTIMIZE_SWITCH -O2
5393 #else
5394 #define C_OPTIMIZE_SWITCH -O
5395 #endif
5396 #endif
5398 #ifndef C_WARNINGS_SWITCH
5399 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5400 #endif
5402 #ifndef LD_SWITCH_MACHINE
5403 #define LD_SWITCH_MACHINE
5404 #endif
5406 #ifndef LD_SWITCH_SYSTEM
5407 #define LD_SWITCH_SYSTEM
5408 #endif
5410 #ifndef LD_SWITCH_X_SITE_AUX
5411 #define LD_SWITCH_X_SITE_AUX
5412 #endif
5414 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5415 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5417 #ifdef THIS_IS_CONFIGURE
5419 /* Get the CFLAGS for tests in configure. */
5420 #ifdef __GNUC__
5421 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5422 #else
5423 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5424 #endif
5426 #else /* not THIS_IS_CONFIGURE */
5428 /* Get the CFLAGS for real compilation. */
5429 #ifdef __GNUC__
5430 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5431 #else
5432 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5433 #endif
5435 #endif /* not THIS_IS_CONFIGURE */
5436 ' > ${tempcname}
5438 # The value of CPP is a quoted variable reference, so we need to do this
5439 # to get its actual value...
5440 CPP=`eval "echo $CPP"`
5441 eval `${CPP} -Isrc ${tempcname} \
5442 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5443 if test "x$SPECIFIED_CFLAGS" = x; then
5444 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5445 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5446 else
5447 REAL_CFLAGS="$CFLAGS"
5449 rm ${tempcname}
5451 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5453 ### Make sure subsequent tests use flags consistent with the build flags.
5455 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5456 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5457 else
5458 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5463 # Check whether --enable-largefile was given.
5464 if test "${enable_largefile+set}" = set; then
5465 enableval=$enable_largefile;
5468 if test "$enable_largefile" != no; then
5470 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5471 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5472 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 ac_cv_sys_largefile_CC=no
5476 if test "$GCC" != yes; then
5477 ac_save_CC=$CC
5478 while :; do
5479 # IRIX 6.2 and later do not support large files by default,
5480 # so use the C compiler's -n32 option if that helps.
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 #include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly.
5489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5490 since some C++ compilers masquerading as C compilers
5491 incorrectly reject 9223372036854775807. */
5492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5494 && LARGE_OFF_T % 2147483647 == 1)
5495 ? 1 : -1];
5497 main ()
5501 return 0;
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
5521 break
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5529 rm -f core conftest.err conftest.$ac_objext
5530 CC="$CC -n32"
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5548 ac_cv_sys_largefile_CC=' -n32'; break
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext
5557 break
5558 done
5559 CC=$ac_save_CC
5560 rm -f conftest.$ac_ext
5563 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5564 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5565 if test "$ac_cv_sys_largefile_CC" != no; then
5566 CC=$CC$ac_cv_sys_largefile_CC
5569 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5570 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5571 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 while :; do
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <sys/types.h>
5582 /* Check that off_t can represent 2**63 - 1 correctly.
5583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5584 since some C++ compilers masquerading as C compilers
5585 incorrectly reject 9223372036854775807. */
5586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5588 && LARGE_OFF_T % 2147483647 == 1)
5589 ? 1 : -1];
5591 main ()
5595 return 0;
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_sys_file_offset_bits=no; break
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #define _FILE_OFFSET_BITS 64
5631 #include <sys/types.h>
5632 /* Check that off_t can represent 2**63 - 1 correctly.
5633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5634 since some C++ compilers masquerading as C compilers
5635 incorrectly reject 9223372036854775807. */
5636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5638 && LARGE_OFF_T % 2147483647 == 1)
5639 ? 1 : -1];
5641 main ()
5645 return 0;
5647 _ACEOF
5648 rm -f conftest.$ac_objext
5649 if { (ac_try="$ac_compile"
5650 case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_sys_file_offset_bits=64; break
5666 else
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_cv_sys_file_offset_bits=unknown
5675 break
5676 done
5678 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5679 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5680 case $ac_cv_sys_file_offset_bits in #(
5681 no | unknown) ;;
5683 cat >>confdefs.h <<_ACEOF
5684 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5685 _ACEOF
5687 esac
5688 rm -f conftest*
5689 if test $ac_cv_sys_file_offset_bits = unknown; then
5690 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5691 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5692 if test "${ac_cv_sys_large_files+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695 while :; do
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <sys/types.h>
5703 /* Check that off_t can represent 2**63 - 1 correctly.
5704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5705 since some C++ compilers masquerading as C compilers
5706 incorrectly reject 9223372036854775807. */
5707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5709 && LARGE_OFF_T % 2147483647 == 1)
5710 ? 1 : -1];
5712 main ()
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 ac_cv_sys_large_files=no; break
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #define _LARGE_FILES 1
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5760 ? 1 : -1];
5762 main ()
5766 return 0;
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
5786 ac_cv_sys_large_files=1; break
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 ac_cv_sys_large_files=unknown
5796 break
5797 done
5799 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5800 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5801 case $ac_cv_sys_large_files in #(
5802 no | unknown) ;;
5804 cat >>confdefs.h <<_ACEOF
5805 #define _LARGE_FILES $ac_cv_sys_large_files
5806 _ACEOF
5808 esac
5809 rm -f conftest*
5815 ### The standard library on x86-64 GNU/Linux distributions can
5816 ### be located in either /usr/lib64 or /usr/lib.
5817 case "${canonical}" in
5818 x86_64-*-linux-gnu* )
5819 if test -d /usr/lib64; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_X86_64_LIB64_DIR 1
5823 _ACEOF
5826 esac
5831 if test "${with_sound}" != "no"; then
5832 # Sound support for GNU/Linux and the free BSDs.
5833 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5835 if test "${ac_cv_header_stdc+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <stdlib.h>
5845 #include <stdarg.h>
5846 #include <string.h>
5847 #include <float.h>
5850 main ()
5854 return 0;
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (ac_try="$ac_compile"
5859 case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
5874 ac_cv_header_stdc=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_header_stdc=no
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <string.h>
5894 _ACEOF
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "memchr" >/dev/null 2>&1; then
5898 else
5899 ac_cv_header_stdc=no
5901 rm -f conftest*
5905 if test $ac_cv_header_stdc = yes; then
5906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #include <stdlib.h>
5915 _ACEOF
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917 $EGREP "free" >/dev/null 2>&1; then
5919 else
5920 ac_cv_header_stdc=no
5922 rm -f conftest*
5926 if test $ac_cv_header_stdc = yes; then
5927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5928 if test "$cross_compiling" = yes; then
5930 else
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h. */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 #include <ctype.h>
5938 #include <stdlib.h>
5939 #if ((' ' & 0x0FF) == 0x020)
5940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5942 #else
5943 # define ISLOWER(c) \
5944 (('a' <= (c) && (c) <= 'i') \
5945 || ('j' <= (c) && (c) <= 'r') \
5946 || ('s' <= (c) && (c) <= 'z'))
5947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5948 #endif
5950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5952 main ()
5954 int i;
5955 for (i = 0; i < 256; i++)
5956 if (XOR (islower (i), ISLOWER (i))
5957 || toupper (i) != TOUPPER (i))
5958 return 2;
5959 return 0;
5961 _ACEOF
5962 rm -f conftest$ac_exeext
5963 if { (ac_try="$ac_link"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_link") 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5973 { (case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_try") 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5983 else
5984 echo "$as_me: program exited with status $ac_status" >&5
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ( exit $ac_status )
5989 ac_cv_header_stdc=no
5991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5998 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5999 if test $ac_cv_header_stdc = yes; then
6001 cat >>confdefs.h <<\_ACEOF
6002 #define STDC_HEADERS 1
6003 _ACEOF
6007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6018 inttypes.h stdint.h unistd.h
6020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 $ac_includes_default
6034 #include <$ac_header>
6035 _ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (ac_try="$ac_compile"
6038 case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041 esac
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && {
6050 test -z "$ac_c_werror_flag" ||
6051 test ! -s conftest.err
6052 } && test -s conftest.$ac_objext; then
6053 eval "$as_ac_Header=yes"
6054 else
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6058 eval "$as_ac_Header=no"
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 ac_res=`eval echo '${'$as_ac_Header'}'`
6064 { echo "$as_me:$LINENO: result: $ac_res" >&5
6065 echo "${ECHO_T}$ac_res" >&6; }
6066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6067 cat >>confdefs.h <<_ACEOF
6068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6069 _ACEOF
6073 done
6079 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_res=`eval echo '${'$as_ac_Header'}'`
6089 { echo "$as_me:$LINENO: result: $ac_res" >&5
6090 echo "${ECHO_T}$ac_res" >&6; }
6091 else
6092 # Is the header compilable?
6093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 $ac_includes_default
6102 #include <$ac_header>
6103 _ACEOF
6104 rm -f conftest.$ac_objext
6105 if { (ac_try="$ac_compile"
6106 case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_compile") 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest.$ac_objext; then
6121 ac_header_compiler=yes
6122 else
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126 ac_header_compiler=no
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6131 echo "${ECHO_T}$ac_header_compiler" >&6; }
6133 # Is the header present?
6134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <$ac_header>
6143 _ACEOF
6144 if { (ac_try="$ac_cpp conftest.$ac_ext"
6145 case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null && {
6157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6158 test ! -s conftest.err
6159 }; then
6160 ac_header_preproc=yes
6161 else
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ac_header_preproc=no
6168 rm -f conftest.err conftest.$ac_ext
6169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6170 echo "${ECHO_T}$ac_header_preproc" >&6; }
6172 # So? What about this header?
6173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6174 yes:no: )
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6179 ac_header_preproc=yes
6181 no:yes:* )
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6196 esac
6197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 eval "$as_ac_Header=\$ac_header_preproc"
6204 ac_res=`eval echo '${'$as_ac_Header'}'`
6205 { echo "$as_me:$LINENO: result: $ac_res" >&5
6206 echo "${ECHO_T}$ac_res" >&6; }
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6212 _ACEOF
6216 done
6218 # Emulation library used on NetBSD.
6219 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6220 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6221 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 ac_check_lib_save_LIBS=$LIBS
6225 LIBS="-lossaudio $LIBS"
6226 cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h. */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6233 /* Override any GCC internal prototype to avoid an error.
6234 Use char because int might match the return type of a GCC
6235 builtin and then its argument prototype would still apply. */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 char _oss_ioctl ();
6241 main ()
6243 return _oss_ioctl ();
6245 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (ac_try="$ac_link"
6250 case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_link") 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest$ac_exeext &&
6265 $as_test_x conftest$ac_exeext; then
6266 ac_cv_lib_ossaudio__oss_ioctl=yes
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 ac_cv_lib_ossaudio__oss_ioctl=no
6274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6275 conftest$ac_exeext conftest.$ac_ext
6276 LIBS=$ac_check_lib_save_LIBS
6278 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6279 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6280 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6281 LIBSOUND=-lossaudio
6282 else
6283 LIBSOUND=
6288 ALSA_REQUIRED=1.0.0
6289 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6290 if test "X${with_pkg_config_prog}" != X; then
6291 PKG_CONFIG="${with_pkg_config_prog}"
6294 succeeded=no
6296 if test -z "$PKG_CONFIG"; then
6297 # Extract the first word of "pkg-config", so it can be a program name with args.
6298 set dummy pkg-config; ac_word=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 case $PKG_CONFIG in
6305 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6320 done
6321 done
6322 IFS=$as_save_IFS
6324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6326 esac
6328 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6329 if test -n "$PKG_CONFIG"; then
6330 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6331 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6332 else
6333 { echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6; }
6340 if test "$PKG_CONFIG" = "no" ; then
6341 HAVE_ALSA=no
6342 else
6343 PKG_CONFIG_MIN_VERSION=0.9.0
6344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6345 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6346 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6348 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6349 { echo "$as_me:$LINENO: result: yes" >&5
6350 echo "${ECHO_T}yes" >&6; }
6351 succeeded=yes
6353 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6354 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6355 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6356 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6357 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6359 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6360 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6361 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6362 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6363 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6364 else
6365 { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6367 ALSA_CFLAGS=""
6368 ALSA_LIBS=""
6369 ## If we have a custom action on failure, don't print errors, but
6370 ## do set a variable so people can do so.
6371 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6377 else
6378 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6379 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6383 if test $succeeded = yes; then
6384 HAVE_ALSA=yes
6385 else
6386 HAVE_ALSA=no
6389 if test $HAVE_ALSA = yes; then
6390 SAVE_CFLAGS="$CFLAGS"
6391 SAVE_LDFLAGS="$LDFLAGS"
6392 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6393 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 #include <asoundlib.h>
6402 main ()
6404 snd_lib_error_set_handler (0);
6406 return 0;
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest.$ac_objext; then
6426 emacs_alsa_normal=yes
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 emacs_alsa_normal=no
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 if test "$emacs_alsa_normal" != yes; then
6436 cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h. */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 #include <alsa/asoundlib.h>
6444 main ()
6446 snd_lib_error_set_handler (0);
6448 return 0;
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6453 case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 emacs_alsa_subdir=yes
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 emacs_alsa_subdir=no
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 if test "$emacs_alsa_subdir" != yes; then
6478 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6479 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6480 { (exit 1); exit 1; }; }
6482 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6485 CFLAGS="$SAVE_CFLAGS"
6486 LDFLAGS="$SAVE_LDFLAGS"
6487 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6488 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6490 cat >>confdefs.h <<\_ACEOF
6491 #define HAVE_ALSA 1
6492 _ACEOF
6523 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6524 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6525 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6526 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6527 sys/utsname.h pwd.h
6529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_res=`eval echo '${'$as_ac_Header'}'`
6537 { echo "$as_me:$LINENO: result: $ac_res" >&5
6538 echo "${ECHO_T}$ac_res" >&6; }
6539 else
6540 # Is the header compilable?
6541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 #include <$ac_header>
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_header_compiler=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_header_compiler=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579 echo "${ECHO_T}$ac_header_compiler" >&6; }
6581 # Is the header present?
6582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6591 _ACEOF
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } >/dev/null && {
6605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 }; then
6608 ac_header_preproc=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_header_preproc=no
6616 rm -f conftest.err conftest.$ac_ext
6617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618 echo "${ECHO_T}$ac_header_preproc" >&6; }
6620 # So? What about this header?
6621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6622 yes:no: )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627 ac_header_preproc=yes
6629 no:yes:* )
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6644 esac
6645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 eval "$as_ac_Header=\$ac_header_preproc"
6652 ac_res=`eval echo '${'$as_ac_Header'}'`
6653 { echo "$as_me:$LINENO: result: $ac_res" >&5
6654 echo "${ECHO_T}$ac_res" >&6; }
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h <<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6660 _ACEOF
6664 done
6667 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6668 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <sys/personality.h>
6677 main ()
6679 personality (PER_LINUX32)
6681 return 0;
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (ac_try="$ac_compile"
6686 case "(($ac_try" in
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6689 esac
6690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && {
6698 test -z "$ac_c_werror_flag" ||
6699 test ! -s conftest.err
6700 } && test -s conftest.$ac_objext; then
6701 emacs_cv_personality_linux32=yes
6702 else
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 emacs_cv_personality_linux32=no
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6711 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6713 if test $emacs_cv_personality_linux32 = yes; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_PERSONALITY_LINUX32 1
6717 _ACEOF
6722 for ac_header in term.h
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h. */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #include <$ac_header>
6737 _ACEOF
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6739 case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null && {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 }; then
6754 eval "$as_ac_Header=yes"
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 eval "$as_ac_Header=no"
6762 rm -f conftest.err conftest.$ac_ext
6764 ac_res=`eval echo '${'$as_ac_Header'}'`
6765 { echo "$as_me:$LINENO: result: $ac_res" >&5
6766 echo "${ECHO_T}$ac_res" >&6; }
6767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6768 cat >>confdefs.h <<_ACEOF
6769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6770 _ACEOF
6774 done
6776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6778 if test "${ac_cv_header_stdc+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <stdlib.h>
6788 #include <stdarg.h>
6789 #include <string.h>
6790 #include <float.h>
6793 main ()
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (ac_try="$ac_compile"
6802 case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805 esac
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_compile") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest.$ac_objext; then
6817 ac_cv_header_stdc=yes
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_cv_header_stdc=no
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 if test $ac_cv_header_stdc = yes; then
6828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <string.h>
6837 _ACEOF
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 $EGREP "memchr" >/dev/null 2>&1; then
6841 else
6842 ac_cv_header_stdc=no
6844 rm -f conftest*
6848 if test $ac_cv_header_stdc = yes; then
6849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <stdlib.h>
6858 _ACEOF
6859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6860 $EGREP "free" >/dev/null 2>&1; then
6862 else
6863 ac_cv_header_stdc=no
6865 rm -f conftest*
6869 if test $ac_cv_header_stdc = yes; then
6870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6871 if test "$cross_compiling" = yes; then
6873 else
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 #include <ctype.h>
6881 #include <stdlib.h>
6882 #if ((' ' & 0x0FF) == 0x020)
6883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6885 #else
6886 # define ISLOWER(c) \
6887 (('a' <= (c) && (c) <= 'i') \
6888 || ('j' <= (c) && (c) <= 'r') \
6889 || ('s' <= (c) && (c) <= 'z'))
6890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6891 #endif
6893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6895 main ()
6897 int i;
6898 for (i = 0; i < 256; i++)
6899 if (XOR (islower (i), ISLOWER (i))
6900 || toupper (i) != TOUPPER (i))
6901 return 2;
6902 return 0;
6904 _ACEOF
6905 rm -f conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6916 { (case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_try") 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6926 else
6927 echo "$as_me: program exited with status $ac_status" >&5
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 ( exit $ac_status )
6932 ac_cv_header_stdc=no
6934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6940 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6941 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6942 if test $ac_cv_header_stdc = yes; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define STDC_HEADERS 1
6946 _ACEOF
6950 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6951 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6952 if test "${ac_cv_header_time+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h. */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 #include <sys/types.h>
6962 #include <sys/time.h>
6963 #include <time.h>
6966 main ()
6968 if ((struct tm *) 0)
6969 return 0;
6971 return 0;
6973 _ACEOF
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6976 case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979 esac
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_header_time=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_cv_header_time=no
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7002 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7003 if test $ac_cv_header_time = yes; then
7005 cat >>confdefs.h <<\_ACEOF
7006 #define TIME_WITH_SYS_TIME 1
7007 _ACEOF
7011 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7012 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7013 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7024 main ()
7026 #ifndef sys_siglist
7027 (void) sys_siglist;
7028 #endif
7031 return 0;
7033 _ACEOF
7034 rm -f conftest.$ac_objext
7035 if { (ac_try="$ac_compile"
7036 case "(($ac_try" in
7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7039 esac
7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7041 (eval "$ac_compile") 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && {
7048 test -z "$ac_c_werror_flag" ||
7049 test ! -s conftest.err
7050 } && test -s conftest.$ac_objext; then
7051 ac_cv_have_decl_sys_siglist=yes
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_cv_have_decl_sys_siglist=no
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7062 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7063 if test $ac_cv_have_decl_sys_siglist = yes; then
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_DECL_SYS_SIGLIST 1
7067 _ACEOF
7070 else
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_DECL_SYS_SIGLIST 0
7073 _ACEOF
7079 if test $ac_cv_have_decl_sys_siglist != yes; then
7080 # For Tru64, at least:
7081 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7082 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7083 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7094 main ()
7096 #ifndef __sys_siglist
7097 (void) __sys_siglist;
7098 #endif
7101 return 0;
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 ac_cv_have_decl___sys_siglist=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_cv_have_decl___sys_siglist=no
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7132 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7133 if test $ac_cv_have_decl___sys_siglist = yes; then
7135 cat >>confdefs.h <<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 1
7137 _ACEOF
7140 else
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_DECL___SYS_SIGLIST 0
7143 _ACEOF
7149 if test $ac_cv_have_decl___sys_siglist = yes; then
7151 cat >>confdefs.h <<\_ACEOF
7152 #define sys_siglist __sys_siglist
7153 _ACEOF
7157 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7158 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7159 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <sys/types.h>
7169 #include <sys/wait.h>
7170 #ifndef WEXITSTATUS
7171 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7172 #endif
7173 #ifndef WIFEXITED
7174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7175 #endif
7178 main ()
7180 int s;
7181 wait (&s);
7182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 ac_cv_header_sys_wait_h=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_cv_header_sys_wait_h=no
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7215 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7216 if test $ac_cv_header_sys_wait_h = yes; then
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_SYS_WAIT_H 1
7220 _ACEOF
7225 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7226 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7227 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #ifdef TIME_WITH_SYS_TIME
7237 #include <sys/time.h>
7238 #include <time.h>
7239 #else
7240 #ifdef HAVE_SYS_TIME_H
7241 #include <sys/time.h>
7242 #else
7243 #include <time.h>
7244 #endif
7245 #endif
7246 #ifdef HAVE_UTIME_H
7247 #include <utime.h>
7248 #endif
7250 main ()
7252 static struct utimbuf x; x.actime = x.modtime;
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 emacs_cv_struct_utimbuf=yes
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 emacs_cv_struct_utimbuf=no
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7285 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7286 if test $emacs_cv_struct_utimbuf = yes; then
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_STRUCT_UTIMBUF 1
7290 _ACEOF
7294 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7295 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7296 if test "${ac_cv_type_signal+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <sys/types.h>
7306 #include <signal.h>
7309 main ()
7311 return *(signal (0, 0)) (0) == 1;
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 ac_cv_type_signal=int
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_type_signal=void
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7344 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7346 cat >>confdefs.h <<_ACEOF
7347 #define RETSIGTYPE $ac_cv_type_signal
7348 _ACEOF
7352 { echo "$as_me:$LINENO: checking for speed_t" >&5
7353 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7354 if test "${emacs_cv_speed_t+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 #include <termios.h>
7365 main ()
7367 speed_t x = 1;
7369 return 0;
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (ac_try="$ac_compile"
7374 case "(($ac_try" in
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7377 esac
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_compile") 2>conftest.er1
7380 ac_status=$?
7381 grep -v '^ *+' conftest.er1 >conftest.err
7382 rm -f conftest.er1
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.$ac_objext; then
7389 emacs_cv_speed_t=yes
7390 else
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 emacs_cv_speed_t=no
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7400 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7401 if test $emacs_cv_speed_t = yes; then
7403 cat >>confdefs.h <<\_ACEOF
7404 #define HAVE_SPEED_T 1
7405 _ACEOF
7409 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7410 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7411 if test "${emacs_cv_struct_timeval+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #ifdef TIME_WITH_SYS_TIME
7421 #include <sys/time.h>
7422 #include <time.h>
7423 #else
7424 #ifdef HAVE_SYS_TIME_H
7425 #include <sys/time.h>
7426 #else
7427 #include <time.h>
7428 #endif
7429 #endif
7431 main ()
7433 static struct timeval x; x.tv_sec = x.tv_usec;
7435 return 0;
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 emacs_cv_struct_timeval=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 emacs_cv_struct_timeval=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7466 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7467 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7468 if test $emacs_cv_struct_timeval = yes; then
7470 cat >>confdefs.h <<\_ACEOF
7471 #define HAVE_TIMEVAL 1
7472 _ACEOF
7476 { echo "$as_me:$LINENO: checking for struct exception" >&5
7477 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7478 if test "${emacs_cv_struct_exception+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 #include <math.h>
7489 main ()
7491 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7493 return 0;
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 emacs_cv_struct_exception=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 emacs_cv_struct_exception=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7524 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7525 HAVE_EXCEPTION=$emacs_cv_struct_exception
7526 if test $emacs_cv_struct_exception != yes; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define NO_MATHERR 1
7530 _ACEOF
7535 for ac_header in sys/socket.h
7537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547 else
7548 # Is the header compilable?
7549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 $ac_includes_default
7558 #include <$ac_header>
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (ac_try="$ac_compile"
7562 case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565 esac
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7577 ac_header_compiler=yes
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_header_compiler=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587 echo "${ECHO_T}$ac_header_compiler" >&6; }
7589 # Is the header present?
7590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #include <$ac_header>
7599 _ACEOF
7600 if { (ac_try="$ac_cpp conftest.$ac_ext"
7601 case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } >/dev/null && {
7613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 }; then
7616 ac_header_preproc=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_header_preproc=no
7624 rm -f conftest.err conftest.$ac_ext
7625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7626 echo "${ECHO_T}$ac_header_preproc" >&6; }
7628 # So? What about this header?
7629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7630 yes:no: )
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7635 ac_header_preproc=yes
7637 no:yes:* )
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7652 esac
7653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 eval "$as_ac_Header=\$ac_header_preproc"
7660 ac_res=`eval echo '${'$as_ac_Header'}'`
7661 { echo "$as_me:$LINENO: result: $ac_res" >&5
7662 echo "${ECHO_T}$ac_res" >&6; }
7665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7666 cat >>confdefs.h <<_ACEOF
7667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7668 _ACEOF
7672 done
7675 for ac_header in net/if.h
7677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 #if HAVE_SYS_SOCKET_H
7691 #include <sys/socket.h>
7692 #endif
7694 #include <$ac_header>
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 eval "$as_ac_Header=yes"
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 eval "$as_ac_Header=no"
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 ac_res=`eval echo '${'$as_ac_Header'}'`
7724 { echo "$as_me:$LINENO: result: $ac_res" >&5
7725 echo "${ECHO_T}$ac_res" >&6; }
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729 _ACEOF
7733 done
7736 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7737 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7738 if test "${ac_cv_struct_tm+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 #include <sys/types.h>
7748 #include <time.h>
7751 main ()
7753 struct tm tm;
7754 int *p = &tm.tm_sec;
7755 return !p;
7757 return 0;
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
7762 case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_compile") 2>conftest.er1
7768 ac_status=$?
7769 grep -v '^ *+' conftest.er1 >conftest.err
7770 rm -f conftest.er1
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } && {
7774 test -z "$ac_c_werror_flag" ||
7775 test ! -s conftest.err
7776 } && test -s conftest.$ac_objext; then
7777 ac_cv_struct_tm=time.h
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_struct_tm=sys/time.h
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7788 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7789 if test $ac_cv_struct_tm = sys/time.h; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define TM_IN_SYS_TIME 1
7793 _ACEOF
7797 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7798 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7799 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <sys/types.h>
7809 #include <$ac_cv_struct_tm>
7813 main ()
7815 static struct tm ac_aggr;
7816 if (ac_aggr.tm_zone)
7817 return 0;
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (ac_try="$ac_compile"
7824 case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_compile") 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && {
7836 test -z "$ac_c_werror_flag" ||
7837 test ! -s conftest.err
7838 } && test -s conftest.$ac_objext; then
7839 ac_cv_member_struct_tm_tm_zone=yes
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <sys/types.h>
7851 #include <$ac_cv_struct_tm>
7855 main ()
7857 static struct tm ac_aggr;
7858 if (sizeof ac_aggr.tm_zone)
7859 return 0;
7861 return 0;
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (ac_try="$ac_compile"
7866 case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_compile") 2>conftest.er1
7872 ac_status=$?
7873 grep -v '^ *+' conftest.er1 >conftest.err
7874 rm -f conftest.er1
7875 cat conftest.err >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_c_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest.$ac_objext; then
7881 ac_cv_member_struct_tm_tm_zone=yes
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_cv_member_struct_tm_tm_zone=no
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7895 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7896 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7898 cat >>confdefs.h <<_ACEOF
7899 #define HAVE_STRUCT_TM_TM_ZONE 1
7900 _ACEOF
7905 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_TM_ZONE 1
7909 _ACEOF
7911 else
7912 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7913 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7914 if test "${ac_cv_have_decl_tzname+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <time.h>
7926 main ()
7928 #ifndef tzname
7929 (void) tzname;
7930 #endif
7933 return 0;
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7938 case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_cv_have_decl_tzname=yes
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_have_decl_tzname=no
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7964 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7965 if test $ac_cv_have_decl_tzname = yes; then
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DECL_TZNAME 1
7969 _ACEOF
7972 else
7973 cat >>confdefs.h <<_ACEOF
7974 #define HAVE_DECL_TZNAME 0
7975 _ACEOF
7981 { echo "$as_me:$LINENO: checking for tzname" >&5
7982 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7983 if test "${ac_cv_var_tzname+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 #include <time.h>
7993 #if !HAVE_DECL_TZNAME
7994 extern char *tzname[];
7995 #endif
7998 main ()
8000 return tzname[0][0];
8002 return 0;
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (ac_try="$ac_link"
8007 case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_link") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest$ac_exeext &&
8022 $as_test_x conftest$ac_exeext; then
8023 ac_cv_var_tzname=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 ac_cv_var_tzname=no
8031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8032 conftest$ac_exeext conftest.$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8035 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8036 if test $ac_cv_var_tzname = yes; then
8038 cat >>confdefs.h <<\_ACEOF
8039 #define HAVE_TZNAME 1
8040 _ACEOF
8045 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8046 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8047 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 #include <time.h>
8059 main ()
8061 static struct tm ac_aggr;
8062 if (ac_aggr.tm_gmtoff)
8063 return 0;
8065 return 0;
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8070 case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_cv_member_struct_tm_tm_gmtoff=yes
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <time.h>
8099 main ()
8101 static struct tm ac_aggr;
8102 if (sizeof ac_aggr.tm_gmtoff)
8103 return 0;
8105 return 0;
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8110 case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_compile") 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.$ac_objext; then
8125 ac_cv_member_struct_tm_tm_gmtoff=yes
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8130 ac_cv_member_struct_tm_tm_gmtoff=no
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8139 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8140 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_TM_GMTOFF 1
8144 _ACEOF
8148 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8149 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8150 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8160 #if HAVE_SYS_SOCKET_H
8161 #include <sys/socket.h>
8162 #endif
8163 #if HAVE_NET_IF_H
8164 #include <net/if.h>
8165 #endif
8168 main ()
8170 static struct ifreq ac_aggr;
8171 if (ac_aggr.ifr_flags)
8172 return 0;
8174 return 0;
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (ac_try="$ac_compile"
8179 case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_compile") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest.$ac_objext; then
8194 ac_cv_member_struct_ifreq_ifr_flags=yes
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 $ac_includes_default
8206 #if HAVE_SYS_SOCKET_H
8207 #include <sys/socket.h>
8208 #endif
8209 #if HAVE_NET_IF_H
8210 #include <net/if.h>
8211 #endif
8214 main ()
8216 static struct ifreq ac_aggr;
8217 if (sizeof ac_aggr.ifr_flags)
8218 return 0;
8220 return 0;
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (ac_try="$ac_compile"
8225 case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_compile") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest.$ac_objext; then
8240 ac_cv_member_struct_ifreq_ifr_flags=yes
8241 else
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_cv_member_struct_ifreq_ifr_flags=no
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8254 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8255 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8257 cat >>confdefs.h <<_ACEOF
8258 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8259 _ACEOF
8263 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8264 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8265 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 $ac_includes_default
8275 #if HAVE_SYS_SOCKET_H
8276 #include <sys/socket.h>
8277 #endif
8278 #if HAVE_NET_IF_H
8279 #include <net/if.h>
8280 #endif
8283 main ()
8285 static struct ifreq ac_aggr;
8286 if (ac_aggr.ifr_hwaddr)
8287 return 0;
8289 return 0;
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8310 else
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 $ac_includes_default
8321 #if HAVE_SYS_SOCKET_H
8322 #include <sys/socket.h>
8323 #endif
8324 #if HAVE_NET_IF_H
8325 #include <net/if.h>
8326 #endif
8329 main ()
8331 static struct ifreq ac_aggr;
8332 if (sizeof ac_aggr.ifr_hwaddr)
8333 return 0;
8335 return 0;
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8340 case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_c_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.$ac_objext; then
8355 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8356 else
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8369 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8370 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8372 cat >>confdefs.h <<_ACEOF
8373 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8374 _ACEOF
8378 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8379 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8380 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 #if HAVE_SYS_SOCKET_H
8391 #include <sys/socket.h>
8392 #endif
8393 #if HAVE_NET_IF_H
8394 #include <net/if.h>
8395 #endif
8398 main ()
8400 static struct ifreq ac_aggr;
8401 if (ac_aggr.ifr_netmask)
8402 return 0;
8404 return 0;
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (ac_try="$ac_compile"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_ifreq_ifr_netmask=yes
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8438 #endif
8439 #if HAVE_NET_IF_H
8440 #include <net/if.h>
8441 #endif
8444 main ()
8446 static struct ifreq ac_aggr;
8447 if (sizeof ac_aggr.ifr_netmask)
8448 return 0;
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8470 ac_cv_member_struct_ifreq_ifr_netmask=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_cv_member_struct_ifreq_ifr_netmask=no
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8484 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8485 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8487 cat >>confdefs.h <<_ACEOF
8488 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8489 _ACEOF
8493 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8494 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8495 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 $ac_includes_default
8505 #if HAVE_SYS_SOCKET_H
8506 #include <sys/socket.h>
8507 #endif
8508 #if HAVE_NET_IF_H
8509 #include <net/if.h>
8510 #endif
8513 main ()
8515 static struct ifreq ac_aggr;
8516 if (ac_aggr.ifr_broadaddr)
8517 return 0;
8519 return 0;
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8524 case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && {
8536 test -z "$ac_c_werror_flag" ||
8537 test ! -s conftest.err
8538 } && test -s conftest.$ac_objext; then
8539 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8540 else
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h. */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 $ac_includes_default
8551 #if HAVE_SYS_SOCKET_H
8552 #include <sys/socket.h>
8553 #endif
8554 #if HAVE_NET_IF_H
8555 #include <net/if.h>
8556 #endif
8559 main ()
8561 static struct ifreq ac_aggr;
8562 if (sizeof ac_aggr.ifr_broadaddr)
8563 return 0;
8565 return 0;
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8599 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8600 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8602 cat >>confdefs.h <<_ACEOF
8603 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8604 _ACEOF
8608 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8609 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8610 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
8620 #if HAVE_SYS_SOCKET_H
8621 #include <sys/socket.h>
8622 #endif
8623 #if HAVE_NET_IF_H
8624 #include <net/if.h>
8625 #endif
8628 main ()
8630 static struct ifreq ac_aggr;
8631 if (ac_aggr.ifr_addr)
8632 return 0;
8634 return 0;
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8654 ac_cv_member_struct_ifreq_ifr_addr=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h. */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 #if HAVE_SYS_SOCKET_H
8667 #include <sys/socket.h>
8668 #endif
8669 #if HAVE_NET_IF_H
8670 #include <net/if.h>
8671 #endif
8674 main ()
8676 static struct ifreq ac_aggr;
8677 if (sizeof ac_aggr.ifr_addr)
8678 return 0;
8680 return 0;
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_cv_member_struct_ifreq_ifr_addr=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_member_struct_ifreq_ifr_addr=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8714 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8715 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8719 _ACEOF
8726 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8727 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8728 if test "$ac_cv_prog_cc_c89" != no; then
8729 { echo "$as_me:$LINENO: result: yes" >&5
8730 echo "${ECHO_T}yes" >&6; }
8732 cat >>confdefs.h <<\_ACEOF
8733 #define PROTOTYPES 1
8734 _ACEOF
8737 cat >>confdefs.h <<\_ACEOF
8738 #define __PROTOTYPES 1
8739 _ACEOF
8741 else
8742 { echo "$as_me:$LINENO: result: no" >&5
8743 echo "${ECHO_T}no" >&6; }
8746 { echo "$as_me:$LINENO: checking for working volatile" >&5
8747 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8748 if test "${ac_cv_c_volatile+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h. */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8759 main ()
8762 volatile int x;
8763 int * volatile y = (int *) 0;
8764 return !x && !y;
8766 return 0;
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (ac_try="$ac_compile"
8771 case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_compile") 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && {
8783 test -z "$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8785 } && test -s conftest.$ac_objext; then
8786 ac_cv_c_volatile=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_cv_c_volatile=no
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8797 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8798 if test $ac_cv_c_volatile = no; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define volatile
8802 _ACEOF
8806 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8807 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8808 if test "${ac_cv_c_const+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h. */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8819 main ()
8821 /* FIXME: Include the comments suggested by Paul. */
8822 #ifndef __cplusplus
8823 /* Ultrix mips cc rejects this. */
8824 typedef int charset[2];
8825 const charset cs;
8826 /* SunOS 4.1.1 cc rejects this. */
8827 char const *const *pcpcc;
8828 char **ppc;
8829 /* NEC SVR4.0.2 mips cc rejects this. */
8830 struct point {int x, y;};
8831 static struct point const zero = {0,0};
8832 /* AIX XL C 1.02.0.0 rejects this.
8833 It does not let you subtract one const X* pointer from another in
8834 an arm of an if-expression whose if-part is not a constant
8835 expression */
8836 const char *g = "string";
8837 pcpcc = &g + (g ? g-g : 0);
8838 /* HPUX 7.0 cc rejects these. */
8839 ++pcpcc;
8840 ppc = (char**) pcpcc;
8841 pcpcc = (char const *const *) ppc;
8842 { /* SCO 3.2v4 cc rejects this. */
8843 char *t;
8844 char const *s = 0 ? (char *) 0 : (char const *) 0;
8846 *t++ = 0;
8847 if (s) return 0;
8849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8850 int x[] = {25, 17};
8851 const int *foo = &x[0];
8852 ++foo;
8854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8855 typedef const int *iptr;
8856 iptr p = 0;
8857 ++p;
8859 { /* AIX XL C 1.02.0.0 rejects this saying
8860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8861 struct s { int j; const int *ap[3]; };
8862 struct s *b; b->j = 5;
8864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8865 const int foo = 10;
8866 if (!foo) return 0;
8868 return !cs[0] && !zero.x;
8869 #endif
8872 return 0;
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8877 case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8892 ac_cv_c_const=yes
8893 else
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_c_const=no
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8903 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8904 if test $ac_cv_c_const = no; then
8906 cat >>confdefs.h <<\_ACEOF
8907 #define const
8908 _ACEOF
8912 { echo "$as_me:$LINENO: checking for void * support" >&5
8913 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8914 if test "${emacs_cv_void_star+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8925 main ()
8927 void * foo;
8929 return 0;
8931 _ACEOF
8932 rm -f conftest.$ac_objext
8933 if { (ac_try="$ac_compile"
8934 case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_compile") 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && {
8946 test -z "$ac_c_werror_flag" ||
8947 test ! -s conftest.err
8948 } && test -s conftest.$ac_objext; then
8949 emacs_cv_void_star=yes
8950 else
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 emacs_cv_void_star=no
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8960 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8961 if test $emacs_cv_void_star = yes; then
8962 cat >>confdefs.h <<\_ACEOF
8963 #define POINTER_TYPE void
8964 _ACEOF
8966 else
8967 cat >>confdefs.h <<\_ACEOF
8968 #define POINTER_TYPE char
8969 _ACEOF
8977 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8978 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8979 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8980 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 cat >conftest.make <<\_ACEOF
8984 SHELL = /bin/sh
8985 all:
8986 @echo '@@@%%%=$(MAKE)=@@@%%%'
8987 _ACEOF
8988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8989 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8990 *@@@%%%=?*=@@@%%%*)
8991 eval ac_cv_prog_make_${ac_make}_set=yes;;
8993 eval ac_cv_prog_make_${ac_make}_set=no;;
8994 esac
8995 rm -f conftest.make
8997 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8998 { echo "$as_me:$LINENO: result: yes" >&5
8999 echo "${ECHO_T}yes" >&6; }
9000 SET_MAKE=
9001 else
9002 { echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6; }
9004 SET_MAKE="MAKE=${MAKE-make}"
9008 { echo "$as_me:$LINENO: checking for long file names" >&5
9009 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9010 if test "${ac_cv_sys_long_file_names+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 ac_cv_sys_long_file_names=yes
9014 # Test for long file names in all the places we know might matter:
9015 # . the current directory, where building will happen
9016 # $prefix/lib where we will be installing things
9017 # $exec_prefix/lib likewise
9018 # $TMPDIR if set, where it might want to write temporary files
9019 # /tmp where it might want to write temporary files
9020 # /var/tmp likewise
9021 # /usr/tmp likewise
9022 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9023 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9024 # in the usual case where exec_prefix is '${prefix}'.
9025 case $ac_dir in #(
9026 . | /* | ?:[\\/]*) ;; #(
9027 *) continue;;
9028 esac
9029 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9030 ac_xdir=$ac_dir/cf$$
9031 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9032 ac_tf1=$ac_xdir/conftest9012345
9033 ac_tf2=$ac_xdir/conftest9012346
9034 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9035 ac_cv_sys_long_file_names=no
9036 rm -f -r "$ac_xdir" 2>/dev/null
9037 test $ac_cv_sys_long_file_names = no && break
9038 done
9040 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9041 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9042 if test $ac_cv_sys_long_file_names = yes; then
9044 cat >>confdefs.h <<\_ACEOF
9045 #define HAVE_LONG_FILE_NAMES 1
9046 _ACEOF
9051 #### Choose a window system.
9053 { echo "$as_me:$LINENO: checking for X" >&5
9054 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9057 # Check whether --with-x was given.
9058 if test "${with_x+set}" = set; then
9059 withval=$with_x;
9062 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9063 if test "x$with_x" = xno; then
9064 # The user explicitly disabled X.
9065 have_x=disabled
9066 else
9067 case $x_includes,$x_libraries in #(
9068 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9069 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9070 { (exit 1); exit 1; }; };; #(
9071 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 # One or both of the vars are not set, and there is no cached value.
9075 ac_x_includes=no ac_x_libraries=no
9076 rm -f -r conftest.dir
9077 if mkdir conftest.dir; then
9078 cd conftest.dir
9079 cat >Imakefile <<'_ACEOF'
9080 incroot:
9081 @echo incroot='${INCROOT}'
9082 usrlibdir:
9083 @echo usrlibdir='${USRLIBDIR}'
9084 libdir:
9085 @echo libdir='${LIBDIR}'
9086 _ACEOF
9087 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9088 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9089 for ac_var in incroot usrlibdir libdir; do
9090 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9091 done
9092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9093 for ac_extension in a so sl; do
9094 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9095 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9096 ac_im_usrlibdir=$ac_im_libdir; break
9098 done
9099 # Screen out bogus values from the imake configuration. They are
9100 # bogus both because they are the default anyway, and because
9101 # using them would break gcc on systems where it needs fixed includes.
9102 case $ac_im_incroot in
9103 /usr/include) ac_x_includes= ;;
9104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9105 esac
9106 case $ac_im_usrlibdir in
9107 /usr/lib | /lib) ;;
9108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9109 esac
9111 cd ..
9112 rm -f -r conftest.dir
9115 # Standard set of common directories for X headers.
9116 # Check X11 before X11Rn because it is often a symlink to the current release.
9117 ac_x_header_dirs='
9118 /usr/X11/include
9119 /usr/X11R6/include
9120 /usr/X11R5/include
9121 /usr/X11R4/include
9123 /usr/include/X11
9124 /usr/include/X11R6
9125 /usr/include/X11R5
9126 /usr/include/X11R4
9128 /usr/local/X11/include
9129 /usr/local/X11R6/include
9130 /usr/local/X11R5/include
9131 /usr/local/X11R4/include
9133 /usr/local/include/X11
9134 /usr/local/include/X11R6
9135 /usr/local/include/X11R5
9136 /usr/local/include/X11R4
9138 /usr/X386/include
9139 /usr/x386/include
9140 /usr/XFree86/include/X11
9142 /usr/include
9143 /usr/local/include
9144 /usr/unsupported/include
9145 /usr/athena/include
9146 /usr/local/x11r5/include
9147 /usr/lpp/Xamples/include
9149 /usr/openwin/include
9150 /usr/openwin/share/include'
9152 if test "$ac_x_includes" = no; then
9153 # Guess where to find include files, by looking for Xlib.h.
9154 # First, try using that file with no special directory specified.
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include <X11/Xlib.h>
9162 _ACEOF
9163 if { (ac_try="$ac_cpp conftest.$ac_ext"
9164 case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } >/dev/null && {
9176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 }; then
9179 # We can compile using X headers with no special include directory.
9180 ac_x_includes=
9181 else
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9185 for ac_dir in $ac_x_header_dirs; do
9186 if test -r "$ac_dir/X11/Xlib.h"; then
9187 ac_x_includes=$ac_dir
9188 break
9190 done
9193 rm -f conftest.err conftest.$ac_ext
9194 fi # $ac_x_includes = no
9196 if test "$ac_x_libraries" = no; then
9197 # Check for the libraries.
9198 # See if we find them without any special options.
9199 # Don't add to $LIBS permanently.
9200 ac_save_LIBS=$LIBS
9201 LIBS="-lX11 $LIBS"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <X11/Xlib.h>
9210 main ()
9212 XrmInitialize ()
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (ac_try="$ac_link"
9219 case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222 esac
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_link") 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest$ac_exeext &&
9234 $as_test_x conftest$ac_exeext; then
9235 LIBS=$ac_save_LIBS
9236 # We can link X programs with no special library path.
9237 ac_x_libraries=
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 LIBS=$ac_save_LIBS
9243 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9245 # Don't even attempt the hair of trying to link an X program!
9246 for ac_extension in a so sl; do
9247 if test -r "$ac_dir/libX11.$ac_extension"; then
9248 ac_x_libraries=$ac_dir
9249 break 2
9251 done
9252 done
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256 conftest$ac_exeext conftest.$ac_ext
9257 fi # $ac_x_libraries = no
9259 case $ac_x_includes,$ac_x_libraries in #(
9260 no,* | *,no | *\'*)
9261 # Didn't find X, or a directory has "'" in its name.
9262 ac_cv_have_x="have_x=no";; #(
9264 # Record where we found X for the cache.
9265 ac_cv_have_x="have_x=yes\
9266 ac_x_includes='$ac_x_includes'\
9267 ac_x_libraries='$ac_x_libraries'"
9268 esac
9270 ;; #(
9271 *) have_x=yes;;
9272 esac
9273 eval "$ac_cv_have_x"
9274 fi # $with_x != no
9276 if test "$have_x" != yes; then
9277 { echo "$as_me:$LINENO: result: $have_x" >&5
9278 echo "${ECHO_T}$have_x" >&6; }
9279 no_x=yes
9280 else
9281 # If each of the values was on the command line, it overrides each guess.
9282 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9283 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9284 # Update the cache value to reflect the command line values.
9285 ac_cv_have_x="have_x=yes\
9286 ac_x_includes='$x_includes'\
9287 ac_x_libraries='$x_libraries'"
9288 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9289 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9292 if test "$no_x" = yes; then
9293 window_system=none
9294 else
9295 window_system=x11
9298 if test "${x_libraries}" != NONE; then
9299 if test -n "${x_libraries}"; then
9300 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9301 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9303 x_default_search_path=""
9304 x_search_path=${x_libraries}
9305 if test -z "${x_search_path}"; then
9306 x_search_path=/usr/lib
9308 for x_library in `echo ${x_search_path}: | \
9309 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9310 x_search_path="\
9311 ${x_library}/X11/%L/%T/%N%C%S:\
9312 ${x_library}/X11/%l/%T/%N%C%S:\
9313 ${x_library}/X11/%T/%N%C%S:\
9314 ${x_library}/X11/%L/%T/%N%S:\
9315 ${x_library}/X11/%l/%T/%N%S:\
9316 ${x_library}/X11/%T/%N%S"
9317 if test x"${x_default_search_path}" = x; then
9318 x_default_search_path=${x_search_path}
9319 else
9320 x_default_search_path="${x_search_path}:${x_default_search_path}"
9322 done
9324 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9325 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9328 if test x"${x_includes}" = x; then
9329 bitmapdir=/usr/include/X11/bitmaps
9330 else
9331 # accumulate include directories that have X11 bitmap subdirectories
9332 bmd_acc="dummyval"
9333 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9334 if test -d "${bmd}/X11/bitmaps"; then
9335 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9337 if test -d "${bmd}/bitmaps"; then
9338 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9340 done
9341 if test ${bmd_acc} != "dummyval"; then
9342 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9346 HAVE_CARBON=no
9347 if test "${with_carbon}" != no; then
9348 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9349 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9350 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9351 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9355 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9356 else
9357 # Is the header compilable?
9358 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9359 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 $ac_includes_default
9367 #include <Carbon/Carbon.h>
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9371 case "(($ac_try" in
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9386 ac_header_compiler=yes
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_header_compiler=no
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6; }
9398 # Is the header present?
9399 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9400 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <Carbon/Carbon.h>
9408 _ACEOF
9409 if { (ac_try="$ac_cpp conftest.$ac_ext"
9410 case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } >/dev/null && {
9422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 }; then
9425 ac_header_preproc=yes
9426 else
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_header_preproc=no
9433 rm -f conftest.err conftest.$ac_ext
9434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9435 echo "${ECHO_T}$ac_header_preproc" >&6; }
9437 # So? What about this header?
9438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9439 yes:no: )
9440 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9441 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9443 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9444 ac_header_preproc=yes
9446 no:yes:* )
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9461 esac
9462 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9463 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9464 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9469 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9470 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9473 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9474 HAVE_CARBON=yes
9479 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9480 if test "${with_carbon+set}" != set \
9481 && test "${carbon_appdir_x+set}" != set; then
9482 for var in with_x with_x_toolkit with_gtk with_xim \
9483 with_xpm with_jpeg with_tiff with_gif with_png; do
9484 if eval test \"\${$var+set}\" = set; then
9485 HAVE_CARBON=no
9486 break
9488 done
9491 if test "${HAVE_CARBON}" = yes; then
9492 window_system=mac
9495 case "${window_system}" in
9496 x11 )
9497 HAVE_X_WINDOWS=yes
9498 HAVE_X11=yes
9499 case "${with_x_toolkit}" in
9500 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9501 motif ) USE_X_TOOLKIT=MOTIF ;;
9502 gtk ) with_gtk=yes
9503 USE_X_TOOLKIT=none ;;
9504 no ) USE_X_TOOLKIT=none ;;
9505 * ) USE_X_TOOLKIT=maybe ;;
9506 esac
9508 mac | none )
9509 HAVE_X_WINDOWS=no
9510 HAVE_X11=no
9511 USE_X_TOOLKIT=none
9513 esac
9515 ### If we're using X11, we should use the X menu package.
9516 HAVE_MENUS=no
9517 case ${HAVE_X11} in
9518 yes ) HAVE_MENUS=yes ;;
9519 esac
9521 if test "${opsys}" = "hpux9"; then
9522 case "${x_libraries}" in
9523 *X11R4* )
9524 opsysfile="s/hpux9-x11r4.h"
9526 esac
9529 if test "${opsys}" = "hpux9shr"; then
9530 case "${x_libraries}" in
9531 *X11R4* )
9532 opsysfile="s/hpux9shxr4.h"
9534 esac
9537 ### Compute the unexec source name from the object name.
9538 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9540 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9541 # Assume not, until told otherwise.
9542 GNU_MALLOC=yes
9543 doug_lea_malloc=yes
9544 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9545 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9546 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9557 #define malloc_get_state innocuous_malloc_get_state
9559 /* System header to define __stub macros and hopefully few prototypes,
9560 which can conflict with char malloc_get_state (); below.
9561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562 <limits.h> exists even on freestanding compilers. */
9564 #ifdef __STDC__
9565 # include <limits.h>
9566 #else
9567 # include <assert.h>
9568 #endif
9570 #undef malloc_get_state
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 char malloc_get_state ();
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9583 choke me
9584 #endif
9587 main ()
9589 return malloc_get_state ();
9591 return 0;
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext &&
9611 $as_test_x conftest$ac_exeext; then
9612 ac_cv_func_malloc_get_state=yes
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_func_malloc_get_state=no
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9624 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9625 if test $ac_cv_func_malloc_get_state = yes; then
9627 else
9628 doug_lea_malloc=no
9631 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9632 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9633 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9644 #define malloc_set_state innocuous_malloc_set_state
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char malloc_set_state (); below.
9648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649 <limits.h> exists even on freestanding compilers. */
9651 #ifdef __STDC__
9652 # include <limits.h>
9653 #else
9654 # include <assert.h>
9655 #endif
9657 #undef malloc_set_state
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 char malloc_set_state ();
9666 /* The GNU C library defines this for functions which it implements
9667 to always fail with ENOSYS. Some functions are actually named
9668 something starting with __ and the normal name is an alias. */
9669 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9670 choke me
9671 #endif
9674 main ()
9676 return malloc_set_state ();
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 ac_cv_func_malloc_set_state=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_func_malloc_set_state=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9710 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9711 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9712 if test $ac_cv_func_malloc_set_state = yes; then
9714 else
9715 doug_lea_malloc=no
9718 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9719 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9720 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 extern void (* __after_morecore_hook)();
9731 main ()
9733 __after_morecore_hook = 0
9735 return 0;
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9740 case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext &&
9755 $as_test_x conftest$ac_exeext; then
9756 emacs_cv_var___after_morecore_hook=yes
9757 else
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 emacs_cv_var___after_morecore_hook=no
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765 conftest$ac_exeext conftest.$ac_ext
9767 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9768 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9769 if test $emacs_cv_var___after_morecore_hook = no; then
9770 doug_lea_malloc=no
9772 if test "${system_malloc}" = "yes"; then
9773 GNU_MALLOC=no
9774 GNU_MALLOC_reason="
9775 (The GNU allocators don't work with this system configuration.)"
9777 if test "$doug_lea_malloc" = "yes" ; then
9778 if test "$GNU_MALLOC" = yes ; then
9779 GNU_MALLOC_reason="
9780 (Using Doug Lea's new malloc from the GNU C Library.)"
9783 cat >>confdefs.h <<\_ACEOF
9784 #define DOUG_LEA_MALLOC 1
9785 _ACEOF
9789 if test x"${REL_ALLOC}" = x; then
9790 REL_ALLOC=${GNU_MALLOC}
9796 for ac_header in stdlib.h unistd.h
9798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 ac_res=`eval echo '${'$as_ac_Header'}'`
9806 { echo "$as_me:$LINENO: result: $ac_res" >&5
9807 echo "${ECHO_T}$ac_res" >&6; }
9808 else
9809 # Is the header compilable?
9810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h. */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 $ac_includes_default
9819 #include <$ac_header>
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (ac_try="$ac_compile"
9823 case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_compile") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && {
9835 test -z "$ac_c_werror_flag" ||
9836 test ! -s conftest.err
9837 } && test -s conftest.$ac_objext; then
9838 ac_header_compiler=yes
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_header_compiler=no
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848 echo "${ECHO_T}$ac_header_compiler" >&6; }
9850 # Is the header present?
9851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 #include <$ac_header>
9860 _ACEOF
9861 if { (ac_try="$ac_cpp conftest.$ac_ext"
9862 case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } >/dev/null && {
9874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9876 }; then
9877 ac_header_preproc=yes
9878 else
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_header_preproc=no
9885 rm -f conftest.err conftest.$ac_ext
9886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9887 echo "${ECHO_T}$ac_header_preproc" >&6; }
9889 # So? What about this header?
9890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9891 yes:no: )
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9896 ac_header_preproc=yes
9898 no:yes:* )
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9913 esac
9914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 eval "$as_ac_Header=\$ac_header_preproc"
9921 ac_res=`eval echo '${'$as_ac_Header'}'`
9922 { echo "$as_me:$LINENO: result: $ac_res" >&5
9923 echo "${ECHO_T}$ac_res" >&6; }
9926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9929 _ACEOF
9933 done
9936 for ac_func in getpagesize
9938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9952 #define $ac_func innocuous_$ac_func
9954 /* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char $ac_func (); below.
9956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957 <limits.h> exists even on freestanding compilers. */
9959 #ifdef __STDC__
9960 # include <limits.h>
9961 #else
9962 # include <assert.h>
9963 #endif
9965 #undef $ac_func
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970 #ifdef __cplusplus
9971 extern "C"
9972 #endif
9973 char $ac_func ();
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined __stub_$ac_func || defined __stub___$ac_func
9978 choke me
9979 #endif
9982 main ()
9984 return $ac_func ();
9986 return 0;
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9991 case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest$ac_exeext &&
10006 $as_test_x conftest$ac_exeext; then
10007 eval "$as_ac_var=yes"
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 eval "$as_ac_var=no"
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10018 ac_res=`eval echo '${'$as_ac_var'}'`
10019 { echo "$as_me:$LINENO: result: $ac_res" >&5
10020 echo "${ECHO_T}$ac_res" >&6; }
10021 if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 _ACEOF
10027 done
10029 { echo "$as_me:$LINENO: checking for working mmap" >&5
10030 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10031 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 if test "$cross_compiling" = yes; then
10035 ac_cv_func_mmap_fixed_mapped=no
10036 else
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 $ac_includes_default
10044 /* malloc might have been renamed as rpl_malloc. */
10045 #undef malloc
10047 /* Thanks to Mike Haertel and Jim Avera for this test.
10048 Here is a matrix of mmap possibilities:
10049 mmap private not fixed
10050 mmap private fixed at somewhere currently unmapped
10051 mmap private fixed at somewhere already mapped
10052 mmap shared not fixed
10053 mmap shared fixed at somewhere currently unmapped
10054 mmap shared fixed at somewhere already mapped
10055 For private mappings, we should verify that changes cannot be read()
10056 back from the file, nor mmap's back from the file at a different
10057 address. (There have been systems where private was not correctly
10058 implemented like the infamous i386 svr4.0, and systems where the
10059 VM page cache was not coherent with the file system buffer cache
10060 like early versions of FreeBSD and possibly contemporary NetBSD.)
10061 For shared mappings, we should conversely verify that changes get
10062 propagated back to all the places they're supposed to be.
10064 Grep wants private fixed already mapped.
10065 The main things grep needs to know about mmap are:
10066 * does it exist and is it safe to write into the mmap'd area
10067 * how to use it (BSD variants) */
10069 #include <fcntl.h>
10070 #include <sys/mman.h>
10072 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10073 char *malloc ();
10074 #endif
10076 /* This mess was copied from the GNU getpagesize.h. */
10077 #ifndef HAVE_GETPAGESIZE
10078 /* Assume that all systems that can run configure have sys/param.h. */
10079 # ifndef HAVE_SYS_PARAM_H
10080 # define HAVE_SYS_PARAM_H 1
10081 # endif
10083 # ifdef _SC_PAGESIZE
10084 # define getpagesize() sysconf(_SC_PAGESIZE)
10085 # else /* no _SC_PAGESIZE */
10086 # ifdef HAVE_SYS_PARAM_H
10087 # include <sys/param.h>
10088 # ifdef EXEC_PAGESIZE
10089 # define getpagesize() EXEC_PAGESIZE
10090 # else /* no EXEC_PAGESIZE */
10091 # ifdef NBPG
10092 # define getpagesize() NBPG * CLSIZE
10093 # ifndef CLSIZE
10094 # define CLSIZE 1
10095 # endif /* no CLSIZE */
10096 # else /* no NBPG */
10097 # ifdef NBPC
10098 # define getpagesize() NBPC
10099 # else /* no NBPC */
10100 # ifdef PAGESIZE
10101 # define getpagesize() PAGESIZE
10102 # endif /* PAGESIZE */
10103 # endif /* no NBPC */
10104 # endif /* no NBPG */
10105 # endif /* no EXEC_PAGESIZE */
10106 # else /* no HAVE_SYS_PARAM_H */
10107 # define getpagesize() 8192 /* punt totally */
10108 # endif /* no HAVE_SYS_PARAM_H */
10109 # endif /* no _SC_PAGESIZE */
10111 #endif /* no HAVE_GETPAGESIZE */
10114 main ()
10116 char *data, *data2, *data3;
10117 int i, pagesize;
10118 int fd;
10120 pagesize = getpagesize ();
10122 /* First, make a file with some known garbage in it. */
10123 data = (char *) malloc (pagesize);
10124 if (!data)
10125 return 1;
10126 for (i = 0; i < pagesize; ++i)
10127 *(data + i) = rand ();
10128 umask (0);
10129 fd = creat ("conftest.mmap", 0600);
10130 if (fd < 0)
10131 return 1;
10132 if (write (fd, data, pagesize) != pagesize)
10133 return 1;
10134 close (fd);
10136 /* Next, try to mmap the file at a fixed address which already has
10137 something else allocated at it. If we can, also make sure that
10138 we see the same garbage. */
10139 fd = open ("conftest.mmap", O_RDWR);
10140 if (fd < 0)
10141 return 1;
10142 data2 = (char *) malloc (2 * pagesize);
10143 if (!data2)
10144 return 1;
10145 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10146 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10147 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10148 return 1;
10149 for (i = 0; i < pagesize; ++i)
10150 if (*(data + i) != *(data2 + i))
10151 return 1;
10153 /* Finally, make sure that changes to the mapped area do not
10154 percolate back to the file as seen by read(). (This is a bug on
10155 some variants of i386 svr4.0.) */
10156 for (i = 0; i < pagesize; ++i)
10157 *(data2 + i) = *(data2 + i) + 1;
10158 data3 = (char *) malloc (pagesize);
10159 if (!data3)
10160 return 1;
10161 if (read (fd, data3, pagesize) != pagesize)
10162 return 1;
10163 for (i = 0; i < pagesize; ++i)
10164 if (*(data + i) != *(data3 + i))
10165 return 1;
10166 close (fd);
10167 return 0;
10169 _ACEOF
10170 rm -f conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10181 { (case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_try") 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_cv_func_mmap_fixed_mapped=yes
10191 else
10192 echo "$as_me: program exited with status $ac_status" >&5
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ( exit $ac_status )
10197 ac_cv_func_mmap_fixed_mapped=no
10199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10204 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10205 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10206 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_MMAP 1
10210 _ACEOF
10213 rm -f conftest.mmap
10215 if test $use_mmap_for_buffers = yes; then
10216 REL_ALLOC=no
10219 LIBS="$libsrc_libs $LIBS"
10222 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10223 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10224 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-ldnet $LIBS"
10229 cat >conftest.$ac_ext <<_ACEOF
10230 /* confdefs.h. */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 char dnet_ntoa ();
10244 main ()
10246 return dnet_ntoa ();
10248 return 0;
10250 _ACEOF
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_link") 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && {
10265 test -z "$ac_c_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest$ac_exeext &&
10268 $as_test_x conftest$ac_exeext; then
10269 ac_cv_lib_dnet_dnet_ntoa=yes
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_lib_dnet_dnet_ntoa=no
10277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10282 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10283 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10284 cat >>confdefs.h <<_ACEOF
10285 #define HAVE_LIBDNET 1
10286 _ACEOF
10288 LIBS="-ldnet $LIBS"
10293 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10294 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10295 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-lXbsd $LIBS"
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10309 main ()
10311 return main ();
10313 return 0;
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321 esac
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_link") 2>conftest.er1
10324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } && {
10330 test -z "$ac_c_werror_flag" ||
10331 test ! -s conftest.err
10332 } && test -s conftest$ac_exeext &&
10333 $as_test_x conftest$ac_exeext; then
10334 ac_cv_lib_Xbsd_main=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_lib_Xbsd_main=no
10342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10346 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10347 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10348 if test $ac_cv_lib_Xbsd_main = yes; then
10349 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10354 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10355 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10356 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lpthreads $LIBS"
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10371 #ifdef __cplusplus
10372 extern "C"
10373 #endif
10374 char cma_open ();
10376 main ()
10378 return cma_open ();
10380 return 0;
10382 _ACEOF
10383 rm -f conftest.$ac_objext conftest$ac_exeext
10384 if { (ac_try="$ac_link"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_link") 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest$ac_exeext &&
10400 $as_test_x conftest$ac_exeext; then
10401 ac_cv_lib_pthreads_cma_open=yes
10402 else
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_cv_lib_pthreads_cma_open=no
10409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LIBS=$ac_check_lib_save_LIBS
10413 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10414 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10415 if test $ac_cv_lib_pthreads_cma_open = yes; then
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_LIBPTHREADS 1
10418 _ACEOF
10420 LIBS="-lpthreads $LIBS"
10425 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10426 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10427 if test -d /usr/X386/include; then
10428 HAVE_XFREE386=yes
10429 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10430 else
10431 HAVE_XFREE386=no
10433 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10434 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10437 case ${host_os} in
10438 aix*)
10439 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10440 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10441 if test "${gdb_cv_bigtoc+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10445 case $GCC in
10446 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10447 *) gdb_cv_bigtoc=-bbigtoc ;;
10448 esac
10450 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h. */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10459 main ()
10461 int i;
10463 return 0;
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_link") 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest$ac_exeext &&
10483 $as_test_x conftest$ac_exeext; then
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 gdb_cv_bigtoc=
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10496 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10497 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10499 esac
10501 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10502 # used for the tests that follow. We set them back to REAL_CFLAGS and
10503 # REAL_CPPFLAGS later on.
10505 REAL_CPPFLAGS="$CPPFLAGS"
10507 if test "${HAVE_X11}" = "yes"; then
10508 DEFS="$C_SWITCH_X_SITE $DEFS"
10509 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10510 LIBS="$LIBX $LIBS"
10511 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10512 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10514 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10515 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10516 # but it's more convenient here to set LD_RUN_PATH
10517 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10518 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10519 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10520 export LD_RUN_PATH
10523 if test "${opsys}" = "gnu-linux"; then
10524 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10525 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10534 main ()
10536 XOpenDisplay ("foo");
10538 return 0;
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest$ac_exeext &&
10558 $as_test_x conftest$ac_exeext; then
10559 xlinux_first_failure=no
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 xlinux_first_failure=yes
10567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10568 conftest$ac_exeext conftest.$ac_ext
10569 if test "${xlinux_first_failure}" = "yes"; then
10570 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10571 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10572 OLD_CPPFLAGS="$CPPFLAGS"
10573 OLD_LIBS="$LIBS"
10574 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10575 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10576 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10577 LIBS="$LIBS -b i486-linuxaout"
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10586 main ()
10588 XOpenDisplay ("foo");
10590 return 0;
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 xlinux_second_failure=no
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 xlinux_second_failure=yes
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10621 if test "${xlinux_second_failure}" = "yes"; then
10622 # If we get the same failure with -b, there is no use adding -b.
10623 # So take it out. This plays safe.
10624 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10625 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10626 CPPFLAGS="$OLD_CPPFLAGS"
10627 LIBS="$OLD_LIBS"
10628 { echo "$as_me:$LINENO: result: no" >&5
10629 echo "${ECHO_T}no" >&6; }
10630 else
10631 { echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6; }
10634 else
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10640 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10641 # header files included from there.
10642 { echo "$as_me:$LINENO: checking for Xkb" >&5
10643 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <X11/Xlib.h>
10651 #include <X11/XKBlib.h>
10653 main ()
10655 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10657 return 0;
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (ac_try="$ac_link"
10662 case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10665 esac
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_link") 2>conftest.er1
10668 ac_status=$?
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && {
10674 test -z "$ac_c_werror_flag" ||
10675 test ! -s conftest.err
10676 } && test -s conftest$ac_exeext &&
10677 $as_test_x conftest$ac_exeext; then
10678 emacs_xkb=yes
10679 else
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 emacs_xkb=no
10686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10687 conftest$ac_exeext conftest.$ac_ext
10688 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10689 echo "${ECHO_T}$emacs_xkb" >&6; }
10690 if test $emacs_xkb = yes; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define HAVE_XKBGETKEYBOARD 1
10694 _ACEOF
10702 for ac_func in XrmSetDatabase XScreenResourceString \
10703 XScreenNumberOfScreen XSetWMProtocols
10705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10719 #define $ac_func innocuous_$ac_func
10721 /* System header to define __stub macros and hopefully few prototypes,
10722 which can conflict with char $ac_func (); below.
10723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10724 <limits.h> exists even on freestanding compilers. */
10726 #ifdef __STDC__
10727 # include <limits.h>
10728 #else
10729 # include <assert.h>
10730 #endif
10732 #undef $ac_func
10734 /* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10737 #ifdef __cplusplus
10738 extern "C"
10739 #endif
10740 char $ac_func ();
10741 /* The GNU C library defines this for functions which it implements
10742 to always fail with ENOSYS. Some functions are actually named
10743 something starting with __ and the normal name is an alias. */
10744 #if defined __stub_$ac_func || defined __stub___$ac_func
10745 choke me
10746 #endif
10749 main ()
10751 return $ac_func ();
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (ac_try="$ac_link"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_link") 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext &&
10773 $as_test_x conftest$ac_exeext; then
10774 eval "$as_ac_var=yes"
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 eval "$as_ac_var=no"
10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10785 ac_res=`eval echo '${'$as_ac_var'}'`
10786 { echo "$as_me:$LINENO: result: $ac_res" >&5
10787 echo "${ECHO_T}$ac_res" >&6; }
10788 if test `eval echo '${'$as_ac_var'}'` = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10791 _ACEOF
10794 done
10798 if test "${window_system}" = "x11"; then
10799 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10800 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10801 if test "${emacs_cv_x11_version_6+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <X11/Xlib.h>
10812 main ()
10814 #if XlibSpecificationRelease < 6
10815 fail;
10816 #endif
10819 return 0;
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest$ac_exeext &&
10839 $as_test_x conftest$ac_exeext; then
10840 emacs_cv_x11_version_6=yes
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10845 emacs_cv_x11_version_6=no
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10852 if test $emacs_cv_x11_version_6 = yes; then
10853 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10854 echo "${ECHO_T}6 or newer" >&6; }
10856 cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_X11R6 1
10858 _ACEOF
10860 else
10861 { echo "$as_me:$LINENO: result: before 6" >&5
10862 echo "${ECHO_T}before 6" >&6; }
10866 if test "${window_system}" = "x11"; then
10867 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10868 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10869 if test "${emacs_cv_x11_version_5+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <X11/Xlib.h>
10880 main ()
10882 #if XlibSpecificationRelease < 5
10883 fail;
10884 #endif
10887 return 0;
10889 _ACEOF
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 emacs_cv_x11_version_5=yes
10909 else
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 emacs_cv_x11_version_5=no
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10920 if test $emacs_cv_x11_version_5 = yes; then
10921 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10922 echo "${ECHO_T}5 or newer" >&6; }
10923 HAVE_X11R5=yes
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_X11R5 1
10927 _ACEOF
10929 else
10930 HAVE_X11R5=no
10931 { echo "$as_me:$LINENO: result: before 5" >&5
10932 echo "${ECHO_T}before 5" >&6; }
10936 HAVE_GTK=no
10937 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10938 USE_X_TOOLKIT=none
10940 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10941 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10942 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10943 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10944 { (exit 1); exit 1; }; };
10946 GLIB_REQUIRED=2.6
10947 GTK_REQUIRED=2.6
10948 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10950 if test "X${with_pkg_config_prog}" != X; then
10951 PKG_CONFIG="${with_pkg_config_prog}"
10954 succeeded=no
10956 if test -z "$PKG_CONFIG"; then
10957 # Extract the first word of "pkg-config", so it can be a program name with args.
10958 set dummy pkg-config; ac_word=$2
10959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 case $PKG_CONFIG in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10980 done
10981 done
10982 IFS=$as_save_IFS
10984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10986 esac
10988 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10989 if test -n "$PKG_CONFIG"; then
10990 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10991 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10992 else
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
11000 if test "$PKG_CONFIG" = "no" ; then
11001 { { echo "$as_me:$LINENO: error:
11002 *** 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
11003 echo "$as_me: 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." >&2;}
11005 { (exit 1); exit 1; }; }
11006 else
11007 PKG_CONFIG_MIN_VERSION=0.9.0
11008 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11009 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11010 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11012 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11013 { echo "$as_me:$LINENO: result: yes" >&5
11014 echo "${ECHO_T}yes" >&6; }
11015 succeeded=yes
11017 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11018 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11019 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11020 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11021 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11023 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11024 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11025 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11026 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11027 echo "${ECHO_T}$GTK_LIBS" >&6; }
11028 else
11029 { echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6; }
11031 GTK_CFLAGS=""
11032 GTK_LIBS=""
11033 ## If we have a custom action on failure, don't print errors, but
11034 ## do set a variable so people can do so.
11035 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11036 echo $GTK_PKG_ERRORS
11041 else
11042 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11043 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11047 if test $succeeded = yes; then
11049 else
11050 { { 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
11051 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;}
11052 { (exit 1); exit 1; }; }
11057 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11058 CFLAGS="$CFLAGS $GTK_CFLAGS"
11059 LIBS="$GTK_LIBS $LIBS"
11060 GTK_COMPILES=no
11062 for ac_func in gtk_main
11064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11078 #define $ac_func innocuous_$ac_func
11080 /* System header to define __stub macros and hopefully few prototypes,
11081 which can conflict with char $ac_func (); below.
11082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11083 <limits.h> exists even on freestanding compilers. */
11085 #ifdef __STDC__
11086 # include <limits.h>
11087 #else
11088 # include <assert.h>
11089 #endif
11091 #undef $ac_func
11093 /* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 char $ac_func ();
11100 /* The GNU C library defines this for functions which it implements
11101 to always fail with ENOSYS. Some functions are actually named
11102 something starting with __ and the normal name is an alias. */
11103 #if defined __stub_$ac_func || defined __stub___$ac_func
11104 choke me
11105 #endif
11108 main ()
11110 return $ac_func ();
11112 return 0;
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (ac_try="$ac_link"
11117 case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120 esac
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_link") 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest$ac_exeext &&
11132 $as_test_x conftest$ac_exeext; then
11133 eval "$as_ac_var=yes"
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 eval "$as_ac_var=no"
11141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11142 conftest$ac_exeext conftest.$ac_ext
11144 ac_res=`eval echo '${'$as_ac_var'}'`
11145 { echo "$as_me:$LINENO: result: $ac_res" >&5
11146 echo "${ECHO_T}$ac_res" >&6; }
11147 if test `eval echo '${'$as_ac_var'}'` = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 _ACEOF
11151 GTK_COMPILES=yes
11153 done
11155 if test "${GTK_COMPILES}" != "yes"; then
11156 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11157 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11158 { (exit 1); exit 1; }; };
11161 HAVE_GTK=yes
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_GTK 1
11165 _ACEOF
11167 USE_X_TOOLKIT=none
11169 if test "$with_toolkit_scroll_bars" != no; then
11170 with_toolkit_scroll_bars=yes
11173 HAVE_GTK_MULTIDISPLAY=no
11175 for ac_func in gdk_display_open
11177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11191 #define $ac_func innocuous_$ac_func
11193 /* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char $ac_func (); below.
11195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11196 <limits.h> exists even on freestanding compilers. */
11198 #ifdef __STDC__
11199 # include <limits.h>
11200 #else
11201 # include <assert.h>
11202 #endif
11204 #undef $ac_func
11206 /* Override any GCC internal prototype to avoid an error.
11207 Use char because int might match the return type of a GCC
11208 builtin and then its argument prototype would still apply. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 #endif
11212 char $ac_func ();
11213 /* The GNU C library defines this for functions which it implements
11214 to always fail with ENOSYS. Some functions are actually named
11215 something starting with __ and the normal name is an alias. */
11216 #if defined __stub_$ac_func || defined __stub___$ac_func
11217 choke me
11218 #endif
11221 main ()
11223 return $ac_func ();
11225 return 0;
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_link") 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && {
11242 test -z "$ac_c_werror_flag" ||
11243 test ! -s conftest.err
11244 } && test -s conftest$ac_exeext &&
11245 $as_test_x conftest$ac_exeext; then
11246 eval "$as_ac_var=yes"
11247 else
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 eval "$as_ac_var=no"
11254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11255 conftest$ac_exeext conftest.$ac_ext
11257 ac_res=`eval echo '${'$as_ac_var'}'`
11258 { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11260 if test `eval echo '${'$as_ac_var'}'` = yes; then
11261 cat >>confdefs.h <<_ACEOF
11262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11263 _ACEOF
11264 HAVE_GTK_MULTIDISPLAY=yes
11266 done
11268 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GTK_MULTIDISPLAY 1
11272 _ACEOF
11275 HAVE_GTK_FILE_SELECTION=no
11277 for ac_func in gtk_file_selection_new
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define $ac_func innocuous_$ac_func
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11306 #undef $ac_func
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char $ac_func ();
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11319 choke me
11320 #endif
11323 main ()
11325 return $ac_func ();
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest$ac_exeext &&
11347 $as_test_x conftest$ac_exeext; then
11348 eval "$as_ac_var=yes"
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 eval "$as_ac_var=no"
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357 conftest$ac_exeext conftest.$ac_ext
11359 ac_res=`eval echo '${'$as_ac_var'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 _ACEOF
11366 HAVE_GTK_FILE_SELECTION=yes
11368 done
11371 HAVE_GTK_FILE_CHOOSER=no
11373 for ac_func in gtk_file_chooser_dialog_new
11375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h. */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11389 #define $ac_func innocuous_$ac_func
11391 /* System header to define __stub macros and hopefully few prototypes,
11392 which can conflict with char $ac_func (); below.
11393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11394 <limits.h> exists even on freestanding compilers. */
11396 #ifdef __STDC__
11397 # include <limits.h>
11398 #else
11399 # include <assert.h>
11400 #endif
11402 #undef $ac_func
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char $ac_func ();
11411 /* The GNU C library defines this for functions which it implements
11412 to always fail with ENOSYS. Some functions are actually named
11413 something starting with __ and the normal name is an alias. */
11414 #if defined __stub_$ac_func || defined __stub___$ac_func
11415 choke me
11416 #endif
11419 main ()
11421 return $ac_func ();
11423 return 0;
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (ac_try="$ac_link"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_link") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && {
11440 test -z "$ac_c_werror_flag" ||
11441 test ! -s conftest.err
11442 } && test -s conftest$ac_exeext &&
11443 $as_test_x conftest$ac_exeext; then
11444 eval "$as_ac_var=yes"
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 eval "$as_ac_var=no"
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11455 ac_res=`eval echo '${'$as_ac_var'}'`
11456 { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 echo "${ECHO_T}$ac_res" >&6; }
11458 if test `eval echo '${'$as_ac_var'}'` = yes; then
11459 cat >>confdefs.h <<_ACEOF
11460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11461 _ACEOF
11462 HAVE_GTK_FILE_CHOOSER=yes
11464 done
11467 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11468 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_GTK_FILE_BOTH 1
11472 _ACEOF
11476 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11477 HAVE_GTK_AND_PTHREAD=no
11479 for ac_header in pthread.h
11481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 ac_res=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 else
11492 # Is the header compilable?
11493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h. */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 $ac_includes_default
11502 #include <$ac_header>
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11521 ac_header_compiler=yes
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_header_compiler=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null && {
11557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 }; then
11560 ac_header_preproc=yes
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_header_preproc=no
11568 rm -f conftest.err conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6; }
11572 # So? What about this header?
11573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11574 yes:no: )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11579 ac_header_preproc=yes
11581 no:yes:* )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11596 esac
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 eval "$as_ac_Header=\$ac_header_preproc"
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11612 _ACEOF
11616 done
11618 if test "$ac_cv_header_pthread_h"; then
11619 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11620 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lpthread $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char pthread_self ();
11641 main ()
11643 return pthread_self ();
11645 return 0;
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } && {
11662 test -z "$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 } && test -s conftest$ac_exeext &&
11665 $as_test_x conftest$ac_exeext; then
11666 ac_cv_lib_pthread_pthread_self=yes
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_cv_lib_pthread_pthread_self=no
11674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11679 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11680 if test $ac_cv_lib_pthread_pthread_self = yes; then
11681 HAVE_GTK_AND_PTHREAD=yes
11685 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11686 case "${canonical}" in
11687 *-hpux*) ;;
11688 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11689 esac
11691 cat >>confdefs.h <<\_ACEOF
11692 #define HAVE_GTK_AND_PTHREAD 1
11693 _ACEOF
11699 ### Link with -lXft if available to work around a bug.
11700 HAVE_XFT=maybe
11701 if test "${HAVE_GTK}" = "yes"; then
11702 if test "X${with_pkg_config_prog}" != X; then
11703 PKG_CONFIG="${with_pkg_config_prog}"
11707 succeeded=no
11709 if test -z "$PKG_CONFIG"; then
11710 # Extract the first word of "pkg-config", so it can be a program name with args.
11711 set dummy pkg-config; ac_word=$2
11712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717 case $PKG_CONFIG in
11718 [\\/]* | ?:[\\/]*)
11719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723 for as_dir in $PATH
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 break 2
11733 done
11734 done
11735 IFS=$as_save_IFS
11737 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11739 esac
11741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11742 if test -n "$PKG_CONFIG"; then
11743 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11744 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11745 else
11746 { echo "$as_me:$LINENO: result: no" >&5
11747 echo "${ECHO_T}no" >&6; }
11753 if test "$PKG_CONFIG" = "no" ; then
11754 HAVE_XFT=no
11755 else
11756 PKG_CONFIG_MIN_VERSION=0.9.0
11757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11758 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11759 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11761 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11762 { echo "$as_me:$LINENO: result: yes" >&5
11763 echo "${ECHO_T}yes" >&6; }
11764 succeeded=yes
11766 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11767 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11768 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11769 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11770 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11772 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11773 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11774 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11775 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11776 echo "${ECHO_T}$XFT_LIBS" >&6; }
11777 else
11778 { echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6; }
11780 XFT_CFLAGS=""
11781 XFT_LIBS=""
11782 ## If we have a custom action on failure, don't print errors, but
11783 ## do set a variable so people can do so.
11784 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11790 else
11791 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11792 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11796 if test $succeeded = yes; then
11798 else
11799 HAVE_XFT=no
11802 if test "$HAVE_XFT" != no; then
11803 OLD_CFLAGS="$CPPFLAGS"
11804 OLD_CPPFLAGS="$CFLAGS"
11805 OLD_LIBS="$LIBS"
11806 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11807 CFLAGS="$CFLAGS $XFT_CFLAGS"
11808 LIBS="$XFT_LIBS $LIBS"
11809 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11810 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11811 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11812 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11816 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11817 else
11818 # Is the header compilable?
11819 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11820 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11828 #include <X11/Xft/Xft.h>
11829 _ACEOF
11830 rm -f conftest.$ac_objext
11831 if { (ac_try="$ac_compile"
11832 case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_compile") 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest.$ac_objext; then
11847 ac_header_compiler=yes
11848 else
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 ac_header_compiler=no
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11857 echo "${ECHO_T}$ac_header_compiler" >&6; }
11859 # Is the header present?
11860 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11861 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include <X11/Xft/Xft.h>
11869 _ACEOF
11870 if { (ac_try="$ac_cpp conftest.$ac_ext"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } >/dev/null && {
11883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 }; then
11886 ac_header_preproc=yes
11887 else
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_header_preproc=no
11894 rm -f conftest.err conftest.$ac_ext
11895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11896 echo "${ECHO_T}$ac_header_preproc" >&6; }
11898 # So? What about this header?
11899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11900 yes:no: )
11901 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11902 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11904 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11905 ac_header_preproc=yes
11907 no:yes:* )
11908 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11909 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11911 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11912 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11913 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11915 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11917 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11919 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11922 esac
11923 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11924 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11925 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11930 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11931 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11934 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11935 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11936 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11937 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940 ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-lXft $XFT_LIBS $LIBS"
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char XftFontOpen ();
11957 main ()
11959 return XftFontOpen ();
11961 return 0;
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (ac_try="$ac_link"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_link") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest$ac_exeext &&
11981 $as_test_x conftest$ac_exeext; then
11982 ac_cv_lib_Xft_XftFontOpen=yes
11983 else
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_lib_Xft_XftFontOpen=no
11990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11995 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11996 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11997 HAVE_XFT=yes
12004 if test "${HAVE_XFT}" = "yes"; then
12006 cat >>confdefs.h <<\_ACEOF
12007 #define HAVE_XFT 1
12008 _ACEOF
12011 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12012 else
12013 CFLAGS="$OLD_CPPFLAGS"
12014 CFLAGS="$OLD_CFLAGS"
12015 LIBS="$OLD_LIBS"
12020 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12021 if test x"${HAVE_X11R5}" = xyes; then
12022 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12023 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12024 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h. */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12034 #include <X11/Intrinsic.h>
12035 #include <X11/Xaw/Simple.h>
12037 main ()
12041 return 0;
12043 _ACEOF
12044 rm -f conftest.$ac_objext conftest$ac_exeext
12045 if { (ac_try="$ac_link"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_link") 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } && {
12058 test -z "$ac_c_werror_flag" ||
12059 test ! -s conftest.err
12060 } && test -s conftest$ac_exeext &&
12061 $as_test_x conftest$ac_exeext; then
12062 emacs_cv_x11_version_5_with_xaw=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 emacs_cv_x11_version_5_with_xaw=no
12070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12071 conftest$ac_exeext conftest.$ac_ext
12074 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12075 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12076 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12077 USE_X_TOOLKIT=LUCID
12078 else
12079 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12080 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12081 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12082 { (exit 1); exit 1; }; }
12083 else
12084 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12085 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12086 USE_X_TOOLKIT=none
12089 else
12090 USE_X_TOOLKIT=none
12094 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12096 if test "${USE_X_TOOLKIT}" != "none"; then
12097 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12098 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12099 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <X11/Intrinsic.h>
12110 main ()
12112 #if XtSpecificationRelease < 6
12113 fail;
12114 #endif
12117 return 0;
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest$ac_exeext &&
12137 $as_test_x conftest$ac_exeext; then
12138 emacs_cv_x11_toolkit_version_6=yes
12139 else
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 emacs_cv_x11_toolkit_version_6=no
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147 conftest$ac_exeext conftest.$ac_ext
12150 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12151 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12152 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12153 echo "${ECHO_T}6 or newer" >&6; }
12155 cat >>confdefs.h <<\_ACEOF
12156 #define HAVE_X11XTR6 1
12157 _ACEOF
12159 else
12160 { echo "$as_me:$LINENO: result: before 6" >&5
12161 echo "${ECHO_T}before 6" >&6; }
12164 OLDLIBS="$LIBS"
12165 if test x$HAVE_X11XTR6 = xyes; then
12166 LIBS="-lXt -lSM -lICE $LIBS"
12167 else
12168 LIBS="-lXt $LIBS"
12171 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12172 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12173 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176 ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-lXmu $LIBS"
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h. */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char XmuConvertStandardSelection ();
12193 main ()
12195 return XmuConvertStandardSelection ();
12197 return 0;
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest$ac_exeext &&
12217 $as_test_x conftest$ac_exeext; then
12218 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12219 else
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12230 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12231 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12232 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12233 cat >>confdefs.h <<_ACEOF
12234 #define HAVE_LIBXMU 1
12235 _ACEOF
12237 LIBS="-lXmu $LIBS"
12241 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12244 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12245 if test "${HAVE_X11}" = "yes"; then
12246 if test "${USE_X_TOOLKIT}" != "none"; then
12248 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12249 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12250 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-lXext $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char XShapeQueryExtension ();
12270 main ()
12272 return XShapeQueryExtension ();
12274 return 0;
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_link") 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } && {
12291 test -z "$ac_c_werror_flag" ||
12292 test ! -s conftest.err
12293 } && test -s conftest$ac_exeext &&
12294 $as_test_x conftest$ac_exeext; then
12295 ac_cv_lib_Xext_XShapeQueryExtension=yes
12296 else
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_cv_lib_Xext_XShapeQueryExtension=no
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12308 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12309 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12310 cat >>confdefs.h <<_ACEOF
12311 #define HAVE_LIBXEXT 1
12312 _ACEOF
12314 LIBS="-lXext $LIBS"
12321 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12322 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12323 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12324 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <Xm/Xm.h>
12335 main ()
12337 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12338 int x = 5;
12339 #else
12340 Motif version prior to 2.1.
12341 #endif
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.$ac_objext; then
12363 emacs_cv_motif_version_2_1=yes
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 emacs_cv_motif_version_2_1=no
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12374 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12375 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12376 if test $emacs_cv_motif_version_2_1 = yes; then
12377 HAVE_LIBXP=no
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAVE_MOTIF_2_1 1
12381 _ACEOF
12383 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12384 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12385 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-lXp $LIBS"
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h. */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 /* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 char XpCreateContext ();
12405 main ()
12407 return XpCreateContext ();
12409 return 0;
12411 _ACEOF
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_link") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_c_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest$ac_exeext &&
12429 $as_test_x conftest$ac_exeext; then
12430 ac_cv_lib_Xp_XpCreateContext=yes
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_lib_Xp_XpCreateContext=no
12438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12442 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12443 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12444 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12445 HAVE_LIBXP=yes
12448 if test ${HAVE_LIBXP} = yes; then
12450 cat >>confdefs.h <<\_ACEOF
12451 #define HAVE_LIBXP 1
12452 _ACEOF
12455 else
12456 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12457 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12458 if test "${emacs_cv_lesstif+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461 # We put this in CFLAGS temporarily to precede other -I options
12462 # that might be in CFLAGS temporarily.
12463 # We put this in CPPFLAGS where it precedes the other -I options.
12464 OLD_CPPFLAGS=$CPPFLAGS
12465 OLD_CFLAGS=$CFLAGS
12466 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12467 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12476 main ()
12478 int x = 5;
12480 return 0;
12482 _ACEOF
12483 rm -f conftest.$ac_objext
12484 if { (ac_try="$ac_compile"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_compile") 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } && {
12497 test -z "$ac_c_werror_flag" ||
12498 test ! -s conftest.err
12499 } && test -s conftest.$ac_objext; then
12500 emacs_cv_lesstif=yes
12501 else
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 emacs_cv_lesstif=no
12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12511 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12512 if test $emacs_cv_lesstif = yes; then
12513 # Make sure this -I option remains in CPPFLAGS after it is set
12514 # back to REAL_CPPFLAGS.
12515 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12516 # have those other -I options anyway. Ultimately, having this
12517 # directory ultimately in CPPFLAGS will be enough.
12518 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12519 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12520 else
12521 CFLAGS=$OLD_CFLAGS
12522 CPPFLAGS=$OLD_CPPFLAGS
12527 ### Is -lXaw3d available?
12528 HAVE_XAW3D=no
12529 if test "${HAVE_X11}" = "yes"; then
12530 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12531 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12532 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12533 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <X11/Xaw3d/Scrollbar.h>
12543 _ACEOF
12544 if { (ac_try="$ac_cpp conftest.$ac_ext"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } >/dev/null && {
12557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 }; then
12560 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12568 rm -f conftest.err conftest.$ac_ext
12570 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12571 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12572 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12573 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12574 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12575 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578 ac_check_lib_save_LIBS=$LIBS
12579 LIBS="-lXaw3d $LIBS"
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 char XawScrollbarSetThumb ();
12595 main ()
12597 return XawScrollbarSetThumb ();
12599 return 0;
12601 _ACEOF
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12607 esac
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_link") 2>conftest.er1
12610 ac_status=$?
12611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } && {
12616 test -z "$ac_c_werror_flag" ||
12617 test ! -s conftest.err
12618 } && test -s conftest$ac_exeext &&
12619 $as_test_x conftest$ac_exeext; then
12620 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12629 conftest$ac_exeext conftest.$ac_ext
12630 LIBS=$ac_check_lib_save_LIBS
12632 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12633 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12634 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12635 HAVE_XAW3D=yes
12641 if test "${HAVE_XAW3D}" = "yes"; then
12643 cat >>confdefs.h <<\_ACEOF
12644 #define HAVE_XAW3D 1
12645 _ACEOF
12653 USE_TOOLKIT_SCROLL_BARS=no
12654 if test "${with_toolkit_scroll_bars}" != "no"; then
12655 if test "${USE_X_TOOLKIT}" != "none"; then
12656 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define USE_TOOLKIT_SCROLL_BARS 1
12659 _ACEOF
12661 HAVE_XAW3D=no
12662 USE_TOOLKIT_SCROLL_BARS=yes
12663 elif test "${HAVE_XAW3D}" = "yes"; then
12664 cat >>confdefs.h <<\_ACEOF
12665 #define USE_TOOLKIT_SCROLL_BARS 1
12666 _ACEOF
12668 USE_TOOLKIT_SCROLL_BARS=yes
12670 elif test "${HAVE_GTK}" = "yes"; then
12671 cat >>confdefs.h <<\_ACEOF
12672 #define USE_TOOLKIT_SCROLL_BARS 1
12673 _ACEOF
12675 USE_TOOLKIT_SCROLL_BARS=yes
12676 elif test "${HAVE_CARBON}" = "yes"; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define USE_TOOLKIT_SCROLL_BARS 1
12679 _ACEOF
12681 USE_TOOLKIT_SCROLL_BARS=yes
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 #include <X11/Xlib.h>
12693 #include <X11/Xresource.h>
12695 main ()
12697 XIMProc callback;
12699 return 0;
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest.$ac_objext; then
12719 HAVE_XIM=yes
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_XIM 1
12723 _ACEOF
12725 else
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 HAVE_XIM=no
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 if test "${with_xim}" != "no"; then
12737 cat >>confdefs.h <<\_ACEOF
12738 #define USE_XIM 1
12739 _ACEOF
12744 if test "${HAVE_XIM}" != "no"; then
12745 late_CFLAGS=$CFLAGS
12746 if test "$GCC" = yes; then
12747 CFLAGS="$CFLAGS --pedantic-errors"
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h. */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12756 #include <X11/Xlib.h>
12757 #include <X11/Xresource.h>
12759 main ()
12761 Display *display;
12762 XrmDatabase db;
12763 char *res_name;
12764 char *res_class;
12765 XIMProc callback;
12766 XPointer *client_data;
12767 #ifndef __GNUC__
12768 /* If we're not using GCC, it's probably not XFree86, and this is
12769 probably right, but we can't use something like --pedantic-errors. */
12770 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12771 char*, XIMProc, XPointer*);
12772 #endif
12773 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12774 client_data);
12776 return 0;
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (ac_try="$ac_compile"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_compile") 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && {
12793 test -z "$ac_c_werror_flag" ||
12794 test ! -s conftest.err
12795 } && test -s conftest.$ac_objext; then
12796 emacs_cv_arg6_star=yes
12797 else
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 if test "$emacs_cv_arg6_star" = yes; then
12807 cat >>confdefs.h <<\_ACEOF
12808 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12809 _ACEOF
12811 else
12812 cat >>confdefs.h <<\_ACEOF
12813 #define XRegisterIMInstantiateCallback_arg6 XPointer
12814 _ACEOF
12817 CFLAGS=$late_CFLAGS
12820 ### Use -lXpm if available, unless `--with-xpm=no'.
12821 HAVE_XPM=no
12822 if test "${HAVE_X11}" = "yes"; then
12823 if test "${with_xpm}" != "no"; then
12824 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12825 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12826 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12827 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12831 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12832 else
12833 # Is the header compilable?
12834 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12835 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 $ac_includes_default
12843 #include <X11/xpm.h>
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (ac_try="$ac_compile"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_compile") 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } && {
12859 test -z "$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 } && test -s conftest.$ac_objext; then
12862 ac_header_compiler=yes
12863 else
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_header_compiler=no
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12872 echo "${ECHO_T}$ac_header_compiler" >&6; }
12874 # Is the header present?
12875 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12876 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h. */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 #include <X11/xpm.h>
12884 _ACEOF
12885 if { (ac_try="$ac_cpp conftest.$ac_ext"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null && {
12898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12899 test ! -s conftest.err
12900 }; then
12901 ac_header_preproc=yes
12902 else
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_header_preproc=no
12909 rm -f conftest.err conftest.$ac_ext
12910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12911 echo "${ECHO_T}$ac_header_preproc" >&6; }
12913 # So? What about this header?
12914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12915 yes:no: )
12916 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12917 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12919 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12920 ac_header_preproc=yes
12922 no:yes:* )
12923 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12924 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12925 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12926 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12928 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12930 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12932 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12934 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12937 esac
12938 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12939 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12940 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943 ac_cv_header_X11_xpm_h=$ac_header_preproc
12945 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12946 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12949 if test $ac_cv_header_X11_xpm_h = yes; then
12950 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12951 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12952 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955 ac_check_lib_save_LIBS=$LIBS
12956 LIBS="-lXpm -lX11 $LIBS"
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12964 /* Override any GCC internal prototype to avoid an error.
12965 Use char because int might match the return type of a GCC
12966 builtin and then its argument prototype would still apply. */
12967 #ifdef __cplusplus
12968 extern "C"
12969 #endif
12970 char XpmReadFileToPixmap ();
12972 main ()
12974 return XpmReadFileToPixmap ();
12976 return 0;
12978 _ACEOF
12979 rm -f conftest.$ac_objext conftest$ac_exeext
12980 if { (ac_try="$ac_link"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_link") 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } && {
12993 test -z "$ac_c_werror_flag" ||
12994 test ! -s conftest.err
12995 } && test -s conftest$ac_exeext &&
12996 $as_test_x conftest$ac_exeext; then
12997 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12998 else
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13006 conftest$ac_exeext conftest.$ac_ext
13007 LIBS=$ac_check_lib_save_LIBS
13009 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13010 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13011 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13012 HAVE_XPM=yes
13018 if test "${HAVE_XPM}" = "yes"; then
13019 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13020 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 #include "X11/xpm.h"
13028 #ifndef XpmReturnAllocPixels
13029 no_return_alloc_pixels
13030 #endif
13032 _ACEOF
13033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13034 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13035 HAVE_XPM=no
13036 else
13037 HAVE_XPM=yes
13039 rm -f conftest*
13042 if test "${HAVE_XPM}" = "yes"; then
13043 { echo "$as_me:$LINENO: result: yes" >&5
13044 echo "${ECHO_T}yes" >&6; }
13045 else
13046 { echo "$as_me:$LINENO: result: no" >&5
13047 echo "${ECHO_T}no" >&6; }
13052 if test "${HAVE_XPM}" = "yes"; then
13054 cat >>confdefs.h <<\_ACEOF
13055 #define HAVE_XPM 1
13056 _ACEOF
13061 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13062 HAVE_JPEG=no
13063 if test "${HAVE_X11}" = "yes"; then
13064 if test "${with_jpeg}" != "no"; then
13065 if test "${ac_cv_header_jerror_h+set}" = set; then
13066 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13067 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13068 if test "${ac_cv_header_jerror_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13072 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13073 else
13074 # Is the header compilable?
13075 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13076 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 $ac_includes_default
13084 #include <jerror.h>
13085 _ACEOF
13086 rm -f conftest.$ac_objext
13087 if { (ac_try="$ac_compile"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13103 ac_header_compiler=yes
13104 else
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_header_compiler=no
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13113 echo "${ECHO_T}$ac_header_compiler" >&6; }
13115 # Is the header present?
13116 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13117 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <jerror.h>
13125 _ACEOF
13126 if { (ac_try="$ac_cpp conftest.$ac_ext"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } >/dev/null && {
13139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13141 }; then
13142 ac_header_preproc=yes
13143 else
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_header_preproc=no
13150 rm -f conftest.err conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6; }
13154 # So? What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156 yes:no: )
13157 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc=yes
13163 no:yes:* )
13164 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13178 esac
13179 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13180 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13181 if test "${ac_cv_header_jerror_h+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 ac_cv_header_jerror_h=$ac_header_preproc
13186 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13187 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13190 if test $ac_cv_header_jerror_h = yes; then
13191 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13192 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13193 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 ac_check_lib_save_LIBS=$LIBS
13197 LIBS="-ljpeg $LIBS"
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13205 /* Override any GCC internal prototype to avoid an error.
13206 Use char because int might match the return type of a GCC
13207 builtin and then its argument prototype would still apply. */
13208 #ifdef __cplusplus
13209 extern "C"
13210 #endif
13211 char jpeg_destroy_compress ();
13213 main ()
13215 return jpeg_destroy_compress ();
13217 return 0;
13219 _ACEOF
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_link") 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } && {
13234 test -z "$ac_c_werror_flag" ||
13235 test ! -s conftest.err
13236 } && test -s conftest$ac_exeext &&
13237 $as_test_x conftest$ac_exeext; then
13238 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13239 else
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13247 conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_check_lib_save_LIBS
13250 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13251 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13252 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13253 HAVE_JPEG=yes
13262 if test "${HAVE_JPEG}" = "yes"; then
13263 cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_JPEG 1
13265 _ACEOF
13267 cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 #include <jpeglib.h>
13274 version=JPEG_LIB_VERSION
13276 _ACEOF
13277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13278 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_JPEG 1
13281 _ACEOF
13283 else
13284 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13285 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13286 HAVE_JPEG=no
13288 rm -f conftest*
13293 ### Use -lpng if available, unless `--with-png=no'.
13294 HAVE_PNG=no
13295 if test "${HAVE_X11}" = "yes"; then
13296 if test "${with_png}" != "no"; then
13297 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13298 # in /usr/include/libpng.
13301 for ac_header in png.h libpng/png.h
13303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 ac_res=`eval echo '${'$as_ac_Header'}'`
13311 { echo "$as_me:$LINENO: result: $ac_res" >&5
13312 echo "${ECHO_T}$ac_res" >&6; }
13313 else
13314 # Is the header compilable?
13315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h. */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 $ac_includes_default
13324 #include <$ac_header>
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (ac_try="$ac_compile"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_compile") 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } && {
13340 test -z "$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13342 } && test -s conftest.$ac_objext; then
13343 ac_header_compiler=yes
13344 else
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_header_compiler=no
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13353 echo "${ECHO_T}$ac_header_compiler" >&6; }
13355 # Is the header present?
13356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 #include <$ac_header>
13365 _ACEOF
13366 if { (ac_try="$ac_cpp conftest.$ac_ext"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } >/dev/null && {
13379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13380 test ! -s conftest.err
13381 }; then
13382 ac_header_preproc=yes
13383 else
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_header_preproc=no
13390 rm -f conftest.err conftest.$ac_ext
13391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13392 echo "${ECHO_T}$ac_header_preproc" >&6; }
13394 # So? What about this header?
13395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13396 yes:no: )
13397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13401 ac_header_preproc=yes
13403 no:yes:* )
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13418 esac
13419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 eval "$as_ac_Header=\$ac_header_preproc"
13426 ac_res=`eval echo '${'$as_ac_Header'}'`
13427 { echo "$as_me:$LINENO: result: $ac_res" >&5
13428 echo "${ECHO_T}$ac_res" >&6; }
13431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13432 cat >>confdefs.h <<_ACEOF
13433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13434 _ACEOF
13438 done
13440 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13441 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13442 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13443 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lpng -lz -lm $LIBS"
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13455 /* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13458 #ifdef __cplusplus
13459 extern "C"
13460 #endif
13461 char png_get_channels ();
13463 main ()
13465 return png_get_channels ();
13467 return 0;
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (ac_try="$ac_link"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_link") 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } && {
13484 test -z "$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13486 } && test -s conftest$ac_exeext &&
13487 $as_test_x conftest$ac_exeext; then
13488 ac_cv_lib_png_png_get_channels=yes
13489 else
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13493 ac_cv_lib_png_png_get_channels=no
13496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13497 conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS
13500 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13501 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13502 if test $ac_cv_lib_png_png_get_channels = yes; then
13503 HAVE_PNG=yes
13509 if test "${HAVE_PNG}" = "yes"; then
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_PNG 1
13513 _ACEOF
13518 ### Use -ltiff if available, unless `--with-tiff=no'.
13519 HAVE_TIFF=no
13520 if test "${HAVE_X11}" = "yes"; then
13521 if test "${with_tiff}" != "no"; then
13522 if test "${ac_cv_header_tiffio_h+set}" = set; then
13523 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13524 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13525 if test "${ac_cv_header_tiffio_h+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13529 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13530 else
13531 # Is the header compilable?
13532 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13533 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 $ac_includes_default
13541 #include <tiffio.h>
13542 _ACEOF
13543 rm -f conftest.$ac_objext
13544 if { (ac_try="$ac_compile"
13545 case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_compile") 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && {
13557 test -z "$ac_c_werror_flag" ||
13558 test ! -s conftest.err
13559 } && test -s conftest.$ac_objext; then
13560 ac_header_compiler=yes
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_header_compiler=no
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13570 echo "${ECHO_T}$ac_header_compiler" >&6; }
13572 # Is the header present?
13573 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13574 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13575 cat >conftest.$ac_ext <<_ACEOF
13576 /* confdefs.h. */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 #include <tiffio.h>
13582 _ACEOF
13583 if { (ac_try="$ac_cpp conftest.$ac_ext"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } >/dev/null && {
13596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13597 test ! -s conftest.err
13598 }; then
13599 ac_header_preproc=yes
13600 else
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13604 ac_header_preproc=no
13607 rm -f conftest.err conftest.$ac_ext
13608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13609 echo "${ECHO_T}$ac_header_preproc" >&6; }
13611 # So? What about this header?
13612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13613 yes:no: )
13614 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13615 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13617 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13618 ac_header_preproc=yes
13620 no:yes:* )
13621 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13622 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13624 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13625 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13626 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13628 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13630 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13632 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13635 esac
13636 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13637 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13638 if test "${ac_cv_header_tiffio_h+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641 ac_cv_header_tiffio_h=$ac_header_preproc
13643 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13644 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13647 if test $ac_cv_header_tiffio_h = yes; then
13648 tifflibs="-lz -lm"
13649 # At least one tiff package requires the jpeg library.
13650 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13651 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13652 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13653 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656 ac_check_lib_save_LIBS=$LIBS
13657 LIBS="-ltiff $tifflibs $LIBS"
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 /* Override any GCC internal prototype to avoid an error.
13666 Use char because int might match the return type of a GCC
13667 builtin and then its argument prototype would still apply. */
13668 #ifdef __cplusplus
13669 extern "C"
13670 #endif
13671 char TIFFGetVersion ();
13673 main ()
13675 return TIFFGetVersion ();
13677 return 0;
13679 _ACEOF
13680 rm -f conftest.$ac_objext conftest$ac_exeext
13681 if { (ac_try="$ac_link"
13682 case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685 esac
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_link") 2>conftest.er1
13688 ac_status=$?
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && {
13694 test -z "$ac_c_werror_flag" ||
13695 test ! -s conftest.err
13696 } && test -s conftest$ac_exeext &&
13697 $as_test_x conftest$ac_exeext; then
13698 ac_cv_lib_tiff_TIFFGetVersion=yes
13699 else
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 ac_cv_lib_tiff_TIFFGetVersion=no
13706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13707 conftest$ac_exeext conftest.$ac_ext
13708 LIBS=$ac_check_lib_save_LIBS
13710 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13711 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13712 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13713 HAVE_TIFF=yes
13721 if test "${HAVE_TIFF}" = "yes"; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_TIFF 1
13725 _ACEOF
13730 ### Use -lgif if available, unless `--with-gif=no'.
13731 HAVE_GIF=no
13732 if test "${HAVE_X11}" = "yes"; then
13733 if test "${with_gif}" != "no"; then
13734 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13735 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13736 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13737 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13741 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13742 else
13743 # Is the header compilable?
13744 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13745 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13746 cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h. */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 $ac_includes_default
13753 #include <gif_lib.h>
13754 _ACEOF
13755 rm -f conftest.$ac_objext
13756 if { (ac_try="$ac_compile"
13757 case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_compile") 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest.$ac_objext; then
13772 ac_header_compiler=yes
13773 else
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_header_compiler=no
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13782 echo "${ECHO_T}$ac_header_compiler" >&6; }
13784 # Is the header present?
13785 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13786 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <gif_lib.h>
13794 _ACEOF
13795 if { (ac_try="$ac_cpp conftest.$ac_ext"
13796 case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } >/dev/null && {
13808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 }; then
13811 ac_header_preproc=yes
13812 else
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ac_header_preproc=no
13819 rm -f conftest.err conftest.$ac_ext
13820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13821 echo "${ECHO_T}$ac_header_preproc" >&6; }
13823 # So? What about this header?
13824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13825 yes:no: )
13826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13827 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13829 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13830 ac_header_preproc=yes
13832 no:yes:* )
13833 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13834 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13836 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13838 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13840 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13842 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13844 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13847 esac
13848 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13849 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13850 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 ac_cv_header_gif_lib_h=$ac_header_preproc
13855 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13856 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13859 if test $ac_cv_header_gif_lib_h = yes; then
13860 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13861 # Earlier versions can crash Emacs.
13862 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13863 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13864 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 ac_check_lib_save_LIBS=$LIBS
13868 LIBS="-lungif $LIBS"
13869 cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h. */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13876 /* Override any GCC internal prototype to avoid an error.
13877 Use char because int might match the return type of a GCC
13878 builtin and then its argument prototype would still apply. */
13879 #ifdef __cplusplus
13880 extern "C"
13881 #endif
13882 char EGifPutExtensionLast ();
13884 main ()
13886 return EGifPutExtensionLast ();
13888 return 0;
13890 _ACEOF
13891 rm -f conftest.$ac_objext conftest$ac_exeext
13892 if { (ac_try="$ac_link"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest$ac_exeext &&
13908 $as_test_x conftest$ac_exeext; then
13909 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13910 else
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 ac_cv_lib_ungif_EGifPutExtensionLast=no
13917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13918 conftest$ac_exeext conftest.$ac_ext
13919 LIBS=$ac_check_lib_save_LIBS
13921 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13922 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13923 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13924 HAVE_GIF=yes
13932 if test "${HAVE_GIF}" = "yes"; then
13934 cat >>confdefs.h <<\_ACEOF
13935 #define HAVE_GIF 1
13936 _ACEOF
13941 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13942 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13943 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13944 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13948 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13949 else
13950 # Is the header compilable?
13951 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13952 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h. */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 $ac_includes_default
13960 #include <malloc/malloc.h>
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_compile") 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } && {
13976 test -z "$ac_c_werror_flag" ||
13977 test ! -s conftest.err
13978 } && test -s conftest.$ac_objext; then
13979 ac_header_compiler=yes
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_header_compiler=no
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13989 echo "${ECHO_T}$ac_header_compiler" >&6; }
13991 # Is the header present?
13992 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13993 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13994 cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 #include <malloc/malloc.h>
14001 _ACEOF
14002 if { (ac_try="$ac_cpp conftest.$ac_ext"
14003 case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14006 esac
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14009 ac_status=$?
14010 grep -v '^ *+' conftest.er1 >conftest.err
14011 rm -f conftest.er1
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } >/dev/null && {
14015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14016 test ! -s conftest.err
14017 }; then
14018 ac_header_preproc=yes
14019 else
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_header_preproc=no
14026 rm -f conftest.err conftest.$ac_ext
14027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14028 echo "${ECHO_T}$ac_header_preproc" >&6; }
14030 # So? What about this header?
14031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14032 yes:no: )
14033 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14034 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14036 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14037 ac_header_preproc=yes
14039 no:yes:* )
14040 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14041 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14043 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14045 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14047 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14049 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14050 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14051 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14054 esac
14055 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14056 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14057 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14062 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14063 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14066 if test $ac_cv_header_malloc_malloc_h = yes; then
14068 cat >>confdefs.h <<\_ACEOF
14069 #define HAVE_MALLOC_MALLOC_H 1
14070 _ACEOF
14076 ### Use Mac OS X Carbon API to implement GUI.
14077 if test "${HAVE_CARBON}" = "yes"; then
14079 cat >>confdefs.h <<\_ACEOF
14080 #define HAVE_CARBON 1
14081 _ACEOF
14083 ## Specify the install directory
14084 carbon_appdir=
14085 if test "${carbon_appdir_x}" != ""; then
14086 case ${carbon_appdir_x} in
14087 y | ye | yes) carbon_appdir=/Applications ;;
14088 * ) carbon_appdir=${carbon_appdir_x} ;;
14089 esac
14091 # We also have mouse menus.
14092 HAVE_MENUS=yes
14095 ### Use session management (-lSM -lICE) if available
14096 HAVE_X_SM=no
14097 if test "${HAVE_X11}" = "yes"; then
14098 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14099 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14100 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14101 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14105 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14106 else
14107 # Is the header compilable?
14108 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14109 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14110 cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h. */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 $ac_includes_default
14117 #include <X11/SM/SMlib.h>
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (ac_try="$ac_compile"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_compile") 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest.$ac_objext; then
14136 ac_header_compiler=yes
14137 else
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_header_compiler=no
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6; }
14148 # Is the header present?
14149 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14150 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <X11/SM/SMlib.h>
14158 _ACEOF
14159 if { (ac_try="$ac_cpp conftest.$ac_ext"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev/null && {
14172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 }; then
14175 ac_header_preproc=yes
14176 else
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_header_preproc=no
14183 rm -f conftest.err conftest.$ac_ext
14184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14185 echo "${ECHO_T}$ac_header_preproc" >&6; }
14187 # So? What about this header?
14188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14189 yes:no: )
14190 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14191 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14193 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14194 ac_header_preproc=yes
14196 no:yes:* )
14197 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14198 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14200 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14202 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14204 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14206 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14208 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14211 esac
14212 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14213 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14214 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14219 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14220 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14223 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14224 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14225 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14226 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229 ac_check_lib_save_LIBS=$LIBS
14230 LIBS="-lSM -lICE $LIBS"
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14238 /* Override any GCC internal prototype to avoid an error.
14239 Use char because int might match the return type of a GCC
14240 builtin and then its argument prototype would still apply. */
14241 #ifdef __cplusplus
14242 extern "C"
14243 #endif
14244 char SmcOpenConnection ();
14246 main ()
14248 return SmcOpenConnection ();
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (ac_try="$ac_link"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_link") 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest$ac_exeext &&
14270 $as_test_x conftest$ac_exeext; then
14271 ac_cv_lib_SM_SmcOpenConnection=yes
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_lib_SM_SmcOpenConnection=no
14279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14280 conftest$ac_exeext conftest.$ac_ext
14281 LIBS=$ac_check_lib_save_LIBS
14283 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14284 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14285 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14286 HAVE_X_SM=yes
14293 if test "${HAVE_X_SM}" = "yes"; then
14295 cat >>confdefs.h <<\_ACEOF
14296 #define HAVE_X_SM 1
14297 _ACEOF
14299 case "$LIBS" in
14300 *-lSM*) ;;
14301 *) LIBS="-lSM -lICE $LIBS" ;;
14302 esac
14306 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14307 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14308 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14309 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312 cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h. */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 #include <netdb.h>
14320 main ()
14322 return h_errno;
14324 return 0;
14326 _ACEOF
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_link") 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } && {
14341 test -z "$ac_c_werror_flag" ||
14342 test ! -s conftest.err
14343 } && test -s conftest$ac_exeext &&
14344 $as_test_x conftest$ac_exeext; then
14345 emacs_cv_netdb_declares_h_errno=yes
14346 else
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 emacs_cv_netdb_declares_h_errno=no
14353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14354 conftest$ac_exeext conftest.$ac_ext
14356 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14357 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14358 if test $emacs_cv_netdb_declares_h_errno = yes; then
14360 cat >>confdefs.h <<\_ACEOF
14361 #define HAVE_H_ERRNO 1
14362 _ACEOF
14366 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14367 # for constant arguments. Useless!
14368 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14369 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14370 if test "${ac_cv_working_alloca_h+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 #include <alloca.h>
14381 main ()
14383 char *p = (char *) alloca (2 * sizeof (int));
14384 if (p) return 0;
14386 return 0;
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest$ac_exeext &&
14406 $as_test_x conftest$ac_exeext; then
14407 ac_cv_working_alloca_h=yes
14408 else
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_cv_working_alloca_h=no
14415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14416 conftest$ac_exeext conftest.$ac_ext
14418 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14419 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14420 if test $ac_cv_working_alloca_h = yes; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_ALLOCA_H 1
14424 _ACEOF
14428 { echo "$as_me:$LINENO: checking for alloca" >&5
14429 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14430 if test "${ac_cv_func_alloca_works+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 #ifdef __GNUC__
14440 # define alloca __builtin_alloca
14441 #else
14442 # ifdef _MSC_VER
14443 # include <malloc.h>
14444 # define alloca _alloca
14445 # else
14446 # ifdef HAVE_ALLOCA_H
14447 # include <alloca.h>
14448 # else
14449 # ifdef _AIX
14450 #pragma alloca
14451 # else
14452 # ifndef alloca /* predefined by HP cc +Olibcalls */
14453 char *alloca ();
14454 # endif
14455 # endif
14456 # endif
14457 # endif
14458 #endif
14461 main ()
14463 char *p = (char *) alloca (1);
14464 if (p) return 0;
14466 return 0;
14468 _ACEOF
14469 rm -f conftest.$ac_objext conftest$ac_exeext
14470 if { (ac_try="$ac_link"
14471 case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_link") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest$ac_exeext &&
14486 $as_test_x conftest$ac_exeext; then
14487 ac_cv_func_alloca_works=yes
14488 else
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_cv_func_alloca_works=no
14495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14496 conftest$ac_exeext conftest.$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14499 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14501 if test $ac_cv_func_alloca_works = yes; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define HAVE_ALLOCA 1
14505 _ACEOF
14507 else
14508 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14509 # that cause trouble. Some versions do not even contain alloca or
14510 # contain a buggy version. If you still want to use their alloca,
14511 # use ar to extract alloca.o from them instead of compiling alloca.c.
14513 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14515 cat >>confdefs.h <<\_ACEOF
14516 #define C_ALLOCA 1
14517 _ACEOF
14520 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14521 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14522 if test "${ac_cv_os_cray+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h. */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #if defined CRAY && ! defined CRAY2
14532 webecray
14533 #else
14534 wenotbecray
14535 #endif
14537 _ACEOF
14538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14539 $EGREP "webecray" >/dev/null 2>&1; then
14540 ac_cv_os_cray=yes
14541 else
14542 ac_cv_os_cray=no
14544 rm -f conftest*
14547 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14548 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14549 if test $ac_cv_os_cray = yes; then
14550 for ac_func in _getb67 GETB67 getb67; do
14551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14552 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557 cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h. */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14565 #define $ac_func innocuous_$ac_func
14567 /* System header to define __stub macros and hopefully few prototypes,
14568 which can conflict with char $ac_func (); below.
14569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14570 <limits.h> exists even on freestanding compilers. */
14572 #ifdef __STDC__
14573 # include <limits.h>
14574 #else
14575 # include <assert.h>
14576 #endif
14578 #undef $ac_func
14580 /* Override any GCC internal prototype to avoid an error.
14581 Use char because int might match the return type of a GCC
14582 builtin and then its argument prototype would still apply. */
14583 #ifdef __cplusplus
14584 extern "C"
14585 #endif
14586 char $ac_func ();
14587 /* The GNU C library defines this for functions which it implements
14588 to always fail with ENOSYS. Some functions are actually named
14589 something starting with __ and the normal name is an alias. */
14590 #if defined __stub_$ac_func || defined __stub___$ac_func
14591 choke me
14592 #endif
14595 main ()
14597 return $ac_func ();
14599 return 0;
14601 _ACEOF
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (ac_try="$ac_link"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_link") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest$ac_exeext &&
14619 $as_test_x conftest$ac_exeext; then
14620 eval "$as_ac_var=yes"
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 eval "$as_ac_var=no"
14628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629 conftest$ac_exeext conftest.$ac_ext
14631 ac_res=`eval echo '${'$as_ac_var'}'`
14632 { echo "$as_me:$LINENO: result: $ac_res" >&5
14633 echo "${ECHO_T}$ac_res" >&6; }
14634 if test `eval echo '${'$as_ac_var'}'` = yes; then
14636 cat >>confdefs.h <<_ACEOF
14637 #define CRAY_STACKSEG_END $ac_func
14638 _ACEOF
14640 break
14643 done
14646 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14647 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14648 if test "${ac_cv_c_stack_direction+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651 if test "$cross_compiling" = yes; then
14652 ac_cv_c_stack_direction=0
14653 else
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 $ac_includes_default
14662 find_stack_direction ()
14664 static char *addr = 0;
14665 auto char dummy;
14666 if (addr == 0)
14668 addr = &dummy;
14669 return find_stack_direction ();
14671 else
14672 return (&dummy > addr) ? 1 : -1;
14676 main ()
14678 return find_stack_direction () < 0;
14680 _ACEOF
14681 rm -f conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_link") 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14692 { (case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_try") 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_c_stack_direction=1
14702 else
14703 echo "$as_me: program exited with status $ac_status" >&5
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ( exit $ac_status )
14708 ac_cv_c_stack_direction=-1
14710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14715 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14716 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14718 cat >>confdefs.h <<_ACEOF
14719 #define STACK_DIRECTION $ac_cv_c_stack_direction
14720 _ACEOF
14726 # fmod, logb, and frexp are found in -lm on most systems.
14727 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14729 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14730 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14731 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734 ac_check_lib_save_LIBS=$LIBS
14735 LIBS="-lm $LIBS"
14736 cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h. */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14743 /* Override any GCC internal prototype to avoid an error.
14744 Use char because int might match the return type of a GCC
14745 builtin and then its argument prototype would still apply. */
14746 #ifdef __cplusplus
14747 extern "C"
14748 #endif
14749 char sqrt ();
14751 main ()
14753 return sqrt ();
14755 return 0;
14757 _ACEOF
14758 rm -f conftest.$ac_objext conftest$ac_exeext
14759 if { (ac_try="$ac_link"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_link") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest$ac_exeext &&
14775 $as_test_x conftest$ac_exeext; then
14776 ac_cv_lib_m_sqrt=yes
14777 else
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14781 ac_cv_lib_m_sqrt=no
14784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14785 conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14788 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14789 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14790 if test $ac_cv_lib_m_sqrt = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define HAVE_LIBM 1
14793 _ACEOF
14795 LIBS="-lm $LIBS"
14800 # Check for mail-locking functions in a "mail" library. Probably this should
14801 # have the same check as for liblockfile below.
14803 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14804 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14805 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808 ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lmail $LIBS"
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14820 #ifdef __cplusplus
14821 extern "C"
14822 #endif
14823 char maillock ();
14825 main ()
14827 return maillock ();
14829 return 0;
14831 _ACEOF
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (ac_try="$ac_link"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_link") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest$ac_exeext &&
14849 $as_test_x conftest$ac_exeext; then
14850 ac_cv_lib_mail_maillock=yes
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_cv_lib_mail_maillock=no
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14862 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14863 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14864 if test $ac_cv_lib_mail_maillock = yes; then
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_LIBMAIL 1
14867 _ACEOF
14869 LIBS="-lmail $LIBS"
14874 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14875 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14876 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879 ac_check_lib_save_LIBS=$LIBS
14880 LIBS="-llockfile $LIBS"
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14891 #ifdef __cplusplus
14892 extern "C"
14893 #endif
14894 char maillock ();
14896 main ()
14898 return maillock ();
14900 return 0;
14902 _ACEOF
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (ac_try="$ac_link"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_link") 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest$ac_exeext &&
14920 $as_test_x conftest$ac_exeext; then
14921 ac_cv_lib_lockfile_maillock=yes
14922 else
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ac_cv_lib_lockfile_maillock=no
14929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14934 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14935 if test $ac_cv_lib_lockfile_maillock = yes; then
14936 cat >>confdefs.h <<_ACEOF
14937 #define HAVE_LIBLOCKFILE 1
14938 _ACEOF
14940 LIBS="-llockfile $LIBS"
14944 # If we have the shared liblockfile, assume we must use it for mail
14945 # locking (e.g. Debian). If we couldn't link against liblockfile
14946 # (no liblockfile.a installed), ensure that we don't need to.
14947 if test "$ac_cv_lib_lockfile_maillock" = no; then
14948 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14949 set dummy liblockfile.so; ac_word=$2
14950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14952 if test "${ac_cv_prog_liblockfile+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955 if test -n "$liblockfile"; then
14956 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14957 else
14958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14959 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14960 for as_dir in $as_dummy
14962 IFS=$as_save_IFS
14963 test -z "$as_dir" && as_dir=.
14964 for ac_exec_ext in '' $ac_executable_extensions; do
14965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14966 ac_cv_prog_liblockfile="yes"
14967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14968 break 2
14970 done
14971 done
14972 IFS=$as_save_IFS
14974 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14977 liblockfile=$ac_cv_prog_liblockfile
14978 if test -n "$liblockfile"; then
14979 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14980 echo "${ECHO_T}$liblockfile" >&6; }
14981 else
14982 { echo "$as_me:$LINENO: result: no" >&5
14983 echo "${ECHO_T}no" >&6; }
14987 if test $ac_cv_prog_liblockfile = yes; then
14988 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14989 This probably means that movemail could lose mail.
14990 There may be a \`development' package to install containing liblockfile." >&5
14991 echo "$as_me: error: Shared liblockfile found but can't link against it.
14992 This probably means that movemail could lose mail.
14993 There may be a \`development' package to install containing liblockfile." >&2;}
14994 { (exit 1); exit 1; }; }
14995 else :
14999 for ac_func in touchlock
15001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h. */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15015 #define $ac_func innocuous_$ac_func
15017 /* System header to define __stub macros and hopefully few prototypes,
15018 which can conflict with char $ac_func (); below.
15019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15020 <limits.h> exists even on freestanding compilers. */
15022 #ifdef __STDC__
15023 # include <limits.h>
15024 #else
15025 # include <assert.h>
15026 #endif
15028 #undef $ac_func
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15033 #ifdef __cplusplus
15034 extern "C"
15035 #endif
15036 char $ac_func ();
15037 /* The GNU C library defines this for functions which it implements
15038 to always fail with ENOSYS. Some functions are actually named
15039 something starting with __ and the normal name is an alias. */
15040 #if defined __stub_$ac_func || defined __stub___$ac_func
15041 choke me
15042 #endif
15045 main ()
15047 return $ac_func ();
15049 return 0;
15051 _ACEOF
15052 rm -f conftest.$ac_objext conftest$ac_exeext
15053 if { (ac_try="$ac_link"
15054 case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_link") 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && {
15066 test -z "$ac_c_werror_flag" ||
15067 test ! -s conftest.err
15068 } && test -s conftest$ac_exeext &&
15069 $as_test_x conftest$ac_exeext; then
15070 eval "$as_ac_var=yes"
15071 else
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 eval "$as_ac_var=no"
15078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15079 conftest$ac_exeext conftest.$ac_ext
15081 ac_res=`eval echo '${'$as_ac_var'}'`
15082 { echo "$as_me:$LINENO: result: $ac_res" >&5
15083 echo "${ECHO_T}$ac_res" >&6; }
15084 if test `eval echo '${'$as_ac_var'}'` = yes; then
15085 cat >>confdefs.h <<_ACEOF
15086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15087 _ACEOF
15090 done
15093 for ac_header in maillock.h
15095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 ac_res=`eval echo '${'$as_ac_Header'}'`
15103 { echo "$as_me:$LINENO: result: $ac_res" >&5
15104 echo "${ECHO_T}$ac_res" >&6; }
15105 else
15106 # Is the header compilable?
15107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15115 $ac_includes_default
15116 #include <$ac_header>
15117 _ACEOF
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest.$ac_objext; then
15135 ac_header_compiler=yes
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_header_compiler=no
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15145 echo "${ECHO_T}$ac_header_compiler" >&6; }
15147 # Is the header present?
15148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15150 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h. */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 #include <$ac_header>
15157 _ACEOF
15158 if { (ac_try="$ac_cpp conftest.$ac_ext"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162 esac
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } >/dev/null && {
15171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 }; then
15174 ac_header_preproc=yes
15175 else
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 ac_header_preproc=no
15182 rm -f conftest.err conftest.$ac_ext
15183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15184 echo "${ECHO_T}$ac_header_preproc" >&6; }
15186 # So? What about this header?
15187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15188 yes:no: )
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15193 ac_header_preproc=yes
15195 no:yes:* )
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15210 esac
15211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 eval "$as_ac_Header=\$ac_header_preproc"
15218 ac_res=`eval echo '${'$as_ac_Header'}'`
15219 { echo "$as_me:$LINENO: result: $ac_res" >&5
15220 echo "${ECHO_T}$ac_res" >&6; }
15223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15226 _ACEOF
15230 done
15302 for ac_func in gethostname getdomainname dup2 \
15303 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15304 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15305 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15306 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15307 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15308 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15309 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15310 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 else
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15326 #define $ac_func innocuous_$ac_func
15328 /* System header to define __stub macros and hopefully few prototypes,
15329 which can conflict with char $ac_func (); below.
15330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15331 <limits.h> exists even on freestanding compilers. */
15333 #ifdef __STDC__
15334 # include <limits.h>
15335 #else
15336 # include <assert.h>
15337 #endif
15339 #undef $ac_func
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply. */
15344 #ifdef __cplusplus
15345 extern "C"
15346 #endif
15347 char $ac_func ();
15348 /* The GNU C library defines this for functions which it implements
15349 to always fail with ENOSYS. Some functions are actually named
15350 something starting with __ and the normal name is an alias. */
15351 #if defined __stub_$ac_func || defined __stub___$ac_func
15352 choke me
15353 #endif
15356 main ()
15358 return $ac_func ();
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_c_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest$ac_exeext &&
15380 $as_test_x conftest$ac_exeext; then
15381 eval "$as_ac_var=yes"
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 eval "$as_ac_var=no"
15389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15390 conftest$ac_exeext conftest.$ac_ext
15392 ac_res=`eval echo '${'$as_ac_var'}'`
15393 { echo "$as_me:$LINENO: result: $ac_res" >&5
15394 echo "${ECHO_T}$ac_res" >&6; }
15395 if test `eval echo '${'$as_ac_var'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15398 _ACEOF
15401 done
15405 for ac_header in sys/un.h
15407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 ac_res=`eval echo '${'$as_ac_Header'}'`
15415 { echo "$as_me:$LINENO: result: $ac_res" >&5
15416 echo "${ECHO_T}$ac_res" >&6; }
15417 else
15418 # Is the header compilable?
15419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h. */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 $ac_includes_default
15428 #include <$ac_header>
15429 _ACEOF
15430 rm -f conftest.$ac_objext
15431 if { (ac_try="$ac_compile"
15432 case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_compile") 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } && {
15444 test -z "$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 } && test -s conftest.$ac_objext; then
15447 ac_header_compiler=yes
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_header_compiler=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459 # Is the header present?
15460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h. */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 #include <$ac_header>
15469 _ACEOF
15470 if { (ac_try="$ac_cpp conftest.$ac_ext"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15474 esac
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } >/dev/null && {
15483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 }; then
15486 ac_header_preproc=yes
15487 else
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_header_preproc=no
15494 rm -f conftest.err conftest.$ac_ext
15495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15496 echo "${ECHO_T}$ac_header_preproc" >&6; }
15498 # So? What about this header?
15499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15500 yes:no: )
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15505 ac_header_preproc=yes
15507 no:yes:* )
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15522 esac
15523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528 eval "$as_ac_Header=\$ac_header_preproc"
15530 ac_res=`eval echo '${'$as_ac_Header'}'`
15531 { echo "$as_me:$LINENO: result: $ac_res" >&5
15532 echo "${ECHO_T}$ac_res" >&6; }
15535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15536 cat >>confdefs.h <<_ACEOF
15537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15538 _ACEOF
15542 done
15549 for ac_header in $ac_header_list
15551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560 echo "${ECHO_T}$ac_res" >&6; }
15561 else
15562 # Is the header compilable?
15563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 $ac_includes_default
15572 #include <$ac_header>
15573 _ACEOF
15574 rm -f conftest.$ac_objext
15575 if { (ac_try="$ac_compile"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_compile") 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } && {
15588 test -z "$ac_c_werror_flag" ||
15589 test ! -s conftest.err
15590 } && test -s conftest.$ac_objext; then
15591 ac_header_compiler=yes
15592 else
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_header_compiler=no
15599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15601 echo "${ECHO_T}$ac_header_compiler" >&6; }
15603 # Is the header present?
15604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #include <$ac_header>
15613 _ACEOF
15614 if { (ac_try="$ac_cpp conftest.$ac_ext"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } >/dev/null && {
15627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 }; then
15630 ac_header_preproc=yes
15631 else
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ac_header_preproc=no
15638 rm -f conftest.err conftest.$ac_ext
15639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15640 echo "${ECHO_T}$ac_header_preproc" >&6; }
15642 # So? What about this header?
15643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 yes:no: )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15649 ac_header_preproc=yes
15651 no:yes:* )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15666 esac
15667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672 eval "$as_ac_Header=\$ac_header_preproc"
15674 ac_res=`eval echo '${'$as_ac_Header'}'`
15675 { echo "$as_me:$LINENO: result: $ac_res" >&5
15676 echo "${ECHO_T}$ac_res" >&6; }
15679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15680 cat >>confdefs.h <<_ACEOF
15681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15682 _ACEOF
15686 done
15696 for ac_func in $ac_func_list
15698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 else
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h. */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15712 #define $ac_func innocuous_$ac_func
15714 /* System header to define __stub macros and hopefully few prototypes,
15715 which can conflict with char $ac_func (); below.
15716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15717 <limits.h> exists even on freestanding compilers. */
15719 #ifdef __STDC__
15720 # include <limits.h>
15721 #else
15722 # include <assert.h>
15723 #endif
15725 #undef $ac_func
15727 /* Override any GCC internal prototype to avoid an error.
15728 Use char because int might match the return type of a GCC
15729 builtin and then its argument prototype would still apply. */
15730 #ifdef __cplusplus
15731 extern "C"
15732 #endif
15733 char $ac_func ();
15734 /* The GNU C library defines this for functions which it implements
15735 to always fail with ENOSYS. Some functions are actually named
15736 something starting with __ and the normal name is an alias. */
15737 #if defined __stub_$ac_func || defined __stub___$ac_func
15738 choke me
15739 #endif
15742 main ()
15744 return $ac_func ();
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext &&
15766 $as_test_x conftest$ac_exeext; then
15767 eval "$as_ac_var=yes"
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 eval "$as_ac_var=no"
15775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15776 conftest$ac_exeext conftest.$ac_ext
15778 ac_res=`eval echo '${'$as_ac_var'}'`
15779 { echo "$as_me:$LINENO: result: $ac_res" >&5
15780 echo "${ECHO_T}$ac_res" >&6; }
15781 if test `eval echo '${'$as_ac_var'}'` = yes; then
15782 cat >>confdefs.h <<_ACEOF
15783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15784 _ACEOF
15787 done
15805 { echo "$as_me:$LINENO: checking for working mktime" >&5
15806 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15807 if test "${ac_cv_func_working_mktime+set}" = set; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810 if test "$cross_compiling" = yes; then
15811 ac_cv_func_working_mktime=no
15812 else
15813 cat >conftest.$ac_ext <<_ACEOF
15814 /* confdefs.h. */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 /* Test program from Paul Eggert and Tony Leneis. */
15820 #ifdef TIME_WITH_SYS_TIME
15821 # include <sys/time.h>
15822 # include <time.h>
15823 #else
15824 # ifdef HAVE_SYS_TIME_H
15825 # include <sys/time.h>
15826 # else
15827 # include <time.h>
15828 # endif
15829 #endif
15831 #include <stdlib.h>
15833 #ifdef HAVE_UNISTD_H
15834 # include <unistd.h>
15835 #endif
15837 #ifndef HAVE_ALARM
15838 # define alarm(X) /* empty */
15839 #endif
15841 /* Work around redefinition to rpl_putenv by other config tests. */
15842 #undef putenv
15844 static time_t time_t_max;
15845 static time_t time_t_min;
15847 /* Values we'll use to set the TZ environment variable. */
15848 static char *tz_strings[] = {
15849 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15850 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15852 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15854 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15855 Based on a problem report from Andreas Jaeger. */
15856 static int
15857 spring_forward_gap ()
15859 /* glibc (up to about 1998-10-07) failed this test. */
15860 struct tm tm;
15862 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15863 instead of "TZ=America/Vancouver" in order to detect the bug even
15864 on systems that don't support the Olson extension, or don't have the
15865 full zoneinfo tables installed. */
15866 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15868 tm.tm_year = 98;
15869 tm.tm_mon = 3;
15870 tm.tm_mday = 5;
15871 tm.tm_hour = 2;
15872 tm.tm_min = 0;
15873 tm.tm_sec = 0;
15874 tm.tm_isdst = -1;
15875 return mktime (&tm) != (time_t) -1;
15878 static int
15879 mktime_test1 (now)
15880 time_t now;
15882 struct tm *lt;
15883 return ! (lt = localtime (&now)) || mktime (lt) == now;
15886 static int
15887 mktime_test (now)
15888 time_t now;
15890 return (mktime_test1 (now)
15891 && mktime_test1 ((time_t) (time_t_max - now))
15892 && mktime_test1 ((time_t) (time_t_min + now)));
15895 static int
15896 irix_6_4_bug ()
15898 /* Based on code from Ariel Faigon. */
15899 struct tm tm;
15900 tm.tm_year = 96;
15901 tm.tm_mon = 3;
15902 tm.tm_mday = 0;
15903 tm.tm_hour = 0;
15904 tm.tm_min = 0;
15905 tm.tm_sec = 0;
15906 tm.tm_isdst = -1;
15907 mktime (&tm);
15908 return tm.tm_mon == 2 && tm.tm_mday == 31;
15911 static int
15912 bigtime_test (j)
15913 int j;
15915 struct tm tm;
15916 time_t now;
15917 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15918 now = mktime (&tm);
15919 if (now != (time_t) -1)
15921 struct tm *lt = localtime (&now);
15922 if (! (lt
15923 && lt->tm_year == tm.tm_year
15924 && lt->tm_mon == tm.tm_mon
15925 && lt->tm_mday == tm.tm_mday
15926 && lt->tm_hour == tm.tm_hour
15927 && lt->tm_min == tm.tm_min
15928 && lt->tm_sec == tm.tm_sec
15929 && lt->tm_yday == tm.tm_yday
15930 && lt->tm_wday == tm.tm_wday
15931 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15932 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15933 return 0;
15935 return 1;
15938 static int
15939 year_2050_test ()
15941 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15942 ignoring leap seconds. */
15943 unsigned long int answer = 2527315200UL;
15945 struct tm tm;
15946 time_t t;
15947 tm.tm_year = 2050 - 1900;
15948 tm.tm_mon = 2 - 1;
15949 tm.tm_mday = 1;
15950 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15951 tm.tm_isdst = -1;
15953 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15954 instead of "TZ=America/Vancouver" in order to detect the bug even
15955 on systems that don't support the Olson extension, or don't have the
15956 full zoneinfo tables installed. */
15957 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15959 t = mktime (&tm);
15961 /* Check that the result is either a failure, or close enough
15962 to the correct answer that we can assume the discrepancy is
15963 due to leap seconds. */
15964 return (t == (time_t) -1
15965 || (0 < t && answer - 120 <= t && t <= answer + 120));
15969 main ()
15971 time_t t, delta;
15972 int i, j;
15974 /* This test makes some buggy mktime implementations loop.
15975 Give up after 60 seconds; a mktime slower than that
15976 isn't worth using anyway. */
15977 alarm (60);
15979 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15980 continue;
15981 time_t_max--;
15982 if ((time_t) -1 < 0)
15983 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15984 continue;
15985 delta = time_t_max / 997; /* a suitable prime number */
15986 for (i = 0; i < N_STRINGS; i++)
15988 if (tz_strings[i])
15989 putenv (tz_strings[i]);
15991 for (t = 0; t <= time_t_max - delta; t += delta)
15992 if (! mktime_test (t))
15993 return 1;
15994 if (! (mktime_test ((time_t) 1)
15995 && mktime_test ((time_t) (60 * 60))
15996 && mktime_test ((time_t) (60 * 60 * 24))))
15997 return 1;
15999 for (j = 1; 0 < j; j *= 2)
16000 if (! bigtime_test (j))
16001 return 1;
16002 if (! bigtime_test (j - 1))
16003 return 1;
16005 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16007 _ACEOF
16008 rm -f conftest$ac_exeext
16009 if { (ac_try="$ac_link"
16010 case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_link") 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16028 ac_cv_func_working_mktime=yes
16029 else
16030 echo "$as_me: program exited with status $ac_status" >&5
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ( exit $ac_status )
16035 ac_cv_func_working_mktime=no
16037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16042 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16043 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16044 if test $ac_cv_func_working_mktime = no; then
16045 case " $LIBOBJS " in
16046 *" mktime.$ac_objext "* ) ;;
16047 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16049 esac
16053 if test "$ac_cv_func_working_mktime" = no; then
16055 cat >>confdefs.h <<\_ACEOF
16056 #define BROKEN_MKTIME 1
16057 _ACEOF
16061 ac_have_func=no # yes means we've found a way to get the load average.
16063 # Make sure getloadavg.c is where it belongs, at configure-time.
16064 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16065 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16066 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16067 { (exit 1); exit 1; }; }
16069 ac_save_LIBS=$LIBS
16071 # Check for getloadavg, but be sure not to touch the cache variable.
16072 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16073 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16074 if test "${ac_cv_func_getloadavg+set}" = set; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16085 #define getloadavg innocuous_getloadavg
16087 /* System header to define __stub macros and hopefully few prototypes,
16088 which can conflict with char getloadavg (); below.
16089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16090 <limits.h> exists even on freestanding compilers. */
16092 #ifdef __STDC__
16093 # include <limits.h>
16094 #else
16095 # include <assert.h>
16096 #endif
16098 #undef getloadavg
16100 /* Override any GCC internal prototype to avoid an error.
16101 Use char because int might match the return type of a GCC
16102 builtin and then its argument prototype would still apply. */
16103 #ifdef __cplusplus
16104 extern "C"
16105 #endif
16106 char getloadavg ();
16107 /* The GNU C library defines this for functions which it implements
16108 to always fail with ENOSYS. Some functions are actually named
16109 something starting with __ and the normal name is an alias. */
16110 #if defined __stub_getloadavg || defined __stub___getloadavg
16111 choke me
16112 #endif
16115 main ()
16117 return getloadavg ();
16119 return 0;
16121 _ACEOF
16122 rm -f conftest.$ac_objext conftest$ac_exeext
16123 if { (ac_try="$ac_link"
16124 case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16127 esac
16128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129 (eval "$ac_link") 2>conftest.er1
16130 ac_status=$?
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && {
16136 test -z "$ac_c_werror_flag" ||
16137 test ! -s conftest.err
16138 } && test -s conftest$ac_exeext &&
16139 $as_test_x conftest$ac_exeext; then
16140 ac_cv_func_getloadavg=yes
16141 else
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_cv_func_getloadavg=no
16148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16149 conftest$ac_exeext conftest.$ac_ext
16151 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16152 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16153 if test $ac_cv_func_getloadavg = yes; then
16154 exit 0
16155 else
16156 exit 1
16158 ) && ac_have_func=yes
16160 # On HPUX9, an unprivileged user can get load averages through this function.
16162 for ac_func in pstat_getdynamic
16164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h. */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16178 #define $ac_func innocuous_$ac_func
16180 /* System header to define __stub macros and hopefully few prototypes,
16181 which can conflict with char $ac_func (); below.
16182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16183 <limits.h> exists even on freestanding compilers. */
16185 #ifdef __STDC__
16186 # include <limits.h>
16187 #else
16188 # include <assert.h>
16189 #endif
16191 #undef $ac_func
16193 /* Override any GCC internal prototype to avoid an error.
16194 Use char because int might match the return type of a GCC
16195 builtin and then its argument prototype would still apply. */
16196 #ifdef __cplusplus
16197 extern "C"
16198 #endif
16199 char $ac_func ();
16200 /* The GNU C library defines this for functions which it implements
16201 to always fail with ENOSYS. Some functions are actually named
16202 something starting with __ and the normal name is an alias. */
16203 #if defined __stub_$ac_func || defined __stub___$ac_func
16204 choke me
16205 #endif
16208 main ()
16210 return $ac_func ();
16212 return 0;
16214 _ACEOF
16215 rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_link") 2>conftest.er1
16223 ac_status=$?
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } && {
16229 test -z "$ac_c_werror_flag" ||
16230 test ! -s conftest.err
16231 } && test -s conftest$ac_exeext &&
16232 $as_test_x conftest$ac_exeext; then
16233 eval "$as_ac_var=yes"
16234 else
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16238 eval "$as_ac_var=no"
16241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16242 conftest$ac_exeext conftest.$ac_ext
16244 ac_res=`eval echo '${'$as_ac_var'}'`
16245 { echo "$as_me:$LINENO: result: $ac_res" >&5
16246 echo "${ECHO_T}$ac_res" >&6; }
16247 if test `eval echo '${'$as_ac_var'}'` = yes; then
16248 cat >>confdefs.h <<_ACEOF
16249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16250 _ACEOF
16253 done
16256 # Solaris has libkstat which does not require root.
16258 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16259 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16260 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263 ac_check_lib_save_LIBS=$LIBS
16264 LIBS="-lkstat $LIBS"
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h. */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16272 /* Override any GCC internal prototype to avoid an error.
16273 Use char because int might match the return type of a GCC
16274 builtin and then its argument prototype would still apply. */
16275 #ifdef __cplusplus
16276 extern "C"
16277 #endif
16278 char kstat_open ();
16280 main ()
16282 return kstat_open ();
16284 return 0;
16286 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_link") 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } && {
16301 test -z "$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 } && test -s conftest$ac_exeext &&
16304 $as_test_x conftest$ac_exeext; then
16305 ac_cv_lib_kstat_kstat_open=yes
16306 else
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_cv_lib_kstat_kstat_open=no
16313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16314 conftest$ac_exeext conftest.$ac_ext
16315 LIBS=$ac_check_lib_save_LIBS
16317 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16318 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16319 if test $ac_cv_lib_kstat_kstat_open = yes; then
16320 cat >>confdefs.h <<_ACEOF
16321 #define HAVE_LIBKSTAT 1
16322 _ACEOF
16324 LIBS="-lkstat $LIBS"
16328 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16330 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16331 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16332 # to get the right answer into the cache.
16333 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16334 if test $ac_have_func = no; then
16335 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16336 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16337 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340 ac_check_lib_save_LIBS=$LIBS
16341 LIBS="-lelf $LIBS"
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h. */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16349 /* Override any GCC internal prototype to avoid an error.
16350 Use char because int might match the return type of a GCC
16351 builtin and then its argument prototype would still apply. */
16352 #ifdef __cplusplus
16353 extern "C"
16354 #endif
16355 char elf_begin ();
16357 main ()
16359 return elf_begin ();
16361 return 0;
16363 _ACEOF
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (ac_try="$ac_link"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_link") 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest$ac_exeext &&
16381 $as_test_x conftest$ac_exeext; then
16382 ac_cv_lib_elf_elf_begin=yes
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_cv_lib_elf_elf_begin=no
16390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16391 conftest$ac_exeext conftest.$ac_ext
16392 LIBS=$ac_check_lib_save_LIBS
16394 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16395 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16396 if test $ac_cv_lib_elf_elf_begin = yes; then
16397 LIBS="-lelf $LIBS"
16401 if test $ac_have_func = no; then
16402 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16403 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16404 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407 ac_check_lib_save_LIBS=$LIBS
16408 LIBS="-lkvm $LIBS"
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16416 /* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16419 #ifdef __cplusplus
16420 extern "C"
16421 #endif
16422 char kvm_open ();
16424 main ()
16426 return kvm_open ();
16428 return 0;
16430 _ACEOF
16431 rm -f conftest.$ac_objext conftest$ac_exeext
16432 if { (ac_try="$ac_link"
16433 case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_link") 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && {
16445 test -z "$ac_c_werror_flag" ||
16446 test ! -s conftest.err
16447 } && test -s conftest$ac_exeext &&
16448 $as_test_x conftest$ac_exeext; then
16449 ac_cv_lib_kvm_kvm_open=yes
16450 else
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 ac_cv_lib_kvm_kvm_open=no
16457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16458 conftest$ac_exeext conftest.$ac_ext
16459 LIBS=$ac_check_lib_save_LIBS
16461 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16462 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16463 if test $ac_cv_lib_kvm_kvm_open = yes; then
16464 LIBS="-lkvm $LIBS"
16467 # Check for the 4.4BSD definition of getloadavg.
16468 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16469 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16470 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473 ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-lutil $LIBS"
16475 cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h. */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16482 /* Override any GCC internal prototype to avoid an error.
16483 Use char because int might match the return type of a GCC
16484 builtin and then its argument prototype would still apply. */
16485 #ifdef __cplusplus
16486 extern "C"
16487 #endif
16488 char getloadavg ();
16490 main ()
16492 return getloadavg ();
16494 return 0;
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_link") 2>conftest.er1
16505 ac_status=$?
16506 grep -v '^ *+' conftest.er1 >conftest.err
16507 rm -f conftest.er1
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } && {
16511 test -z "$ac_c_werror_flag" ||
16512 test ! -s conftest.err
16513 } && test -s conftest$ac_exeext &&
16514 $as_test_x conftest$ac_exeext; then
16515 ac_cv_lib_util_getloadavg=yes
16516 else
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16520 ac_cv_lib_util_getloadavg=no
16523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16524 conftest$ac_exeext conftest.$ac_ext
16525 LIBS=$ac_check_lib_save_LIBS
16527 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16528 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16529 if test $ac_cv_lib_util_getloadavg = yes; then
16530 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16535 if test $ac_have_func = no; then
16536 # There is a commonly available library for RS/6000 AIX.
16537 # Since it is not a standard part of AIX, it might be installed locally.
16538 ac_getloadavg_LIBS=$LIBS
16539 LIBS="-L/usr/local/lib $LIBS"
16540 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16541 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16542 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545 ac_check_lib_save_LIBS=$LIBS
16546 LIBS="-lgetloadavg $LIBS"
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16557 #ifdef __cplusplus
16558 extern "C"
16559 #endif
16560 char getloadavg ();
16562 main ()
16564 return getloadavg ();
16566 return 0;
16568 _ACEOF
16569 rm -f conftest.$ac_objext conftest$ac_exeext
16570 if { (ac_try="$ac_link"
16571 case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_link") 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && {
16583 test -z "$ac_c_werror_flag" ||
16584 test ! -s conftest.err
16585 } && test -s conftest$ac_exeext &&
16586 $as_test_x conftest$ac_exeext; then
16587 ac_cv_lib_getloadavg_getloadavg=yes
16588 else
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16592 ac_cv_lib_getloadavg_getloadavg=no
16595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16596 conftest$ac_exeext conftest.$ac_ext
16597 LIBS=$ac_check_lib_save_LIBS
16599 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16600 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16601 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16602 LIBS="-lgetloadavg $LIBS"
16603 else
16604 LIBS=$ac_getloadavg_LIBS
16609 # Make sure it is really in the library, if we think we found it,
16610 # otherwise set up the replacement function.
16612 for ac_func in getloadavg
16614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h. */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16628 #define $ac_func innocuous_$ac_func
16630 /* System header to define __stub macros and hopefully few prototypes,
16631 which can conflict with char $ac_func (); below.
16632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16633 <limits.h> exists even on freestanding compilers. */
16635 #ifdef __STDC__
16636 # include <limits.h>
16637 #else
16638 # include <assert.h>
16639 #endif
16641 #undef $ac_func
16643 /* Override any GCC internal prototype to avoid an error.
16644 Use char because int might match the return type of a GCC
16645 builtin and then its argument prototype would still apply. */
16646 #ifdef __cplusplus
16647 extern "C"
16648 #endif
16649 char $ac_func ();
16650 /* The GNU C library defines this for functions which it implements
16651 to always fail with ENOSYS. Some functions are actually named
16652 something starting with __ and the normal name is an alias. */
16653 #if defined __stub_$ac_func || defined __stub___$ac_func
16654 choke me
16655 #endif
16658 main ()
16660 return $ac_func ();
16662 return 0;
16664 _ACEOF
16665 rm -f conftest.$ac_objext conftest$ac_exeext
16666 if { (ac_try="$ac_link"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_link") 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } && {
16679 test -z "$ac_c_werror_flag" ||
16680 test ! -s conftest.err
16681 } && test -s conftest$ac_exeext &&
16682 $as_test_x conftest$ac_exeext; then
16683 eval "$as_ac_var=yes"
16684 else
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 eval "$as_ac_var=no"
16691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16692 conftest$ac_exeext conftest.$ac_ext
16694 ac_res=`eval echo '${'$as_ac_var'}'`
16695 { echo "$as_me:$LINENO: result: $ac_res" >&5
16696 echo "${ECHO_T}$ac_res" >&6; }
16697 if test `eval echo '${'$as_ac_var'}'` = yes; then
16698 cat >>confdefs.h <<_ACEOF
16699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16700 _ACEOF
16702 else
16703 case " $LIBOBJS " in
16704 *" getloadavg.$ac_objext "* ) ;;
16705 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16707 esac
16710 cat >>confdefs.h <<\_ACEOF
16711 #define C_GETLOADAVG 1
16712 _ACEOF
16714 # Figure out what our getloadavg.c needs.
16715 ac_have_func=no
16716 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16717 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16718 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16719 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16723 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16724 else
16725 # Is the header compilable?
16726 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16727 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16735 #include <sys/dg_sys_info.h>
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest.$ac_objext; then
16754 ac_header_compiler=yes
16755 else
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_header_compiler=no
16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16764 echo "${ECHO_T}$ac_header_compiler" >&6; }
16766 # Is the header present?
16767 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16768 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h. */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 #include <sys/dg_sys_info.h>
16776 _ACEOF
16777 if { (ac_try="$ac_cpp conftest.$ac_ext"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16784 ac_status=$?
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } >/dev/null && {
16790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16791 test ! -s conftest.err
16792 }; then
16793 ac_header_preproc=yes
16794 else
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16798 ac_header_preproc=no
16801 rm -f conftest.err conftest.$ac_ext
16802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16803 echo "${ECHO_T}$ac_header_preproc" >&6; }
16805 # So? What about this header?
16806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16807 yes:no: )
16808 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16809 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16811 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16812 ac_header_preproc=yes
16814 no:yes:* )
16815 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16816 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16818 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16820 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16822 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16824 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16826 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16829 esac
16830 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16831 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16832 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16837 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16838 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16841 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16842 ac_have_func=yes
16844 cat >>confdefs.h <<\_ACEOF
16845 #define DGUX 1
16846 _ACEOF
16849 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16850 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16851 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16853 else
16854 ac_check_lib_save_LIBS=$LIBS
16855 LIBS="-ldgc $LIBS"
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16863 /* Override any GCC internal prototype to avoid an error.
16864 Use char because int might match the return type of a GCC
16865 builtin and then its argument prototype would still apply. */
16866 #ifdef __cplusplus
16867 extern "C"
16868 #endif
16869 char dg_sys_info ();
16871 main ()
16873 return dg_sys_info ();
16875 return 0;
16877 _ACEOF
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext &&
16895 $as_test_x conftest$ac_exeext; then
16896 ac_cv_lib_dgc_dg_sys_info=yes
16897 else
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 ac_cv_lib_dgc_dg_sys_info=no
16904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16905 conftest$ac_exeext conftest.$ac_ext
16906 LIBS=$ac_check_lib_save_LIBS
16908 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16909 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16910 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define HAVE_LIBDGC 1
16913 _ACEOF
16915 LIBS="-ldgc $LIBS"
16923 if test "${ac_cv_header_locale_h+set}" = set; then
16924 { echo "$as_me:$LINENO: checking for locale.h" >&5
16925 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16926 if test "${ac_cv_header_locale_h+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16930 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16931 else
16932 # Is the header compilable?
16933 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16934 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 $ac_includes_default
16942 #include <locale.h>
16943 _ACEOF
16944 rm -f conftest.$ac_objext
16945 if { (ac_try="$ac_compile"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_compile") 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest.$ac_objext; then
16961 ac_header_compiler=yes
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 ac_header_compiler=no
16969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16971 echo "${ECHO_T}$ac_header_compiler" >&6; }
16973 # Is the header present?
16974 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16975 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h. */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 #include <locale.h>
16983 _ACEOF
16984 if { (ac_try="$ac_cpp conftest.$ac_ext"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } >/dev/null && {
16997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 }; then
17000 ac_header_preproc=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_header_preproc=no
17008 rm -f conftest.err conftest.$ac_ext
17009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17010 echo "${ECHO_T}$ac_header_preproc" >&6; }
17012 # So? What about this header?
17013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17014 yes:no: )
17015 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17016 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17018 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17019 ac_header_preproc=yes
17021 no:yes:* )
17022 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17023 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17025 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17027 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17029 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17031 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17033 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17036 esac
17037 { echo "$as_me:$LINENO: checking for locale.h" >&5
17038 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17039 if test "${ac_cv_header_locale_h+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 ac_cv_header_locale_h=$ac_header_preproc
17044 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17045 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17051 for ac_func in setlocale
17053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059 cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h. */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17067 #define $ac_func innocuous_$ac_func
17069 /* System header to define __stub macros and hopefully few prototypes,
17070 which can conflict with char $ac_func (); below.
17071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17072 <limits.h> exists even on freestanding compilers. */
17074 #ifdef __STDC__
17075 # include <limits.h>
17076 #else
17077 # include <assert.h>
17078 #endif
17080 #undef $ac_func
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17085 #ifdef __cplusplus
17086 extern "C"
17087 #endif
17088 char $ac_func ();
17089 /* The GNU C library defines this for functions which it implements
17090 to always fail with ENOSYS. Some functions are actually named
17091 something starting with __ and the normal name is an alias. */
17092 #if defined __stub_$ac_func || defined __stub___$ac_func
17093 choke me
17094 #endif
17097 main ()
17099 return $ac_func ();
17101 return 0;
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (ac_try="$ac_link"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_link") 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } && {
17118 test -z "$ac_c_werror_flag" ||
17119 test ! -s conftest.err
17120 } && test -s conftest$ac_exeext &&
17121 $as_test_x conftest$ac_exeext; then
17122 eval "$as_ac_var=yes"
17123 else
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 eval "$as_ac_var=no"
17130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17131 conftest$ac_exeext conftest.$ac_ext
17133 ac_res=`eval echo '${'$as_ac_var'}'`
17134 { echo "$as_me:$LINENO: result: $ac_res" >&5
17135 echo "${ECHO_T}$ac_res" >&6; }
17136 if test `eval echo '${'$as_ac_var'}'` = yes; then
17137 cat >>confdefs.h <<_ACEOF
17138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17139 _ACEOF
17142 done
17145 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17146 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17147 # Irix 4.0.5F has the header but not the library.
17148 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17149 ac_have_func=yes
17151 cat >>confdefs.h <<\_ACEOF
17152 #define SVR4 1
17153 _ACEOF
17157 if test $ac_have_func = no; then
17158 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17159 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17160 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17161 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17165 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17166 else
17167 # Is the header compilable?
17168 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17169 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17170 cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h. */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 $ac_includes_default
17177 #include <inq_stats/cpustats.h>
17178 _ACEOF
17179 rm -f conftest.$ac_objext
17180 if { (ac_try="$ac_compile"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_compile") 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && {
17193 test -z "$ac_c_werror_flag" ||
17194 test ! -s conftest.err
17195 } && test -s conftest.$ac_objext; then
17196 ac_header_compiler=yes
17197 else
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17201 ac_header_compiler=no
17204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17206 echo "${ECHO_T}$ac_header_compiler" >&6; }
17208 # Is the header present?
17209 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17210 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 #include <inq_stats/cpustats.h>
17218 _ACEOF
17219 if { (ac_try="$ac_cpp conftest.$ac_ext"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17226 ac_status=$?
17227 grep -v '^ *+' conftest.er1 >conftest.err
17228 rm -f conftest.er1
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } >/dev/null && {
17232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17233 test ! -s conftest.err
17234 }; then
17235 ac_header_preproc=yes
17236 else
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ac_header_preproc=no
17243 rm -f conftest.err conftest.$ac_ext
17244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17245 echo "${ECHO_T}$ac_header_preproc" >&6; }
17247 # So? What about this header?
17248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17249 yes:no: )
17250 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17251 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17253 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17254 ac_header_preproc=yes
17256 no:yes:* )
17257 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17258 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17259 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17260 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17261 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17262 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17263 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17264 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17265 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17266 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17267 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17268 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17271 esac
17272 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17273 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17274 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17279 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17280 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17283 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17284 ac_have_func=yes
17286 cat >>confdefs.h <<\_ACEOF
17287 #define UMAX 1
17288 _ACEOF
17291 cat >>confdefs.h <<\_ACEOF
17292 #define UMAX4_3 1
17293 _ACEOF
17300 if test $ac_have_func = no; then
17301 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17302 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17303 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17304 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17308 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17309 else
17310 # Is the header compilable?
17311 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17312 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17313 cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h. */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 $ac_includes_default
17320 #include <sys/cpustats.h>
17321 _ACEOF
17322 rm -f conftest.$ac_objext
17323 if { (ac_try="$ac_compile"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_compile") 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest.$ac_objext; then
17339 ac_header_compiler=yes
17340 else
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17344 ac_header_compiler=no
17347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17349 echo "${ECHO_T}$ac_header_compiler" >&6; }
17351 # Is the header present?
17352 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17353 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17354 cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h. */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360 #include <sys/cpustats.h>
17361 _ACEOF
17362 if { (ac_try="$ac_cpp conftest.$ac_ext"
17363 case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17366 esac
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } >/dev/null && {
17375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 }; then
17378 ac_header_preproc=yes
17379 else
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ac_header_preproc=no
17386 rm -f conftest.err conftest.$ac_ext
17387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17388 echo "${ECHO_T}$ac_header_preproc" >&6; }
17390 # So? What about this header?
17391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17392 yes:no: )
17393 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17394 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17395 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17396 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17397 ac_header_preproc=yes
17399 no:yes:* )
17400 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17401 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17403 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17404 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17405 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17407 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17408 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17409 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17410 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17411 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17414 esac
17415 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17416 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17417 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17422 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17423 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17426 if test $ac_cv_header_sys_cpustats_h = yes; then
17427 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17428 #define UMAX 1
17429 _ACEOF
17436 if test $ac_have_func = no; then
17438 for ac_header in mach/mach.h
17440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 ac_res=`eval echo '${'$as_ac_Header'}'`
17448 { echo "$as_me:$LINENO: result: $ac_res" >&5
17449 echo "${ECHO_T}$ac_res" >&6; }
17450 else
17451 # Is the header compilable?
17452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 $ac_includes_default
17461 #include <$ac_header>
17462 _ACEOF
17463 rm -f conftest.$ac_objext
17464 if { (ac_try="$ac_compile"
17465 case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17468 esac
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_compile") 2>conftest.er1
17471 ac_status=$?
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } && {
17477 test -z "$ac_c_werror_flag" ||
17478 test ! -s conftest.err
17479 } && test -s conftest.$ac_objext; then
17480 ac_header_compiler=yes
17481 else
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ac_header_compiler=no
17488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17490 echo "${ECHO_T}$ac_header_compiler" >&6; }
17492 # Is the header present?
17493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17495 cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h. */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 #include <$ac_header>
17502 _ACEOF
17503 if { (ac_try="$ac_cpp conftest.$ac_ext"
17504 case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17507 esac
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17510 ac_status=$?
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } >/dev/null && {
17516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17517 test ! -s conftest.err
17518 }; then
17519 ac_header_preproc=yes
17520 else
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 ac_header_preproc=no
17527 rm -f conftest.err conftest.$ac_ext
17528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17529 echo "${ECHO_T}$ac_header_preproc" >&6; }
17531 # So? What about this header?
17532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17533 yes:no: )
17534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17538 ac_header_preproc=yes
17540 no:yes:* )
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17555 esac
17556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561 eval "$as_ac_Header=\$ac_header_preproc"
17563 ac_res=`eval echo '${'$as_ac_Header'}'`
17564 { echo "$as_me:$LINENO: result: $ac_res" >&5
17565 echo "${ECHO_T}$ac_res" >&6; }
17568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17569 cat >>confdefs.h <<_ACEOF
17570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17571 _ACEOF
17575 done
17580 for ac_header in nlist.h
17582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 ac_res=`eval echo '${'$as_ac_Header'}'`
17590 { echo "$as_me:$LINENO: result: $ac_res" >&5
17591 echo "${ECHO_T}$ac_res" >&6; }
17592 else
17593 # Is the header compilable?
17594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 $ac_includes_default
17603 #include <$ac_header>
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_compile") 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest.$ac_objext; then
17622 ac_header_compiler=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_header_compiler=no
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17632 echo "${ECHO_T}$ac_header_compiler" >&6; }
17634 # Is the header present?
17635 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <$ac_header>
17644 _ACEOF
17645 if { (ac_try="$ac_cpp conftest.$ac_ext"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } >/dev/null && {
17658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17659 test ! -s conftest.err
17660 }; then
17661 ac_header_preproc=yes
17662 else
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_header_preproc=no
17669 rm -f conftest.err conftest.$ac_ext
17670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17671 echo "${ECHO_T}$ac_header_preproc" >&6; }
17673 # So? What about this header?
17674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17675 yes:no: )
17676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17680 ac_header_preproc=yes
17682 no:yes:* )
17683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17697 esac
17698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703 eval "$as_ac_Header=\$ac_header_preproc"
17705 ac_res=`eval echo '${'$as_ac_Header'}'`
17706 { echo "$as_me:$LINENO: result: $ac_res" >&5
17707 echo "${ECHO_T}$ac_res" >&6; }
17710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17711 cat >>confdefs.h <<_ACEOF
17712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17713 _ACEOF
17714 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17715 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17716 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719 cat >conftest.$ac_ext <<_ACEOF
17720 /* confdefs.h. */
17721 _ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725 #include <nlist.h>
17728 main ()
17730 static struct nlist ac_aggr;
17731 if (ac_aggr.n_un.n_name)
17732 return 0;
17734 return 0;
17736 _ACEOF
17737 rm -f conftest.$ac_objext
17738 if { (ac_try="$ac_compile"
17739 case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_compile") 2>conftest.er1
17745 ac_status=$?
17746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && {
17751 test -z "$ac_c_werror_flag" ||
17752 test ! -s conftest.err
17753 } && test -s conftest.$ac_objext; then
17754 ac_cv_member_struct_nlist_n_un_n_name=yes
17755 else
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h. */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 #include <nlist.h>
17768 main ()
17770 static struct nlist ac_aggr;
17771 if (sizeof ac_aggr.n_un.n_name)
17772 return 0;
17774 return 0;
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (ac_try="$ac_compile"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782 esac
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_compile") 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } && {
17791 test -z "$ac_c_werror_flag" ||
17792 test ! -s conftest.err
17793 } && test -s conftest.$ac_objext; then
17794 ac_cv_member_struct_nlist_n_un_n_name=yes
17795 else
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 ac_cv_member_struct_nlist_n_un_n_name=no
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17807 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17808 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17809 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17811 cat >>confdefs.h <<_ACEOF
17812 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17813 _ACEOF
17816 cat >>confdefs.h <<\_ACEOF
17817 #define NLIST_NAME_UNION 1
17818 _ACEOF
17825 done
17828 done
17831 # Some definitions of getloadavg require that the program be installed setgid.
17832 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17833 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17834 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837 cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h. */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17844 #ifdef LDAV_PRIVILEGED
17845 Yowza Am I SETGID yet
17846 #endif
17847 _ACEOF
17848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17849 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17850 ac_cv_func_getloadavg_setgid=yes
17851 else
17852 ac_cv_func_getloadavg_setgid=no
17854 rm -f conftest*
17857 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17858 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17859 if test $ac_cv_func_getloadavg_setgid = yes; then
17860 NEED_SETGID=true
17862 cat >>confdefs.h <<\_ACEOF
17863 #define GETLOADAVG_PRIVILEGED 1
17864 _ACEOF
17866 else
17867 NEED_SETGID=false
17870 if test $ac_cv_func_getloadavg_setgid = yes; then
17871 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17872 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17873 if test "${ac_cv_group_kmem+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17877 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17878 # If we got an error (system does not support symlinks), try without -L.
17879 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17880 ac_cv_group_kmem=`echo $ac_ls_output \
17881 | sed -ne 's/[ ][ ]*/ /g;
17882 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17883 / /s/.* //;p;'`
17886 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17887 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17888 KMEM_GROUP=$ac_cv_group_kmem
17890 if test "x$ac_save_LIBS" = x; then
17891 GETLOADAVG_LIBS=$LIBS
17892 else
17893 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17895 LIBS=$ac_save_LIBS
17899 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17900 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17901 if test "${ac_cv_sys_largefile_source+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904 while :; do
17905 cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h. */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911 #include <stdio.h>
17913 main ()
17915 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17917 return 0;
17919 _ACEOF
17920 rm -f conftest.$ac_objext conftest$ac_exeext
17921 if { (ac_try="$ac_link"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_link") 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } && {
17934 test -z "$ac_c_werror_flag" ||
17935 test ! -s conftest.err
17936 } && test -s conftest$ac_exeext &&
17937 $as_test_x conftest$ac_exeext; then
17938 ac_cv_sys_largefile_source=no; break
17939 else
17940 echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17947 conftest$ac_exeext conftest.$ac_ext
17948 cat >conftest.$ac_ext <<_ACEOF
17949 /* confdefs.h. */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 #define _LARGEFILE_SOURCE 1
17955 #include <stdio.h>
17957 main ()
17959 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17961 return 0;
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } && {
17978 test -z "$ac_c_werror_flag" ||
17979 test ! -s conftest.err
17980 } && test -s conftest$ac_exeext &&
17981 $as_test_x conftest$ac_exeext; then
17982 ac_cv_sys_largefile_source=1; break
17983 else
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17992 ac_cv_sys_largefile_source=unknown
17993 break
17994 done
17996 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17997 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17998 case $ac_cv_sys_largefile_source in #(
17999 no | unknown) ;;
18001 cat >>confdefs.h <<_ACEOF
18002 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18003 _ACEOF
18005 esac
18006 rm -f conftest*
18008 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18009 # in glibc 2.1.3, but that breaks too many other things.
18010 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18011 if test $ac_cv_sys_largefile_source != unknown; then
18013 cat >>confdefs.h <<\_ACEOF
18014 #define HAVE_FSEEKO 1
18015 _ACEOF
18020 # Configure getopt.
18021 # getopt.m4 serial 10
18023 # The getopt module assume you want GNU getopt, with getopt_long etc,
18024 # rather than vanilla POSIX getopt. This means your your code should
18025 # always include <getopt.h> for the getopt prototypes.
18037 # Prerequisites of lib/getopt*.
18042 GETOPT_H=
18044 for ac_header in getopt.h
18046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 ac_res=`eval echo '${'$as_ac_Header'}'`
18054 { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18056 else
18057 # Is the header compilable?
18058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h. */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18067 #include <$ac_header>
18068 _ACEOF
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest.$ac_objext; then
18086 ac_header_compiler=yes
18087 else
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_header_compiler=no
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18096 echo "${ECHO_T}$ac_header_compiler" >&6; }
18098 # Is the header present?
18099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18101 cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h. */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <$ac_header>
18108 _ACEOF
18109 if { (ac_try="$ac_cpp conftest.$ac_ext"
18110 case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } >/dev/null && {
18122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18123 test ! -s conftest.err
18124 }; then
18125 ac_header_preproc=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_header_preproc=no
18133 rm -f conftest.err conftest.$ac_ext
18134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18135 echo "${ECHO_T}$ac_header_preproc" >&6; }
18137 # So? What about this header?
18138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18139 yes:no: )
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18144 ac_header_preproc=yes
18146 no:yes:* )
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18161 esac
18162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167 eval "$as_ac_Header=\$ac_header_preproc"
18169 ac_res=`eval echo '${'$as_ac_Header'}'`
18170 { echo "$as_me:$LINENO: result: $ac_res" >&5
18171 echo "${ECHO_T}$ac_res" >&6; }
18174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18177 _ACEOF
18179 else
18180 GETOPT_H=getopt.h
18183 done
18185 if test -z "$GETOPT_H"; then
18187 for ac_func in getopt_long_only
18189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18194 else
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18203 #define $ac_func innocuous_$ac_func
18205 /* System header to define __stub macros and hopefully few prototypes,
18206 which can conflict with char $ac_func (); below.
18207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18208 <limits.h> exists even on freestanding compilers. */
18210 #ifdef __STDC__
18211 # include <limits.h>
18212 #else
18213 # include <assert.h>
18214 #endif
18216 #undef $ac_func
18218 /* Override any GCC internal prototype to avoid an error.
18219 Use char because int might match the return type of a GCC
18220 builtin and then its argument prototype would still apply. */
18221 #ifdef __cplusplus
18222 extern "C"
18223 #endif
18224 char $ac_func ();
18225 /* The GNU C library defines this for functions which it implements
18226 to always fail with ENOSYS. Some functions are actually named
18227 something starting with __ and the normal name is an alias. */
18228 #if defined __stub_$ac_func || defined __stub___$ac_func
18229 choke me
18230 #endif
18233 main ()
18235 return $ac_func ();
18237 return 0;
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext &&
18257 $as_test_x conftest$ac_exeext; then
18258 eval "$as_ac_var=yes"
18259 else
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 eval "$as_ac_var=no"
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267 conftest$ac_exeext conftest.$ac_ext
18269 ac_res=`eval echo '${'$as_ac_var'}'`
18270 { echo "$as_me:$LINENO: result: $ac_res" >&5
18271 echo "${ECHO_T}$ac_res" >&6; }
18272 if test `eval echo '${'$as_ac_var'}'` = yes; then
18273 cat >>confdefs.h <<_ACEOF
18274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18275 _ACEOF
18277 else
18278 GETOPT_H=getopt.h
18280 done
18284 if test -z "$GETOPT_H"; then
18285 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18286 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18287 if test "${ac_cv_have_decl_optreset+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h. */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 #include <getopt.h>
18299 main ()
18301 #ifndef optreset
18302 (void) optreset;
18303 #endif
18306 return 0;
18308 _ACEOF
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_compile") 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && {
18323 test -z "$ac_c_werror_flag" ||
18324 test ! -s conftest.err
18325 } && test -s conftest.$ac_objext; then
18326 ac_cv_have_decl_optreset=yes
18327 else
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 ac_cv_have_decl_optreset=no
18334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18336 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18337 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18338 if test $ac_cv_have_decl_optreset = yes; then
18339 GETOPT_H=getopt.h
18344 if test -z "$GETOPT_H"; then
18345 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18346 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18347 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350 if test "$cross_compiling" = yes; then
18351 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18352 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18353 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 else
18356 cat >conftest.$ac_ext <<_ACEOF
18357 /* confdefs.h. */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 #include <getopt.h>
18365 main ()
18367 #ifndef getopt_clip
18368 (void) getopt_clip;
18369 #endif
18372 return 0;
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_cv_have_decl_getopt_clip=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_cv_have_decl_getopt_clip=no
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18403 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18404 if test $ac_cv_have_decl_getopt_clip = yes; then
18405 gl_cv_func_gnu_getopt=no
18406 else
18407 gl_cv_func_gnu_getopt=yes
18410 else
18411 cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h. */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 #include <getopt.h>
18419 main ()
18422 char *myargv[3];
18423 myargv[0] = "conftest";
18424 myargv[1] = "-+";
18425 myargv[2] = 0;
18426 return getopt (2, myargv, "+a") != '?';
18429 return 0;
18431 _ACEOF
18432 rm -f conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_link") 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18443 { (case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18446 esac
18447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_try") 2>&5
18449 ac_status=$?
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; }; then
18452 gl_cv_func_gnu_getopt=yes
18453 else
18454 echo "$as_me: program exited with status $ac_status" >&5
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ( exit $ac_status )
18459 gl_cv_func_gnu_getopt=no
18461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18466 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18467 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18468 if test "$gl_cv_func_gnu_getopt" = "no"; then
18469 GETOPT_H=getopt.h
18475 if test -n "$GETOPT_H"; then
18478 GETOPT_H=getopt.h
18480 cat >>confdefs.h <<\_ACEOF
18481 #define __GETOPT_PREFIX rpl_
18482 _ACEOF
18487 GETOPTOBJS='getopt.o getopt1.o'
18494 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18495 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18496 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499 # Use it with a single arg.
18500 cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h. */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18506 $ac_includes_default
18508 main ()
18510 getpgrp (0);
18512 return 0;
18514 _ACEOF
18515 rm -f conftest.$ac_objext
18516 if { (ac_try="$ac_compile"
18517 case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_compile") 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } && {
18529 test -z "$ac_c_werror_flag" ||
18530 test ! -s conftest.err
18531 } && test -s conftest.$ac_objext; then
18532 ac_cv_func_getpgrp_void=no
18533 else
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_cv_func_getpgrp_void=yes
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18543 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18544 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18545 if test $ac_cv_func_getpgrp_void = yes; then
18547 cat >>confdefs.h <<\_ACEOF
18548 #define GETPGRP_VOID 1
18549 _ACEOF
18555 for ac_func in strftime
18557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h. */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18571 #define $ac_func innocuous_$ac_func
18573 /* System header to define __stub macros and hopefully few prototypes,
18574 which can conflict with char $ac_func (); below.
18575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18576 <limits.h> exists even on freestanding compilers. */
18578 #ifdef __STDC__
18579 # include <limits.h>
18580 #else
18581 # include <assert.h>
18582 #endif
18584 #undef $ac_func
18586 /* Override any GCC internal prototype to avoid an error.
18587 Use char because int might match the return type of a GCC
18588 builtin and then its argument prototype would still apply. */
18589 #ifdef __cplusplus
18590 extern "C"
18591 #endif
18592 char $ac_func ();
18593 /* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596 #if defined __stub_$ac_func || defined __stub___$ac_func
18597 choke me
18598 #endif
18601 main ()
18603 return $ac_func ();
18605 return 0;
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest$ac_exeext &&
18625 $as_test_x conftest$ac_exeext; then
18626 eval "$as_ac_var=yes"
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 eval "$as_ac_var=no"
18634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18635 conftest$ac_exeext conftest.$ac_ext
18637 ac_res=`eval echo '${'$as_ac_var'}'`
18638 { echo "$as_me:$LINENO: result: $ac_res" >&5
18639 echo "${ECHO_T}$ac_res" >&6; }
18640 if test `eval echo '${'$as_ac_var'}'` = yes; then
18641 cat >>confdefs.h <<_ACEOF
18642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18643 _ACEOF
18645 else
18646 # strftime is in -lintl on SCO UNIX.
18647 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18648 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18649 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652 ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lintl $LIBS"
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18661 /* Override any GCC internal prototype to avoid an error.
18662 Use char because int might match the return type of a GCC
18663 builtin and then its argument prototype would still apply. */
18664 #ifdef __cplusplus
18665 extern "C"
18666 #endif
18667 char strftime ();
18669 main ()
18671 return strftime ();
18673 return 0;
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && {
18690 test -z "$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18692 } && test -s conftest$ac_exeext &&
18693 $as_test_x conftest$ac_exeext; then
18694 ac_cv_lib_intl_strftime=yes
18695 else
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18699 ac_cv_lib_intl_strftime=no
18702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18703 conftest$ac_exeext conftest.$ac_ext
18704 LIBS=$ac_check_lib_save_LIBS
18706 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18707 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18708 if test $ac_cv_lib_intl_strftime = yes; then
18709 cat >>confdefs.h <<\_ACEOF
18710 #define HAVE_STRFTIME 1
18711 _ACEOF
18713 LIBS="-lintl $LIBS"
18717 done
18720 # UNIX98 PTYs.
18722 for ac_func in grantpt
18724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730 cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h. */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18738 #define $ac_func innocuous_$ac_func
18740 /* System header to define __stub macros and hopefully few prototypes,
18741 which can conflict with char $ac_func (); below.
18742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18743 <limits.h> exists even on freestanding compilers. */
18745 #ifdef __STDC__
18746 # include <limits.h>
18747 #else
18748 # include <assert.h>
18749 #endif
18751 #undef $ac_func
18753 /* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18756 #ifdef __cplusplus
18757 extern "C"
18758 #endif
18759 char $ac_func ();
18760 /* The GNU C library defines this for functions which it implements
18761 to always fail with ENOSYS. Some functions are actually named
18762 something starting with __ and the normal name is an alias. */
18763 #if defined __stub_$ac_func || defined __stub___$ac_func
18764 choke me
18765 #endif
18768 main ()
18770 return $ac_func ();
18772 return 0;
18774 _ACEOF
18775 rm -f conftest.$ac_objext conftest$ac_exeext
18776 if { (ac_try="$ac_link"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_link") 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } && {
18789 test -z "$ac_c_werror_flag" ||
18790 test ! -s conftest.err
18791 } && test -s conftest$ac_exeext &&
18792 $as_test_x conftest$ac_exeext; then
18793 eval "$as_ac_var=yes"
18794 else
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 eval "$as_ac_var=no"
18801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18802 conftest$ac_exeext conftest.$ac_ext
18804 ac_res=`eval echo '${'$as_ac_var'}'`
18805 { echo "$as_me:$LINENO: result: $ac_res" >&5
18806 echo "${ECHO_T}$ac_res" >&6; }
18807 if test `eval echo '${'$as_ac_var'}'` = yes; then
18808 cat >>confdefs.h <<_ACEOF
18809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18810 _ACEOF
18813 done
18816 # PTY-related GNU extensions.
18818 for ac_func in getpt
18820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18834 #define $ac_func innocuous_$ac_func
18836 /* System header to define __stub macros and hopefully few prototypes,
18837 which can conflict with char $ac_func (); below.
18838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18839 <limits.h> exists even on freestanding compilers. */
18841 #ifdef __STDC__
18842 # include <limits.h>
18843 #else
18844 # include <assert.h>
18845 #endif
18847 #undef $ac_func
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char $ac_func ();
18856 /* The GNU C library defines this for functions which it implements
18857 to always fail with ENOSYS. Some functions are actually named
18858 something starting with __ and the normal name is an alias. */
18859 #if defined __stub_$ac_func || defined __stub___$ac_func
18860 choke me
18861 #endif
18864 main ()
18866 return $ac_func ();
18868 return 0;
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } && {
18885 test -z "$ac_c_werror_flag" ||
18886 test ! -s conftest.err
18887 } && test -s conftest$ac_exeext &&
18888 $as_test_x conftest$ac_exeext; then
18889 eval "$as_ac_var=yes"
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 eval "$as_ac_var=no"
18897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18898 conftest$ac_exeext conftest.$ac_ext
18900 ac_res=`eval echo '${'$as_ac_var'}'`
18901 { echo "$as_me:$LINENO: result: $ac_res" >&5
18902 echo "${ECHO_T}$ac_res" >&6; }
18903 if test `eval echo '${'$as_ac_var'}'` = yes; then
18904 cat >>confdefs.h <<_ACEOF
18905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18906 _ACEOF
18909 done
18912 # Check this now, so that we will NOT find the above functions in ncurses.
18913 # That is because we have not set up to link ncurses in lib-src.
18914 # It's better to believe a function is not available
18915 # than to expect to find it in ncurses.
18917 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18918 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18919 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922 ac_check_lib_save_LIBS=$LIBS
18923 LIBS="-lncurses $LIBS"
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18931 /* Override any GCC internal prototype to avoid an error.
18932 Use char because int might match the return type of a GCC
18933 builtin and then its argument prototype would still apply. */
18934 #ifdef __cplusplus
18935 extern "C"
18936 #endif
18937 char tparm ();
18939 main ()
18941 return tparm ();
18943 return 0;
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_link") 2>conftest.er1
18954 ac_status=$?
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } && {
18960 test -z "$ac_c_werror_flag" ||
18961 test ! -s conftest.err
18962 } && test -s conftest$ac_exeext &&
18963 $as_test_x conftest$ac_exeext; then
18964 ac_cv_lib_ncurses_tparm=yes
18965 else
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 ac_cv_lib_ncurses_tparm=no
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973 conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18976 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18977 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18978 if test $ac_cv_lib_ncurses_tparm = yes; then
18979 cat >>confdefs.h <<_ACEOF
18980 #define HAVE_LIBNCURSES 1
18981 _ACEOF
18983 LIBS="-lncurses $LIBS"
18988 # Do we need the Hesiod library to provide the support routines?
18989 if test "$with_hesiod" = yes ; then
18990 # Don't set $LIBS here -- see comments above.
18991 resolv=no
18992 { echo "$as_me:$LINENO: checking for res_send" >&5
18993 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18994 if test "${ac_cv_func_res_send+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 else
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h. */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19005 #define res_send innocuous_res_send
19007 /* System header to define __stub macros and hopefully few prototypes,
19008 which can conflict with char res_send (); below.
19009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19010 <limits.h> exists even on freestanding compilers. */
19012 #ifdef __STDC__
19013 # include <limits.h>
19014 #else
19015 # include <assert.h>
19016 #endif
19018 #undef res_send
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19023 #ifdef __cplusplus
19024 extern "C"
19025 #endif
19026 char res_send ();
19027 /* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030 #if defined __stub_res_send || defined __stub___res_send
19031 choke me
19032 #endif
19035 main ()
19037 return res_send ();
19039 return 0;
19041 _ACEOF
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (ac_try="$ac_link"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19047 esac
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_link") 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } && {
19056 test -z "$ac_c_werror_flag" ||
19057 test ! -s conftest.err
19058 } && test -s conftest$ac_exeext &&
19059 $as_test_x conftest$ac_exeext; then
19060 ac_cv_func_res_send=yes
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_cv_func_res_send=no
19068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19069 conftest$ac_exeext conftest.$ac_ext
19071 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19072 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19073 if test $ac_cv_func_res_send = yes; then
19075 else
19076 { echo "$as_me:$LINENO: checking for __res_send" >&5
19077 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19078 if test "${ac_cv_func___res_send+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 else
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h. */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19089 #define __res_send innocuous___res_send
19091 /* System header to define __stub macros and hopefully few prototypes,
19092 which can conflict with char __res_send (); below.
19093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19094 <limits.h> exists even on freestanding compilers. */
19096 #ifdef __STDC__
19097 # include <limits.h>
19098 #else
19099 # include <assert.h>
19100 #endif
19102 #undef __res_send
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19107 #ifdef __cplusplus
19108 extern "C"
19109 #endif
19110 char __res_send ();
19111 /* The GNU C library defines this for functions which it implements
19112 to always fail with ENOSYS. Some functions are actually named
19113 something starting with __ and the normal name is an alias. */
19114 #if defined __stub___res_send || defined __stub_____res_send
19115 choke me
19116 #endif
19119 main ()
19121 return __res_send ();
19123 return 0;
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest$ac_exeext &&
19143 $as_test_x conftest$ac_exeext; then
19144 ac_cv_func___res_send=yes
19145 else
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19149 ac_cv_func___res_send=no
19152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19153 conftest$ac_exeext conftest.$ac_ext
19155 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19156 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19157 if test $ac_cv_func___res_send = yes; then
19159 else
19160 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19161 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19162 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165 ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-lresolv $LIBS"
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19174 /* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 char res_send ();
19182 main ()
19184 return res_send ();
19186 return 0;
19188 _ACEOF
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
19207 ac_cv_lib_resolv_res_send=yes
19208 else
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_lib_resolv_res_send=no
19215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19216 conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19219 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19220 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19221 if test $ac_cv_lib_resolv_res_send = yes; then
19222 resolv=yes
19223 else
19224 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19225 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19226 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 else
19229 ac_check_lib_save_LIBS=$LIBS
19230 LIBS="-lresolv $LIBS"
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19238 /* Override any GCC internal prototype to avoid an error.
19239 Use char because int might match the return type of a GCC
19240 builtin and then its argument prototype would still apply. */
19241 #ifdef __cplusplus
19242 extern "C"
19243 #endif
19244 char __res_send ();
19246 main ()
19248 return __res_send ();
19250 return 0;
19252 _ACEOF
19253 rm -f conftest.$ac_objext conftest$ac_exeext
19254 if { (ac_try="$ac_link"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_link") 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && {
19267 test -z "$ac_c_werror_flag" ||
19268 test ! -s conftest.err
19269 } && test -s conftest$ac_exeext &&
19270 $as_test_x conftest$ac_exeext; then
19271 ac_cv_lib_resolv___res_send=yes
19272 else
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_lib_resolv___res_send=no
19279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19280 conftest$ac_exeext conftest.$ac_ext
19281 LIBS=$ac_check_lib_save_LIBS
19283 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19284 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19285 if test $ac_cv_lib_resolv___res_send = yes; then
19286 resolv=yes
19295 if test "$resolv" = yes ; then
19296 RESOLVLIB=-lresolv
19298 cat >>confdefs.h <<\_ACEOF
19299 #define HAVE_LIBRESOLV 1
19300 _ACEOF
19302 else
19303 RESOLVLIB=
19305 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19306 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19307 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h. */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19318 #define hes_getmailhost innocuous_hes_getmailhost
19320 /* System header to define __stub macros and hopefully few prototypes,
19321 which can conflict with char hes_getmailhost (); below.
19322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19323 <limits.h> exists even on freestanding compilers. */
19325 #ifdef __STDC__
19326 # include <limits.h>
19327 #else
19328 # include <assert.h>
19329 #endif
19331 #undef hes_getmailhost
19333 /* Override any GCC internal prototype to avoid an error.
19334 Use char because int might match the return type of a GCC
19335 builtin and then its argument prototype would still apply. */
19336 #ifdef __cplusplus
19337 extern "C"
19338 #endif
19339 char hes_getmailhost ();
19340 /* The GNU C library defines this for functions which it implements
19341 to always fail with ENOSYS. Some functions are actually named
19342 something starting with __ and the normal name is an alias. */
19343 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19344 choke me
19345 #endif
19348 main ()
19350 return hes_getmailhost ();
19352 return 0;
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (ac_try="$ac_link"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_link") 2>conftest.er1
19363 ac_status=$?
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest$ac_exeext &&
19372 $as_test_x conftest$ac_exeext; then
19373 ac_cv_func_hes_getmailhost=yes
19374 else
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 ac_cv_func_hes_getmailhost=no
19381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382 conftest$ac_exeext conftest.$ac_ext
19384 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19385 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19386 if test $ac_cv_func_hes_getmailhost = yes; then
19388 else
19389 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19390 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19391 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394 ac_check_lib_save_LIBS=$LIBS
19395 LIBS="-lhesiod $RESOLVLIB $LIBS"
19396 cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h. */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19403 /* Override any GCC internal prototype to avoid an error.
19404 Use char because int might match the return type of a GCC
19405 builtin and then its argument prototype would still apply. */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 char hes_getmailhost ();
19411 main ()
19413 return hes_getmailhost ();
19415 return 0;
19417 _ACEOF
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (ac_try="$ac_link"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_link") 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } && {
19432 test -z "$ac_c_werror_flag" ||
19433 test ! -s conftest.err
19434 } && test -s conftest$ac_exeext &&
19435 $as_test_x conftest$ac_exeext; then
19436 ac_cv_lib_hesiod_hes_getmailhost=yes
19437 else
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_lib_hesiod_hes_getmailhost=no
19444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19445 conftest$ac_exeext conftest.$ac_ext
19446 LIBS=$ac_check_lib_save_LIBS
19448 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19449 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19450 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_LIBHESIOD 1
19454 _ACEOF
19456 else
19464 # These tell us which Kerberos-related libraries to use.
19465 if test "${with_kerberos+set}" = set; then
19467 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19468 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19469 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472 ac_check_lib_save_LIBS=$LIBS
19473 LIBS="-lcom_err $LIBS"
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h. */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19484 #ifdef __cplusplus
19485 extern "C"
19486 #endif
19487 char com_err ();
19489 main ()
19491 return com_err ();
19493 return 0;
19495 _ACEOF
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_link") 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } && {
19510 test -z "$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 } && test -s conftest$ac_exeext &&
19513 $as_test_x conftest$ac_exeext; then
19514 ac_cv_lib_com_err_com_err=yes
19515 else
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ac_cv_lib_com_err_com_err=no
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19523 conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19526 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19527 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19528 if test $ac_cv_lib_com_err_com_err = yes; then
19529 cat >>confdefs.h <<_ACEOF
19530 #define HAVE_LIBCOM_ERR 1
19531 _ACEOF
19533 LIBS="-lcom_err $LIBS"
19538 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19539 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19540 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543 ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lk5crypto $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19552 /* Override any GCC internal prototype to avoid an error.
19553 Use char because int might match the return type of a GCC
19554 builtin and then its argument prototype would still apply. */
19555 #ifdef __cplusplus
19556 extern "C"
19557 #endif
19558 char mit_des_cbc_encrypt ();
19560 main ()
19562 return mit_des_cbc_encrypt ();
19564 return 0;
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_link") 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest$ac_exeext &&
19584 $as_test_x conftest$ac_exeext; then
19585 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19586 else
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594 conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19597 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19598 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19599 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19600 cat >>confdefs.h <<_ACEOF
19601 #define HAVE_LIBK5CRYPTO 1
19602 _ACEOF
19604 LIBS="-lk5crypto $LIBS"
19609 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19610 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19611 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614 ac_check_lib_save_LIBS=$LIBS
19615 LIBS="-lcrypto $LIBS"
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19623 /* Override any GCC internal prototype to avoid an error.
19624 Use char because int might match the return type of a GCC
19625 builtin and then its argument prototype would still apply. */
19626 #ifdef __cplusplus
19627 extern "C"
19628 #endif
19629 char mit_des_cbc_encrypt ();
19631 main ()
19633 return mit_des_cbc_encrypt ();
19635 return 0;
19637 _ACEOF
19638 rm -f conftest.$ac_objext conftest$ac_exeext
19639 if { (ac_try="$ac_link"
19640 case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_link") 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && {
19652 test -z "$ac_c_werror_flag" ||
19653 test ! -s conftest.err
19654 } && test -s conftest$ac_exeext &&
19655 $as_test_x conftest$ac_exeext; then
19656 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19657 else
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19665 conftest$ac_exeext conftest.$ac_ext
19666 LIBS=$ac_check_lib_save_LIBS
19668 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19669 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19670 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19671 cat >>confdefs.h <<_ACEOF
19672 #define HAVE_LIBCRYPTO 1
19673 _ACEOF
19675 LIBS="-lcrypto $LIBS"
19680 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19681 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19682 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685 ac_check_lib_save_LIBS=$LIBS
19686 LIBS="-lkrb5 $LIBS"
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19694 /* Override any GCC internal prototype to avoid an error.
19695 Use char because int might match the return type of a GCC
19696 builtin and then its argument prototype would still apply. */
19697 #ifdef __cplusplus
19698 extern "C"
19699 #endif
19700 char krb5_init_context ();
19702 main ()
19704 return krb5_init_context ();
19706 return 0;
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (ac_try="$ac_link"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_link") 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest$ac_exeext &&
19726 $as_test_x conftest$ac_exeext; then
19727 ac_cv_lib_krb5_krb5_init_context=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_lib_krb5_krb5_init_context=no
19735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19736 conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_check_lib_save_LIBS
19739 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19740 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19741 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19742 cat >>confdefs.h <<_ACEOF
19743 #define HAVE_LIBKRB5 1
19744 _ACEOF
19746 LIBS="-lkrb5 $LIBS"
19750 if test "${with_kerberos5+set}" != set; then
19752 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19753 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19754 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 ac_check_lib_save_LIBS=$LIBS
19758 LIBS="-ldes425 $LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h. */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19766 /* Override any GCC internal prototype to avoid an error.
19767 Use char because int might match the return type of a GCC
19768 builtin and then its argument prototype would still apply. */
19769 #ifdef __cplusplus
19770 extern "C"
19771 #endif
19772 char des_cbc_encrypt ();
19774 main ()
19776 return des_cbc_encrypt ();
19778 return 0;
19780 _ACEOF
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (ac_try="$ac_link"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_link") 2>conftest.er1
19789 ac_status=$?
19790 grep -v '^ *+' conftest.er1 >conftest.err
19791 rm -f conftest.er1
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } && {
19795 test -z "$ac_c_werror_flag" ||
19796 test ! -s conftest.err
19797 } && test -s conftest$ac_exeext &&
19798 $as_test_x conftest$ac_exeext; then
19799 ac_cv_lib_des425_des_cbc_encrypt=yes
19800 else
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_cv_lib_des425_des_cbc_encrypt=no
19807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19812 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19813 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define HAVE_LIBDES425 1
19816 _ACEOF
19818 LIBS="-ldes425 $LIBS"
19820 else
19822 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19823 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19824 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827 ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-ldes $LIBS"
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h. */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19836 /* Override any GCC internal prototype to avoid an error.
19837 Use char because int might match the return type of a GCC
19838 builtin and then its argument prototype would still apply. */
19839 #ifdef __cplusplus
19840 extern "C"
19841 #endif
19842 char des_cbc_encrypt ();
19844 main ()
19846 return des_cbc_encrypt ();
19848 return 0;
19850 _ACEOF
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_link") 2>conftest.er1
19859 ac_status=$?
19860 grep -v '^ *+' conftest.er1 >conftest.err
19861 rm -f conftest.er1
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } && {
19865 test -z "$ac_c_werror_flag" ||
19866 test ! -s conftest.err
19867 } && test -s conftest$ac_exeext &&
19868 $as_test_x conftest$ac_exeext; then
19869 ac_cv_lib_des_des_cbc_encrypt=yes
19870 else
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_lib_des_des_cbc_encrypt=no
19877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19878 conftest$ac_exeext conftest.$ac_ext
19879 LIBS=$ac_check_lib_save_LIBS
19881 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19882 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19883 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_LIBDES 1
19886 _ACEOF
19888 LIBS="-ldes $LIBS"
19895 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19896 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19897 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900 ac_check_lib_save_LIBS=$LIBS
19901 LIBS="-lkrb4 $LIBS"
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h. */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19909 /* Override any GCC internal prototype to avoid an error.
19910 Use char because int might match the return type of a GCC
19911 builtin and then its argument prototype would still apply. */
19912 #ifdef __cplusplus
19913 extern "C"
19914 #endif
19915 char krb_get_cred ();
19917 main ()
19919 return krb_get_cred ();
19921 return 0;
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest$ac_exeext &&
19941 $as_test_x conftest$ac_exeext; then
19942 ac_cv_lib_krb4_krb_get_cred=yes
19943 else
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_cv_lib_krb4_krb_get_cred=no
19950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19951 conftest$ac_exeext conftest.$ac_ext
19952 LIBS=$ac_check_lib_save_LIBS
19954 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19955 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19956 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19957 cat >>confdefs.h <<_ACEOF
19958 #define HAVE_LIBKRB4 1
19959 _ACEOF
19961 LIBS="-lkrb4 $LIBS"
19963 else
19965 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19966 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19967 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970 ac_check_lib_save_LIBS=$LIBS
19971 LIBS="-lkrb $LIBS"
19972 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h. */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 /* Override any GCC internal prototype to avoid an error.
19980 Use char because int might match the return type of a GCC
19981 builtin and then its argument prototype would still apply. */
19982 #ifdef __cplusplus
19983 extern "C"
19984 #endif
19985 char krb_get_cred ();
19987 main ()
19989 return krb_get_cred ();
19991 return 0;
19993 _ACEOF
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (ac_try="$ac_link"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_link") 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext &&
20011 $as_test_x conftest$ac_exeext; then
20012 ac_cv_lib_krb_krb_get_cred=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_cv_lib_krb_krb_get_cred=no
20020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20021 conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20024 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20025 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20026 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20027 cat >>confdefs.h <<_ACEOF
20028 #define HAVE_LIBKRB 1
20029 _ACEOF
20031 LIBS="-lkrb $LIBS"
20039 if test "${with_kerberos5+set}" = set; then
20041 for ac_header in krb5.h
20043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 ac_res=`eval echo '${'$as_ac_Header'}'`
20051 { echo "$as_me:$LINENO: result: $ac_res" >&5
20052 echo "${ECHO_T}$ac_res" >&6; }
20053 else
20054 # Is the header compilable?
20055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 $ac_includes_default
20064 #include <$ac_header>
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (ac_try="$ac_compile"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_compile") 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest.$ac_objext; then
20083 ac_header_compiler=yes
20084 else
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20088 ac_header_compiler=no
20091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20093 echo "${ECHO_T}$ac_header_compiler" >&6; }
20095 # Is the header present?
20096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 #include <$ac_header>
20105 _ACEOF
20106 if { (ac_try="$ac_cpp conftest.$ac_ext"
20107 case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev/null && {
20119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 }; then
20122 ac_header_preproc=yes
20123 else
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_header_preproc=no
20130 rm -f conftest.err conftest.$ac_ext
20131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20132 echo "${ECHO_T}$ac_header_preproc" >&6; }
20134 # So? What about this header?
20135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20136 yes:no: )
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20141 ac_header_preproc=yes
20143 no:yes:* )
20144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20158 esac
20159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 else
20164 eval "$as_ac_Header=\$ac_header_preproc"
20166 ac_res=`eval echo '${'$as_ac_Header'}'`
20167 { echo "$as_me:$LINENO: result: $ac_res" >&5
20168 echo "${ECHO_T}$ac_res" >&6; }
20171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20172 cat >>confdefs.h <<_ACEOF
20173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20174 _ACEOF
20178 done
20180 else
20182 for ac_header in des.h
20184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 ac_res=`eval echo '${'$as_ac_Header'}'`
20192 { echo "$as_me:$LINENO: result: $ac_res" >&5
20193 echo "${ECHO_T}$ac_res" >&6; }
20194 else
20195 # Is the header compilable?
20196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h. */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 $ac_includes_default
20205 #include <$ac_header>
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_compile") 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest.$ac_objext; then
20224 ac_header_compiler=yes
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ac_header_compiler=no
20232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20234 echo "${ECHO_T}$ac_header_compiler" >&6; }
20236 # Is the header present?
20237 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20239 cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h. */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 #include <$ac_header>
20246 _ACEOF
20247 if { (ac_try="$ac_cpp conftest.$ac_ext"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20254 ac_status=$?
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } >/dev/null && {
20260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20261 test ! -s conftest.err
20262 }; then
20263 ac_header_preproc=yes
20264 else
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ac_header_preproc=no
20271 rm -f conftest.err conftest.$ac_ext
20272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20273 echo "${ECHO_T}$ac_header_preproc" >&6; }
20275 # So? What about this header?
20276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20277 yes:no: )
20278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20282 ac_header_preproc=yes
20284 no:yes:* )
20285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20299 esac
20300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 eval "$as_ac_Header=\$ac_header_preproc"
20307 ac_res=`eval echo '${'$as_ac_Header'}'`
20308 { echo "$as_me:$LINENO: result: $ac_res" >&5
20309 echo "${ECHO_T}$ac_res" >&6; }
20312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20313 cat >>confdefs.h <<_ACEOF
20314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20315 _ACEOF
20317 else
20319 for ac_header in kerberosIV/des.h
20321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 ac_res=`eval echo '${'$as_ac_Header'}'`
20329 { echo "$as_me:$LINENO: result: $ac_res" >&5
20330 echo "${ECHO_T}$ac_res" >&6; }
20331 else
20332 # Is the header compilable?
20333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 $ac_includes_default
20342 #include <$ac_header>
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_compile") 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest.$ac_objext; then
20361 ac_header_compiler=yes
20362 else
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_header_compiler=no
20369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20371 echo "${ECHO_T}$ac_header_compiler" >&6; }
20373 # Is the header present?
20374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h. */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 #include <$ac_header>
20383 _ACEOF
20384 if { (ac_try="$ac_cpp conftest.$ac_ext"
20385 case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } >/dev/null && {
20397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20398 test ! -s conftest.err
20399 }; then
20400 ac_header_preproc=yes
20401 else
20402 echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20405 ac_header_preproc=no
20408 rm -f conftest.err conftest.$ac_ext
20409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20410 echo "${ECHO_T}$ac_header_preproc" >&6; }
20412 # So? What about this header?
20413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20414 yes:no: )
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20419 ac_header_preproc=yes
20421 no:yes:* )
20422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20436 esac
20437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442 eval "$as_ac_Header=\$ac_header_preproc"
20444 ac_res=`eval echo '${'$as_ac_Header'}'`
20445 { echo "$as_me:$LINENO: result: $ac_res" >&5
20446 echo "${ECHO_T}$ac_res" >&6; }
20449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20450 cat >>confdefs.h <<_ACEOF
20451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20452 _ACEOF
20454 else
20456 for ac_header in kerberos/des.h
20458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 ac_res=`eval echo '${'$as_ac_Header'}'`
20466 { echo "$as_me:$LINENO: result: $ac_res" >&5
20467 echo "${ECHO_T}$ac_res" >&6; }
20468 else
20469 # Is the header compilable?
20470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 $ac_includes_default
20479 #include <$ac_header>
20480 _ACEOF
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && {
20495 test -z "$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 } && test -s conftest.$ac_objext; then
20498 ac_header_compiler=yes
20499 else
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ac_header_compiler=no
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20508 echo "${ECHO_T}$ac_header_compiler" >&6; }
20510 # Is the header present?
20511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h. */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 #include <$ac_header>
20520 _ACEOF
20521 if { (ac_try="$ac_cpp conftest.$ac_ext"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } >/dev/null && {
20534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20536 }; then
20537 ac_header_preproc=yes
20538 else
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 ac_header_preproc=no
20545 rm -f conftest.err conftest.$ac_ext
20546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20547 echo "${ECHO_T}$ac_header_preproc" >&6; }
20549 # So? What about this header?
20550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20551 yes:no: )
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20556 ac_header_preproc=yes
20558 no:yes:* )
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20573 esac
20574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579 eval "$as_ac_Header=\$ac_header_preproc"
20581 ac_res=`eval echo '${'$as_ac_Header'}'`
20582 { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20589 _ACEOF
20593 done
20597 done
20601 done
20604 for ac_header in krb.h
20606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 ac_res=`eval echo '${'$as_ac_Header'}'`
20614 { echo "$as_me:$LINENO: result: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20616 else
20617 # Is the header compilable?
20618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h. */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 $ac_includes_default
20627 #include <$ac_header>
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest.$ac_objext; then
20646 ac_header_compiler=yes
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 ac_header_compiler=no
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20656 echo "${ECHO_T}$ac_header_compiler" >&6; }
20658 # Is the header present?
20659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h. */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 #include <$ac_header>
20668 _ACEOF
20669 if { (ac_try="$ac_cpp conftest.$ac_ext"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } >/dev/null && {
20682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 }; then
20685 ac_header_preproc=yes
20686 else
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_header_preproc=no
20693 rm -f conftest.err conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20695 echo "${ECHO_T}$ac_header_preproc" >&6; }
20697 # So? What about this header?
20698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20699 yes:no: )
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20704 ac_header_preproc=yes
20706 no:yes:* )
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20721 esac
20722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 eval "$as_ac_Header=\$ac_header_preproc"
20729 ac_res=`eval echo '${'$as_ac_Header'}'`
20730 { echo "$as_me:$LINENO: result: $ac_res" >&5
20731 echo "${ECHO_T}$ac_res" >&6; }
20734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20737 _ACEOF
20739 else
20741 for ac_header in kerberosIV/krb.h
20743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 ac_res=`eval echo '${'$as_ac_Header'}'`
20751 { echo "$as_me:$LINENO: result: $ac_res" >&5
20752 echo "${ECHO_T}$ac_res" >&6; }
20753 else
20754 # Is the header compilable?
20755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 $ac_includes_default
20764 #include <$ac_header>
20765 _ACEOF
20766 rm -f conftest.$ac_objext
20767 if { (ac_try="$ac_compile"
20768 case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20771 esac
20772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20773 (eval "$ac_compile") 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest.$ac_objext; then
20783 ac_header_compiler=yes
20784 else
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ac_header_compiler=no
20791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20793 echo "${ECHO_T}$ac_header_compiler" >&6; }
20795 # Is the header present?
20796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <$ac_header>
20805 _ACEOF
20806 if { (ac_try="$ac_cpp conftest.$ac_ext"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } >/dev/null && {
20819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20820 test ! -s conftest.err
20821 }; then
20822 ac_header_preproc=yes
20823 else
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_header_preproc=no
20830 rm -f conftest.err conftest.$ac_ext
20831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20832 echo "${ECHO_T}$ac_header_preproc" >&6; }
20834 # So? What about this header?
20835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20836 yes:no: )
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20841 ac_header_preproc=yes
20843 no:yes:* )
20844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20858 esac
20859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864 eval "$as_ac_Header=\$ac_header_preproc"
20866 ac_res=`eval echo '${'$as_ac_Header'}'`
20867 { echo "$as_me:$LINENO: result: $ac_res" >&5
20868 echo "${ECHO_T}$ac_res" >&6; }
20871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20872 cat >>confdefs.h <<_ACEOF
20873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20874 _ACEOF
20876 else
20878 for ac_header in kerberos/krb.h
20880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 ac_res=`eval echo '${'$as_ac_Header'}'`
20888 { echo "$as_me:$LINENO: result: $ac_res" >&5
20889 echo "${ECHO_T}$ac_res" >&6; }
20890 else
20891 # Is the header compilable?
20892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h. */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 $ac_includes_default
20901 #include <$ac_header>
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_compile") 2>conftest.er1
20911 ac_status=$?
20912 grep -v '^ *+' conftest.er1 >conftest.err
20913 rm -f conftest.er1
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && {
20917 test -z "$ac_c_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest.$ac_objext; then
20920 ac_header_compiler=yes
20921 else
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ac_header_compiler=no
20928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20930 echo "${ECHO_T}$ac_header_compiler" >&6; }
20932 # Is the header present?
20933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20935 cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h. */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 #include <$ac_header>
20942 _ACEOF
20943 if { (ac_try="$ac_cpp conftest.$ac_ext"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } >/dev/null && {
20956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 }; then
20959 ac_header_preproc=yes
20960 else
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 ac_header_preproc=no
20967 rm -f conftest.err conftest.$ac_ext
20968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20969 echo "${ECHO_T}$ac_header_preproc" >&6; }
20971 # So? What about this header?
20972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20973 yes:no: )
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20978 ac_header_preproc=yes
20980 no:yes:* )
20981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20995 esac
20996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000 else
21001 eval "$as_ac_Header=\$ac_header_preproc"
21003 ac_res=`eval echo '${'$as_ac_Header'}'`
21004 { echo "$as_me:$LINENO: result: $ac_res" >&5
21005 echo "${ECHO_T}$ac_res" >&6; }
21008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21011 _ACEOF
21015 done
21019 done
21023 done
21027 for ac_header in com_err.h
21029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 ac_res=`eval echo '${'$as_ac_Header'}'`
21037 { echo "$as_me:$LINENO: result: $ac_res" >&5
21038 echo "${ECHO_T}$ac_res" >&6; }
21039 else
21040 # Is the header compilable?
21041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21043 cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h. */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 $ac_includes_default
21050 #include <$ac_header>
21051 _ACEOF
21052 rm -f conftest.$ac_objext
21053 if { (ac_try="$ac_compile"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_compile") 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } && {
21066 test -z "$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest.$ac_objext; then
21069 ac_header_compiler=yes
21070 else
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_header_compiler=no
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21079 echo "${ECHO_T}$ac_header_compiler" >&6; }
21081 # Is the header present?
21082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21084 cat >conftest.$ac_ext <<_ACEOF
21085 /* confdefs.h. */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21090 #include <$ac_header>
21091 _ACEOF
21092 if { (ac_try="$ac_cpp conftest.$ac_ext"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } >/dev/null && {
21105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 }; then
21108 ac_header_preproc=yes
21109 else
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ac_header_preproc=no
21116 rm -f conftest.err conftest.$ac_ext
21117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21118 echo "${ECHO_T}$ac_header_preproc" >&6; }
21120 # So? What about this header?
21121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21122 yes:no: )
21123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21127 ac_header_preproc=yes
21129 no:yes:* )
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21144 esac
21145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150 eval "$as_ac_Header=\$ac_header_preproc"
21152 ac_res=`eval echo '${'$as_ac_Header'}'`
21153 { echo "$as_me:$LINENO: result: $ac_res" >&5
21154 echo "${ECHO_T}$ac_res" >&6; }
21157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21160 _ACEOF
21164 done
21168 # Solaris requires -lintl if you want strerror (which calls dgettext)
21169 # to return localized messages.
21171 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21172 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21173 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176 ac_check_lib_save_LIBS=$LIBS
21177 LIBS="-lintl $LIBS"
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char dgettext ();
21193 main ()
21195 return dgettext ();
21197 return 0;
21199 _ACEOF
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_link") 2>conftest.er1
21208 ac_status=$?
21209 grep -v '^ *+' conftest.er1 >conftest.err
21210 rm -f conftest.er1
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } && {
21214 test -z "$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21216 } && test -s conftest$ac_exeext &&
21217 $as_test_x conftest$ac_exeext; then
21218 ac_cv_lib_intl_dgettext=yes
21219 else
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_lib_intl_dgettext=no
21226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21227 conftest$ac_exeext conftest.$ac_ext
21228 LIBS=$ac_check_lib_save_LIBS
21230 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21231 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21232 if test $ac_cv_lib_intl_dgettext = yes; then
21233 cat >>confdefs.h <<_ACEOF
21234 #define HAVE_LIBINTL 1
21235 _ACEOF
21237 LIBS="-lintl $LIBS"
21242 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21243 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21244 if test "${emacs_cv_localtime_cache+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247 if test x$ac_cv_func_tzset = xyes; then
21248 if test "$cross_compiling" = yes; then
21249 # If we have tzset, assume the worst when cross-compiling.
21250 emacs_cv_localtime_cache=yes
21251 else
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h. */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 #include <time.h>
21259 extern char **environ;
21260 unset_TZ ()
21262 char **from, **to;
21263 for (to = from = environ; (*to = *from); from++)
21264 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21265 to++;
21267 char TZ_GMT0[] = "TZ=GMT0";
21268 char TZ_PST8[] = "TZ=PST8";
21269 main()
21271 time_t now = time ((time_t *) 0);
21272 int hour_GMT0, hour_unset;
21273 if (putenv (TZ_GMT0) != 0)
21274 exit (1);
21275 hour_GMT0 = localtime (&now)->tm_hour;
21276 unset_TZ ();
21277 hour_unset = localtime (&now)->tm_hour;
21278 if (putenv (TZ_PST8) != 0)
21279 exit (1);
21280 if (localtime (&now)->tm_hour == hour_GMT0)
21281 exit (1);
21282 unset_TZ ();
21283 if (localtime (&now)->tm_hour != hour_unset)
21284 exit (1);
21285 exit (0);
21287 _ACEOF
21288 rm -f conftest$ac_exeext
21289 if { (ac_try="$ac_link"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_link") 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21299 { (case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_try") 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 emacs_cv_localtime_cache=no
21309 else
21310 echo "$as_me: program exited with status $ac_status" >&5
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 ( exit $ac_status )
21315 emacs_cv_localtime_cache=yes
21317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21321 else
21322 # If we lack tzset, report that localtime does not cache TZ,
21323 # since we can't invalidate the cache if we don't have tzset.
21324 emacs_cv_localtime_cache=no
21327 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21328 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21329 if test $emacs_cv_localtime_cache = yes; then
21331 cat >>confdefs.h <<\_ACEOF
21332 #define LOCALTIME_CACHE 1
21333 _ACEOF
21337 if test "x$HAVE_TIMEVAL" = xyes; then
21339 for ac_func in gettimeofday
21341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21355 #define $ac_func innocuous_$ac_func
21357 /* System header to define __stub macros and hopefully few prototypes,
21358 which can conflict with char $ac_func (); below.
21359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21360 <limits.h> exists even on freestanding compilers. */
21362 #ifdef __STDC__
21363 # include <limits.h>
21364 #else
21365 # include <assert.h>
21366 #endif
21368 #undef $ac_func
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21373 #ifdef __cplusplus
21374 extern "C"
21375 #endif
21376 char $ac_func ();
21377 /* The GNU C library defines this for functions which it implements
21378 to always fail with ENOSYS. Some functions are actually named
21379 something starting with __ and the normal name is an alias. */
21380 #if defined __stub_$ac_func || defined __stub___$ac_func
21381 choke me
21382 #endif
21385 main ()
21387 return $ac_func ();
21389 return 0;
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
21400 ac_status=$?
21401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest$ac_exeext &&
21409 $as_test_x conftest$ac_exeext; then
21410 eval "$as_ac_var=yes"
21411 else
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21415 eval "$as_ac_var=no"
21418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21419 conftest$ac_exeext conftest.$ac_ext
21421 ac_res=`eval echo '${'$as_ac_var'}'`
21422 { echo "$as_me:$LINENO: result: $ac_res" >&5
21423 echo "${ECHO_T}$ac_res" >&6; }
21424 if test `eval echo '${'$as_ac_var'}'` = yes; then
21425 cat >>confdefs.h <<_ACEOF
21426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21427 _ACEOF
21430 done
21432 if test $ac_cv_func_gettimeofday = yes; then
21433 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21434 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21435 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21445 #ifdef TIME_WITH_SYS_TIME
21446 #include <sys/time.h>
21447 #include <time.h>
21448 #else
21449 #ifdef HAVE_SYS_TIME_H
21450 #include <sys/time.h>
21451 #else
21452 #include <time.h>
21453 #endif
21454 #endif
21456 main ()
21458 struct timeval time;
21459 gettimeofday (&time, 0);
21461 return 0;
21463 _ACEOF
21464 rm -f conftest.$ac_objext
21465 if { (ac_try="$ac_compile"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21469 esac
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_compile") 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } && {
21478 test -z "$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 } && test -s conftest.$ac_objext; then
21481 emacs_cv_gettimeofday_two_arguments=yes
21482 else
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 emacs_cv_gettimeofday_two_arguments=no
21489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21491 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21492 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21493 if test $emacs_cv_gettimeofday_two_arguments = no; then
21495 cat >>confdefs.h <<\_ACEOF
21496 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21497 _ACEOF
21503 ok_so_far=yes
21504 { echo "$as_me:$LINENO: checking for socket" >&5
21505 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21506 if test "${ac_cv_func_socket+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509 cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h. */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21515 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21517 #define socket innocuous_socket
21519 /* System header to define __stub macros and hopefully few prototypes,
21520 which can conflict with char socket (); below.
21521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21522 <limits.h> exists even on freestanding compilers. */
21524 #ifdef __STDC__
21525 # include <limits.h>
21526 #else
21527 # include <assert.h>
21528 #endif
21530 #undef socket
21532 /* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21535 #ifdef __cplusplus
21536 extern "C"
21537 #endif
21538 char socket ();
21539 /* The GNU C library defines this for functions which it implements
21540 to always fail with ENOSYS. Some functions are actually named
21541 something starting with __ and the normal name is an alias. */
21542 #if defined __stub_socket || defined __stub___socket
21543 choke me
21544 #endif
21547 main ()
21549 return socket ();
21551 return 0;
21553 _ACEOF
21554 rm -f conftest.$ac_objext conftest$ac_exeext
21555 if { (ac_try="$ac_link"
21556 case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_link") 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } && {
21568 test -z "$ac_c_werror_flag" ||
21569 test ! -s conftest.err
21570 } && test -s conftest$ac_exeext &&
21571 $as_test_x conftest$ac_exeext; then
21572 ac_cv_func_socket=yes
21573 else
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_cv_func_socket=no
21580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21581 conftest$ac_exeext conftest.$ac_ext
21583 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21584 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21585 if test $ac_cv_func_socket = yes; then
21587 else
21588 ok_so_far=no
21591 if test $ok_so_far = yes; then
21592 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21593 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21594 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21595 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21598 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21599 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21600 else
21601 # Is the header compilable?
21602 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21603 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 $ac_includes_default
21611 #include <netinet/in.h>
21612 _ACEOF
21613 rm -f conftest.$ac_objext
21614 if { (ac_try="$ac_compile"
21615 case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21618 esac
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_compile") 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest.$ac_objext; then
21630 ac_header_compiler=yes
21631 else
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_header_compiler=no
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21640 echo "${ECHO_T}$ac_header_compiler" >&6; }
21642 # Is the header present?
21643 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21644 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <netinet/in.h>
21652 _ACEOF
21653 if { (ac_try="$ac_cpp conftest.$ac_ext"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } >/dev/null && {
21666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 }; then
21669 ac_header_preproc=yes
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_header_preproc=no
21677 rm -f conftest.err conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679 echo "${ECHO_T}$ac_header_preproc" >&6; }
21681 # So? What about this header?
21682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21683 yes:no: )
21684 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21685 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21687 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21688 ac_header_preproc=yes
21690 no:yes:* )
21691 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21692 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21694 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21696 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21698 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21700 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21701 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21702 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21705 esac
21706 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21707 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21708 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711 ac_cv_header_netinet_in_h=$ac_header_preproc
21713 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21714 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21717 if test $ac_cv_header_netinet_in_h = yes; then
21719 else
21720 ok_so_far=no
21725 if test $ok_so_far = yes; then
21726 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21727 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21728 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21729 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21732 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21733 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21734 else
21735 # Is the header compilable?
21736 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21737 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 $ac_includes_default
21745 #include <arpa/inet.h>
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (ac_try="$ac_compile"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_compile") 2>conftest.er1
21755 ac_status=$?
21756 grep -v '^ *+' conftest.er1 >conftest.err
21757 rm -f conftest.er1
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && {
21761 test -z "$ac_c_werror_flag" ||
21762 test ! -s conftest.err
21763 } && test -s conftest.$ac_objext; then
21764 ac_header_compiler=yes
21765 else
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_header_compiler=no
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774 echo "${ECHO_T}$ac_header_compiler" >&6; }
21776 # Is the header present?
21777 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21778 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h. */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <arpa/inet.h>
21786 _ACEOF
21787 if { (ac_try="$ac_cpp conftest.$ac_ext"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } >/dev/null && {
21800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 }; then
21803 ac_header_preproc=yes
21804 else
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_header_preproc=no
21811 rm -f conftest.err conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21813 echo "${ECHO_T}$ac_header_preproc" >&6; }
21815 # So? What about this header?
21816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21817 yes:no: )
21818 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21819 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21821 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21822 ac_header_preproc=yes
21824 no:yes:* )
21825 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21826 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21828 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21830 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21832 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21834 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21836 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21839 esac
21840 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21841 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21842 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845 ac_cv_header_arpa_inet_h=$ac_header_preproc
21847 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21848 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21851 if test $ac_cv_header_arpa_inet_h = yes; then
21853 else
21854 ok_so_far=no
21859 if test $ok_so_far = yes; then
21861 cat >>confdefs.h <<\_ACEOF
21862 #define HAVE_INET_SOCKETS 1
21863 _ACEOF
21868 for ac_header in sys/ioctl.h
21870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 ac_res=`eval echo '${'$as_ac_Header'}'`
21878 { echo "$as_me:$LINENO: result: $ac_res" >&5
21879 echo "${ECHO_T}$ac_res" >&6; }
21880 else
21881 # Is the header compilable?
21882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21884 cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h. */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21891 #include <$ac_header>
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_compile") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21910 ac_header_compiler=yes
21911 else
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_header_compiler=no
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21920 echo "${ECHO_T}$ac_header_compiler" >&6; }
21922 # Is the header present?
21923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h. */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <$ac_header>
21932 _ACEOF
21933 if { (ac_try="$ac_cpp conftest.$ac_ext"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } >/dev/null && {
21946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 }; then
21949 ac_header_preproc=yes
21950 else
21951 echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 ac_header_preproc=no
21957 rm -f conftest.err conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21959 echo "${ECHO_T}$ac_header_preproc" >&6; }
21961 # So? What about this header?
21962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21963 yes:no: )
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21968 ac_header_preproc=yes
21970 no:yes:* )
21971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21985 esac
21986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991 eval "$as_ac_Header=\$ac_header_preproc"
21993 ac_res=`eval echo '${'$as_ac_Header'}'`
21994 { echo "$as_me:$LINENO: result: $ac_res" >&5
21995 echo "${ECHO_T}$ac_res" >&6; }
21998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21999 cat >>confdefs.h <<_ACEOF
22000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22001 _ACEOF
22005 done
22008 if test -f /usr/lpp/X11/bin/smt.exp; then
22010 cat >>confdefs.h <<\_ACEOF
22011 #define HAVE_AIX_SMT_EXP 1
22012 _ACEOF
22016 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22017 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22018 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22019 { echo "$as_me:$LINENO: result: yes" >&5
22020 echo "${ECHO_T}yes" >&6; }
22022 cat >>confdefs.h <<\_ACEOF
22023 #define HAVE_DEV_PTMX 1
22024 _ACEOF
22026 else
22027 { echo "$as_me:$LINENO: result: no" >&5
22028 echo "${ECHO_T}no" >&6; }
22031 { echo "$as_me:$LINENO: checking for pid_t" >&5
22032 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22033 if test "${ac_cv_type_pid_t+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h. */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042 $ac_includes_default
22043 typedef pid_t ac__type_new_;
22045 main ()
22047 if ((ac__type_new_ *) 0)
22048 return 0;
22049 if (sizeof (ac__type_new_))
22050 return 0;
22052 return 0;
22054 _ACEOF
22055 rm -f conftest.$ac_objext
22056 if { (ac_try="$ac_compile"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_compile") 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } && {
22069 test -z "$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22071 } && test -s conftest.$ac_objext; then
22072 ac_cv_type_pid_t=yes
22073 else
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ac_cv_type_pid_t=no
22080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22083 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22084 if test $ac_cv_type_pid_t = yes; then
22086 else
22088 cat >>confdefs.h <<_ACEOF
22089 #define pid_t int
22090 _ACEOF
22095 for ac_header in vfork.h
22097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22104 ac_res=`eval echo '${'$as_ac_Header'}'`
22105 { echo "$as_me:$LINENO: result: $ac_res" >&5
22106 echo "${ECHO_T}$ac_res" >&6; }
22107 else
22108 # Is the header compilable?
22109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22111 cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h. */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22117 $ac_includes_default
22118 #include <$ac_header>
22119 _ACEOF
22120 rm -f conftest.$ac_objext
22121 if { (ac_try="$ac_compile"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125 esac
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_compile") 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest.$ac_objext; then
22137 ac_header_compiler=yes
22138 else
22139 echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22142 ac_header_compiler=no
22145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22147 echo "${ECHO_T}$ac_header_compiler" >&6; }
22149 # Is the header present?
22150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22152 cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h. */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 #include <$ac_header>
22159 _ACEOF
22160 if { (ac_try="$ac_cpp conftest.$ac_ext"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } >/dev/null && {
22173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 }; then
22176 ac_header_preproc=yes
22177 else
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ac_header_preproc=no
22184 rm -f conftest.err conftest.$ac_ext
22185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22186 echo "${ECHO_T}$ac_header_preproc" >&6; }
22188 # So? What about this header?
22189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22190 yes:no: )
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22195 ac_header_preproc=yes
22197 no:yes:* )
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22212 esac
22213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218 eval "$as_ac_Header=\$ac_header_preproc"
22220 ac_res=`eval echo '${'$as_ac_Header'}'`
22221 { echo "$as_me:$LINENO: result: $ac_res" >&5
22222 echo "${ECHO_T}$ac_res" >&6; }
22225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22226 cat >>confdefs.h <<_ACEOF
22227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22228 _ACEOF
22232 done
22236 for ac_func in fork vfork
22238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244 cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h. */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h. */
22250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22252 #define $ac_func innocuous_$ac_func
22254 /* System header to define __stub macros and hopefully few prototypes,
22255 which can conflict with char $ac_func (); below.
22256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22257 <limits.h> exists even on freestanding compilers. */
22259 #ifdef __STDC__
22260 # include <limits.h>
22261 #else
22262 # include <assert.h>
22263 #endif
22265 #undef $ac_func
22267 /* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
22270 #ifdef __cplusplus
22271 extern "C"
22272 #endif
22273 char $ac_func ();
22274 /* The GNU C library defines this for functions which it implements
22275 to always fail with ENOSYS. Some functions are actually named
22276 something starting with __ and the normal name is an alias. */
22277 #if defined __stub_$ac_func || defined __stub___$ac_func
22278 choke me
22279 #endif
22282 main ()
22284 return $ac_func ();
22286 return 0;
22288 _ACEOF
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (ac_try="$ac_link"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_link") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest$ac_exeext &&
22306 $as_test_x conftest$ac_exeext; then
22307 eval "$as_ac_var=yes"
22308 else
22309 echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22312 eval "$as_ac_var=no"
22315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22316 conftest$ac_exeext conftest.$ac_ext
22318 ac_res=`eval echo '${'$as_ac_var'}'`
22319 { echo "$as_me:$LINENO: result: $ac_res" >&5
22320 echo "${ECHO_T}$ac_res" >&6; }
22321 if test `eval echo '${'$as_ac_var'}'` = yes; then
22322 cat >>confdefs.h <<_ACEOF
22323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 _ACEOF
22327 done
22329 if test "x$ac_cv_func_fork" = xyes; then
22330 { echo "$as_me:$LINENO: checking for working fork" >&5
22331 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22332 if test "${ac_cv_func_fork_works+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335 if test "$cross_compiling" = yes; then
22336 ac_cv_func_fork_works=cross
22337 else
22338 cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h. */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h. */
22344 $ac_includes_default
22346 main ()
22349 /* By Ruediger Kuhlmann. */
22350 return fork () < 0;
22353 return 0;
22355 _ACEOF
22356 rm -f conftest$ac_exeext
22357 if { (ac_try="$ac_link"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_link") 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22367 { (case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_try") 2>&5
22373 ac_status=$?
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; }; then
22376 ac_cv_func_fork_works=yes
22377 else
22378 echo "$as_me: program exited with status $ac_status" >&5
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ( exit $ac_status )
22383 ac_cv_func_fork_works=no
22385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22390 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22391 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22393 else
22394 ac_cv_func_fork_works=$ac_cv_func_fork
22396 if test "x$ac_cv_func_fork_works" = xcross; then
22397 case $host in
22398 *-*-amigaos* | *-*-msdosdjgpp*)
22399 # Override, as these systems have only a dummy fork() stub
22400 ac_cv_func_fork_works=no
22403 ac_cv_func_fork_works=yes
22405 esac
22406 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22407 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22409 ac_cv_func_vfork_works=$ac_cv_func_vfork
22410 if test "x$ac_cv_func_vfork" = xyes; then
22411 { echo "$as_me:$LINENO: checking for working vfork" >&5
22412 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22413 if test "${ac_cv_func_vfork_works+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22415 else
22416 if test "$cross_compiling" = yes; then
22417 ac_cv_func_vfork_works=cross
22418 else
22419 cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h. */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22425 /* Thanks to Paul Eggert for this test. */
22426 $ac_includes_default
22427 #include <sys/wait.h>
22428 #ifdef HAVE_VFORK_H
22429 # include <vfork.h>
22430 #endif
22431 /* On some sparc systems, changes by the child to local and incoming
22432 argument registers are propagated back to the parent. The compiler
22433 is told about this with #include <vfork.h>, but some compilers
22434 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22435 static variable whose address is put into a register that is
22436 clobbered by the vfork. */
22437 static void
22438 #ifdef __cplusplus
22439 sparc_address_test (int arg)
22440 # else
22441 sparc_address_test (arg) int arg;
22442 #endif
22444 static pid_t child;
22445 if (!child) {
22446 child = vfork ();
22447 if (child < 0) {
22448 perror ("vfork");
22449 _exit(2);
22451 if (!child) {
22452 arg = getpid();
22453 write(-1, "", 0);
22454 _exit (arg);
22460 main ()
22462 pid_t parent = getpid ();
22463 pid_t child;
22465 sparc_address_test (0);
22467 child = vfork ();
22469 if (child == 0) {
22470 /* Here is another test for sparc vfork register problems. This
22471 test uses lots of local variables, at least as many local
22472 variables as main has allocated so far including compiler
22473 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22474 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22475 reuse the register of parent for one of the local variables,
22476 since it will think that parent can't possibly be used any more
22477 in this routine. Assigning to the local variable will thus
22478 munge parent in the parent process. */
22479 pid_t
22480 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22481 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22482 /* Convince the compiler that p..p7 are live; otherwise, it might
22483 use the same hardware register for all 8 local variables. */
22484 if (p != p1 || p != p2 || p != p3 || p != p4
22485 || p != p5 || p != p6 || p != p7)
22486 _exit(1);
22488 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22489 from child file descriptors. If the child closes a descriptor
22490 before it execs or exits, this munges the parent's descriptor
22491 as well. Test for this by closing stdout in the child. */
22492 _exit(close(fileno(stdout)) != 0);
22493 } else {
22494 int status;
22495 struct stat st;
22497 while (wait(&status) != child)
22499 return (
22500 /* Was there some problem with vforking? */
22501 child < 0
22503 /* Did the child fail? (This shouldn't happen.) */
22504 || status
22506 /* Did the vfork/compiler bug occur? */
22507 || parent != getpid()
22509 /* Did the file descriptor bug occur? */
22510 || fstat(fileno(stdout), &st) != 0
22514 _ACEOF
22515 rm -f conftest$ac_exeext
22516 if { (ac_try="$ac_link"
22517 case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22520 esac
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_link") 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22526 { (case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_try") 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; }; then
22535 ac_cv_func_vfork_works=yes
22536 else
22537 echo "$as_me: program exited with status $ac_status" >&5
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 ( exit $ac_status )
22542 ac_cv_func_vfork_works=no
22544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22550 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22553 if test "x$ac_cv_func_fork_works" = xcross; then
22554 ac_cv_func_vfork_works=$ac_cv_func_vfork
22555 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22556 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22559 if test "x$ac_cv_func_vfork_works" = xyes; then
22561 cat >>confdefs.h <<\_ACEOF
22562 #define HAVE_WORKING_VFORK 1
22563 _ACEOF
22565 else
22567 cat >>confdefs.h <<\_ACEOF
22568 #define vfork fork
22569 _ACEOF
22572 if test "x$ac_cv_func_fork_works" = xyes; then
22574 cat >>confdefs.h <<\_ACEOF
22575 #define HAVE_WORKING_FORK 1
22576 _ACEOF
22581 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22582 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22583 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 else
22586 cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h. */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22592 #include <langinfo.h>
22594 main ()
22596 char* cs = nl_langinfo(CODESET);
22598 return 0;
22600 _ACEOF
22601 rm -f conftest.$ac_objext conftest$ac_exeext
22602 if { (ac_try="$ac_link"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_link") 2>conftest.er1
22609 ac_status=$?
22610 grep -v '^ *+' conftest.er1 >conftest.err
22611 rm -f conftest.er1
22612 cat conftest.err >&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } && {
22615 test -z "$ac_c_werror_flag" ||
22616 test ! -s conftest.err
22617 } && test -s conftest$ac_exeext &&
22618 $as_test_x conftest$ac_exeext; then
22619 emacs_cv_langinfo_codeset=yes
22620 else
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 emacs_cv_langinfo_codeset=no
22627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22628 conftest$ac_exeext conftest.$ac_ext
22631 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22632 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22633 if test $emacs_cv_langinfo_codeset = yes; then
22635 cat >>confdefs.h <<\_ACEOF
22636 #define HAVE_LANGINFO_CODESET 1
22637 _ACEOF
22641 { echo "$as_me:$LINENO: checking for size_t" >&5
22642 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22643 if test "${ac_cv_type_size_t+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646 cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h. */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 $ac_includes_default
22653 typedef size_t ac__type_new_;
22655 main ()
22657 if ((ac__type_new_ *) 0)
22658 return 0;
22659 if (sizeof (ac__type_new_))
22660 return 0;
22662 return 0;
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (ac_try="$ac_compile"
22667 case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_compile") 2>conftest.er1
22673 ac_status=$?
22674 grep -v '^ *+' conftest.er1 >conftest.err
22675 rm -f conftest.er1
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } && {
22679 test -z "$ac_c_werror_flag" ||
22680 test ! -s conftest.err
22681 } && test -s conftest.$ac_objext; then
22682 ac_cv_type_size_t=yes
22683 else
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22687 ac_cv_type_size_t=no
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22693 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22694 if test $ac_cv_type_size_t = yes; then
22696 cat >>confdefs.h <<_ACEOF
22697 #define HAVE_SIZE_T 1
22698 _ACEOF
22704 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22705 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22706 if test "${ac_cv_type_mbstate_t+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22709 cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h. */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715 $ac_includes_default
22716 # include <wchar.h>
22718 main ()
22720 mbstate_t x; return sizeof x;
22722 return 0;
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_cv_type_mbstate_t=yes
22743 else
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_cv_type_mbstate_t=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22753 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22754 if test $ac_cv_type_mbstate_t = yes; then
22756 cat >>confdefs.h <<\_ACEOF
22757 #define HAVE_MBSTATE_T 1
22758 _ACEOF
22760 else
22762 cat >>confdefs.h <<\_ACEOF
22763 #define mbstate_t int
22764 _ACEOF
22768 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22769 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22770 if test "${emacs_cv_c_restrict+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773 cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h. */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 void fred (int *restrict x);
22781 main ()
22785 return 0;
22787 _ACEOF
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_compile") 2>conftest.er1
22796 ac_status=$?
22797 grep -v '^ *+' conftest.er1 >conftest.err
22798 rm -f conftest.er1
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } && {
22802 test -z "$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22804 } && test -s conftest.$ac_objext; then
22805 emacs_cv_c_restrict=yes
22806 else
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 cat >conftest.$ac_ext <<_ACEOF
22811 /* confdefs.h. */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 void fred (int *__restrict x);
22818 main ()
22822 return 0;
22824 _ACEOF
22825 rm -f conftest.$ac_objext
22826 if { (ac_try="$ac_compile"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest.$ac_objext; then
22842 emacs_cv_c_restrict=__restrict
22843 else
22844 echo "$as_me: failed program was:" >&5
22845 sed 's/^/| /' conftest.$ac_ext >&5
22847 emacs_cv_c_restrict=no
22850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22855 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22856 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22857 case "$emacs_cv_c_restrict" in
22858 yes) emacs_restrict=restrict;;
22859 no) emacs_restrict="";;
22860 *) emacs_restrict="$emacs_cv_c_restrict";;
22861 esac
22862 if test "$emacs_restrict" != __restrict; then
22864 cat >>confdefs.h <<_ACEOF
22865 #define __restrict $emacs_restrict
22866 _ACEOF
22870 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22871 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22872 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22873 echo $ECHO_N "(cached) $ECHO_C" >&6
22874 else
22875 cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h. */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22881 void fred (int x[__restrict]);
22883 main ()
22887 return 0;
22889 _ACEOF
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
22892 case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22898 ac_status=$?
22899 grep -v '^ *+' conftest.er1 >conftest.err
22900 rm -f conftest.er1
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_c_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest.$ac_objext; then
22907 emacs_cv_c_restrict_arr=yes
22908 else
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 emacs_cv_c_restrict_arr=no
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22918 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22919 if test "$emacs_cv_c_restrict_arr" = yes; then
22921 cat >>confdefs.h <<\_ACEOF
22922 #define __restrict_arr __restrict
22923 _ACEOF
22929 # Set up the CFLAGS for real compilation, so we can substitute it.
22930 CFLAGS="$REAL_CFLAGS"
22931 CPPFLAGS="$REAL_CPPFLAGS"
22933 #### Find out which version of Emacs this is.
22934 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22935 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22936 if test x"${version}" = x; then
22937 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22938 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22939 { (exit 1); exit 1; }; }
22942 ### Specify what sort of things we'll be editing into Makefile and config.h.
22943 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22979 cat >>confdefs.h <<_ACEOF
22980 #define EMACS_CONFIGURATION "${canonical}"
22981 _ACEOF
22984 cat >>confdefs.h <<_ACEOF
22985 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22986 _ACEOF
22989 cat >>confdefs.h <<_ACEOF
22990 #define config_machfile "${machfile}"
22991 _ACEOF
22994 cat >>confdefs.h <<_ACEOF
22995 #define config_opsysfile "${opsysfile}"
22996 _ACEOF
22999 cat >>confdefs.h <<_ACEOF
23000 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23001 _ACEOF
23004 cat >>confdefs.h <<_ACEOF
23005 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23006 _ACEOF
23009 cat >>confdefs.h <<_ACEOF
23010 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23011 _ACEOF
23014 cat >>confdefs.h <<_ACEOF
23015 #define UNEXEC_SRC ${UNEXEC_SRC}
23016 _ACEOF
23019 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23021 cat >>confdefs.h <<\_ACEOF
23022 #define HAVE_X_WINDOWS 1
23023 _ACEOF
23026 if test "${USE_X_TOOLKIT}" != "none" ; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define USE_X_TOOLKIT 1
23030 _ACEOF
23033 if test "${HAVE_X11}" = "yes" ; then
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_X11 1
23037 _ACEOF
23040 if test "${HAVE_XFREE386}" = "yes" ; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE_XFREE386 1
23044 _ACEOF
23047 if test "${HAVE_MENUS}" = "yes" ; then
23049 cat >>confdefs.h <<\_ACEOF
23050 #define HAVE_MENUS 1
23051 _ACEOF
23054 if test "${GNU_MALLOC}" = "yes" ; then
23056 cat >>confdefs.h <<\_ACEOF
23057 #define GNU_MALLOC 1
23058 _ACEOF
23061 if test "${REL_ALLOC}" = "yes" ; then
23063 cat >>confdefs.h <<\_ACEOF
23064 #define REL_ALLOC 1
23065 _ACEOF
23073 #### Report on what we decided to do.
23074 #### Report GTK as a toolkit, even if it doesn't use Xt.
23075 #### It makes printing result more understandable as using GTK sets
23076 #### toolkit_scroll_bars to yes by default.
23077 if test "${HAVE_GTK}" = "yes"; then
23078 USE_X_TOOLKIT=GTK
23081 echo "
23082 Configured for \`${canonical}'.
23084 Where should the build process find the source code? ${srcdir}
23085 What operating system and machine description files should Emacs use?
23086 \`${opsysfile}' and \`${machfile}'
23087 What compiler should emacs be built with? ${CC} ${CFLAGS}
23088 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23089 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23090 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23091 What window system should Emacs use? ${window_system}
23092 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23094 if test -n "${x_includes}"; then
23095 echo " Where do we find X Windows header files? ${x_includes}"
23096 else
23097 echo " Where do we find X Windows header files? Standard dirs"
23099 if test -n "${x_libraries}"; then
23100 echo " Where do we find X Windows libraries? ${x_libraries}"
23101 else
23102 echo " Where do we find X Windows libraries? Standard dirs"
23105 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23106 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23107 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23108 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23109 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23110 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23111 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23112 echo
23114 if test $USE_XASSERTS = yes; then
23115 echo " Compiling with asserts turned on."
23116 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23117 echo
23120 if test "$USE_X_TOOLKIT" = GTK; then
23121 case "$canonical" in
23122 *cygwin*)
23123 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23124 will probably get a crash on startup. If this happens, please use another
23125 toolkit for Emacs. See etc/PROBLEMS for more information."
23127 esac
23132 # Remove any trailing slashes in these variables.
23133 test "${prefix}" != NONE &&
23134 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23135 test "${exec_prefix}" != NONE &&
23136 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23138 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23139 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23140 ## from Makefile.c can correctly provide the arg `-traditional' to the
23141 ## C preprocessor.
23143 cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h. */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 yes..yes
23150 _ACEOF
23151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23152 $EGREP "yes..yes" >/dev/null 2>&1; then
23153 CPP_NEED_TRADITIONAL=no
23154 else
23155 CPP_NEED_TRADITIONAL=yes
23157 rm -f conftest*
23160 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"
23162 ac_config_commands="$ac_config_commands default"
23164 cat >confcache <<\_ACEOF
23165 # This file is a shell script that caches the results of configure
23166 # tests run on this system so they can be shared between configure
23167 # scripts and configure runs, see configure's option --config-cache.
23168 # It is not useful on other systems. If it contains results you don't
23169 # want to keep, you may remove or edit it.
23171 # config.status only pays attention to the cache file if you give it
23172 # the --recheck option to rerun configure.
23174 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23175 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23176 # following values.
23178 _ACEOF
23180 # The following way of writing the cache mishandles newlines in values,
23181 # but we know of no workaround that is simple, portable, and efficient.
23182 # So, we kill variables containing newlines.
23183 # Ultrix sh set writes to stderr and can't be redirected directly,
23184 # and sets the high bit in the cache file unless we assign to the vars.
23186 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23187 eval ac_val=\$$ac_var
23188 case $ac_val in #(
23189 *${as_nl}*)
23190 case $ac_var in #(
23191 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23192 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23193 esac
23194 case $ac_var in #(
23195 _ | IFS | as_nl) ;; #(
23196 *) $as_unset $ac_var ;;
23197 esac ;;
23198 esac
23199 done
23201 (set) 2>&1 |
23202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23203 *${as_nl}ac_space=\ *)
23204 # `set' does not quote correctly, so add quotes (double-quote
23205 # substitution turns \\\\ into \\, and sed turns \\ into \).
23206 sed -n \
23207 "s/'/'\\\\''/g;
23208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23209 ;; #(
23211 # `set' quotes correctly as required by POSIX, so do not add quotes.
23212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23214 esac |
23215 sort
23217 sed '
23218 /^ac_cv_env_/b end
23219 t clear
23220 :clear
23221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23222 t end
23223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23224 :end' >>confcache
23225 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23226 if test -w "$cache_file"; then
23227 test "x$cache_file" != "x/dev/null" &&
23228 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23229 echo "$as_me: updating cache $cache_file" >&6;}
23230 cat confcache >$cache_file
23231 else
23232 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23233 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23236 rm -f confcache
23238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23239 # Let make expand exec_prefix.
23240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23242 DEFS=-DHAVE_CONFIG_H
23244 ac_libobjs=
23245 ac_ltlibobjs=
23246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23247 # 1. Remove the extension, and $U if already installed.
23248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23249 ac_i=`echo "$ac_i" | sed "$ac_script"`
23250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23251 # will be set to the directory where LIBOBJS objects are built.
23252 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23253 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23254 done
23255 LIBOBJS=$ac_libobjs
23257 LTLIBOBJS=$ac_ltlibobjs
23261 : ${CONFIG_STATUS=./config.status}
23262 ac_clean_files_save=$ac_clean_files
23263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23264 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23265 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23266 cat >$CONFIG_STATUS <<_ACEOF
23267 #! $SHELL
23268 # Generated by $as_me.
23269 # Run this file to recreate the current configuration.
23270 # Compiler output produced by configure, useful for debugging
23271 # configure, is in config.log if it exists.
23273 debug=false
23274 ac_cs_recheck=false
23275 ac_cs_silent=false
23276 SHELL=\${CONFIG_SHELL-$SHELL}
23277 _ACEOF
23279 cat >>$CONFIG_STATUS <<\_ACEOF
23280 ## --------------------- ##
23281 ## M4sh Initialization. ##
23282 ## --------------------- ##
23284 # Be more Bourne compatible
23285 DUALCASE=1; export DUALCASE # for MKS sh
23286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23287 emulate sh
23288 NULLCMD=:
23289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23290 # is contrary to our usage. Disable this feature.
23291 alias -g '${1+"$@"}'='"$@"'
23292 setopt NO_GLOB_SUBST
23293 else
23294 case `(set -o) 2>/dev/null` in
23295 *posix*) set -o posix ;;
23296 esac
23303 # PATH needs CR
23304 # Avoid depending upon Character Ranges.
23305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23308 as_cr_digits='0123456789'
23309 as_cr_alnum=$as_cr_Letters$as_cr_digits
23311 # The user is always right.
23312 if test "${PATH_SEPARATOR+set}" != set; then
23313 echo "#! /bin/sh" >conf$$.sh
23314 echo "exit 0" >>conf$$.sh
23315 chmod +x conf$$.sh
23316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23317 PATH_SEPARATOR=';'
23318 else
23319 PATH_SEPARATOR=:
23321 rm -f conf$$.sh
23324 # Support unset when possible.
23325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23326 as_unset=unset
23327 else
23328 as_unset=false
23332 # IFS
23333 # We need space, tab and new line, in precisely that order. Quoting is
23334 # there to prevent editors from complaining about space-tab.
23335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23336 # splitting by setting IFS to empty value.)
23337 as_nl='
23339 IFS=" "" $as_nl"
23341 # Find who we are. Look in the path if we contain no directory separator.
23342 case $0 in
23343 *[\\/]* ) as_myself=$0 ;;
23344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23345 for as_dir in $PATH
23347 IFS=$as_save_IFS
23348 test -z "$as_dir" && as_dir=.
23349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23350 done
23351 IFS=$as_save_IFS
23354 esac
23355 # We did not find ourselves, most probably we were run as `sh COMMAND'
23356 # in which case we are not to be found in the path.
23357 if test "x$as_myself" = x; then
23358 as_myself=$0
23360 if test ! -f "$as_myself"; then
23361 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23362 { (exit 1); exit 1; }
23365 # Work around bugs in pre-3.0 UWIN ksh.
23366 for as_var in ENV MAIL MAILPATH
23367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23368 done
23369 PS1='$ '
23370 PS2='> '
23371 PS4='+ '
23373 # NLS nuisances.
23374 for as_var in \
23375 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23376 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23377 LC_TELEPHONE LC_TIME
23379 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23380 eval $as_var=C; export $as_var
23381 else
23382 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23384 done
23386 # Required to use basename.
23387 if expr a : '\(a\)' >/dev/null 2>&1 &&
23388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23389 as_expr=expr
23390 else
23391 as_expr=false
23394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23395 as_basename=basename
23396 else
23397 as_basename=false
23401 # Name of the executable.
23402 as_me=`$as_basename -- "$0" ||
23403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23404 X"$0" : 'X\(//\)$' \| \
23405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23406 echo X/"$0" |
23407 sed '/^.*\/\([^/][^/]*\)\/*$/{
23408 s//\1/
23411 /^X\/\(\/\/\)$/{
23412 s//\1/
23415 /^X\/\(\/\).*/{
23416 s//\1/
23419 s/.*/./; q'`
23421 # CDPATH.
23422 $as_unset CDPATH
23426 as_lineno_1=$LINENO
23427 as_lineno_2=$LINENO
23428 test "x$as_lineno_1" != "x$as_lineno_2" &&
23429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23432 # uniformly replaced by the line number. The first 'sed' inserts a
23433 # line-number line after each line using $LINENO; the second 'sed'
23434 # does the real work. The second script uses 'N' to pair each
23435 # line-number line with the line containing $LINENO, and appends
23436 # trailing '-' during substitution so that $LINENO is not a special
23437 # case at line end.
23438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23439 # scripts with optimization help from Paolo Bonzini. Blame Lee
23440 # E. McMahon (1931-1989) for sed's syntax. :-)
23441 sed -n '
23443 /[$]LINENO/=
23444 ' <$as_myself |
23445 sed '
23446 s/[$]LINENO.*/&-/
23447 t lineno
23449 :lineno
23451 :loop
23452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23453 t loop
23454 s/-\n.*//
23455 ' >$as_me.lineno &&
23456 chmod +x "$as_me.lineno" ||
23457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23458 { (exit 1); exit 1; }; }
23460 # Don't try to exec as it changes $[0], causing all sort of problems
23461 # (the dirname of $[0] is not the place where we might find the
23462 # original and so on. Autoconf is especially sensitive to this).
23463 . "./$as_me.lineno"
23464 # Exit status is that of the last command.
23465 exit
23469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23470 as_dirname=dirname
23471 else
23472 as_dirname=false
23475 ECHO_C= ECHO_N= ECHO_T=
23476 case `echo -n x` in
23477 -n*)
23478 case `echo 'x\c'` in
23479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23480 *) ECHO_C='\c';;
23481 esac;;
23483 ECHO_N='-n';;
23484 esac
23486 if expr a : '\(a\)' >/dev/null 2>&1 &&
23487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23488 as_expr=expr
23489 else
23490 as_expr=false
23493 rm -f conf$$ conf$$.exe conf$$.file
23494 if test -d conf$$.dir; then
23495 rm -f conf$$.dir/conf$$.file
23496 else
23497 rm -f conf$$.dir
23498 mkdir conf$$.dir
23500 echo >conf$$.file
23501 if ln -s conf$$.file conf$$ 2>/dev/null; then
23502 as_ln_s='ln -s'
23503 # ... but there are two gotchas:
23504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23506 # In both cases, we have to default to `cp -p'.
23507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23508 as_ln_s='cp -p'
23509 elif ln conf$$.file conf$$ 2>/dev/null; then
23510 as_ln_s=ln
23511 else
23512 as_ln_s='cp -p'
23514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23515 rmdir conf$$.dir 2>/dev/null
23517 if mkdir -p . 2>/dev/null; then
23518 as_mkdir_p=:
23519 else
23520 test -d ./-p && rmdir ./-p
23521 as_mkdir_p=false
23524 if test -x / >/dev/null 2>&1; then
23525 as_test_x='test -x'
23526 else
23527 if ls -dL / >/dev/null 2>&1; then
23528 as_ls_L_option=L
23529 else
23530 as_ls_L_option=
23532 as_test_x='
23533 eval sh -c '\''
23534 if test -d "$1"; then
23535 test -d "$1/.";
23536 else
23537 case $1 in
23538 -*)set "./$1";;
23539 esac;
23540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23541 ???[sx]*):;;*)false;;esac;fi
23542 '\'' sh
23545 as_executable_p=$as_test_x
23547 # Sed expression to map a string onto a valid CPP name.
23548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23550 # Sed expression to map a string onto a valid variable name.
23551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23554 exec 6>&1
23556 # Save the log message, to keep $[0] and so on meaningful, and to
23557 # report actual input values of CONFIG_FILES etc. instead of their
23558 # values after options handling.
23559 ac_log="
23560 This file was extended by $as_me, which was
23561 generated by GNU Autoconf 2.61. Invocation command line was
23563 CONFIG_FILES = $CONFIG_FILES
23564 CONFIG_HEADERS = $CONFIG_HEADERS
23565 CONFIG_LINKS = $CONFIG_LINKS
23566 CONFIG_COMMANDS = $CONFIG_COMMANDS
23567 $ $0 $@
23569 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23572 _ACEOF
23574 cat >>$CONFIG_STATUS <<_ACEOF
23575 # Files that config.status was made for.
23576 config_files="$ac_config_files"
23577 config_headers="$ac_config_headers"
23578 config_commands="$ac_config_commands"
23580 _ACEOF
23582 cat >>$CONFIG_STATUS <<\_ACEOF
23583 ac_cs_usage="\
23584 \`$as_me' instantiates files from templates according to the
23585 current configuration.
23587 Usage: $0 [OPTIONS] [FILE]...
23589 -h, --help print this help, then exit
23590 -V, --version print version number and configuration settings, then exit
23591 -q, --quiet do not print progress messages
23592 -d, --debug don't remove temporary files
23593 --recheck update $as_me by reconfiguring in the same conditions
23594 --file=FILE[:TEMPLATE]
23595 instantiate the configuration file FILE
23596 --header=FILE[:TEMPLATE]
23597 instantiate the configuration header FILE
23599 Configuration files:
23600 $config_files
23602 Configuration headers:
23603 $config_headers
23605 Configuration commands:
23606 $config_commands
23608 Report bugs to <bug-autoconf@gnu.org>."
23610 _ACEOF
23611 cat >>$CONFIG_STATUS <<_ACEOF
23612 ac_cs_version="\\
23613 config.status
23614 configured by $0, generated by GNU Autoconf 2.61,
23615 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23617 Copyright (C) 2006 Free Software Foundation, Inc.
23618 This config.status script is free software; the Free Software Foundation
23619 gives unlimited permission to copy, distribute and modify it."
23621 ac_pwd='$ac_pwd'
23622 srcdir='$srcdir'
23623 INSTALL='$INSTALL'
23624 _ACEOF
23626 cat >>$CONFIG_STATUS <<\_ACEOF
23627 # If no file are specified by the user, then we need to provide default
23628 # value. By we need to know if files were specified by the user.
23629 ac_need_defaults=:
23630 while test $# != 0
23632 case $1 in
23633 --*=*)
23634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23636 ac_shift=:
23639 ac_option=$1
23640 ac_optarg=$2
23641 ac_shift=shift
23643 esac
23645 case $ac_option in
23646 # Handling of the options.
23647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23648 ac_cs_recheck=: ;;
23649 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23650 echo "$ac_cs_version"; exit ;;
23651 --debug | --debu | --deb | --de | --d | -d )
23652 debug=: ;;
23653 --file | --fil | --fi | --f )
23654 $ac_shift
23655 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23656 ac_need_defaults=false;;
23657 --header | --heade | --head | --hea )
23658 $ac_shift
23659 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23660 ac_need_defaults=false;;
23661 --he | --h)
23662 # Conflict between --help and --header
23663 { echo "$as_me: error: ambiguous option: $1
23664 Try \`$0 --help' for more information." >&2
23665 { (exit 1); exit 1; }; };;
23666 --help | --hel | -h )
23667 echo "$ac_cs_usage"; exit ;;
23668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23670 ac_cs_silent=: ;;
23672 # This is an error.
23673 -*) { echo "$as_me: error: unrecognized option: $1
23674 Try \`$0 --help' for more information." >&2
23675 { (exit 1); exit 1; }; } ;;
23677 *) ac_config_targets="$ac_config_targets $1"
23678 ac_need_defaults=false ;;
23680 esac
23681 shift
23682 done
23684 ac_configure_extra_args=
23686 if $ac_cs_silent; then
23687 exec 6>/dev/null
23688 ac_configure_extra_args="$ac_configure_extra_args --silent"
23691 _ACEOF
23692 cat >>$CONFIG_STATUS <<_ACEOF
23693 if \$ac_cs_recheck; then
23694 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23695 CONFIG_SHELL=$SHELL
23696 export CONFIG_SHELL
23697 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23700 _ACEOF
23701 cat >>$CONFIG_STATUS <<\_ACEOF
23702 exec 5>>config.log
23704 echo
23705 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23706 ## Running $as_me. ##
23707 _ASBOX
23708 echo "$ac_log"
23709 } >&5
23711 _ACEOF
23712 cat >>$CONFIG_STATUS <<_ACEOF
23714 # INIT-COMMANDS
23716 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23718 _ACEOF
23720 cat >>$CONFIG_STATUS <<\_ACEOF
23722 # Handling of arguments.
23723 for ac_config_target in $ac_config_targets
23725 case $ac_config_target in
23726 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23727 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23728 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23729 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23730 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23731 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23732 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23733 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23734 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23735 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23736 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23737 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23739 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23740 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23741 { (exit 1); exit 1; }; };;
23742 esac
23743 done
23746 # If the user did not use the arguments to specify the items to instantiate,
23747 # then the envvar interface is used. Set only those that are not.
23748 # We use the long form for the default assignment because of an extremely
23749 # bizarre bug on SunOS 4.1.3.
23750 if $ac_need_defaults; then
23751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23756 # Have a temporary directory for convenience. Make it in the build tree
23757 # simply because there is no reason against having it here, and in addition,
23758 # creating and moving files from /tmp can sometimes cause problems.
23759 # Hook for its removal unless debugging.
23760 # Note that there is a small window in which the directory will not be cleaned:
23761 # after its creation but before its name has been assigned to `$tmp'.
23762 $debug ||
23764 tmp=
23765 trap 'exit_status=$?
23766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23768 trap '{ (exit 1); exit 1; }' 1 2 13 15
23770 # Create a (secure) tmp directory for tmp files.
23773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23774 test -n "$tmp" && test -d "$tmp"
23775 } ||
23777 tmp=./conf$$-$RANDOM
23778 (umask 077 && mkdir "$tmp")
23779 } ||
23781 echo "$me: cannot create a temporary directory in ." >&2
23782 { (exit 1); exit 1; }
23786 # Set up the sed scripts for CONFIG_FILES section.
23789 # No need to generate the scripts if there are no CONFIG_FILES.
23790 # This happens for instance when ./config.status config.h
23791 if test -n "$CONFIG_FILES"; then
23793 _ACEOF
23797 ac_delim='%!_!# '
23798 for ac_last_try in false false false false false :; do
23799 cat >conf$$subs.sed <<_ACEOF
23800 SHELL!$SHELL$ac_delim
23801 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23802 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23803 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23804 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23805 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23806 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23807 exec_prefix!$exec_prefix$ac_delim
23808 prefix!$prefix$ac_delim
23809 program_transform_name!$program_transform_name$ac_delim
23810 bindir!$bindir$ac_delim
23811 sbindir!$sbindir$ac_delim
23812 libexecdir!$libexecdir$ac_delim
23813 datarootdir!$datarootdir$ac_delim
23814 datadir!$datadir$ac_delim
23815 sysconfdir!$sysconfdir$ac_delim
23816 sharedstatedir!$sharedstatedir$ac_delim
23817 localstatedir!$localstatedir$ac_delim
23818 includedir!$includedir$ac_delim
23819 oldincludedir!$oldincludedir$ac_delim
23820 docdir!$docdir$ac_delim
23821 infodir!$infodir$ac_delim
23822 htmldir!$htmldir$ac_delim
23823 dvidir!$dvidir$ac_delim
23824 pdfdir!$pdfdir$ac_delim
23825 psdir!$psdir$ac_delim
23826 libdir!$libdir$ac_delim
23827 localedir!$localedir$ac_delim
23828 mandir!$mandir$ac_delim
23829 DEFS!$DEFS$ac_delim
23830 ECHO_C!$ECHO_C$ac_delim
23831 ECHO_N!$ECHO_N$ac_delim
23832 ECHO_T!$ECHO_T$ac_delim
23833 LIBS!$LIBS$ac_delim
23834 build_alias!$build_alias$ac_delim
23835 host_alias!$host_alias$ac_delim
23836 target_alias!$target_alias$ac_delim
23837 MAINT!$MAINT$ac_delim
23838 build!$build$ac_delim
23839 build_cpu!$build_cpu$ac_delim
23840 build_vendor!$build_vendor$ac_delim
23841 build_os!$build_os$ac_delim
23842 host!$host$ac_delim
23843 host_cpu!$host_cpu$ac_delim
23844 host_vendor!$host_vendor$ac_delim
23845 host_os!$host_os$ac_delim
23846 CC!$CC$ac_delim
23847 CFLAGS!$CFLAGS$ac_delim
23848 LDFLAGS!$LDFLAGS$ac_delim
23849 CPPFLAGS!$CPPFLAGS$ac_delim
23850 ac_ct_CC!$ac_ct_CC$ac_delim
23851 EXEEXT!$EXEEXT$ac_delim
23852 OBJEXT!$OBJEXT$ac_delim
23853 CPP!$CPP$ac_delim
23854 GREP!$GREP$ac_delim
23855 EGREP!$EGREP$ac_delim
23856 LN_S!$LN_S$ac_delim
23857 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23858 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23859 INSTALL_DATA!$INSTALL_DATA$ac_delim
23860 RANLIB!$RANLIB$ac_delim
23861 INSTALL_INFO!$INSTALL_INFO$ac_delim
23862 GZIP_PROG!$GZIP_PROG$ac_delim
23863 LIBSOUND!$LIBSOUND$ac_delim
23864 PKG_CONFIG!$PKG_CONFIG$ac_delim
23865 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23866 ALSA_LIBS!$ALSA_LIBS$ac_delim
23867 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23868 SET_MAKE!$SET_MAKE$ac_delim
23869 XMKMF!$XMKMF$ac_delim
23870 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23871 GTK_LIBS!$GTK_LIBS$ac_delim
23872 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23873 XFT_LIBS!$XFT_LIBS$ac_delim
23874 ALLOCA!$ALLOCA$ac_delim
23875 liblockfile!$liblockfile$ac_delim
23876 LIBOBJS!$LIBOBJS$ac_delim
23877 NEED_SETGID!$NEED_SETGID$ac_delim
23878 KMEM_GROUP!$KMEM_GROUP$ac_delim
23879 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23880 GETOPT_H!$GETOPT_H$ac_delim
23881 GETOPTOBJS!$GETOPTOBJS$ac_delim
23882 version!$version$ac_delim
23883 configuration!$configuration$ac_delim
23884 canonical!$canonical$ac_delim
23885 srcdir!$srcdir$ac_delim
23886 lispdir!$lispdir$ac_delim
23887 locallisppath!$locallisppath$ac_delim
23888 lisppath!$lisppath$ac_delim
23889 x_default_search_path!$x_default_search_path$ac_delim
23890 etcdir!$etcdir$ac_delim
23891 archlibdir!$archlibdir$ac_delim
23892 bitmapdir!$bitmapdir$ac_delim
23893 gamedir!$gamedir$ac_delim
23894 gameuser!$gameuser$ac_delim
23895 c_switch_system!$c_switch_system$ac_delim
23896 c_switch_machine!$c_switch_machine$ac_delim
23897 _ACEOF
23899 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23900 break
23901 elif $ac_last_try; then
23902 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23903 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23904 { (exit 1); exit 1; }; }
23905 else
23906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23908 done
23910 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23911 if test -n "$ac_eof"; then
23912 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23913 ac_eof=`expr $ac_eof + 1`
23916 cat >>$CONFIG_STATUS <<_ACEOF
23917 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23919 _ACEOF
23920 sed '
23921 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23922 s/^/s,@/; s/!/@,|#_!!_#|/
23925 s/'"$ac_delim"'$/,g/; t
23926 s/$/\\/; p
23927 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23928 ' >>$CONFIG_STATUS <conf$$subs.sed
23929 rm -f conf$$subs.sed
23930 cat >>$CONFIG_STATUS <<_ACEOF
23931 CEOF$ac_eof
23932 _ACEOF
23935 ac_delim='%!_!# '
23936 for ac_last_try in false false false false false :; do
23937 cat >conf$$subs.sed <<_ACEOF
23938 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23939 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23940 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23941 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23942 machfile!$machfile$ac_delim
23943 opsysfile!$opsysfile$ac_delim
23944 carbon_appdir!$carbon_appdir$ac_delim
23945 LTLIBOBJS!$LTLIBOBJS$ac_delim
23946 _ACEOF
23948 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23949 break
23950 elif $ac_last_try; then
23951 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23952 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23953 { (exit 1); exit 1; }; }
23954 else
23955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23957 done
23959 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23960 if test -n "$ac_eof"; then
23961 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23962 ac_eof=`expr $ac_eof + 1`
23965 cat >>$CONFIG_STATUS <<_ACEOF
23966 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23968 _ACEOF
23969 sed '
23970 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23971 s/^/s,@/; s/!/@,|#_!!_#|/
23974 s/'"$ac_delim"'$/,g/; t
23975 s/$/\\/; p
23976 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23977 ' >>$CONFIG_STATUS <conf$$subs.sed
23978 rm -f conf$$subs.sed
23979 cat >>$CONFIG_STATUS <<_ACEOF
23980 :end
23981 s/|#_!!_#|//g
23982 CEOF$ac_eof
23983 _ACEOF
23986 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23987 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23988 # trailing colons and then remove the whole line if VPATH becomes empty
23989 # (actually we leave an empty line to preserve line numbers).
23990 if test "x$srcdir" = x.; then
23991 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23992 s/:*\$(srcdir):*/:/
23993 s/:*\${srcdir}:*/:/
23994 s/:*@srcdir@:*/:/
23995 s/^\([^=]*=[ ]*\):*/\1/
23996 s/:*$//
23997 s/^[^=]*=[ ]*$//
24001 cat >>$CONFIG_STATUS <<\_ACEOF
24002 fi # test -n "$CONFIG_FILES"
24005 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24007 case $ac_tag in
24008 :[FHLC]) ac_mode=$ac_tag; continue;;
24009 esac
24010 case $ac_mode$ac_tag in
24011 :[FHL]*:*);;
24012 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24013 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24014 { (exit 1); exit 1; }; };;
24015 :[FH]-) ac_tag=-:-;;
24016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24017 esac
24018 ac_save_IFS=$IFS
24019 IFS=:
24020 set x $ac_tag
24021 IFS=$ac_save_IFS
24022 shift
24023 ac_file=$1
24024 shift
24026 case $ac_mode in
24027 :L) ac_source=$1;;
24028 :[FH])
24029 ac_file_inputs=
24030 for ac_f
24032 case $ac_f in
24033 -) ac_f="$tmp/stdin";;
24034 *) # Look for the file first in the build tree, then in the source tree
24035 # (if the path is not absolute). The absolute path cannot be DOS-style,
24036 # because $ac_f cannot contain `:'.
24037 test -f "$ac_f" ||
24038 case $ac_f in
24039 [\\/$]*) false;;
24040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24041 esac ||
24042 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24043 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24044 { (exit 1); exit 1; }; };;
24045 esac
24046 ac_file_inputs="$ac_file_inputs $ac_f"
24047 done
24049 # Let's still pretend it is `configure' which instantiates (i.e., don't
24050 # use $as_me), people would be surprised to read:
24051 # /* config.h. Generated by config.status. */
24052 configure_input="Generated from "`IFS=:
24053 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24054 if test x"$ac_file" != x-; then
24055 configure_input="$ac_file. $configure_input"
24056 { echo "$as_me:$LINENO: creating $ac_file" >&5
24057 echo "$as_me: creating $ac_file" >&6;}
24060 case $ac_tag in
24061 *:-:* | *:-) cat >"$tmp/stdin";;
24062 esac
24064 esac
24066 ac_dir=`$as_dirname -- "$ac_file" ||
24067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24068 X"$ac_file" : 'X\(//\)[^/]' \| \
24069 X"$ac_file" : 'X\(//\)$' \| \
24070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24071 echo X"$ac_file" |
24072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24073 s//\1/
24076 /^X\(\/\/\)[^/].*/{
24077 s//\1/
24080 /^X\(\/\/\)$/{
24081 s//\1/
24084 /^X\(\/\).*/{
24085 s//\1/
24088 s/.*/./; q'`
24089 { as_dir="$ac_dir"
24090 case $as_dir in #(
24091 -*) as_dir=./$as_dir;;
24092 esac
24093 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24094 as_dirs=
24095 while :; do
24096 case $as_dir in #(
24097 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24098 *) as_qdir=$as_dir;;
24099 esac
24100 as_dirs="'$as_qdir' $as_dirs"
24101 as_dir=`$as_dirname -- "$as_dir" ||
24102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24103 X"$as_dir" : 'X\(//\)[^/]' \| \
24104 X"$as_dir" : 'X\(//\)$' \| \
24105 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24106 echo X"$as_dir" |
24107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24108 s//\1/
24111 /^X\(\/\/\)[^/].*/{
24112 s//\1/
24115 /^X\(\/\/\)$/{
24116 s//\1/
24119 /^X\(\/\).*/{
24120 s//\1/
24123 s/.*/./; q'`
24124 test -d "$as_dir" && break
24125 done
24126 test -z "$as_dirs" || eval "mkdir $as_dirs"
24127 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24128 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24129 { (exit 1); exit 1; }; }; }
24130 ac_builddir=.
24132 case "$ac_dir" in
24133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24136 # A ".." for each directory in $ac_dir_suffix.
24137 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24138 case $ac_top_builddir_sub in
24139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24141 esac ;;
24142 esac
24143 ac_abs_top_builddir=$ac_pwd
24144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24145 # for backward compatibility:
24146 ac_top_builddir=$ac_top_build_prefix
24148 case $srcdir in
24149 .) # We are building in place.
24150 ac_srcdir=.
24151 ac_top_srcdir=$ac_top_builddir_sub
24152 ac_abs_top_srcdir=$ac_pwd ;;
24153 [\\/]* | ?:[\\/]* ) # Absolute name.
24154 ac_srcdir=$srcdir$ac_dir_suffix;
24155 ac_top_srcdir=$srcdir
24156 ac_abs_top_srcdir=$srcdir ;;
24157 *) # Relative name.
24158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24159 ac_top_srcdir=$ac_top_build_prefix$srcdir
24160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24161 esac
24162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24165 case $ac_mode in
24168 # CONFIG_FILE
24171 case $INSTALL in
24172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24174 esac
24175 _ACEOF
24177 cat >>$CONFIG_STATUS <<\_ACEOF
24178 # If the template does not know about datarootdir, expand it.
24179 # FIXME: This hack should be removed a few years after 2.60.
24180 ac_datarootdir_hack=; ac_datarootdir_seen=
24182 case `sed -n '/datarootdir/ {
24186 /@datadir@/p
24187 /@docdir@/p
24188 /@infodir@/p
24189 /@localedir@/p
24190 /@mandir@/p
24191 ' $ac_file_inputs` in
24192 *datarootdir*) ac_datarootdir_seen=yes;;
24193 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24194 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24195 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24196 _ACEOF
24197 cat >>$CONFIG_STATUS <<_ACEOF
24198 ac_datarootdir_hack='
24199 s&@datadir@&$datadir&g
24200 s&@docdir@&$docdir&g
24201 s&@infodir@&$infodir&g
24202 s&@localedir@&$localedir&g
24203 s&@mandir@&$mandir&g
24204 s&\\\${datarootdir}&$datarootdir&g' ;;
24205 esac
24206 _ACEOF
24208 # Neutralize VPATH when `$srcdir' = `.'.
24209 # Shell code in configure.ac might set extrasub.
24210 # FIXME: do we really want to maintain this feature?
24211 cat >>$CONFIG_STATUS <<_ACEOF
24212 sed "$ac_vpsub
24213 $extrasub
24214 _ACEOF
24215 cat >>$CONFIG_STATUS <<\_ACEOF
24217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24218 s&@configure_input@&$configure_input&;t t
24219 s&@top_builddir@&$ac_top_builddir_sub&;t t
24220 s&@srcdir@&$ac_srcdir&;t t
24221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24222 s&@top_srcdir@&$ac_top_srcdir&;t t
24223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24224 s&@builddir@&$ac_builddir&;t t
24225 s&@abs_builddir@&$ac_abs_builddir&;t t
24226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24227 s&@INSTALL@&$ac_INSTALL&;t t
24228 $ac_datarootdir_hack
24229 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24232 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24234 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24235 which seems to be undefined. Please make sure it is defined." >&5
24236 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24237 which seems to be undefined. Please make sure it is defined." >&2;}
24239 rm -f "$tmp/stdin"
24240 case $ac_file in
24241 -) cat "$tmp/out"; rm -f "$tmp/out";;
24242 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24243 esac
24247 # CONFIG_HEADER
24249 _ACEOF
24251 # Transform confdefs.h into a sed script `conftest.defines', that
24252 # substitutes the proper values into config.h.in to produce config.h.
24253 rm -f conftest.defines conftest.tail
24254 # First, append a space to every undef/define line, to ease matching.
24255 echo 's/$/ /' >conftest.defines
24256 # Then, protect against being on the right side of a sed subst, or in
24257 # an unquoted here document, in config.status. If some macros were
24258 # called several times there might be several #defines for the same
24259 # symbol, which is useless. But do not sort them, since the last
24260 # AC_DEFINE must be honored.
24261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24262 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24263 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24264 # PARAMS is the parameter list in the macro definition--in most cases, it's
24265 # just an empty string.
24266 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24267 ac_dB='\\)[ (].*,\\1define\\2'
24268 ac_dC=' '
24269 ac_dD=' ,'
24271 uniq confdefs.h |
24272 sed -n '
24273 t rset
24274 :rset
24275 s/^[ ]*#[ ]*define[ ][ ]*//
24276 t ok
24279 s/[\\&,]/\\&/g
24280 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24281 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24282 ' >>conftest.defines
24284 # Remove the space that was appended to ease matching.
24285 # Then replace #undef with comments. This is necessary, for
24286 # example, in the case of _POSIX_SOURCE, which is predefined and required
24287 # on some systems where configure will not decide to define it.
24288 # (The regexp can be short, since the line contains either #define or #undef.)
24289 echo 's/ $//
24290 s,^[ #]*u.*,/* & */,' >>conftest.defines
24292 # Break up conftest.defines:
24293 ac_max_sed_lines=50
24295 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24296 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24297 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24298 # et cetera.
24299 ac_in='$ac_file_inputs'
24300 ac_out='"$tmp/out1"'
24301 ac_nxt='"$tmp/out2"'
24303 while :
24305 # Write a here document:
24306 cat >>$CONFIG_STATUS <<_ACEOF
24307 # First, check the format of the line:
24308 cat >"\$tmp/defines.sed" <<\\CEOF
24309 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24310 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24312 :def
24313 _ACEOF
24314 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24315 echo 'CEOF
24316 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24317 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24318 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24319 grep . conftest.tail >/dev/null || break
24320 rm -f conftest.defines
24321 mv conftest.tail conftest.defines
24322 done
24323 rm -f conftest.defines conftest.tail
24325 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24327 if test x"$ac_file" != x-; then
24328 echo "/* $configure_input */" >"$tmp/config.h"
24329 cat "$ac_result" >>"$tmp/config.h"
24330 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24331 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24332 echo "$as_me: $ac_file is unchanged" >&6;}
24333 else
24334 rm -f $ac_file
24335 mv "$tmp/config.h" $ac_file
24337 else
24338 echo "/* $configure_input */"
24339 cat "$ac_result"
24341 rm -f "$tmp/out12"
24344 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24345 echo "$as_me: executing $ac_file commands" >&6;}
24347 esac
24350 case $ac_file$ac_mode in
24351 "default":C)
24353 ### Make the necessary directories, if they don't exist.
24354 for dir in etc lisp ; do
24355 test -d ${dir} || mkdir ${dir}
24356 done
24358 # Build src/Makefile from ${srcdir}/src/Makefile.c
24359 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24360 # This must be done after src/config.h is built, since we rely on that file.
24362 # Now get this: Some word that is part of the ${srcdir} directory name
24363 # or the ${configuration} value might, just might, happen to be an
24364 # identifier like `sun4' or `i386' or something, and be predefined by
24365 # the C preprocessor to some helpful value like 1, or maybe the empty
24366 # string. Needless to say consequent macro substitutions are less
24367 # than conducive to the makefile finding the correct directory.
24368 undefs="`echo $top_srcdir $configuration $canonical |
24369 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24370 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24373 echo creating src/epaths.h
24374 ${MAKE-make} epaths-force
24376 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24377 # `..' to `. .' unless invoked with -traditional
24379 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24380 CPPFLAGS="$CPPFLAGS -traditional"
24383 echo creating lib-src/Makefile
24384 ( cd lib-src
24385 rm -f junk.c junk1.c junk2.c
24386 sed -e '/start of cpp stuff/q' \
24387 < Makefile.c > junk1.c
24388 sed -e '1,/start of cpp stuff/d'\
24389 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24390 < Makefile.c > junk.c
24391 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24392 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24393 cat junk1.c junk2.c > Makefile.new
24394 rm -f junk.c junk1.c junk2.c
24395 chmod 444 Makefile.new
24396 mv -f Makefile.new Makefile
24399 echo creating src/Makefile
24400 ( cd src
24401 rm -f junk.c junk1.c junk2.c
24402 sed -e '/start of cpp stuff/q' \
24403 < Makefile.c > junk1.c
24404 sed -e '1,/start of cpp stuff/d'\
24405 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24406 < Makefile.c > junk.c
24407 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24408 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24409 cat junk1.c junk2.c > Makefile.new
24410 rm -f junk.c junk1.c junk2.c
24411 chmod 444 Makefile.new
24412 mv -f Makefile.new Makefile
24415 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24416 echo creating src/.gdbinit
24417 echo source $srcdir/src/.gdbinit > src/.gdbinit
24420 # This is how we know whether to re-run configure in certain cases.
24421 touch src/config.stamp
24425 esac
24426 done # for ac_tag
24429 { (exit 0); exit 0; }
24430 _ACEOF
24431 chmod +x $CONFIG_STATUS
24432 ac_clean_files=$ac_clean_files_save
24435 # configure is writing to config.log, and then calls config.status.
24436 # config.status does its own redirection, appending to config.log.
24437 # Unfortunately, on DOS this fails, as config.log is still kept open
24438 # by configure, so config.status won't be able to write to it; its
24439 # output is simply discarded. So we exec the FD to /dev/null,
24440 # effectively closing config.log, so it can be properly (re)opened and
24441 # appended to by config.status. When coming back to configure, we
24442 # need to make the FD available again.
24443 if test "$no_create" != yes; then
24444 ac_cs_success=:
24445 ac_config_status_args=
24446 test "$silent" = yes &&
24447 ac_config_status_args="$ac_config_status_args --quiet"
24448 exec 5>/dev/null
24449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24450 exec 5>>config.log
24451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24452 # would make configure fail if this is the last instruction.
24453 $ac_cs_success || { (exit 1); exit 1; }